/* ───────────────────────────────────────────────────────
   Lamia Lens — Editorial site
   Design system: warm neutrals, editorial serif + grotesk
─────────────────────────────────────────────────────────*/

:root {
  /* Palette — overridden by Tweaks at runtime */
  --bg: #f4ede2;
  --ink: #2a2520;
  --accent: #8a6a4a;

  /* Derived tones */
  --ink-80: color-mix(in oklab, var(--ink) 80%, var(--bg));
  --ink-60: color-mix(in oklab, var(--ink) 60%, var(--bg));
  --ink-40: color-mix(in oklab, var(--ink) 40%, var(--bg));
  --ink-20: color-mix(in oklab, var(--ink) 20%, var(--bg));
  --ink-12: color-mix(in oklab, var(--ink) 12%, var(--bg));
  --ink-06: color-mix(in oklab, var(--ink) 6%, var(--bg));

  /* Type */
  --serif: 'Instrument Serif', 'EB Garamond', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Spacing rhythm */
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(80px, 10vw, 160px);

  /* Easing */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, .84, .32, 1);

  /* Stable copies of bg/ink — used by dark sections to invert
     without breaking the cascade. JS also sets these. */
  --bg-root: #f4ede2;
  --ink-root: #2a2520;

  /* Grain overlay opacity (0 = off, 1 = on) */
  --grain-opacity: 0;

  /* Faded square-grid texture (hero) */
  --grid-cell: 60px;
  --grid-line: var(--ink);
  --grid-opacity: 0.3;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background .35s var(--ease), color .35s var(--ease);
}

/* ── Faded square-grid texture (hero only) ───────────── */
/* Sits BEHIND the hero content, vignette-masked so it fades
   away toward every edge — a muted texture, never a hard grid. */
.hero { position: relative; isolation: isolate; }
.hero > * { position: relative; z-index: 1; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  background-position: center center;
  opacity: var(--grid-opacity);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 12%, rgba(0,0,0,.35) 52%, transparent 80%);
          mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 12%, rgba(0,0,0,.35) 52%, transparent 80%);
  transition: opacity .4s;
}

/* ── Grain texture overlay ───────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iNCIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWx0ZXI9InVybCgjbikiLz48L3N2Zz4=");
  opacity: calc(var(--grain-opacity) * 0.048);
  mix-blend-mode: overlay;
  transition: opacity .4s;
}

/* ── Shared dark-inversion mixin values ──────────────── */
/* Used by all rhythm variants that go dark.
   Overriding --bg/--ink locally makes every derived var
   (borders, eyebrows, buttons) recompute for the dark ground. */

/* ── Section rhythm ──────────────────────────────────── */

/* ---- EDITORIAL: Statement + Footer dark -------------- */
[data-rhythm="editorial"] .statement,
[data-rhythm="editorial"] .footer {
  --bg: var(--ink-root);
  --ink: var(--bg-root);
  background: var(--ink-root);
  color: var(--bg-root);
}

/* ---- CONTRAST: Statement + About + Footer dark,
        Services + Work tinted ----------------------- */
[data-rhythm="contrast"] .statement,
[data-rhythm="contrast"] #about,
[data-rhythm="contrast"] .footer {
  --bg: var(--ink-root);
  --ink: var(--bg-root);
  background: var(--ink-root);
  color: var(--bg-root);
}
[data-rhythm="contrast"] #services,
[data-rhythm="contrast"] #work {
  background: color-mix(in oklab, var(--ink-root) 7%, var(--bg-root));
}

/* ---- WARM: Statement + Services + About tinted,
        Footer dark --------------------------------- */
[data-rhythm="warm"] .statement,
[data-rhythm="warm"] #services,
[data-rhythm="warm"] #about {
  background: color-mix(in oklab, var(--ink-root) 7%, var(--bg-root));
}
[data-rhythm="warm"] .footer {
  --bg: var(--ink-root);
  --ink: var(--bg-root);
  background: var(--ink-root);
  color: var(--bg-root);
}

/* ---- Dark footer: text colour overrides -------------- */
[data-rhythm="editorial"] .footer .footer-massive,
[data-rhythm="contrast"]  .footer .footer-massive,
[data-rhythm="warm"]      .footer .footer-massive { color: var(--bg-root); }
[data-rhythm="editorial"] .footer .footer-bottom,
[data-rhythm="contrast"]  .footer .footer-bottom,
[data-rhythm="warm"]      .footer .footer-bottom {
  color: color-mix(in oklab, var(--bg-root) 50%, var(--ink-root));
  border-color: color-mix(in oklab, var(--bg-root) 15%, var(--ink-root));
}
[data-rhythm="editorial"] .footer .footer-col a,
[data-rhythm="contrast"]  .footer .footer-col a,
[data-rhythm="warm"]      .footer .footer-col a {
  color: color-mix(in oklab, var(--bg-root) 78%, var(--ink-root));
}
[data-rhythm="editorial"] .footer .footer-col h5,
[data-rhythm="contrast"]  .footer .footer-col h5,
[data-rhythm="warm"]      .footer .footer-col h5 {
  color: color-mix(in oklab, var(--bg-root) 45%, var(--ink-root));
}

/* ---- Dark statement: eyebrow + foot label/border ----- */
[data-rhythm="editorial"] .statement .statement-eyebrow,
[data-rhythm="contrast"]  .statement .statement-eyebrow {
  color: color-mix(in oklab, var(--bg-root) 52%, var(--ink-root));
}
[data-rhythm="editorial"] .statement .statement-foot-lbl,
[data-rhythm="contrast"]  .statement .statement-foot-lbl {
  color: color-mix(in oklab, var(--bg-root) 52%, var(--ink-root));
}
[data-rhythm="editorial"] .statement .statement-foot,
[data-rhythm="contrast"]  .statement .statement-foot {
  border-color: color-mix(in oklab, var(--bg-root) 18%, var(--ink-root));
}
[data-rhythm="editorial"] .statement .marquee,
[data-rhythm="contrast"]  .statement .marquee {
  border-color: color-mix(in oklab, var(--bg-root) 14%, var(--ink-root));
  background: transparent;
}

