/* ============================================================
   VISION — Photography by Ali Ahmadi
   Warm soft-UI design system

   01 Tokens · 02 Base · 03 Buttons · 04 Nav · 05 Hero
   06 Sections shared · 07 Work · 08 About · 09 Process
   10 Testimonials · 11 FAQ · 12 Contact · 13 Footer
   14 Motion · 15 Responsive

   Breakpoints: ≤1000 (stacked grids) · ≤780 (legibility floor,
   also deep-zoom aid) · ≤460 (contact rows, 1-col masonry) ·
   ≤340 (badge-hide a11y). Full-height ladder: --bg → --hi/--lo
   shadow pair; spacing keys: --gutter, --container, --maxw.

   JS-coupled classes/vars (do not rename without main.js):
   .is-in (scroll reveal) · html.split-ready + .char/--i (headline
   split) · .qword (quote words) · .is-scrolled (nav backdrop) ·
   --mx/--my/--glow (contact cursor spotlight). Page-to-CSS map:
   docs/anatomy.md.
   ============================================================ */

/* 01 Tokens ------------------------------------------------- */
:root {
  --bg:        #e9e4db;   /* warm cream canvas */
  --surface:   #ece7de;   /* card face (same family as bg) */
  --hi:        #fbf8f2;   /* neumorphic light */
  --lo:        #c6bcab;   /* neumorphic shadow */

  --ink:       #2c261f;   /* near-black warm */
  --ink-soft:  #6d6558;   /* body copy + labels */
  --ink-faint: #a49b8b;   /* decorative hairlines only */

  --tan:       #a9814e;   /* accent (italics, eyebrows) */
  /* tan reserved for small TEXT on light backgrounds - #a9814e measures
     2.79:1 on the page bg; same hue, 4.66:1/4.79:1 on card faces */
  --tan-text:  #7d5f36;
  --gold:      #9c7838;
  --espresso:  #3b2a1c;   /* solid buttons */

  /* Anchor font defines the personality; body font contrasts
     but shares the same era + warmth. */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-wght: 400;
  --display-soft: 'SOFT' 40, 'WONK' 1;   /* Fraunces optical quirk */

  /* Opacity hierarchy — one ladder used everywhere */
  --o-1: 1;      /* primary  — headlines, answers */
  --o-2: .72;    /* secondary— body copy */
  --o-3: .48;    /* tertiary — labels, meta */
  --o-4: .26;    /* ambient  — watermarks, rules */

  --r:   22px;            /* card radius */
  --r-lg:30px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --maxw: 1320px;
  --container: min(100% - (var(--gutter) * 2), var(--maxw));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);   /* overshoot, for Process */

  /* neumorphic shadows */
  --out:    -7px -7px 16px var(--hi), 7px 7px 18px var(--lo);
  --out-lg: -12px -12px 28px var(--hi), 14px 14px 32px var(--lo);
  --out-sm: -4px -4px 9px var(--hi), 4px 4px 10px var(--lo);
  --in:     inset -5px -5px 11px var(--hi), inset 6px 6px 13px var(--lo);
  --in-sm:  inset -3px -3px 7px var(--hi), inset 4px 4px 9px var(--lo);

  --grain: .055;          /* texture strength */
}

/* Dark scope — re-points the same tokens onto espresso so every
   component (cards, insets, shadows) inverts without new rules. */
.is-dark {
  --bg:        #2a1e14;
  --surface:   #32251a;
  --hi:        #3f3024;   /* light edge, still warm */
  --lo:        #1d140d;   /* deep shadow */
  --ink:       #f4ece1;
  --ink-soft:  #c3b09a;
  --ink-faint: #8d7c68;
  --tan:       #c79a5f;   /* 6.35:1 on the band - already passes as text */
  --tan-text:  #c79a5f;
  color: var(--ink);
  background: var(--bg);
}

/* 02 Base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* screen-reader-only text (keeps the photo-only hero semantically complete) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* decorative bleeds (e.g. the tile photo nudged past the edge) must never
   become a horizontal scrollbar — css clip beats hidden where supported */
@supports (overflow: clip) {
  html { overflow-x: clip; }
}
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* SUBTLE DEPTH — SVG turbulence grain over the whole page.
   Inline data-URI: no extra request, sits above content, ignores pointers. */
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain);
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* selection: espresso ink on the tan marker - white text measured 3.54:1
   on the light tan; #1d140d passes in both scopes (5.13 light / 7.09 dark) */
