/* ============================================================
   TERRA VERDA — Luxury editorial design system
   Palette: deep botanical green · stone ivory · aged bronze
   Type: Cormorant Garamond (display) · Jost (text)
   ============================================================ */

:root {
  /* Color tokens */
  --ink:        #14211A;   /* deep forest ink            */
  --pine:       #1E3528;   /* primary dark green         */
  --pine-soft:  #2C4A38;
  --sage:       #6F7F6C;
  --stone:      #F4F1E9;   /* page background            */
  --ivory:      #FBF9F4;   /* card background            */
  --bronze:     #8A6420;   /* accent, AA on stone        */
  --bronze-hi:  #C9A45C;   /* decorative gold            */
  --line:       #DAD4C4;   /* hairline borders           */
  --line-dark:  rgba(251, 249, 244, 0.16);
  --text:       #26302A;
  --text-soft:  #5A645C;
  --text-light: #E9E6DB;
  --text-light-soft: #B8BFB4;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-text: "Jost", "Segoe UI", sans-serif;

  /* Spacing (spacious density) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--pine); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.section { padding-block: var(--space-7); }
.section--dark { background: var(--pine); color: var(--text-light); }
.section--stone { background: #ECE7DA; }

/* ---------- Labels & headings ---------- */
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: var(--space-3);
}
.label--light { color: var(--bronze-hi); }

.section__head { max-width: 46rem; margin-bottom: var(--space-6); }
.section__head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section--dark .section__title { color: var(--ivory); }
.section__sub {
  margin-top: var(--space-3);
  color: var(--text-soft);
  max-width: 38rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--gold {
  background: var(--bronze-hi);
  color: var(--ink);
  border-color: var(--bronze-hi);
}
.btn--gold:hover { background: #D9B872; border-color: #D9B872; }

.btn--ghost {
  border-color: rgba(251, 249, 244, 0.45);
  color: var(--ivory);
}
.btn--ghost:hover { border-color: var(--ivory); background: rgba(251,249,244,0.08); }

.btn--dark {
  border-color: var(--pine);
  color: var(--pine);
}
.btn--dark:hover { background: var(--pine); color: var(--ivory); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pine);
  color: var(--bronze-hi);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.preloader__leaf {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw 1.4s var(--ease-out) forwards;
}
.preloader__vein {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 1s 0.5s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.preloader__word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0;
  animation: fadeUp 0.9s 0.55s var(--ease-out) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll progress hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--bronze-hi);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 120;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
              backdrop-filter 0.4s;
  color: var(--ivory);
}
.nav.is-scrolled {
  background: rgba(20, 33, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(251,249,244,0.08);
}
.nav__inner {
  width: min(100% - 3rem, 84rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 1.1rem;
  transition: padding 0.4s var(--ease-out);
}
.nav.is-scrolled .nav__inner { padding-block: 0.75rem; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ivory);
}
.nav__mark { color: var(--bronze-hi); }
.nav__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 2.2rem;
}
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.5rem 0;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.15rem;
  width: 100%; height: 1px;
  background: var(--bronze-hi);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__links a.is-active { color: var(--ivory); }

.nav__actions { display: flex; align-items: center; gap: 1.4rem; }

.lang { display: flex; align-items: center; gap: 0.35rem; }
.lang__btn {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-light-soft);
  padding: 0.5rem 0.25rem;
  min-width: 2.2rem;
  min-height: 44px;
  transition: color 0.25s;
}
.lang__btn:hover { color: var(--ivory); }
.lang__btn.is-active { color: var(--bronze-hi); font-weight: 500; }
.lang__sep { color: var(--text-light-soft); font-size: 0.7rem; }

.nav__cta { min-height: 2.6rem; padding: 0.6rem 1.4rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  align-items: center;
}
.nav__burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ivory);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  color: var(--ivory);
  background: var(--ink);
}
/* Scroll expansion is driven by JS writing transform/opacity directly
   on each animated element — compositor-only properties, no per-frame
   style recalc, layout or repaint anywhere in the hero. */
.hero__track { height: 240vh; height: 240svh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__art { position: absolute; inset: 0; will-change: opacity; }
.hero__scene { width: 100%; height: 100%; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,22,16,0.35) 0%, rgba(12,22,16,0.05) 45%, rgba(12,22,16,0.55) 100%);
}
/* Film-grain texture: tiny tiled SVG, rasterized once and cached */
.hero__veil::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}
/* --- Stage: everything lives absolutely inside the sticky viewport --- */
.hero__stage { position: absolute; inset: 0; z-index: 2; }