/* ---- Dark about: body text + labels ------------------ */
[data-rhythm="contrast"] #about .about-body p,
[data-rhythm="contrast"] #about .about-quote {
  color: color-mix(in oklab, var(--bg-root) 78%, var(--ink-root));
}
[data-rhythm="contrast"] #about .about-stats .lbl,
[data-rhythm="contrast"] #about .about-eyebrow {
  color: color-mix(in oklab, var(--bg-root) 52%, var(--ink-root));
}
[data-rhythm="contrast"] #about .about-stats {
  border-color: color-mix(in oklab, var(--bg-root) 18%, var(--ink-root));
}

/* ---- Utility classes (used directly in JS if needed) - */
.rhythm-dark { --bg: var(--ink-root); --ink: var(--bg-root); background: var(--ink-root); color: var(--bg-root); }
.rhythm-tint { background: color-mix(in oklab, var(--ink-root) 7%, var(--bg-root)); }

/* Selection */
::selection { background: var(--ink); color: var(--bg); }

/* Headings */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.012em; line-height: 1.02; }
h1 { font-size: clamp(40px, 6vw, 96px); }
h2 { font-size: clamp(32px, 4.4vw, 68px); }
h3 { font-size: clamp(24px, 2.6vw, 42px); }
h4 { font-size: clamp(19px, 1.8vw, 26px); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ── Sub-nav (scroll-spy journey bar) ───────────────── */
.sub-nav {
  position: fixed;
  top: 77px;
  left: 0; right: 0;
  z-index: 98;
  padding: 0 var(--gutter);
  height: 40px;
  display: flex; align-items: center;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--ink-12);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.sub-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sub-nav-inner {
  display: flex; align-items: center;
  gap: 0; width: 100%; overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }

.sub-nav-stop {
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0;
}
.sub-nav-dot-wrap {
  display: flex; align-items: center; gap: 7px;
  padding: 0 8px; height: 40px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink-40);
  transition: color .25s var(--ease);
}
.sub-nav-dot-wrap:hover { color: var(--ink-80); }
.sub-nav-stop.active .sub-nav-dot-wrap { color: var(--accent); }
.sub-nav-stop.past   .sub-nav-dot-wrap { color: var(--ink-60); }

.sub-nav-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.sub-nav-stop.active .sub-nav-dot { transform: scale(1.6); }

.sub-nav-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap; line-height: normal;
}
@media (max-width: 700px) {
  .sub-nav-label { display: none; }
  .sub-nav-dot { width: 6px; height: 6px; }
}

/* Connector line between stops */
.sub-nav-line {
  flex: 1; min-width: 16px; max-width: 56px;
  height: 1px;
  background: var(--ink-20);
  position: relative;
  align-self: center;
}
.sub-nav-line::after {
  content: '';
  position: absolute; inset: 0 auto 0 0;
  background: var(--ink-60);
  width: 0%;
  transition: width .4s var(--ease);
}
.sub-nav-stop.past + .sub-nav-line::after,
.sub-nav-stop.active + .sub-nav-line::after { width: 100%; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 400;
}
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.divider { height: 1px; background: var(--ink-12); width: 100%; }
.divider-thick { height: 1px; background: var(--ink); width: 100%; }

/* ── Scroll-reveal animation primitives ──────────────── */
/* Uses scroll-driven animations (view timeline) where supported. Falls back
   to instantly-visible content where not — no JS required, no flicker. */
.reveal,
.reveal-scale {
  opacity: 1;
  transform: none;
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-pop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@supports (animation-timeline: view()) {
  .reveal,
  .reveal-scale {
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 8% cover 28%;
    animation-duration: 1ms; /* timeline drives progress */
    animation-timing-function: cubic-bezier(.16, .84, .32, 1);
  }
  .reveal { animation-name: reveal-up; }
  .reveal-scale { animation-name: reveal-pop; }
  .reveal[data-delay="1"] { animation-range: entry 14% cover 30%; }
  .reveal[data-delay="2"] { animation-range: entry 20% cover 32%; }
  .reveal[data-delay="3"] { animation-range: entry 26% cover 34%; }
  .reveal[data-delay="4"] { animation-range: entry 32% cover 36%; }
  .reveal[data-delay="5"] { animation-range: entry 38% cover 38%; }
  .reveal[data-delay="6"] { animation-range: entry 44% cover 40%; }
  .reveal[data-delay="7"] { animation-range: entry 50% cover 42%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale {
    opacity: 1; transform: none; animation: none;
  }
}

/* ── Scroll-snap: major section anchors ──────────────── */
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* All snap sections account for the fixed nav (77px) + sub-nav (40px) when active */
.snap-section .sec-hd,
.snap-section > .statement-inner,
.brands-section > .sec {
  scroll-margin-top: 125px;
}

/* Sections: natural padding — no forced 100vh on sparse ones */
.sec {
  padding: clamp(72px, 9vw, 130px) var(--gutter);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Statement: full viewport height, position relative for inner marquee */
.statement {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px var(--gutter) 100px; /* bottom pad leaves room for ticker */
  border-top: 1px solid var(--ink-12);
  background: var(--bg);
  overflow: hidden;
}

/* Marquee strip is a transitional element, not a snap target */
.marquee { scroll-snap-align: none !important; }
/* Marquee pinned to bottom of Statement */
.statement-ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--ink-12);
}

/* Brands section: full viewport, centered content with two marquee rows */
.brands-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(40px, 5vw, 64px);
  padding-block: clamp(80px, 9vw, 120px);
}
.brands-section .sec { padding-block: 0; }

/* Lens section: just natural padding round the dark card */
.lens-section {
  display: flex; flex-direction: column; justify-content: center;
}
.lens-section > .lens {
  margin: 0 var(--gutter);
  width: auto;
}


/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--ink-12);
  transition: background .3s var(--ease), transform .45s var(--ease);
}

/* Hide the main header on scroll-down; the journey sub-nav takes over.
   Re-appears on scroll-up. */
body.header-hidden .nav { transform: translateY(-100%); }
body.header-hidden .sub-nav.visible { top: 0; }

