/* ===== TOKENS ===== */
:root {
  --sand: #f6f3ec;
  --sand-2: #efeae0;
  --cream: #fbf9f4;
  --ink: #2c302a;
  --ink-soft: #4f5349;
  --olive: #7c8a6b;
  --olive-dark: #5d6a4d;
  --line: #ddd6c8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(44, 48, 42, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--ink); }
h3 { font-size: 1.4rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  border: none;
}
.btn--light { background: var(--cream); color: var(--ink); box-shadow: var(--shadow); }
.btn--light:hover { transform: translateY(-3px); background: var(--white); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { transform: translateY(-3px); background: var(--olive-dark); box-shadow: var(--shadow); }

/* ===== HEADER ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.5rem 0;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.header.scrolled {
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(12px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: 0.01em; color: var(--cream);
  transition: color 0.45s var(--ease);
}
.header.scrolled .logo { color: var(--ink); }
.nav { display: flex; gap: 2.4rem; }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--cream);
  position: relative; transition: color 0.45s var(--ease);
}
.header.scrolled .nav a { color: var(--ink-soft); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1.5px; background: currentColor; transition: width 0.4s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--olive); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--cream); transition: 0.4s var(--ease); }
.header.scrolled .burger span { background: var(--ink); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: url("images/hero.jpg?v=2") center 30% / cover no-repeat;
  color: var(--cream);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,32,26,0.55) 0%, rgba(28,32,26,0.25) 45%, rgba(28,32,26,0) 70%),
              linear-gradient(0deg, rgba(28,32,26,0.35) 0%, rgba(28,32,26,0) 40%);
}
.hero__content { position: relative; max-width: 720px; }
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 1.6rem; opacity: 0.9;
}
.hero__title { font-size: clamp(2.8rem, 7vw, 5.8rem); font-weight: 500; margin-bottom: 1.6rem; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero__sub { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 300; max-width: 520px; margin-bottom: 2.4rem; opacity: 0.95; }
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(251,249,244,0.6); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 2px; background: var(--cream);
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 24px; } 100% { opacity: 0; } }

/* ===== SECTION BASICS ===== */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section__head { max-width: 640px; margin-bottom: 3.5rem; }

/* ===== ABOUT ===== */
.about { background: var(--cream); }
.about__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 5rem; align-items: start; }
.about__text h2 { margin-bottom: 1.8rem; }
.about__text p { color: var(--ink-soft); margin-bottom: 1.2rem; max-width: 60ch; }
.about__stats { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; padding-top: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; }
.stat:last-child { border-bottom: none; }
.stat__num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--olive-dark); }
.stat__label { font-size: 0.9rem; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 0.4rem; }

/* ===== SERVICES ===== */
.services { background: var(--sand); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  background: var(--cream); padding: 2.6rem 2.2rem; border-radius: 6px;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__no { font-family: var(--serif); font-size: 1.1rem; color: var(--olive); letter-spacing: 0.1em; }
.service h3 { margin: 1rem 0 0.8rem; }
.service p { color: var(--ink-soft); font-size: 0.98rem; }

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--cream); padding-bottom: clamp(5rem, 10vw, 9rem); }
.portfolio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px; gap: 14px;
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
}
.card {
  position: relative; overflow: hidden; border-radius: 6px; cursor: pointer;
  background: var(--sand-2);
}
.card--tall { grid-row: span 2; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.4rem 1.2rem;
  background: linear-gradient(0deg, rgba(28,32,26,0.78) 0%, rgba(28,32,26,0) 100%);
  color: var(--cream); display: flex; flex-direction: column; gap: 2px;
  transform: translateY(8px); opacity: 0; transition: 0.5s var(--ease);
}
.card:hover figcaption { transform: translateY(0); opacity: 1; }
.card figcaption span { font-family: var(--serif); font-size: 1.35rem; }
.card figcaption em { font-style: normal; font-size: 0.82rem; letter-spacing: 0.06em; opacity: 0.85; }

/* ===== PROCESS ===== */
.process { background: var(--olive-dark); color: var(--cream); }
.process .eyebrow { color: #cdd6bd; }
.process h2 { color: var(--cream); }
.process__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.step { padding-top: 1.6rem; border-top: 1px solid rgba(251,249,244,0.25); }
.step__no { font-family: var(--serif); font-size: 2rem; color: #cdd6bd; }
.step h3 { margin: 0.6rem 0 0.6rem; font-weight: 600; }
.step p { font-size: 0.92rem; color: rgba(251,249,244,0.8); }

/* ===== CONTACT ===== */
.contact { background: var(--sand); text-align: center; }
.contact__inner { max-width: 760px; margin: 0 auto; }
.contact h2 { margin-bottom: 1.2rem; }
.contact__lead { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 0.8rem; }
.contact__geo { font-size: 0.92rem; letter-spacing: 0.04em; color: var(--olive-dark); margin: 0 auto 2.6rem; }
.contact__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.8rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.contact__item {
  display: flex; flex-direction: column; gap: 4px; padding: 1.4rem 1rem;
  background: var(--cream); border: 1px solid var(--line); border-radius: 6px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact__item:hover { transform: translateY(-4px); border-color: var(--olive); }
.contact__item span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-dark); }
.contact__item strong { font-weight: 600; font-size: 1rem; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: rgba(251,249,244,0.8); padding: 3rem 0; text-align: center; }
.footer__inner { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.footer .logo { color: var(--cream); }
.footer p { font-size: 0.9rem; }
.footer__copy { font-size: 0.82rem; opacity: 0.6; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 22, 18, 0.94); padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__close { position: absolute; top: 24px; right: 32px; font-size: 2.6rem; color: var(--cream); background: none; cursor: pointer; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; color: var(--cream); background: none; cursor: pointer; padding: 0 1rem; opacity: 0.7; transition: opacity 0.3s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 1.5vw; }
.lightbox__next { right: 1.5vw; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__stats { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .stat { flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .contact__links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: 75%; max-width: 320px;
    flex-direction: column; justify-content: center; gap: 1.8rem; padding: 2rem;
    background: var(--cream); transform: translateX(100%); transition: transform 0.5s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--ink) !important; font-size: 1.2rem; }
  .burger { display: flex; z-index: 60; }
  .burger.active span { background: var(--ink); }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { background-position: 68% center; }
  .hero__overlay { background: linear-gradient(0deg, rgba(28,32,26,0.6) 0%, rgba(28,32,26,0.15) 60%); }
  .services__grid, .process__steps, .contact__links { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .card--tall { grid-row: span 2; }
}
