:root {
  --ink: #20201d;
  --muted: #69675f;
  --paper: #fbfaf6;
  --soft: #f0eee7;
  --line: #d8d1c2;
  --wood: #8b5636;
  --forest: #25584b;
  --gold: #c39a50;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(27, 24, 19, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(216, 209, 194, 0.75);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--forest);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 9vh 5vw 12vh;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 14, 0.74), rgba(20, 18, 14, 0.34) 42%, rgba(20, 18, 14, 0.05)),
    linear-gradient(0deg, rgba(251, 250, 246, 0.72), rgba(251, 250, 246, 0) 24%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.button.primary,
.upload-button {
  color: var(--white);
  background: var(--forest);
}

.export-button {
  color: var(--white);
  background: var(--wood);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 86px 5vw;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.category-list {
  display: grid;
  gap: 28px;
}

.category-panel {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.category-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.category-header p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.upload-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 10px;
  align-items: center;
}

.upload-panel input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-panel input[type="text"] {
  grid-column: 1 / -1;
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.upload-status {
  min-height: 24px;
  margin: -4px 0 12px;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(24, 22, 18, 0.74);
  backdrop-filter: blur(10px);
}

.project-meta strong {
  overflow-wrap: anywhere;
}

.project-meta button {
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.services-section {
  background: #eef4f0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.services-grid article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid #c9d9d1;
  border-radius: 8px;
  background: var(--white);
}

.services-grid p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.contact-copy {
  display: grid;
  gap: 18px;
}

.contact-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-profile {
  align-self: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-profile img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
  object-position: 78% 50%;
}

.contact-list a,
.contact-list span {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.contact-list strong {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contact-list span span,
.contact-list a span {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.35;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw;
  color: var(--muted);
  background: var(--paper);
}

@media (max-width: 900px) {
  .section-heading,
  .category-header,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .upload-panel,
  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .upload-panel input[type="text"] {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    min-height: 104px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    padding-left: 0;
  }

  .hero {
    min-height: calc(100vh - 104px);
    padding-top: 8vh;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(20, 18, 14, 0.72), rgba(20, 18, 14, 0.36)),
      linear-gradient(0deg, rgba(251, 250, 246, 0.72), rgba(251, 250, 246, 0) 20%);
  }

  .section {
    padding: 66px 5vw;
  }

  .project-card,
  .project-card img {
    min-height: 260px;
  }

  footer {
    flex-direction: column;
  }
}