/* LL monogram → expands to "Lamia Lens" on hover */
.nav-brand {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; letter-spacing: -.01em;
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--ink);
  position: relative;
  justify-self: start;
}
.nav-brand-mark {
  font-family: var(--serif); font-style: italic;
  font-size: 28px; line-height: 1; color: var(--accent);
  flex-shrink: 0; letter-spacing: -.03em;
}
/* Expanded label is position:absolute so it NEVER shifts flex siblings */
.nav-brand-text {
  position: absolute;
  left: calc(100% + 4px);
  top: 50%; transform: translateY(-50%);
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .45s var(--ease), opacity .3s var(--ease);
}
.nav-brand:hover .nav-brand-text,
.nav-brand:focus .nav-brand-text {
  max-width: 160px;
  opacity: 1;
}

.nav-links { display: flex; gap: 28px; align-items: center; justify-self: center; }
.nav-link {
  font-size: 13px; letter-spacing: .02em; color: var(--ink-80);
  position: relative; padding: 4px 0; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  font-size: 12px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta .arrow { transition: transform .25s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* ── Colour-theme switch (warm ↔ cool) ───────────────── */
.theme-toggle {
  position: relative; width: 50px; height: 25px; border-radius: 999px;
  border: 1px solid var(--ink-20); padding: 0; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(90deg, #b06a4e 0 50%, #7f8f78 50% 100%);
  transition: box-shadow .25s var(--ease);
}
.theme-toggle:hover { box-shadow: 0 0 0 3px var(--ink-06); }
.theme-toggle-knob {
  position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink-20);
  transition: transform .3s var(--ease);
}
.theme-toggle[data-active="b"] .theme-toggle-knob { transform: translateX(25px); }

/* ── Dark-mode toggle ────────────────────────────────── */
.dark-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink-20); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; padding: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.dark-toggle:hover { background: var(--ink); color: var(--bg); }
.dark-toggle svg { width: 15px; height: 15px; }

/* ── Nav control cluster (revealed with "o") ─────────── */
.nav-controls { display: flex; gap: 12px; align-items: center; }

/* ── Font dropdown ───────────────────────────────────── */
.font-dd { position: relative; }
.font-dd-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink-20); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  font-style: italic; font-size: 15px; line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.font-dd-btn:hover { background: var(--ink); color: var(--bg); }
.font-dd-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg); border: 1px solid var(--ink-12);
  border-radius: 12px; padding: 6px; min-width: 220px;
  box-shadow: 0 18px 44px -14px color-mix(in oklab, var(--ink) 34%, transparent);
  display: flex; flex-direction: column; gap: 2px; z-index: 200;
}
.font-dd-item {
  text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 10px 13px; border-radius: 7px; color: var(--ink);
  font-size: 16px; line-height: 1.1; white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.font-dd-item:hover { background: var(--ink-06); }
.font-dd-item[data-active="true"] { background: var(--ink-06); color: var(--accent); }

/* ── Nav dropdown (Services) ─────────────────────────── */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd-caret { transition: transform .25s var(--ease); opacity: .55; }
.nav-dd-trigger[data-open="true"] .nav-dd-caret { transform: rotate(180deg); opacity: 1; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg); border: 1px solid var(--ink-12);
  border-radius: 13px; padding: 7px; min-width: 264px;
  box-shadow: 0 22px 50px -16px color-mix(in oklab, var(--ink) 38%, transparent);
  display: flex; flex-direction: column; gap: 2px; z-index: 120;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
/* Invisible bridge so the menu doesn't close while crossing the gap */
.nav-dd-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dd-menu[data-open="true"],
.nav-dd:hover .nav-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd:hover .nav-dd-caret { transform: rotate(180deg); opacity: 1; }
.nav-dd-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--ink);
  transition: background .15s var(--ease);
}
.nav-dd-item:not(.is-soon):hover { background: var(--ink-06); }
.nav-dd-item:not(.is-soon):hover .arrow { transform: translateX(3px); }
.nav-dd-item .arrow { color: var(--accent); transition: transform .2s var(--ease); }
.nav-dd-num { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--accent); }
.nav-dd-name { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1; flex: 1; }
.nav-dd-item.is-soon { cursor: default; }
.nav-dd-item.is-soon .nav-dd-num,
.nav-dd-item.is-soon .nav-dd-name { opacity: .42; }
.nav-dd-soon {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--ink-20); border-radius: 999px; padding: 3px 8px; color: var(--ink-60);
  white-space: nowrap;
}

/* Mobile drawer: indented service sub-links */
.nav-drawer-sub {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 18px; margin: 2px 0 6px;
  border-left: 1px solid var(--ink-12);
}
.nav-drawer-sub .nav-link { font-size: 15px; opacity: .85; }
.nav-link.is-soon {
  display: inline-flex; align-items: center; gap: 9px;
  opacity: .45; cursor: default;
}

/* Hamburger — mobile only */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--ink-20); border-radius: 6px;
  cursor: pointer; padding: 0;
  transition: border-color .2s;
}
.nav-hamburger:hover { border-color: var(--ink); }
.nav-hamburger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); border-radius: 999px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-hamburger[data-open="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[data-open="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[data-open="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile-drawer {
  position: fixed; inset: 62px 0 0 0; z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--ink-12);
  padding: 24px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 0;
  transform: translateY(-110%);
  transition: transform .4s var(--ease);
  pointer-events: none;
}
.nav-mobile-drawer.open {
  transform: translateY(0);
  pointer-events: auto;
}
.nav-mobile-drawer .nav-link {
  font-size: 28px; font-family: var(--serif); font-style: italic;
  padding: 12px 0; border-bottom: 1px solid var(--ink-12);
  color: var(--ink); letter-spacing: -.01em;
}
.nav-mobile-drawer .nav-link::after { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero { padding-top: 110px; }

/* Hero: Alfi-inspired stacked photo interaction ─────── */
.hero-stack {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  padding-top: 76px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-stack-top {
  padding: clamp(12px, 2vw, 32px) var(--gutter) 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-stack-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 104px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 16px;
  color: var(--ink);
  white-space: nowrap;
}
.hero-stack-sub {
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-weight: 400;
  max-width: 60ch;
}
.hero-stack-sub .star {
  color: var(--accent);
  font-size: 1.1em; line-height: 1;
}
.hero-stack-pillars {
  font-family: var(--mono);
  font-size: clamp(10px, 0.9vw, 12px);
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.hero-stack-pillars .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink); display: inline-block;
}

.hero-stack-mid {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: clamp(20px, 3vw, 40px) var(--gutter) 0;
  z-index: 5;
  pointer-events: none;
}
.hero-stack-mid > * { pointer-events: auto; }
.alfi-corner-left,
.alfi-corner-right {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
  max-width: 28ch;
}
.alfi-corner-right {
  text-align: right;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.alfi-corner-right::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--ink);
  transform: scaleX(1); transform-origin: right;
  transition: transform .4s var(--ease);
}
.alfi-corner-right:hover::after { transform: scaleX(0); transform-origin: left; }