.hero__media {
  position: absolute;
  top: 50%; left: 50%;
  width: 94vw;
  height: 86vh;
  height: 86svh;
  transform: translate(-50%, -50%) scale(0.35);
  /* Radius is frozen during the scroll (animating it re-rasterizes the
     video layer every frame = trembling). It squares off once, via a
     single transition, when expansion completes. */
  border-radius: 40px;
  transition: border-radius 0.4s var(--ease-out);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
.hero.is-expanded .hero__media { border-radius: 0; }
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media-veil {
  position: absolute; inset: 0;
  background: #0C1610;
  opacity: 0.45;
  will-change: opacity;
  pointer-events: none;
}

.hero__titles {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  will-change: opacity;
  pointer-events: none;
}
.hero__kicker {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze-hi);
  margin-bottom: var(--space-3);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.hero__line { display: block; overflow: hidden; }
.hero__line--left,
.hero__line--right { will-change: transform; }
.hero__accent {
  font-style: italic;
  font-weight: 400;
  color: var(--bronze-hi);
}

/* --- Panel: sub + CTAs, revealed once the video is expanded --- */
.hero__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-3) var(--space-4);
  background: linear-gradient(180deg, transparent, rgba(12, 22, 16, 0.78) 55%);
  opacity: 0;
  transform: translateY(24px);
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), visibility 0.7s;
}
.hero__panel.is-shown {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.hero__sub {
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--text-light);
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero__hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light-soft);
  will-change: opacity;
  pointer-events: none;
}
.hero__hint svg { animation: drift 2.4s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: var(--space-5);
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.intro__text {
  color: var(--text-soft);
  max-width: 40rem;
  margin-bottom: var(--space-3);
}
.intro__stats {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat__num, .stat__plus {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--pine);
  display: inline-block;
  transition: transform 0.24s var(--ease-out), color 0.24s var(--ease-out),
              text-shadow 0.24s var(--ease-out);
}
.stat__num { font-variant-numeric: tabular-nums; }
.stat__plus { color: var(--bronze); }
.stat > .stat__num + .stat__plus { margin-left: 0.1em; }
.stat__label {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---- Key-figure micro-interaction -------------------------------
   Hover: 2px lift, 3% scale, shift to bronze, soft halo, and a
   staggered odometer tick per digit. Hover-capable devices only. */
.stat__num .digit { display: inline-block; }

@media (hover: hover) {
  .stat:hover .stat__num,
  .stat:hover .stat__plus {
    transform: translateY(-2px) scale(1.03);
    color: var(--bronze);
    text-shadow: 0 8px 22px rgba(138, 100, 32, 0.28);
  }
  .stat:hover .stat__num .digit {
    animation: digit-tick 0.28s var(--ease-out);
    animation-delay: calc(var(--di, 0) * 45ms);
  }
}
@keyframes digit-tick {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(-0.13em); }
  100% { transform: translateY(0); }
}
.stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.stat .stat__label { flex-basis: 100%; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.3rem;
  background: var(--ivory);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--pine-soft);
}
.marquee__group i {
  font-style: normal;
  font-size: 0.55rem;
  color: var(--bronze);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__list { border-top: 1px solid var(--line-dark); }
.service {
  display: grid;
  grid-template-columns: 4rem 4.5rem 1fr 3rem;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.35s var(--ease-out), padding-left 0.35s var(--ease-out);
  cursor: default;
}
.service:hover {
  background: rgba(251,249,244,0.04);
  padding-left: 1rem;
}
.service__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--bronze-hi);
  letter-spacing: 0.1em;
  display: inline-block;
  transition: transform 0.24s var(--ease-out), color 0.24s var(--ease-out);
}
@media (hover: hover) {
  .service:hover .service__num {
    transform: translateY(-2px) scale(1.04);
    color: #E3BE74;
  }
}
.service__icon {
  width: 3.4rem; height: 3.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--bronze-hi);
  transition: border-color 0.35s, transform 0.45s var(--ease-out);
}
.service:hover .service__icon {
  border-color: var(--bronze-hi);
  transform: rotate(8deg) scale(1.05);
}
.service__icon svg { width: 1.7rem; height: 1.7rem; }
.service__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--ivory);
  margin-bottom: 0.45rem;
}
.service__body p {
  color: var(--text-light-soft);
  max-width: 42rem;
  font-size: 0.98rem;
}
.service__arrow {
  font-size: 1.4rem;
  color: var(--bronze-hi);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.service:hover .service__arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}