::selection { background: var(--tan); color: #1d140d; }

/* shared frame (image placeholder) — soft inset */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--in);
}
.frame::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .75rem;
  text-align: center;
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.frame img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transform: scale(1.03);
  transition: filter .8s var(--ease), transform 1.3s var(--ease);
}
.frame:hover img { filter: grayscale(.15); transform: scale(1); }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--tall     { aspect-ratio: 3 / 4; }

/* VISUAL RHYME — every eyebrow carries the same small tan dot,
   echoing the process nodes and the FAQ icons. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
  font-size: .6875rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--tan-text);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  /* the dot stays the original tan - decorative, not text */
  background: var(--tan);
  flex: 0 0 auto;
}
.sec__head--center .eyebrow { justify-content: center; }

/* the same hairline treatment used under every section header */
.sec__head { position: relative; }

/* 03 Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              background .4s var(--ease), color .4s var(--ease);
}
.btn--solid {
  background: var(--espresso);
  color: #f3ece2;
  box-shadow: var(--out);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--out-lg); }
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--out-sm);
}
.btn--ghost:hover { box-shadow: var(--in-sm); }
/* on dark bands the solid button inverts to cream so it stays visible */
.is-dark .btn--solid { background: #f0e7da; color: #2a1e14; }
.is-dark .btn--solid:hover { background: #fff; }
.btn--pill {
  padding: .7rem 1.3rem;
  background: var(--espresso);
  color: #f3ece2;
}
.btn--pill:hover { transform: translateY(-1px); }
.btn--block { width: 100%; padding-block: 1.15rem; }

/* 04 Nav ---------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: clamp(.9rem, 2vw, 1.5rem) 0;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease);
}
/* faint blurred backdrop once scrolled, so the brand stays legible over content */
.nav.is-scrolled {
  background: rgba(233, 228, 219, .72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.is-dark .nav.is-scrolled { background: rgba(42, 30, 20, .74); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
}
.nav__mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.nav__mark span {
  border-bottom: 2px solid var(--tan);
  padding-bottom: 1px;
}

/* 05 Hero --------------------------------------------------- */
/* full-bleed poster — breaks the container deliberately */
.hero {
  width: 100%;
  margin: 0;
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}
/* #1 Scroll Tracking — transform/opacity driven by JS (LERP-smoothed) */
.hero__card { margin: 0; transform-origin: center top; will-change: transform, opacity; }
.hero__card .frame {
  box-shadow: none;
  border-radius: 0;
}
/* edge-to-edge, full viewport height
   (100% not 100vw: 100vw includes the scrollbar width and causes a
   15px horizontal overflow with its own scrollbar) */
.frame--hero {
  width: 100%;
  height: 100svh;
  min-height: 32rem;
  aspect-ratio: auto;
}
/* soft vignette so the fixed nav stays legible over any photo */
.frame--hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(233,228,219,.85), transparent);
}

/* 06 Section shared ----------------------------------------- */
.sec__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.sec__head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
/* shared display-heading recipe — one definition for both title classes;
   per-section size/leading overrides below and in their own blocks */
.sec__title,
.about__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: var(--display-wght);
  font-variation-settings: var(--display-soft, normal);
}
.sec__title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
}
/* per-section type scale — deliberately different weights of voice */
.work    .sec__title { font-size: clamp(2.3rem, 5.2vw, 4rem); }     /* loud */
.process .sec__title { font-size: clamp(2rem, 4.2vw, 3.2rem); }     /* medium */
.says    .sec__title { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }   /* loud */
.faq     .sec__title { font-size: clamp(1.7rem, 3vw, 2.4rem); }     /* quiet */
.contact .sec__title { font-size: clamp(2.6rem, 5.8vw, 4.6rem); }   /* loudest close */
.sec__title em,
.about__title em { font-style: italic; color: var(--tan-text); }
.sec__note {
  max-width: 34ch;
  font-size: .9375rem;
  color: var(--ink-soft);
  opacity: var(--o-2);
}
/* light-band notes: ink-soft at 72% measured 2.8-3.0:1 on light bgs -
   ink at the same 72% = 5.29-5.37:1. Dark bands pass as-is (4.68:1)
   and keep their softer tone. */