.hero-stack-bottom {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex; justify-content: center; align-items: flex-end;
  margin-top: 10px;
}

/* Giant italic marquee behind the photo stack */
.hero-stack-marquee {
  position: absolute;
  inset: auto 0 6% 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: .85;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  color: var(--ink);
  letter-spacing: -.015em;
}
.hero-stack-marquee-track {
  display: inline-flex; width: max-content; gap: 50px;
  animation: stack-marquee 80s linear infinite;
}
.hero-stack-marquee-track span {
  display: inline-flex; align-items: center; gap: 50px;
}
.hero-stack-marquee-track span::after {
  content: '✦'; color: var(--accent);
  font-style: normal; font-family: var(--sans);
  font-size: .25em;
}
@keyframes stack-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Photo card stack (3 cards) */
.hero-stack-cards {
  position: relative;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 3/4;
  max-height: 56vh;
  z-index: 4;
  margin-bottom: 0;
  perspective: 1000px;
}
.hero-stack-card {
  position: absolute;
  inset: 0;
  background: var(--ink-12);
  box-shadow:
    0 1px 2px rgba(0,0,0,.06),
    0 12px 30px rgba(0,0,0,.16),
    0 30px 80px rgba(0,0,0,.08);
  transition: transform .65s cubic-bezier(.16,.84,.32,1.05);
  will-change: transform;
  transform-origin: 50% 75%;
}
.hero-stack-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── End Alfi hero ───────────────────────────────────── */

/* Statement section (snaps in after hero) */
.statement {
  height: 100vh;
  display: flex; align-items: center;
  padding: 80px var(--gutter);
  border-top: 1px solid var(--ink-12);
  background: var(--bg);
}
.statement-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 56px;
}
.statement-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-60);
}
.statement-eyebrow .star { color: var(--accent); font-family: var(--sans); }

.statement-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.012em;
  max-width: 24ch;
  color: var(--ink);
  margin: 0;
}
.statement-title em { font-style: italic; color: var(--accent); }
.statement-title .amp {
  font-style: italic; color: var(--accent);
  font-weight: 400;
}

.statement-foot {
  display: flex; gap: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--ink-12);
}
.statement-foot-lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-60); margin-bottom: 8px;
}
.statement-foot-val {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--ink);
}

@media (max-width: 740px) {
  .statement-foot { flex-direction: column; gap: 24px; }
}


/* Hero: split */
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 92vh; align-items: stretch;
  gap: 0;
}
.hero-split .hero-left {
  padding: 60px var(--gutter) 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-split .hero-right {
  position: relative; overflow: hidden;
  background: var(--ink-06);
}
.hero-split .hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.hero-eyebrow-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-title {
  font-size: clamp(44px, 5.4vw, 92px);
  line-height: .98;
  margin-bottom: 36px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 15px; max-width: 38ch; line-height: 1.55;
  color: var(--ink-80); margin-bottom: 36px;
}
.hero-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; background: var(--ink); color: var(--bg);
  border-radius: 999px; font-size: 13px; font-family: var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary .arrow { transition: transform .25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 22px; border: 1px solid var(--ink-20);
  border-radius: 999px; font-size: 13px; font-family: var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  transition: border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--ink); }

.hero-meta {
  display: flex; gap: 36px; padding-top: 40px;
  border-top: 1px solid var(--ink-12); margin-top: 40px;
  flex-wrap: wrap;
}
.hero-meta .item .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-60); margin-bottom: 6px;
}
.hero-meta .item .val {
  font-family: var(--serif); font-size: 22px; font-style: italic;
}

/* Hero: full-bleed */
.hero-bleed {
  position: relative; height: 92vh; min-height: 640px;
  overflow: hidden;
}
.hero-bleed .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.72);
}
.hero-bleed .hero-overlay {
  position: absolute; inset: 0; padding: var(--section) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #f4ede2;
}
.hero-bleed .hero-title { color: #f4ede2; max-width: 16ch; }
.hero-bleed .hero-sub { color: rgba(244,237,226,.85); }
.hero-bleed .eyebrow { color: rgba(244,237,226,.7); }

/* Hero: centered */
.hero-centered {
  padding: 120px var(--gutter) 60px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-centered .hero-title {
  text-align: center; max-width: 18ch; margin-inline: auto;
}
.hero-centered .hero-sub { text-align: center; margin-inline: auto; }
.hero-centered .hero-strip {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; width: 100%;
}
.hero-centered .hero-strip img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
}

/* ── Marquee ─────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--ink-12);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex; gap: 48px;
  width: max-content;
  animation: marquee 65s linear infinite;
  font-family: var(--serif); font-size: clamp(17px, 2.1vw, 32px); font-style: italic;
}
.marquee-track span { white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after {
  content: '✦'; color: var(--accent); font-style: normal;
  font-family: var(--sans); font-size: .42em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section header ──────────────────────────────────── */
.sec .sec-hd {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: end;
  border-bottom: 1px solid var(--ink-12);
  padding-bottom: 24px; margin-bottom: 40px;
}
.sec-hd .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--ink-60); padding-bottom: 12px;
}
.sec-hd .title { font-size: clamp(28px, 3.4vw, 50px); line-height: 1.02; }
.sec-hd .title em { font-style: italic; color: var(--accent); }
.sec-hd .aside {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-60); padding-bottom: 14px;
  text-align: right;
}