.project { grid-column: span 2; }
.project--lg { grid-column: span 3; }

.project__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.project--lg .project__media { aspect-ratio: 16 / 10; }
.project__media svg {
  width: 100%; height: 100%;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out);
}
.project:hover .project__media svg { transform: scale(1.09); }
.project__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,22,16,0.28));
  opacity: 0;
  transition: opacity 0.5s;
}
.project:hover .project__media::after { opacity: 1; }

.project__info { padding-top: var(--space-2); }
.project__place {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.4rem;
}
.project__info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}
.project__info p {
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 30rem;
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote { padding-block: var(--space-6); }
.quote__block { text-align: center; max-width: 52rem; margin-inline: auto; }
.quote__block p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  color: var(--ivory);
  margin-bottom: var(--space-3);
}
.quote__block cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-hi);
}

/* ============================================================
   PROCESS
   ============================================================ */
/* Editorial split: sticky intro column at left, step ledger at right */
.process__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-6);
  align-items: start;
}
.process__head {
  position: sticky;
  top: 7rem;
}
.process__intro {
  margin-top: var(--space-3);
  color: var(--text-soft);
  max-width: 26rem;
}
.process__list {
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
  transition: border-color 0.4s;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { border-top-color: var(--bronze); }
.step__num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--bronze);
  line-height: 0.9;
  transition: transform 0.24s var(--ease-out), color 0.24s var(--ease-out);
}
@media (hover: hover) {
  .step:hover .step__num {
    transform: translateY(-2px) scale(1.04);
    color: #A87F3D;
  }
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
}
.step p { color: var(--text-soft); font-size: 0.98rem; max-width: 34rem; }
.step__meta {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
/* Featured voice: one large editorial quote before the supporting pair */
.testimonial-feature {
  max-width: 52rem;
  margin-bottom: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--bronze);
}
.testimonial-feature blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.testimonial-feature figcaption {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.testimonial-feature figcaption span { font-weight: 500; font-size: 0.95rem; }
.testimonial-feature figcaption small {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.testimonial__ref {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--bronze);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.testimonial {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(20, 33, 26, 0.25);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text);
}
.testimonial figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial figcaption span { font-weight: 500; font-size: 0.95rem; }
.testimonial figcaption small {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ============================================================
   JOURNAL
   ============================================================ */
.journal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.post { display: flex; flex-direction: column; }

/* Featured entry: horizontal, spans the full row */
.post--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  align-items: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.post--feature .post__media {
  aspect-ratio: 16 / 10;
  margin-bottom: 0;
}
.post--feature h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.post__excerpt {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
  max-width: 34rem;
}
.post__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.post__media svg {
  width: 100%; height: 100%;
  transition: transform 1s var(--ease-out);
}
.post:hover .post__media svg { transform: scale(1.07); }
.post__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.7rem;
}
.post__meta time { color: var(--text-soft); }
.post h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}
.post__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  transition: color 0.25s;
}
.post__link:hover { color: var(--bronze); }

/* ============================================================
   CONTACT
   ============================================================ */
/* The one kept blend: pine deepens into the footer's ink, so the
   page closes as one continuous dark block with no seam. */
.contact {
  background: linear-gradient(180deg,
    var(--pine) 0%,
    var(--pine) calc(100% - 10rem),
    var(--ink) 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  align-items: start;
}
.contact__text {
  color: var(--text-light-soft);
  max-width: 30rem;
  margin-block: var(--space-3) var(--space-5);
}
.contact__details {
  display: grid;
  gap: var(--space-3);
}
.contact__details dt {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-hi);
  margin-bottom: 0.3rem;
}
.contact__details dd { color: var(--text-light); }
.contact__details a { border-bottom: 1px solid var(--line-dark); transition: border-color 0.25s, color 0.25s; }
.contact__details a:hover { color: var(--bronze-hi); border-color: var(--bronze-hi); }