body:not(.subpage) .sec__note { color: var(--ink); }
.work, .gallery, .about, .process, .says, .faq {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.gallery { padding-top: clamp(1rem, 3vw, 2.5rem); }

/* Portraits masonry */
.masonry { column-count: 3; column-gap: clamp(1rem, 2vw, 1.6rem); }
.shot { break-inside: avoid; margin: 0 0 clamp(1rem, 2vw, 1.6rem); }
.shot__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--out);
  filter: grayscale(1) contrast(1.02);
  transition: filter .7s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.shot:hover .shot__img { filter: grayscale(.08); transform: translateY(-4px); box-shadow: var(--out-lg); }

/* gallery page (gallery.html) — dark room, wider than the site container */
.gallery--page {
  width: min(100% - (var(--gutter) * 2), 1600px);
  padding-top: clamp(6.5rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  min-height: 70vh;
}
.subpage .masonry { column-count: 3; }
/* photos glow slightly instead of casting a light shadow on dark */
.is-dark .shot__img { box-shadow: 0 18px 40px rgba(0, 0, 0, .45); filter: grayscale(.25) contrast(1.03); }
.is-dark .shot:hover .shot__img { filter: grayscale(0) contrast(1.03); box-shadow: 0 26px 60px rgba(0, 0, 0, .6); }
.subpage .shot { animation: shotIn .8s var(--ease) both; }
@keyframes shotIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.gallery__empty {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding: clamp(2rem, 6vw, 5rem) 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink-soft);
}
/* same baked-token bug as .contact .form (see that note): the shadow
   tokens hold LIGHT values on :root, so this dark-band button bloomed
   cream - restate the SEND-button recipe where var() sees the dark scope */
.gallery__empty .btn--solid { box-shadow: -7px -7px 16px var(--hi), 7px 7px 18px var(--lo); }
.gallery__empty .btn--solid:hover { box-shadow: -12px -12px 28px var(--hi), 14px 14px 32px var(--lo); }
/* niche switcher — one pill row under the gallery head, identical on
   every niche page; raising follows the site's soft-UI language */
.gniche {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
}
.gniche__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;   /* 44px tap target */
  padding: .55rem 1.15rem;
  border-radius: 100px;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(244, 236, 225, .16);
  transition: color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.gniche__link:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(244, 236, 225, .38); }
.gniche__link:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
.gniche__link.is-current {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(199, 154, 95, .55), 0 10px 22px rgba(0, 0, 0, .35);
}
@media (prefers-reduced-motion: reduce) {
  .subpage .shot { animation: none; }
}

/* 07 Work bento --------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}
.tile {
  position: relative;
  grid-column: span 2;      /* three across */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  min-height: clamp(12rem, 20vw, 16rem);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--out);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile--wide { grid-column: span 3; }   /* two across (feature row) */
/* single-collection mode — a lone tile fills the whole row */
.tile--full { grid-column: 1 / -1; min-height: clamp(14rem, 26vw, 20rem); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--out-lg); }