/* ── Services: Accordion ─────────────────────────────── */
.svc-list { border-top: 1px solid var(--ink); }
.svc-row {
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  transition: background .35s var(--ease);
}
.svc-row:hover { background: var(--ink-06); }
.svc-head {
  display: grid; grid-template-columns: 44px 1fr 140px 40px;
  align-items: center; gap: 16px;
  padding: 14px 0;
}
.svc-num { font-family: var(--mono); font-size: 12px; color: var(--ink-60); }
.svc-name { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 34px); line-height: 1; }
.svc-name em { font-style: italic; color: var(--accent); }
.svc-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-60);
  display: flex; align-items: center; gap: 6px;
}
.svc-tag .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.2s infinite ease-in-out;
}
.svc-tag.coming .pulse { background: var(--ink-40); }
@keyframes pulse {
  0%, 100% { opacity: .4; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
.svc-toggle {
  justify-self: end; width: 36px; height: 36px;
  border: 1px solid var(--ink-20); border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .35s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.svc-row[data-open="true"] .svc-toggle { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-body-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.svc-row[data-open="true"] .svc-body-wrap { grid-template-rows: 1fr; }
.svc-body-inner { overflow: hidden; }
.svc-body {
  display: grid; grid-template-columns: 48px 1fr 1fr;
  gap: 24px; padding: 0 0 28px;
}
.svc-desc { font-size: 14px; line-height: 1.5; color: var(--ink-80); grid-column: 2; max-width: 58ch; }
.svc-deliv { grid-column: 3; }
.svc-deliv-lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-60); margin-bottom: 14px;
}
.svc-deliv ul { list-style: none; padding: 0; margin: 0; }
.svc-deliv li {
  font-size: 14px; padding: 6px 0;
  border-bottom: 1px solid var(--ink-12);
  display: flex; justify-content: space-between; align-items: center;
}
.svc-deliv li::before {
  content: '✦'; color: var(--accent); font-size: 10px; margin-right: 8px;
}
.svc-deliv li span { flex: 1; }

/* ── Services: Grid ──────────────────────────────────── */
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.svc-card {
  background: var(--ink-06);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: background .25s var(--ease);
}
.svc-card:hover { background: var(--ink-12); }
.svc-card .svc-img {
  aspect-ratio: 16/10; overflow: hidden; margin-bottom: 24px;
}
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card .svc-num { margin-bottom: 18px; }
.svc-card .svc-name { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 16px; }
.svc-card .svc-desc { font-size: 15px; line-height: 1.5; color: var(--ink-80); margin-bottom: 24px; }
.svc-card .svc-tag { margin-top: auto; }

/* ── Services: Horizontal list (with hover image) ───── */
.svc-hlist { position: relative; }
.svc-hrow {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ink-12);
  cursor: pointer;
  position: relative;
}
.svc-hrow:first-child { border-top: 1px solid var(--ink-12); }
.svc-hrow .svc-name { transition: transform .35s var(--ease), color .35s var(--ease); }
.svc-hrow:hover .svc-name { transform: translateX(12px); color: var(--accent); }
.svc-hover-img {
  position: absolute; pointer-events: none; opacity: 0;
  width: 260px; aspect-ratio: 3/4; overflow: hidden;
  transition: opacity .25s var(--ease);
  transform: translate(-50%, -50%);
  z-index: 5;
}
.svc-hover-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.65); }
.svc-hover-img-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.svc-hover-img-label {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.4vw, 32px);
  color: #f4ede2; text-align: center; line-height: 1.2;
  padding: 8px 16px;
}

/* ── Brand wall: single luxurious row (logos shown once) ─ */
.brands-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(36px, 5.5vw, 90px);
  padding: clamp(10px, 2vw, 26px) var(--gutter);
  max-width: 1180px; margin: 0 auto; width: 100%;
}
.brands-row .brand-item { height: 60px; display: flex; align-items: center; flex-shrink: 0; }
.brands-row .brand-item img {
  height: 50px; width: auto;
  filter: brightness(0) opacity(.5);
  mix-blend-mode: multiply;
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease);
}
.brands-row .brand-item:hover img { filter: brightness(0) opacity(.92); transform: translateY(-2px); }
@media (max-width: 700px) {
  .brands-row { gap: 32px 40px; }
  .brands-row .brand-item { height: 44px; }
  .brands-row .brand-item img { height: 34px; }
}

/* ── Brand wall: Marquee variant ─────────────────────── */
.brands-marquee {
  border-block: 1px solid var(--ink-12);
  overflow: hidden; padding: 28px 0;
  background: var(--bg);
}
.brands-track {
  display: flex; gap: 64px; width: max-content;
  animation: marquee 90s linear infinite;
  align-items: center;
}
.brands-track .brand-item {
  height: 70px; display: flex; align-items: center; flex-shrink: 0;
}
.brands-track .brand-item img {
  height: 56px; width: auto;
  filter: brightness(0) opacity(.65);
  mix-blend-mode: multiply;
  transition: filter .25s var(--ease);
}
/* Reverse-direction marquee for second brand row */
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.brands-track.reverse {
  animation: marquee-reverse 90s linear infinite;
}

/* ── Brand wall logos — dark tint so they're always visible ─ */
.brands-track .brand-item img,
.brands-grid .brand-cell img {
  filter: brightness(0) opacity(.65);
  transition: opacity .25s var(--ease);
  mix-blend-mode: multiply;
}
.brands-track .brand-item:hover img,
.brands-grid .brand-cell:hover img { opacity: .85; filter: brightness(0) opacity(.85); }