.contact__next {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
}
.contact__next h3 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-hi);
  margin-bottom: var(--space-3);
}
.contact__next ol {
  list-style: none;
  counter-reset: next;
  display: grid;
  gap: var(--space-2);
}
.contact__next li {
  counter-increment: next;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 28rem;
}
.contact__next li::before {
  content: counter(next, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--bronze-hi);
  flex-shrink: 0;
}

/* ---------- Form ---------- */
.form {
  background: rgba(251, 249, 244, 0.05);
  border: 1px solid var(--line-dark);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form__field { display: flex; flex-direction: column; gap: 0.45rem; }
.form__field label {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light-soft);
}
.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  font-weight: 300;
  color: var(--ivory);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  padding: 0.7rem 0.1rem;
  min-height: 2.9rem;
  border-radius: 0;
  transition: border-color 0.3s;
}
.form__field select { cursor: pointer; }
.form__field select option { color: var(--text); background: var(--ivory); }
.form__field textarea { resize: vertical; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-bottom-color: var(--bronze-hi);
}
.form__error {
  display: none;
  font-size: 0.8rem;
  color: #F2B8B5;
}
.form__field.has-error input,
.form__field.has-error textarea { border-bottom-color: #E57373; }
.form__field.has-error .form__error { display: block; }

.form__submit { align-self: flex-start; }
.form__note {
  font-size: 0.82rem;
  color: var(--text-light-soft);
  max-width: 30rem;
}
.form__submit[disabled] { opacity: 0.55; cursor: wait; transform: none; }
.form__success {
  display: none;
  border-left: 2px solid var(--bronze-hi);
  padding-left: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}
.form.is-sent .form__success { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--text-light-soft);
  padding-block: var(--space-6) var(--space-4);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: var(--space-5);
  align-items: start;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand { color: var(--bronze-hi); }
.footer__tag {
  margin-top: var(--space-2);
  color: var(--text-light-soft);
  max-width: 22rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}
.footer__nav { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__nav a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.footer__nav a:hover { color: var(--ivory); }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.footer__social a:hover {
  color: var(--bronze-hi);
  border-color: var(--bronze-hi);
  transform: translateY(-3px);
}
.footer__area {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.82rem;
}
.footer__area-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-hi);
  flex-shrink: 0;
}
.footer__area-list { color: var(--text-light-soft); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  font-size: 0.82rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: var(--ivory); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal-line {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-line.is-in { transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding-block: var(--space-6); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project, .project--lg { grid-column: span 1; }
  .project--lg .project__media { aspect-ratio: 4 / 3; }
  .process__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .process__head { position: static; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 42rem; }
  .journal__grid { grid-template-columns: 1fr; max-width: 40rem; }
  .post--feature { grid-template-columns: 1fr; gap: var(--space-3); align-items: start; }
  .post--feature .post__media { aspect-ratio: 3 / 2; }
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .nav__cta { display: none; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-out), visibility 0.45s;
  }
  .nav__links a { font-size: 1.1rem; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { background: transparent; }
  .nav__burger { display: flex; }

  .intro__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .intro__stats { gap: var(--space-4); }

  .service {
    grid-template-columns: 3rem 1fr;
    grid-template-areas: "num icon" "body body";
    row-gap: var(--space-2);
  }
  .service__num { grid-area: num; }
  .service__icon { grid-area: icon; justify-self: end; }
  .service__body { grid-area: body; }
  .service__arrow { display: none; }
  .service:hover { padding-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 2.5rem, 76rem); }
  .section { padding-block: var(--space-5); }
  .hero__media { transform: translate(-50%, -50%) scale(0.5); border-radius: 32px; }
  .hero__track { height: 200vh; height: 200svh; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .projects__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 3.5rem 1fr; gap: var(--space-2); }
  .step__num { font-size: 2.4rem; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: var(--space-3); }
  .footer__top { grid-template-columns: 1fr; gap: var(--space-4); }
  .section__head--split .btn { width: 100%; }
  .marquee__group { font-size: 1.2rem; gap: 2rem; padding-right: 2rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-line { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .hero__hint { display: none; }

  /* Static hero: video already expanded, no scroll choreography */
  .hero__track { height: 100vh; height: 100svh; }
  .hero__media {
    transform: translate(-50%, -50%) scale(1);
    border-radius: 0;
    will-change: auto;
  }
  .hero__media-veil { opacity: 0.35; }
  .hero__art { opacity: 0; will-change: auto; }
  .hero__panel { opacity: 1; transform: none; visibility: visible; }
}