.tile__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .1em;
  color: var(--tan-text);
}
.tile__name {
  margin-top: .3rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
}
.tile__desc { font-size: .875rem; color: var(--ink-soft); opacity: var(--o-2); max-width: 42ch; }
.tile__cta {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.tile__cta svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.tile:hover .tile__cta svg { transform: translateX(5px); }

/* 08 About -------------------------------------------------- */
/* centred like every other section: the photo+text pair lives inside the
   same max-width column (1320px) with equal margins, so the section
   matches the site's grid on wide screens. Same trick as .contact. */
.about {
  width: 100%;
  padding: clamp(4rem, 10vw, 8rem) max(var(--gutter), calc((100% - var(--maxw)) / 2));
  display: grid;
  /* both columns capped: the pair stays a compact composition and
     justify-content centres it in the column - no left-hugging void */
  grid-template-columns: minmax(0, 33rem) minmax(0, min(46ch, 42vw));
  gap: clamp(2rem, 4vw, 3.5rem);
  justify-content: center;
  align-items: center;
}

/* #3 CSS Sticky Position — portrait holds as the text scrolls past */
.about__media {
  position: sticky;
  top: 5rem;
  align-self: start;
  margin: 0;
}
.about__media .frame {
  border-radius: var(--r-lg);
  box-shadow: 18px 22px 44px rgba(0, 0, 0, .12);
  aspect-ratio: 4 / 4.4;
  /* the 1fr column has no upper bound: zooming out (or any wide window)
     kept inflating the portrait (750x900px+ at ~75-80% zoom). Cap it at
     its 100%-zoom size so wide viewports add calm whitespace, not bulk. */
  width: min(100%, 33rem);
}
.about__media figcaption {
  margin-top: 1.1rem;
  padding-left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.about__text { max-width: 46ch; }

.about__title {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);   /* larger than other sections */
  line-height: 1;
  letter-spacing: -.015em;
}

.about__lede {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-size: clamp(1rem, 1.25vw, 1.2rem);   /* biggest body text on the page */
  line-height: 1.8;
  color: var(--ink-soft);
}

/* stats as inline typographic facts, not chips */
.facts { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: .85rem 0;
  border-top: 1px solid var(--lo);
}
.facts dt {
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
}

/* 09 Process ------------------------------------------------ */
.process__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}
.scard {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--out);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.scard:hover { transform: translateY(-3px); box-shadow: var(--out-lg); }

/* #4 Easing & Motion Design — step cards enter on a springy overshoot curve */
.steps .rise { transform: translateY(34px) scale(.96); transition: opacity .7s var(--ease), transform .85s var(--ease-back); }
.steps .rise.is-in { transform: none; }
.scard__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.scard__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--tan-text);
  line-height: 1;
}
.scard__rule { flex: 1 1 auto; height: 1px; background: var(--ink-faint); opacity: .4; }
.scard__name {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
}
.scard__text { margin: 0; font-size: .9rem; color: var(--ink); opacity: var(--o-2); }
.scard__when {
  display: inline-block;
  margin-top: 1rem;
  padding: .35rem .85rem;
  border-radius: 100px;
  background: var(--surface);
  box-shadow: var(--in-sm);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* deliverables card (right column of process) */
.deliver {
  position: sticky;
  top: 6rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--out-lg);
}
.deliver__eyebrow {
  margin: 0 0 .6rem;
  font-size: .6875rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--tan-text);
}
.deliver__title {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.05;
}
.deliver__list { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.deliver__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid var(--lo);
}
.deliver__list li:first-child { border-top: 0; }
.deliver__k { font-size: .8125rem; color: var(--ink); opacity: var(--o-2); }
.deliver__v { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); text-align: right; }