/* ── Brand wall: Static grid ─────────────────────────── */
.brands-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.brands-grid .brand-cell {
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  border-right: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  position: relative;
  transition: background .25s var(--ease);
}
.brands-grid .brand-cell:nth-child(3n) { border-right: 0; }
.brands-grid .brand-cell:nth-last-child(-n+3) { border-bottom: 0; }
.brands-grid .brand-cell img {
  max-height: 60%; max-width: 70%; opacity: .82;
  transition: opacity .25s var(--ease);
}
.brands-grid .brand-cell:hover { background: var(--ink-06); }
.brands-grid .brand-cell:hover img { filter: brightness(0) opacity(.85); }

/* ── Dark mode: invert logos so they stay visible ────── */
[data-dark="true"] .brands-row .brand-item img,
[data-dark="true"] .brands-track .brand-item img,
[data-dark="true"] .brands-grid .brand-cell img {
  /* opacity:1 overrides any base opacity on the element so filter-opacity
     is the only transparency applied — prevents compounding (.82 × .72 ≈ 59%) */
  opacity: 1;
  filter: brightness(0) invert(1) opacity(.95);
  mix-blend-mode: normal;
}
[data-dark="true"] .brands-row .brand-item:hover img,
[data-dark="true"] .brands-track .brand-item:hover img,
[data-dark="true"] .brands-grid .brand-cell:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) opacity(1);
}

/* ── Dark mode: text / eyebrow contrast boost ────────── */
/* In dark mode the derived --ink-60 tones can look too muted. Use
   the local --ink directly (which auto-flips in rhythm-inverted
   sections like statement/footer, so no exceptions needed). */
[data-dark="true"] .eyebrow {
  color: color-mix(in oklab, var(--ink) 70%, var(--bg));
}
[data-dark="true"] .sec-hd .num,
[data-dark="true"] .sec-hd .aside {
  color: color-mix(in oklab, var(--ink) 65%, var(--bg));
}
[data-dark="true"] .sec-hd .title {
  color: var(--ink);
}

/* ── Portfolio: auto-scroll carousel ─────────────────── */
.reel-carousel {
  overflow: hidden;
  margin-inline: calc(-1 * var(--gutter));
  cursor: default;
}
.reel-carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-inline: var(--gutter);
  animation: carousel-left 38s linear infinite;
}
.reel-carousel:hover .reel-carousel-track { animation-play-state: paused; }
@keyframes carousel-left {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 7px)); }
}
.reel-car {
  flex-shrink: 0;
  width: clamp(190px, 18vw, 270px);
  height: clamp(300px, 65vh, 520px);
  position: relative; overflow: hidden;
  /* bg-root = always cream regardless of dark section remapping */
  background: #f4ede2;
}
.reel-car img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block;
  /* Scale up 22% so phone status-bar / letterbox edges get cropped out */
  transform: scale(1.22);
  transform-origin: center center;
  transition: filter .45s var(--ease);
}
.reel-car:hover img { filter: brightness(.55); }
.reel-car-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.reel-car:hover .reel-car-overlay { opacity: 1; }
.reel-car-label {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.8vw, 42px);
  color: #f4ede2; text-align: center; line-height: 1.2;
  padding: 12px 20px;
}
.reel-car-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  color: #f4ede2;
  opacity: 0; transition: opacity .35s var(--ease);
}
.reel-car:hover .reel-car-bottom { opacity: 1; }
.reel-car-bottom .reel-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.reel-car-bottom .reel-title { font-family: var(--serif); font-style: italic; font-size: 18px; margin-top: 2px; }

.reel-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.reel {
  position: relative; overflow: hidden;
  background: var(--ink-06);
  cursor: pointer;
}
.reel img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .65s var(--ease);
}
.reel:hover img { transform: scale(1.04); }
.reel .reel-info {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  color: #f4ede2; opacity: 0;
  transition: opacity .3s var(--ease);
}
.reel:hover .reel-info { opacity: 1; }
.reel .reel-title { font-family: var(--serif); font-style: italic; font-size: 22px; }
.reel .reel-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.reel .reel-play {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(244,237,226,.95); color: var(--ink);
  display: grid; place-items: center; font-size: 12px;
}
/* portrait reels — sized to fit a single viewport row */
.reel.tall { grid-column: span 3; aspect-ratio: 3/4.4; }
.reel.wide { grid-column: span 6; aspect-ratio: 16/11; }
.reel.sq { grid-column: span 3; aspect-ratio: 1; }
.reel.tall-tall { grid-column: span 4; aspect-ratio: 3/4.4; }
.reel.medium { grid-column: span 4; aspect-ratio: 4/4.4; }

/* Compact: one-row showcase, 6 portrait reels */
.reel-grid.compact { grid-template-columns: repeat(6, 1fr); }
.reel-grid.compact > .reel { grid-column: span 1 !important; aspect-ratio: 3/4.4 !important; }

/* ── About / My Story ────────────────────────────────── */
.about {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 48px; align-items: center;
}
.about-img {
  aspect-ratio: 4/5; overflow: hidden;
  position: relative;
  max-height: 64vh;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img .caption {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(244,237,226,.9);
}
.about-eyebrow { margin-bottom: 16px; }
.about-name { font-size: clamp(28px, 3vw, 44px); margin-bottom: 18px; }
.about-name em { font-style: italic; color: var(--accent); }
.about-body p { font-size: 14px; line-height: 1.55; color: var(--ink-80); margin-bottom: 12px; max-width: 56ch; }
.about-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.3; padding: 16px 0; margin: 16px 0;
  border-block: 1px solid var(--ink-12);
  color: var(--ink);
}
.about-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 32px; padding-top: 22px; margin-top: 22px;
  border-top: 1px solid var(--ink-12);
}
.about-stats .stat .num {
  font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1;
}
.about-stats .stat .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-60); margin-top: 6px;
}

/* ── Lens Method teaser ──────────────────────────────── */
.lens {
  background: var(--ink); color: var(--bg);
  margin-inline: var(--gutter);
  padding: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.lens .eyebrow { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.lens .lens-title {
  font-size: clamp(32px, 3.8vw, 60px); color: var(--bg);
  margin: 16px 0 24px;
}
.lens .lens-title em { font-style: italic; color: var(--accent); }
.lens .lens-body { font-size: 16px; line-height: 1.55; color: color-mix(in oklab, var(--bg) 80%, transparent); margin-bottom: 36px; max-width: 50ch; }
.lens .lens-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lens .btn-primary { background: var(--bg); color: var(--ink); }
.lens .btn-ghost { border-color: color-mix(in oklab, var(--bg) 30%, transparent); color: var(--bg); }
.lens .btn-ghost:hover { border-color: var(--bg); }
.lens-img {
  aspect-ratio: 16/10; overflow: hidden;
  position: relative;
}
.lens-img img { width: 100%; height: 100%; object-fit: cover; }
.lens-badge {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; padding: 8px 12px;
  background: var(--accent); color: var(--bg);
  border-radius: 999px;
}
.lens-modules {
  margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap;
}
.lens-modules span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; padding: 7px 12px;
  border: 1px solid color-mix(in oklab, var(--bg) 22%, transparent); border-radius: 4px;
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  display: inline-flex; align-items: center;
  line-height: 1; white-space: nowrap;
}

/* ── Inquiry form ────────────────────────────────────── */
.inquire {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 64px;
}
.inquire .left h2 { margin-bottom: 20px; }
.inquire .left h2 em { font-style: italic; color: var(--accent); }
.inquire .left p { color: var(--ink-80); font-size: 15px; line-height: 1.6; max-width: 36ch; margin-bottom: 28px; }
.inquire .contacts { display: grid; gap: 16px; }
.inquire .contacts .row { display: flex; flex-direction: column; gap: 4px; }
.inquire .contacts .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-60);
}
.inquire .contacts .val { font-family: var(--serif); font-style: italic; font-size: 20px; }

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 8px; }
.form-row.split { grid-template-columns: 1fr 1fr; gap: 28px; }
.form-row.split > div { display: grid; gap: 8px; }
.form label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-60);
}
.form input, .form textarea, .form select {
  font-family: var(--sans); font-size: 17px;
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-20);
  padding: 8px 0; color: var(--ink);
  transition: border-color .25s var(--ease);
  outline: none; appearance: none; resize: vertical;
  font-family: var(--serif);
}
.form input:focus, .form textarea:focus, .form select:focus { border-bottom-color: var(--ink); }
.form textarea { min-height: 100px; font-family: var(--sans); font-size: 16px; }
/* ── Form chips — flat square pills ─────────────────── */
.form .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.form .chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--ink-20);
  border-radius: 4px;
  cursor: pointer; user-select: none;
  background: transparent; color: var(--ink);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
  line-height: 1;
}
.form .chip:hover { border-color: var(--ink-60); }
.form .chip[data-on="true"] {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

.form-submit { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.form-submit .fineprint {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--ink-60); max-width: 32ch;
}

.form-success {
  padding: 60px 40px; text-align: center;
  border: 1px solid var(--ink-20);
  background: var(--ink-06);
}
.form-success h3 { margin-bottom: 18px; }
.form-success p { color: var(--ink-80); max-width: 40ch; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 80px var(--gutter) 32px;
  border-top: 1px solid var(--ink-12);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 80px;
}
/* Footer body text — always high contrast */
.footer-grid > div > p {
  color: var(--ink-80);
}
[data-rhythm="editorial"] .footer .footer-grid > div > p,
[data-rhythm="contrast"]  .footer .footer-grid > div > p,
[data-rhythm="warm"]      .footer .footer-grid > div > p {
  color: color-mix(in oklab, var(--bg-root) 82%, var(--ink-root)) !important;
}
.footer-mark {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(80px, 12vw, 180px); line-height: .9;
}
.footer-col h5 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-60);
  font-weight: 400; margin: 0 0 18px;
}
.footer-col a {
  display: block; padding: 4px 0; font-size: 15px;
  color: var(--ink); transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--ink-12);
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-60); flex-wrap: wrap; gap: 12px;
}