/* 10 Testimonials ------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.qcard {
  margin: 0;
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--out);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.qcard:hover { transform: translateY(-4px); box-shadow: var(--out-lg); }
.qcard blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.qcard blockquote::before { content: "“"; color: var(--tan-text); }
.qcard blockquote::after  { content: "”"; color: var(--tan-text); }

/* #5 Text Splitting — quotes reveal word by word */
.qsplit-ready .qword {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--w) * 28ms);
}
.qcard.is-split .qword { opacity: 1; transform: none; }
.qcard figcaption { margin-top: auto; }
.qcard__name { display: block; font-size: .8125rem; color: var(--ink); }
.qcard__ctx  { display: block; margin-top: .15rem; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* 11 FAQ ---------------------------------------------------- */
/* narrow, document-like column — the quiet beat before the close */
.faq { width: min(100% - (var(--gutter) * 2), 780px); }
.faq .sec__head { grid-template-columns: 1fr; gap: .75rem; }
.faq .sec__note { max-width: 46ch; }

/* B1 Mathematical Map Function — scroll position mapped to bar width */
.faq__track {
  height: 2px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 2px;
  background: var(--lo);
  overflow: hidden;
}
.faq__fill {
  display: block;
  height: 100%;
  /* functional indicator (non-text contrast, 1.4.11): tan measured
     ~2.9:1 on the track/surface - the text-safe tan = 4.66/4.79 */
  background: var(--tan-text);
  transform: scaleX(0);
  transform-origin: left;
}
.faq__list { display: grid; gap: clamp(.7rem, 1.5vw, 1rem); }
.qa {
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--out);
  overflow: hidden;
  transition: box-shadow .4s var(--ease);
}
.qa.is-open { box-shadow: var(--out-lg); }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.9rem);
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.qa__q > span:first-child { transition: transform .5s var(--ease); }
.qa__q:hover > span:first-child { transform: translateX(5px); }
.qa__icon {
  position: relative;
  flex: 0 0 auto;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--out-sm);
  transition: box-shadow .4s var(--ease);
}
.qa.is-open .qa__icon { box-shadow: var(--in-sm); }
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  /* the +/- strokes state the open/closed state - non-text contrast;
     same text-safe tan as the progress fill */
  background: var(--tan-text);
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa.is-open .qa__icon::after { transform: translate(-50%, -50%); opacity: 0; }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
.qa__inner { overflow: hidden; }
.qa__inner p {
  margin: 0;
  padding: 0 clamp(1.25rem, 2.5vw, 1.9rem) clamp(1.25rem, 2.5vw, 1.7rem);
  max-width: 60ch;
  font-size: .9rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.qa.is-open .qa__inner p { opacity: 1; transform: none; transition-delay: .15s; }

/* 12 Contact ------------------------------------------------ */
/* full-bleed dark band; inner content still respects the container */
.contact {
  width: 100%;
  max-width: none;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(5rem, 11vw, 9rem);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  /* centre a container-width grid inside the full-bleed band */
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.contact__lede { margin: 1.4rem 0 0; max-width: 34ch; font-size: 1rem; color: var(--ink-soft); }
.contact__list { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: .9rem; }
.contact__list li { display: grid; grid-template-columns: 6.5rem 1fr; align-items: baseline; gap: 1rem; }
.contact__k { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.ilink {
  color: var(--ink);
  background-image: linear-gradient(var(--tan), var(--tan));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .5s var(--ease), color .3s var(--ease);
}
.ilink:hover { background-size: 100% 1px; color: var(--tan-text); }

.form {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--out-lg);
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}
/* shadow tokens are declared on :root, so var(--hi)/var(--lo) inside them
   bake to the LIGHT values and the .is-dark re-points never re-substitute -
   the form bloomed cream on the dark band. Restate the same soft-UI
   recipes at element level, where var() resolves to the dark scope. */
.contact .form { box-shadow: -12px -12px 28px var(--hi), 14px 14px 32px var(--lo); }
.contact .form input, .contact .form select, .contact .form textarea {
  box-shadow: inset -3px -3px 7px var(--hi), inset 4px 4px 9px var(--lo);
}
.contact .form input:focus, .contact .form select:focus, .contact .form textarea:focus {
  box-shadow: inset -5px -5px 11px var(--hi), inset 6px 6px 13px var(--lo);
}
.contact .form .btn--solid { box-shadow: -7px -7px 16px var(--hi), 7px 7px 18px var(--lo); }
.contact .form .btn--solid:hover { box-shadow: -12px -12px 28px var(--hi), 14px 14px 32px var(--lo); }
/* B2 Linear Interpolation — soft spotlight lerps toward the cursor */
.form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(169, 129, 78, .18), transparent 42%);
  opacity: var(--glow, 0);
  transition: opacity .3s var(--ease);
}
.form > * { position: relative; z-index: 1; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.4rem); }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--in-sm);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow .4s var(--ease);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field select, .field input[type="date"] { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: var(--in); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }

/* 13 Footer ------------------------------------------------- */
/* matches the dark contact band above it — reads as one continuous close */
.foot { background: #2a1e14; color: #d8cbba; }
.foot::before {
  content: "";
  display: block;
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  height: 1px;
  margin: 0 auto;
  background: rgba(244, 236, 225, .12);
}
.foot__inner {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
}
.foot__mark { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: #f3ece2; }
.foot__note { display: block; margin-top: .2rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #a4917b; }
.foot__links { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem); }
.foot__links a { font-size: .75rem; letter-spacing: .08em; color: #c3b29b; transition: color .3s var(--ease); }
.foot__links a:hover { color: #f3ece2; }
.foot__copy { justify-self: end; font-size: .7rem; letter-spacing: .08em; color: #a4917b; }

/* 14 Motion ------------------------------------------------- */
.rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.rise.is-in { opacity: 1; transform: none; }
.bento .rise:nth-child(2){transition-delay:.06s}.bento .rise:nth-child(3){transition-delay:.12s}
.bento .rise:nth-child(4){transition-delay:.18s}.bento .rise:nth-child(5){transition-delay:.24s}
.steps .rise:nth-child(2){transition-delay:.06s}.steps .rise:nth-child(3){transition-delay:.12s}.steps .rise:nth-child(4){transition-delay:.18s}
.stats .rise:nth-child(2){transition-delay:.08s}.stats .rise:nth-child(3){transition-delay:.16s}
.quotes .rise:nth-child(2){transition-delay:.08s}.quotes .rise:nth-child(3){transition-delay:.16s}
.faq__list .rise:nth-child(2){transition-delay:.06s}.faq__list .rise:nth-child(3){transition-delay:.12s}
.faq__list .rise:nth-child(4){transition-delay:.18s}.faq__list .rise:nth-child(5){transition-delay:.24s}

/* split-text headline reveal */
.split-ready .word { display: inline-block; white-space: nowrap; }
.split-ready .char { display: inline-block; transform: translateY(1.1em); opacity: 0; will-change: transform, opacity; }
.split-ready.is-lit .char {
  transform: translateY(0); opacity: 1;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
  transition-delay: calc(var(--i) * 20ms);
}

[data-magnetic] { transition: transform .35s var(--ease), box-shadow .4s var(--ease); will-change: transform; }

/* no-JS + reduced motion */
.no-js .rise, .no-js .split-ready .char, .no-js .qa__inner p { opacity: 1; transform: none; }
.no-js .qa__panel { grid-template-rows: 1fr; }
.no-js .faq__fill { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rise, .split-ready .char, .qword, .qa__inner p { opacity: 1; transform: none; }
  [data-magnetic] { transform: none !important; }
  .frame img { filter: grayscale(.15); transform: none; }
  .hero__card { transform: none !important; opacity: 1 !important; }
  .faq__fill { transform: scaleX(1); }
}

/* 15 Responsive --------------------------------------------- */
@media (max-width: 1000px) {
  .about, .contact, .process__grid { grid-template-columns: 1fr; }
  .about {
    padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
    gap: 2.5rem;
  }
  .about__media { max-width: 34rem; position: static; }
  .about__media .frame { border-radius: var(--r-lg); aspect-ratio: 4 / 5; }
  .about__media figcaption { padding-left: 0; }
  .deliver { position: static; }
  .tile { grid-column: span 3; }
  .tile--wide { grid-column: span 6; }
}

@media (max-width: 780px) {
  .sec__head { grid-template-columns: 1fr; align-items: start; }
  .quotes { grid-template-columns: 1fr; }
  .masonry, .subpage .masonry { column-count: 2; }
  .form__row { grid-template-columns: 1fr; }
  .frame--hero { height: 78svh; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: auto; }
  .frame--hero { aspect-ratio: 4 / 5; }
  .foot__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot__links { justify-content: center; }
  .foot__copy { justify-self: center; }

  /* legibility floor: the smallest tracked caps sit at the edge of
     comfortable reading at phone sizes - lift the set to .75rem */
  .eyebrow, .deliver__eyebrow, .tile__cta, .facts dt, .scard__when,
  .qcard__ctx, .contact__k, .field label, .foot__note, .foot__copy,
  .gniche__link, .frame::after { font-size: .75rem; }
}

@media (max-width: 460px) {
  .contact__list li { grid-template-columns: 1fr; gap: .1rem; }
  /* .subpage .masonry must restate the base 3-col rule or it wins by
     specificity - measured 2-col at 375px before this selector joined */
  .masonry, .subpage .masonry { column-count: 1; }
}

/* deep browser zoom (or an ultra-narrow window): Netlify's injected badge
   is a fixed 196px cross-origin frame -- at ~500% zoom that frame would
   cover most of the page and obscure content. Attribution remains visible
   at every normal viewport (including phones); hidden only when the CSS
   viewport itself is too small to spare the space. */
@media (max-width: 340px) {
  iframe#nl-badge-frame { display: none !important; }
}

/* 16 PhotoSwipe overrides ----------------------------------- */
/* espresso overlay instead of pure black so fullscreen photos
   still feel like Vision; zoom-in cursor; keyboard focus ring */
.shot__link { display: block; border-radius: var(--r); cursor: zoom-in; }
.shot__link:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }
.pswp { background-color: rgba(42, 30, 20, .97); }