/* Big "Lamia Lens" footer mark */
.footer-massive {
  font-family: var(--serif); font-style: italic; line-height: .85;
  font-size: clamp(56px, 12vw, 200px);
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  padding: 36px 0 0;
  border-top: 1px solid var(--ink-12);
  margin-top: 40px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split .hero-right { aspect-ratio: 4/5; }
  .hero-centered .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .inquire { grid-template-columns: 1fr; gap: 40px; }
  .lens { grid-template-columns: 1fr; padding: 40px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-head { grid-template-columns: 32px 1fr 40px; gap: 12px; }
  .svc-tag { display: none; }
  .svc-body { grid-template-columns: 1fr; }
  .svc-deliv, .svc-desc { grid-column: 1; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid .brand-cell:nth-child(3n) { border-right: 1px solid var(--ink-12); }
  .brands-grid .brand-cell:nth-child(2n) { border-right: 0; }
  .reel-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .reel.tall, .reel.sq, .reel.tall-tall { grid-column: span 3; }
  .reel.wide, .reel.medium { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row.split { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --gutter: 22px; }

  /* Disable snap on phones — feels jittery with mobile browser chrome */
  html { scroll-snap-type: none; }

  /* Hide sub-nav on mobile — main nav + hamburger is enough */
  .sub-nav { display: none !important; }

  /* Smaller scroll-margin without sub-nav */
  .snap-section .sec-hd,
  .snap-section > .statement-inner,
  .brands-section > .sec { scroll-margin-top: 84px; }

  /* Nav: tighter padding */
  .nav { padding: 14px var(--gutter); }
  .nav-mobile-drawer { inset: 56px 0 0 0; }

  /* Hero stack — phone proportions */
  .hero-stack { padding-top: 86px; height: auto; min-height: 100vh; }
  .hero-stack-title {
    font-size: clamp(46px, 13vw, 76px);
    margin-bottom: 14px;
    letter-spacing: -.02em;
  }
  .hero-stack-sub { font-size: 13px; padding-inline: 8px; }
  .hero-stack-pillars { font-size: 11px; }
  .hero-stack-mid {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px var(--gutter) 0;
  }
  .alfi-corner-left, .alfi-corner-right {
    font-size: 10px; text-align: center; max-width: 100%;
  }
  .alfi-corner-right::after { display: none; }
  .hero-stack-cards {
    width: clamp(180px, 56vw, 240px);
    max-height: 42vh;
  }
  .hero-stack-marquee {
    font-size: clamp(110px, 32vw, 200px);
    inset: auto 0 8% 0;
  }
  .hero-stack-bottom { margin-top: 28px; }

  /* Statement */
  .statement {
    padding: 92px var(--gutter) 100px;
    height: auto; min-height: 100vh;
  }
  .statement-title {
    font-size: clamp(34px, 9vw, 56px);
    line-height: 1.1; max-width: 100%;
  }
  .statement-foot {
    flex-direction: column;
    gap: 18px;
    padding-top: 28px; margin-top: 28px;
  }
  .statement-foot-val { font-size: 18px; }

  /* Section headers */
  .sec, .statement { min-height: auto; padding-block: 80px; }
  .sec-hd {
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: end;
    padding-bottom: 18px;
    margin-bottom: 28px;
  }
  .sec-hd .aside { display: none; }
  .sec-hd .title { font-size: clamp(32px, 9vw, 56px); line-height: 1.05; }
  .sec-hd .num { font-size: 11px; padding-bottom: 8px; }

  /* Brand wall — tighter rows */
  .brands-section {
    min-height: auto;
    gap: clamp(20px, 4vw, 32px);
    padding-block: 60px;
  }
  .brands-marquee { padding: 18px 0; }
  .brands-track { gap: 44px; }
  .brands-track .brand-item { height: 48px; }
  .brands-track .brand-item img { height: 36px; }

  /* Services accordion */
  .svc-head {
    grid-template-columns: 28px 1fr 32px;
    gap: 10px; padding: 16px 0;
  }
  .svc-num { font-size: 10px; }
  .svc-name { font-size: clamp(22px, 6vw, 32px); line-height: 1.05; }
  .svc-toggle { width: 28px; height: 28px; }
  .svc-body { grid-template-columns: 1fr; }
  .svc-desc, .svc-deliv { grid-column: 1; }
  .svc-desc { font-size: 14px; }

  /* Service horizontal list */
  .svc-hrow {
    grid-template-columns: 28px 1fr;
    padding: 22px 0; gap: 12px;
  }
  .svc-hover-img { display: none; }

  /* Service grid */
  .svc-card { padding: 22px; }
  .svc-card .svc-name { font-size: 28px; }

  /* Carousel */
  .reel-car {
    width: clamp(160px, 64vw, 220px);
    height: clamp(280px, 70vw, 380px);
  }
  .reel-carousel-track { gap: 10px; }
  .reel-car-label { font-size: clamp(20px, 7vw, 30px); padding: 0 12px; }
  .reel-car-bottom .reel-title { font-size: 15px; }

  /* About */
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-img { max-height: 50vh; aspect-ratio: 4/4.5; }
  .about-name { font-size: clamp(32px, 9vw, 48px); margin-bottom: 18px; }
  .about-body p { font-size: 14px; }
  .about-quote { font-size: 17px; padding: 14px 0; }
  .about-stats {
    gap: 20px;
    padding-top: 18px; margin-top: 18px;
  }
  .about-stats .stat .num { font-size: 28px; }
  .about-stats .stat .lbl { font-size: 9px; }

  /* Lens method */
  .lens {
    grid-template-columns: 1fr;
    padding: 32px var(--gutter);
    gap: 28px;
  }
  .lens-title { font-size: clamp(32px, 9vw, 48px); margin-bottom: 18px; }
  .lens-body { font-size: 14px; margin-bottom: 22px; }
  .lens-modules span { font-size: 9px; padding: 6px 9px; }
  .lens-img { aspect-ratio: 16/10; }

  /* Inquire */
  .inquire { grid-template-columns: 1fr; gap: 36px; }
  .inquire .left h2 { font-size: 32px !important; }
  .inquire .left p { font-size: 14px; }
  .contacts .val { font-size: 17px; }
  .form { gap: 18px; }
  .form-row.split { grid-template-columns: 1fr; gap: 18px; }
  .form input, .form textarea { font-size: 15px; }
  .form-submit { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-submit .fineprint { max-width: 100%; }

  /* Footer */
  .footer { padding: 64px var(--gutter) 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 56px; }
  .footer-grid > div:first-child p { font-size: 15px; }
  .footer-massive {
    font-size: clamp(64px, 22vw, 140px);
    padding-top: 28px; margin-top: 28px;
  }
  .footer-bottom { font-size: 9px; }

  /* Buttons — touch friendly */
  .btn-primary, .btn-ghost {
    padding: 14px 20px;
    font-size: 11px;
  }

  /* Marquee ticker — slower since space is smaller */
  .marquee-track { font-size: clamp(20px, 7vw, 32px); gap: 32px; }
  .marquee-track span { gap: 32px; }
  .marquee { padding: 16px 0; }
}

/* ── Tiny phones (iPhone SE etc.) ────────────────────── */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero-stack-cards { width: 62vw; }
  .nav-brand-mark { font-size: 24px; }
  .nav-cta { padding: 9px 12px; font-size: 11px; }
}

/* ─────────────────────────────────────────────────────
   Application form — shared between the home enquiry
   section and the dedicated service pages.
─────────────────────────────────────────────────────── */
.form select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23968d80' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1px center;
  background-size: 12px 8px;
  padding-right: 22px;
  cursor: pointer;
}
.form select[data-empty="true"] { color: var(--ink-40); }
.form input[type="date"] {
  color: var(--ink);
  font-family: var(--serif);
}
.form input[type="date"][data-empty="true"] { color: var(--ink-40); }
.form input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .45; cursor: pointer;
  filter: var(--cal-filter, none);
}
[data-dark="true"] .form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(.55);
}
/* three-up field row for the application form */
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.form-row.triple > div { display: grid; gap: 8px; }
@media (max-width: 920px) {
  .form-row.triple { grid-template-columns: 1fr; gap: 18px; }
}

/* Eyebrow that sits above the form intro on the dedicated page */
.appform-eyebrow { margin-bottom: 18px; }
