/* =========================================================================
   GainMed — "Evidence, Rendered"
   An editorial dossier for a regenerative-materials house. Bone / ink / gold.
   Cabinet Grotesk (display) · Switzer (text) · IBM Plex Mono (instrumentation).
   ========================================================================= */

/* Self-hosted type — Cabinet Grotesk + Switzer (Fontshare, free for commercial use) */
@font-face { font-family: 'Cabinet Grotesk'; src: url('assets/fonts/cabinet-grotesk-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('assets/fonts/cabinet-grotesk-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('assets/fonts/cabinet-grotesk-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('assets/fonts/cabinet-grotesk-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bone:        #F1EDE4;
  --bone-deep:   #E8E2D5;
  --paper:       #FBFAF6;
  --ink:         #17181C;
  --ink-soft:    #3A3A41;
  --muted:       #67645C;
  --faint:       #8A877E;
  --navy:        #14151A;
  --navy-2:      #1F2126;
  --gold:        #A8813F;
  --gold-bright: #C09A54;
  --gold-deep:   #7E6026;
  --line:        rgba(23,24,28,0.14);
  --line-soft:   rgba(23,24,28,0.08);
  --line-gold:   rgba(168,129,63,0.4);
  --on-navy:     #ECE6DA;
  --on-navy-mut: rgba(236,230,218,0.6);
  --line-navy:   rgba(236,230,218,0.15);
  --verified:    #5c7a5e;
  --verified-fill: rgba(92,122,94,0.1);

  --serif: 'Cabinet Grotesk', 'Switzer', system-ui, sans-serif; /* display grotesque (was Fraunces); token name kept to avoid churn */
  --sans:  'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --rail: 224px;                 /* left dossier margin on desktop */
  --content-max: 1680px;
  --gutter: clamp(24px, 4.5vw, 88px);
  --edge: max(var(--gutter), calc(50% - var(--content-max) / 2 + var(--gutter))); /* inset to the centered content column, for full-bleed sections */
  --r: 3px;
  --r-lg: 6px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.42, 0.5, 1); /* gentle spring overshoot */
  --press: scale(0.975);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* iOS Safari: no blue tap-flash, no page-level rubber-band. */
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
/* Lenis smooth scroll (self-hosted). When active it takes over; native smooth stays as the no-JS/reduced-motion fallback. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Clip horizontal bleed here, not on body (body overflow-x breaks position:sticky) */
.cover, .chapter, .stage { overflow-x: clip; }
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: #fff; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

.site-header, main, section, footer, .mobile-nav, .dossier-index { position: relative; z-index: 2; }

/* Page-load hairline — a document opening */
.load-sweep { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); transform: scaleX(0); transform-origin: left; animation: loadsweep 1.5s var(--ease-out) forwards; pointer-events: none; }
@keyframes loadsweep { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .load-sweep { display: none; } }

/* ---- Layout scaffolding ---- */
.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.chapter { padding-block: clamp(88px, 12vw, 168px); position: relative; }
.chapter--pad-sm { padding-block: clamp(56px, 7vw, 96px); }

/* Big ghosted chapter number + mono label, editorial header */
.chapter__mark { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 24px); margin-bottom: clamp(28px, 4vw, 54px); }
.chapter__no { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.6vw, 54px); line-height: 1; color: var(--gold); letter-spacing: -0.02em; }
.chapter__meta { display: flex; flex-direction: column; gap: 7px; }
.chapter__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.chapter__label::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 14px; }
.chapter__meta .chapter__label::before { display: none; }
.chapter__desc { font-family: var(--serif); font-weight: 400; font-size: clamp(17px, 1.8vw, 21px); color: var(--ink); letter-spacing: -0.01em; }
.section--navy .chapter__desc { color: var(--on-navy); }

.eyebrow { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
.kicker { font-family: var(--serif); font-weight: 500; color: var(--gold-deep); }

.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(46px, 8.5vw, 118px); line-height: 0.94;
  letter-spacing: -0.04em;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 5vw, 62px); line-height: 1.03; letter-spacing: -0.03em;
}
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.14; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--muted); }

/* =========================================================================
   Dossier margin index (desktop) — the "scientific document" signal
   ========================================================================= */
.dossier-index {
  position: fixed; left: 0; top: 0; height: 100vh; width: var(--rail);
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  padding-left: var(--gutter); pointer-events: none;
}
.dossier-index a { pointer-events: auto; display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); transition: color 240ms var(--ease-out); }
.dossier-index a span { color: var(--gold-deep); transition: opacity 240ms var(--ease-out); font-variant-numeric: tabular-nums; }
.dossier-index a em { font-style: normal; opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap; transition: opacity 300ms var(--ease-out), max-width 300ms var(--ease-out); }
.dossier-index a.is-active { color: var(--ink); }
.dossier-index a.is-active span { opacity: 1; }
.dossier-index a.is-active em, .dossier-index:hover a em { opacity: 1; max-width: 130px; }
/* dossier-index rail removed — content centers in the full viewport */

/* =========================================================================
   Header
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: transparent; transition: background 320ms var(--ease-out), box-shadow 320ms var(--ease-out); }
.site-header.is-scrolled { background: rgba(241,237,228,0.7); backdrop-filter: saturate(120%) blur(16px); -webkit-backdrop-filter: saturate(120%) blur(16px); box-shadow: 0 1px 0 var(--line-soft), 0 16px 30px -24px rgba(23,24,28,0.5); }
.site-header__inner { max-width: var(--content-max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.brand b { color: var(--gold-deep); font-weight: 500; }
.nav { display: none; align-items: center; gap: 30px; }
.nav a { font-size: 14px; color: var(--ink-soft); position: relative; padding-block: 6px; transition: color 200ms var(--ease-out); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.region { display: none; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }
.region svg { width: 14px; height: 14px; }
.menu-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--ink); transition: transform 140ms var(--ease-out); }
.menu-toggle:active { transform: var(--press); }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav {
  display: none;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: var(--bone);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 15px 0; font-size: 20px; font-family: var(--serif); border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 20px; justify-content: center; }
@media (min-width: 940px) { .nav { display: flex; } .region { display: inline-flex; } .menu-toggle { display: none; } }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } .nav a:hover::after { transform: scaleX(1); } }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn { position: relative; overflow: hidden; z-index: 0; display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-family: var(--sans); font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 15px 30px; border-radius: 100px; border: 1px solid transparent; line-height: 1; white-space: nowrap; cursor: pointer; color: var(--ink); background: transparent; transition: color 420ms var(--ease-out), border-color 420ms var(--ease-out), transform 160ms var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 520ms var(--ease-out); }
.btn svg { width: 14px; height: 14px; transition: transform 420ms var(--ease-out); }
.btn:active { transform: var(--press); }
.btn--gold { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.btn--gold::before { background: var(--ink); }
.btn--ink { color: var(--bone); background: var(--ink); border-color: var(--ink); }
.btn--ink::before { background: var(--gold); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost::before { background: var(--ink); }
.section--navy .btn--ghost, .site-footer .btn--ghost { color: var(--on-navy); border-color: var(--line-navy); }
.section--navy .btn--ghost::before, .site-footer .btn--ghost::before { background: var(--on-navy); }
.btn--lg { padding: 17px 34px; font-size: 13px; letter-spacing: 0.11em; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleX(1); transform-origin: left; }
  .btn:hover svg { transform: translateX(4px); }
  .btn--gold:hover { color: var(--bone); border-color: var(--ink); }
  .btn--ink:hover { color: var(--ink); border-color: var(--gold); }
  .btn--ghost:hover { color: var(--bone); border-color: var(--ink); }
  .section--navy .btn--ghost:hover, .site-footer .btn--ghost:hover { color: var(--ink); border-color: var(--on-navy); }
}
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); border-bottom: 1px solid var(--line-gold); padding-bottom: 3px; transition: gap 240ms var(--ease-out), border-color 240ms var(--ease-out); }
.arrow-link svg { width: 13px; height: 13px; color: var(--gold-deep); transition: transform 240ms var(--ease-out); }
.section--navy .arrow-link { color: var(--on-navy); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover { gap: 12px; border-color: var(--gold); } .arrow-link:hover svg { transform: translateX(3px); } }

/* =========================================================================
   00 · COVER (hero) with live vesicle canvas
   ========================================================================= */
.cover {
  position: relative;
  /* dvh accounts for iOS Safari's shrinking URL bar; svh is the fallback. */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 120px 60px;
}
.cover__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bone); }
.cover__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.cover__scrim { position: absolute; inset: 0; pointer-events: none; background:
    linear-gradient(90deg, var(--bone) 0%, var(--bone) 22%, rgba(241,237,228,0.82) 40%, rgba(241,237,228,0.28) 60%, rgba(241,237,228,0) 78%),
    linear-gradient(0deg, rgba(241,237,228,0.55) 0%, rgba(241,237,228,0) 24%),
    linear-gradient(180deg, rgba(241,237,228,0.60) 0%, rgba(241,237,228,0) 16%); }
.cover__fx { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 899px) { .cover__fx { display: none; } }
.cover__inner { position: relative; z-index: 2; width: 100%; max-width: var(--content-max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.cover__copy { max-width: 700px; }
.cover .display { margin-top: 22px; }
.cover .display .kicker { display: block; }
.cover__lede { margin-top: 28px; }
.cover__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cover__fig { position: absolute; right: max(var(--gutter), 4vw); bottom: 34px; z-index: 2; text-align: right; }
.cover__scroll { position: absolute; left: var(--gutter); bottom: 30px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cover__scroll i { width: 22px; height: 34px; border: 1px solid var(--line); border-radius: 12px; position: relative; display: inline-block; }
.cover__scroll i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; background: var(--gold); border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s var(--ease-in-out) infinite; }
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%, 10px); } }
@media (max-width: 720px) { .cover__fig { display: none; } }

/* =========================================================================
   01 · PORTFOLIO
   ========================================================================= */
.lede-row { display: grid; gap: 22px; align-items: end; }
@media (min-width: 860px) { .lede-row { grid-template-columns: 1.3fr 1fr; gap: 48px; } }

.lane { margin-top: clamp(40px, 5vw, 64px); }
.lane__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lane__title { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 12px; }
.lane__title b { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.lane--research .lane__title b { background: var(--navy); }
.lane__note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.products { display: grid; gap: 18px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .products { grid-template-columns: 1fr 1fr; } }

.product { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.product__media { aspect-ratio: 5/4; background: radial-gradient(120% 100% at 50% 0%, #fff 0%, var(--bone-deep) 100%); display: flex; align-items: center; justify-content: center; padding: 22px; position: relative; }
.product__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,0.5) 48%, transparent 60%); transform: translateX(-130%); transition: transform 950ms var(--ease-out); pointer-events: none; }
/* Max-based constraints (not height:100%) so Chrome and Safari agree on
   sizing when the image's intrinsic dimensions exceed the container.
   height:100% + width:auto had Chrome respecting the img's natural 1600px
   height on the Apexium bottle and overflowing; Safari clamped correctly.
   max-* on both axes lets the browser fit the image without either winning. */
.product__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 600ms var(--ease-out);
}
.product__cat { position: absolute; top: 15px; left: 15px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); background: rgba(251,250,246,0.86); border: 1px solid var(--line-soft); padding: 5px 9px; border-radius: var(--r); }
.product__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__name { font-family: var(--serif); font-size: 27px; letter-spacing: -0.02em; }
.product__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.product__spec { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line-soft); }
.product__foot { margin-top: 14px; }
@media (hover: hover) and (pointer: fine) {
  .product:hover { border-color: var(--line-gold); }
  .product:hover .product__media img { transform: scale(1.035); }
  .product:hover .product__media::after { transform: translateX(130%); }
}

/* -----------------------------------------------------------------------
   Video-media variant — used for products with a proper motion asset.
   Editorial dossier treatment: gold hairline frame with corner ticks,
   a REC · <NAME> timecode chip, a pulsing dot, and a soft vignette. ----- */
.product__media--video { padding: 0; background: #1a1622; }
/* The still image sits ABOVE the video at rest — a considered product shot
   on a warm dark backdrop. When the card is playing (main.js toggles the
   is-playing class), the still fades out to reveal the video underneath. */
.product__still {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(20px, 3vw, 36px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 48px);
  background:
    radial-gradient(120% 100% at 50% 38%, #2a2536 0%, #12111a 78%);
  transition: opacity 480ms var(--ease-out), transform 800ms var(--ease-out);
  pointer-events: none;
  will-change: opacity;
}
.product__media--video.is-playing .product__still { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .product:hover .product__still { transform: scale(1.03); }
}
.product__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
  transition: transform 900ms var(--ease-out), filter 500ms var(--ease-out);
  /* Warm color grade so the footage sits inside the Bone & Ink palette
     instead of reading as a foreign asset. Sepia lays the base tone,
     hue-rotate pulls it toward gold rather than tobacco, the saturate+
     contrast bumps re-add depth after sepia flattens it. */
  filter: sepia(0.32) saturate(1.18) hue-rotate(-8deg) brightness(1.03) contrast(1.06);
}
.product__media--video::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Two-layer overlay: gold vignette at the edges + subtle amber wash top-to-bottom.
     Keeps the "shot on set, graded for the dossier" feel. */
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 52%, rgba(126, 96, 38, 0.34) 100%),
    linear-gradient(180deg, rgba(192, 154, 84, 0.08) 0%, transparent 34%, rgba(126, 96, 38, 0.16) 100%);
}
.product__media--video .product__cat {
  z-index: 3; color: var(--on-navy);
  background: rgba(23,21,34,0.55);
  border-color: rgba(236,230,218,0.18);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}
.product__frame {
  position: absolute; inset: 12px; z-index: 3; pointer-events: none;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(192,154,84,0.28);
  transition: box-shadow 400ms var(--ease-out), inset 400ms var(--ease-out);
}
.product__frame::before, .product__frame::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--gold-bright);
  opacity: 0.85;
}
.product__frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.product__frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.product__timecode {
  position: absolute; bottom: 15px; right: 15px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--on-navy); background: rgba(23,21,34,0.55);
  border: 1px solid rgba(236,230,218,0.18);
  padding: 5px 9px 5px 8px; border-radius: var(--r);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.product__rec {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px rgba(192,154,84,0.7);
  opacity: 0.4;
  /* Pulse only while the video is actually playing (main.js toggles the
     is-playing class). A blinking REC light on a paused poster reads as a
     lie. */
}
.product__media--video.is-playing .product__rec {
  animation: rec-pulse 1.8s var(--ease-in-out) infinite;
}
@keyframes rec-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }

@media (hover: hover) and (pointer: fine) {
  /* Hover strengthens the same grade a touch — never resets to neutral,
     which would fight the editorial frame. */
  .product:hover .product__media--video .product__video { transform: scale(1.04); filter: sepia(0.36) saturate(1.24) hue-rotate(-8deg) brightness(1.05) contrast(1.08); }
  .product:hover .product__frame { box-shadow: inset 0 0 0 1px rgba(192,154,84,0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .product__video { transition: none; }
  .product__rec { animation: none; opacity: 0.9; }
}

/* Research lane — a technical datasheet, not an image card */
.datasheets { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.datasheet { display: grid; gap: 20px 30px; grid-template-columns: 1fr; align-items: start; padding: clamp(24px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); transition: border-color 300ms var(--ease-out); }
@media (min-width: 800px) { .datasheet { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) auto; align-items: center; } }
.datasheet__cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.datasheet__name { position: relative; display: inline-block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; margin: 7px 0 9px; transition: color 240ms var(--ease-out); }
.datasheet__name::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease-out); }
.datasheet__desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; max-width: 40ch; }
.datasheet__spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 2.5vw, 36px); margin: 0; }
.datasheet__spec > div { padding: 11px 0; border-top: 1px solid var(--line-soft); }
.datasheet__spec dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); }
.datasheet__spec dd { font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin: 4px 0 0; }
.datasheet__go { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.datasheet__go svg { width: 16px; height: 16px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .datasheet:hover { border-bottom-color: var(--line-gold); }
  .datasheet:hover .datasheet__name { color: var(--gold-deep); }
  .datasheet:hover .datasheet__name::after { transform: scaleX(1); }
  .datasheet:hover .datasheet__go svg { transform: translateX(4px); }
}

/* =========================================================================
   02 · EVIDENCE — the signature characterization scroll
   ========================================================================= */
.stage { position: relative; background: var(--navy); color: var(--on-navy); }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; height: 100dvh; overflow: hidden; }
.stage__grid { position: relative; z-index: 2; height: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr; align-content: center; gap: 24px; }
.stage__canvas { position: absolute; inset: 0; z-index: 0; }
.stage__canvas canvas { width: 100%; height: 100%; display: block; }
.stage__intro { position: absolute; top: clamp(60px, 12vh, 120px); left: var(--gutter); z-index: 2; max-width: 440px; }
.stage__intro .h2 { color: var(--on-navy); margin-top: 16px; }
.stage__readout { position: absolute; left: var(--edge); bottom: clamp(48px, 12vh, 110px); z-index: 3; font-family: var(--mono); }
.stage__readout-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.stage__readout-value { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7vw, 82px); line-height: 1; letter-spacing: -0.02em; color: var(--on-navy); font-variant-numeric: tabular-nums; margin-top: 8px; }
.stage__readout-value small { font-size: 0.42em; color: var(--on-navy-mut); font-family: var(--mono); letter-spacing: 0; }

/* the COA card that writes itself, docked right */
.stage__coa { position: absolute; right: var(--edge); top: 50%; transform: translateY(-50%); z-index: 3; width: min(400px, 42vw); }
.coa { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(0,0,0,0.18); }
.coa__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px; background: var(--bone); border-bottom: 1px solid var(--line); }
.coa__head .brand { font-size: 18px; }
.coa__doc { text-align: right; font-family: var(--mono); font-size: 10px; color: var(--muted); line-height: 1.7; }
.coa__doc b { color: var(--ink); }
.coa__title { padding: 14px 20px 4px; }
.coa__title .eyebrow { font-size: 10px; color: var(--gold-deep); }
.coa__title h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin-top: 6px; }
.coa__rows { padding: 6px 20px 16px; }
.coa-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); opacity: 0; transform: translateY(4px); transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); }
.coa-row:last-child { border-bottom: 0; }
.coa-row.is-on { opacity: 1; transform: none; }
.coa-row__test { font-size: 12.5px; }
.coa-row__test small { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 1px; }
.coa-row__val { font-family: var(--mono); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.coa-row__pass { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--verified); display: inline-flex; align-items: center; gap: 5px; opacity: 0; transition: opacity 300ms var(--ease-out) 120ms; }
.coa-row.is-on .coa-row__pass { opacity: 1; }
.coa-row__pass::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--verified); }
.coa__foot { padding: 13px 20px; background: var(--bone); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.coa__seal { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 7px; opacity: 0; transition: opacity 400ms var(--ease-out); }
.coa.is-released .coa__seal { opacity: 1; }
.coa__seal b { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(168,129,63,0.2); }
/* Seal stamps once when the batch releases */
.coa.is-stamped .coa__seal { animation: coaStamp 520ms var(--ease-out) both; }
.coa.is-stamped .coa__seal b { animation: coaRing 760ms var(--ease-out) 100ms both; }
@keyframes coaStamp { 0% { transform: scale(1.18); } 60% { transform: scale(0.97); } 100% { transform: scale(1); } }
@keyframes coaRing { 0% { box-shadow: 0 0 0 2px rgba(168,129,63,0.55); } 70% { box-shadow: 0 0 0 9px rgba(168,129,63,0); } 100% { box-shadow: 0 0 0 3px rgba(168,129,63,0.2); } }

/* scroll step ticks */
.stage__steps { position: absolute; right: var(--edge); bottom: 40px; z-index: 3; display: flex; gap: 8px; }
.stage__steps b { width: 26px; height: 2px; background: var(--line-navy); border-radius: 2px; transition: background 300ms var(--ease-out); }
.stage__steps b.is-on { background: var(--gold); }

/* static fallback (mobile / reduced motion) */
.stage__fallback { display: none; }

/* =========================================================================
   03 · STANDARD — quality pillars
   ========================================================================= */
.pillar { display: grid; gap: 26px; padding-block: clamp(38px, 5vw, 66px); align-items: start; }
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar__idx { font-family: var(--mono); font-size: 12.5px; color: var(--gold-deep); letter-spacing: 0.1em; }
.pillar__body h3 { margin: 14px 0; }
.pillar__body p { color: var(--ink-soft); max-width: 52ch; }
.pillar__body .arrow-link { margin-top: 22px; }
.pillar__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pillar__list li { background: var(--paper); padding: 15px 18px; display: flex; gap: 14px; font-size: 14.5px; align-items: flex-start; }
.pillar__list .mono { color: var(--gold-deep); font-size: 11px; flex-shrink: 0; padding-top: 2px; min-width: 26px; }
.tag-name { font-family: var(--serif); font-style: italic; color: var(--gold-deep); }
@media (min-width: 900px) { .pillar { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } .pillar--flip .pillar__body { order: 2; } }

/* =========================================================================
   04 · HOUSE — company + the single stats home
   ========================================================================= */
.house { display: grid; gap: 44px; align-items: center; }
.house__media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.house__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) contrast(1.05) sepia(0.14) brightness(1.02); }
.house__media::after { content: ""; position: absolute; inset: 0; background: rgba(168,129,63,0.07); mix-blend-mode: multiply; }
.house__badge { position: absolute; left: 16px; bottom: 16px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: #fff; background: rgba(14,22,34,0.62); border: 1px solid rgba(255,255,255,0.2); padding: 7px 12px; border-radius: var(--r); backdrop-filter: blur(4px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 30px; }
.stat { background: var(--bone); padding: 20px 22px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 30px; display: block; letter-spacing: -0.02em; }
.stat span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .house { grid-template-columns: 1fr 1fr; gap: 60px; } }

/* =========================================================================
   05 · REQUEST — paths + form
   ========================================================================= */
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .h2, .section--navy .chapter__no { color: var(--on-navy); }
.section--navy .chapter__label, .section--navy .lede { color: var(--on-navy-mut); }
.section--navy .chapter__no { color: var(--gold); }

.paths { display: grid; gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }
.path { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 24px 26px; border: 1px solid var(--line-navy); border-radius: var(--r-lg); transition: background 260ms var(--ease-out), border-color 260ms var(--ease-out), transform 260ms var(--ease-out); }
.path:active { transform: var(--press); }
.path__idx { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.08em; }
.path__t { min-width: 0; }
.path__t h3 { color: var(--on-navy); font-size: clamp(19px, 2vw, 24px); }
.path__t p { color: var(--on-navy-mut); font-size: 14px; margin-top: 4px; }
.path__go { color: var(--gold); flex-shrink: 0; }
.path__go svg { width: 20px; height: 20px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .path:hover { background: var(--navy-2); border-color: var(--line-gold); } .path:hover .path__go svg { transform: translateX(4px); } }
@media (max-width: 620px) { .path { grid-template-columns: 1fr auto; } .path__idx { grid-column: 1 / -1; } }

.request-grid { display: grid; gap: 40px; }
.request-grid .lede { margin-top: 20px; }
.promise { margin-top: 28px; display: grid; gap: 13px; }
.promise div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--on-navy-mut); }
.promise svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.form__row { display: grid; gap: 20px; margin-bottom: 22px; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
/* 16px minimum on iOS Safari — anything smaller triggers a zoom on tap
   that never zooms back out. Matched on desktop for consistency. */
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 16px; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; transition: border-color 260ms var(--ease-out); }
.field input, .field select { padding: 11px 2px; }
.field textarea { border: 1px solid var(--line); padding: 12px; resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }
@media (min-width: 960px) { .request-grid { grid-template-columns: 0.92fr 1.08fr; align-items: center; } }

/* =========================================================================
   Footer
   ========================================================================= */
/* Footer — the back cover of the dossier */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--on-navy);
  padding-top: clamp(72px, 9vw, 130px);
  /* Clear the iOS home indicator on notched devices. */
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
}
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold) 22%, var(--line-gold) 78%, transparent); transform-origin: center; transition: transform 1100ms var(--ease-out); }
.site-footer.js-anim::before { transform: scaleX(0); }
.site-footer.js-anim.is-in::before { transform: scaleX(1); }
.footer__grid { display: grid; gap: 46px; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.2fr 1.8fr; gap: 64px; align-items: start; } }
.footer__eyebrow { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.footer__statement { font-family: var(--serif); font-weight: 400; font-size: clamp(23px, 2.9vw, 36px); line-height: 1.18; letter-spacing: -0.02em; color: var(--bone); margin-top: 20px; max-width: 16ch; }
.footer__mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--mono); font-size: clamp(15px, 1.5vw, 18px); color: var(--bone); border-bottom: 1px solid var(--line-gold); padding-bottom: 5px; transition: color 220ms var(--ease-out); }
.footer__mail svg { width: 17px; height: 17px; transition: transform 240ms var(--ease-out); }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
@media (min-width: 560px) { .footer__nav { grid-template-columns: repeat(3, 1fr); } }
.footer__col h3 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-mut); margin-bottom: 18px; }
.footer__col a { display: block; color: var(--bone); font-size: 14.5px; padding: 7px 0; opacity: 0.76; transition: opacity 200ms var(--ease-out), color 200ms var(--ease-out); }
.footer__colophon { position: relative; z-index: 2; margin-top: clamp(46px, 7vw, 92px); }
.footer__disclaimer { font-size: 12.5px; line-height: 1.7; color: rgba(236,230,218,0.55); padding: 24px 0; border-top: 1px solid rgba(236,230,218,0.12); max-width: 96ch; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 6px 0 0; font-family: var(--mono); font-size: 11.5px; color: rgba(236,230,218,0.6); }
.footer__legal { display: inline-flex; gap: 22px; }
.footer__word { position: relative; z-index: 1; margin-top: clamp(28px, 4vw, 60px); margin-bottom: clamp(-96px, -6.5vw, -34px); padding-left: var(--edge); font-family: var(--serif); font-weight: 300; font-size: clamp(92px, 25vw, 380px); line-height: 0.8; letter-spacing: -0.045em; color: rgba(236,230,218,0.08); white-space: nowrap; user-select: none; pointer-events: none; }
.footer__word b { font-weight: 300; color: rgba(203,162,74,0.2); }
@media (hover: hover) {
  .footer__mail:hover { color: var(--gold-bright); }
  .footer__mail:hover svg { transform: translateX(4px); }
  .footer__col a:hover { opacity: 1; color: var(--gold-bright); }
  .footer__legal a:hover { color: var(--bone); }
}

/* =========================================================================
   Product detail + Evidence sub-pages
   ========================================================================= */
.backlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); transition: gap 240ms var(--ease-out), color 240ms var(--ease-out); }
.backlink svg { width: 14px; height: 14px; }
@media (hover: hover) { .backlink:hover { gap: 12px; color: var(--ink); } }
.subpage-top { padding-top: clamp(48px, 8vw, 96px); }

.pd { display: grid; gap: 40px; align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.pd__copy .display { font-size: clamp(44px, 6.5vw, 88px); margin: 18px 0 0; }
.pd__lede { margin-top: 24px; }
.pd__hl { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.pd__hl li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-soft); align-items: flex-start; }
.pd__hl svg { width: 16px; height: 16px; color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }
.pd__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.pd__fig { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: radial-gradient(120% 100% at 50% 0%, #fff 0%, var(--bone-deep) 100%); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 32px; }
.pd__fig img { max-height: 100%; width: auto; object-fit: contain; }
.pd__figtag { position: absolute; left: 16px; bottom: 16px; z-index: 3; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); background: rgba(251,250,246,0.85); border: 1px solid var(--line-soft); padding: 6px 10px; border-radius: var(--r); }

/* Hero video variant — the portrait video fills the 4/5 frame naturally. */
.pd__fig--video { padding: 0; background: #1a1622; border-color: rgba(23,21,34,0.6); }
/* Same still-over-video treatment as the portfolio card (see .product__still). */
.pd__still {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(24px, 3.5vw, 44px) clamp(28px, 4vw, 56px) clamp(32px, 4vw, 56px);
  background: radial-gradient(120% 100% at 50% 38%, #2a2536 0%, #12111a 78%);
  transition: opacity 500ms var(--ease-out), transform 900ms var(--ease-out);
  pointer-events: none;
  will-change: opacity;
}
.pd__fig--video.is-playing .pd__still { opacity: 0; }
.pd__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* Matches the portfolio card grade — sepia base + gold hue shift so the
     detail hero reads as the same film. */
  filter: sepia(0.32) saturate(1.18) hue-rotate(-8deg) brightness(1.03) contrast(1.06);
}
.pd__fig--video::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(110% 85% at 50% 30%, transparent 52%, rgba(126, 96, 38, 0.38) 100%),
    linear-gradient(180deg, rgba(192, 154, 84, 0.08) 0%, transparent 34%, rgba(126, 96, 38, 0.18) 100%);
}
.pd__fig--video .pd__figtag {
  color: var(--on-navy); background: rgba(23,21,34,0.55); border-color: rgba(236,230,218,0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pd__fig-frame {
  position: absolute; inset: 14px; z-index: 3; pointer-events: none; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(192,154,84,0.32);
}
.pd__fig-frame::before, .pd__fig-frame::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold-bright); opacity: 0.9;
}
.pd__fig-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.pd__fig-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.pd__fig-tc {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--on-navy); background: rgba(23,21,34,0.55);
  border: 1px solid rgba(236,230,218,0.18);
  padding: 6px 10px 6px 9px; border-radius: var(--r);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pd__fig-rec {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 7px rgba(192,154,84,0.7);
  opacity: 0.4;
}
.pd__fig--video.is-playing .pd__fig-rec {
  animation: rec-pulse 1.8s var(--ease-in-out) infinite;
}
@media (prefers-reduced-motion: reduce) { .pd__fig-rec { animation: none; opacity: 0.9; } }
@media (min-width: 900px) { .pd { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }

.spec { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: clamp(24px, 3vw, 40px); }
.spec div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-size: 16px; color: var(--ink); }
@media (min-width: 640px) { .spec div { grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline; } }

.doclist { list-style: none; margin: clamp(20px,3vw,32px) 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.doclist li { background: var(--paper); padding: 16px 20px; display: flex; align-items: center; gap: 14px; font-size: 14.5px; }
.doclist svg { width: 16px; height: 16px; color: var(--gold-deep); flex-shrink: 0; }
.doclist .mono { margin-left: auto; font-size: 11px; color: var(--faint); }

.callout { border: 1px solid var(--line-gold); border-radius: var(--r-lg); padding: clamp(22px,3vw,32px); background: rgba(168,129,63,0.04); margin-top: clamp(24px,3vw,40px); }
.callout h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.callout p { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; max-width: 70ch; }
.callout .mono { display: block; margin-top: 14px; font-size: 11.5px; color: var(--gold-deep); letter-spacing: 0.04em; }

.relate { display: grid; gap: 18px; margin-top: clamp(24px,3vw,40px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .relate { grid-template-columns: repeat(3, 1fr); } }
.relate a { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: transform 260ms var(--ease-out), border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.relate a:active { transform: var(--press); }
@media (hover: hover) { .relate a:hover { transform: translateY(-3px); border-color: var(--line-gold); } }
.relate .mono { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.relate h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 8px 0 6px; }
.relate p { font-size: 13.5px; color: var(--muted); }

.cta-band { margin-top: clamp(40px,6vw,80px); border-radius: var(--r-lg); background: var(--navy); color: var(--on-navy); padding: clamp(32px,5vw,56px); display: grid; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--on-navy); }
.cta-band p { color: var(--on-navy-mut); margin-top: 12px; max-width: 44ch; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; } }

/* Evidence page method grid */
.method { display: grid; gap: 0 clamp(30px, 4vw, 56px); border-top: 1px solid var(--line); margin-top: clamp(28px,4vw,48px); }
@media (min-width: 700px) { .method { grid-template-columns: 1fr 1fr; } }
.method article { padding: clamp(24px,3vw,32px) 0; border-bottom: 1px solid var(--line-soft); }
.method .mono { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.method h3 { color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 12px 0 10px; }
.method p { color: var(--ink-soft); font-size: 14.5px; }

/* =========================================================================
   Entrance motion — deliberate, staggered within groups
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 720ms var(--ease-entrance), transform 920ms var(--ease-spring); transition-delay: calc(var(--i, 0) * 72ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { --i: 1; } .reveal[data-d="2"] { --i: 2; } .reveal[data-d="3"] { --i: 3; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .site-footer::before { transition: none !important; }
  .footer__word { transform: none !important; }
  body::before { display: none; }
  .cover__scroll i::after { animation: none; }
  .form__seal-mark, .form__seal-mark::after, .coa.is-stamped .coa__seal, .coa.is-stamped .coa__seal b { animation: none !important; }
}

/* =========================================================================
   Stage fallback: on small screens / reduced motion, un-pin and stack
   ========================================================================= */
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .stage { height: auto !important; }
  .stage__sticky { position: static; height: auto; padding-block: clamp(64px, 9vw, 96px); }
  .stage__grid { display: block; }
  .stage__canvas { display: none; }
  .stage__readout { position: static; margin-top: 28px; }
  .stage__intro { position: static; max-width: none; margin-bottom: 30px; }
  .stage__coa { position: static; transform: none; width: 100%; max-width: 460px; margin-top: 34px; }
  .stage__steps { display: none; }
  .coa-row { opacity: 1; transform: none; }
  .coa-row__pass { opacity: 1; }
  .coa.is-released .coa__seal, .stage__coa .coa__seal { opacity: 1; }
}

/* =========================================================================
   Review refinements — brand mark, mobile art-direction, form states
   ========================================================================= */
.brand__mark { height: 26px; width: auto; margin-right: 10px; flex-shrink: 0; align-self: center; display: block; }
.footer__brand .brand__mark { height: 30px; }

/* Magnetic CTA moves via inline transform from JS; keep return smooth */
.btn.is-magnetic { transition: transform 320ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out); }

/* Form validation */
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--error, #b3543f); }
.field__err { font-family: var(--mono); font-size: 11px; color: #b3543f; margin-top: 2px; min-height: 0; }
.form__ok { text-align: center; padding: 8px 0 0; }

/* Field pass-tick (COA language) */
.field--valid label::after { content: "\2713"; margin-left: 8px; color: var(--gold-deep); font-family: var(--sans); font-weight: 700; }

/* Submit success — the dossier is sealed */
.form__seal { display: none; flex-direction: column; align-items: center; text-align: center; padding: 26px 0 8px; outline: none; }
.form.is-sent .form__row, .form.is-sent button[type="submit"], .form.is-sent .form__note { display: none; }
.form.is-sent .form__seal { display: flex; }
.form__seal-mark { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-gold); display: inline-flex; align-items: center; justify-content: center; color: var(--gold-deep); }
.form__seal-mark svg { width: 26px; height: 26px; }
.form__seal-mark::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.form.is-sent .form__seal-mark { animation: sealStamp 620ms var(--ease-out) both; }
.form.is-sent .form__seal-mark::after { animation: sealRing 800ms var(--ease-out) 170ms both; }
.form__seal-title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin-top: 20px; color: var(--ink); }
.form__seal-sub { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-top: 10px; max-width: 40ch; }
@keyframes sealStamp { 0% { transform: scale(1.4); opacity: 0; } 55% { transform: scale(0.94); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes sealRing { 0% { transform: scale(0.75); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }

/* When the mobile menu is open we lock the body so the page doesn't scroll
   underneath the drawer (main.js toggles the class alongside .mobile-nav). */
body.nav-open { overflow: hidden; touch-action: none; }

/* Mobile art-direction */
@media (max-width: 620px) {
  /* declutter header: the hero has its own prominent CTA + the menu carries it */
  .header-actions .btn--gold { display: none; }
  /* pull cover content up, kill the dead band above the eyebrow */
  .cover { min-height: auto; align-items: flex-start; padding-block: clamp(84px, 15vh, 120px) 44px; }
  .cover__cta .btn { width: 100%; justify-content: flex-start; }
  .cover__cta { max-width: 340px; }
  /* copy stacks at the top on phones, so bias the frame down-right and top-weight the scrim */
  .cover__video { object-position: 70% 38%; }
  .cover__scrim { background:
    linear-gradient(180deg, rgba(241,237,228,0.95) 0%, rgba(241,237,228,0.74) 40%, rgba(241,237,228,0.30) 74%, rgba(241,237,228,0.08) 100%); }
}
@media (max-width: 400px) {
  .display { font-size: 42px; }
  .site-header__inner { gap: 12px; }
}

/* =========================================================================
   Before / After — split-face documentary plate.
   Principles: image owns the frame (no crop), width is constrained so a
   face doesn't billboard, labels are restrained, caption breathes below.
   ========================================================================= */
.ba-figure {
  margin: clamp(28px, 4vw, 52px) auto 0;
  /* An intimate portrait — sized for a magazine column, not a poster.
     Even on wide monitors the plate stays hand-held. */
  max-width: 520px;
  padding: 0;
}
.ba-plate {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #efe9dd;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 24px 60px -32px rgba(23,24,28,0.28);
}
.ba-image {
  display: block;
  width: 100%;
  height: auto;
  /* Natural aspect ratio. No cover, no forced height, no object-position. */
}
.ba-tag {
  position: absolute;
  bottom: clamp(16px, 2.4vw, 26px);
  padding: 7px 13px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.ba-tag--l {
  left: clamp(16px, 2.4vw, 26px);
  color: rgba(255,255,255,0.94);
  background: rgba(20, 21, 26, 0.58);
  border: 1px solid rgba(255,255,255,0.12);
}
.ba-tag--r {
  right: clamp(16px, 2.4vw, 26px);
  color: var(--gold-deep);
  background: rgba(241, 237, 228, 0.86);
  border: 1px solid rgba(168, 129, 63, 0.42);
  box-shadow: 0 0 0 1px rgba(168, 129, 63, 0.14);
}
.ba-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 4px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.ba-cap-mono {
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ba-cap-note {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11.5px;
  max-width: 62ch;
  color: var(--muted);
}

@media (max-width: 540px) {
  .ba-tag { font-size: 9.5px; padding: 6px 11px 5px; letter-spacing: 0.15em; }
}

/* =========================================================================
   Careers — stat strip + role cards + hiring steps
   ========================================================================= */
.career-stats {
  list-style: none;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 640px;
}
.career-stats li {
  background: var(--bone);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.career-stats b {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 46px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.career-stats span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 540px) {
  .career-stats li { padding: 16px 18px; }
}

.roles {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(20px, 2.6vw, 28px);
}
.role {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(24px, 3vw, 38px);
  transition: border-color 260ms var(--ease-out), transform 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .role:hover { border-color: var(--line-gold); }
}

.role__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.role__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
}
.role__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 0;
  line-height: 1.15;
}
.role__apply { flex-shrink: 0; }
.role__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 64ch;
}

.role__grid {
  display: grid;
  gap: 22px 44px;
  margin-bottom: 26px;
}
@media (min-width: 720px) {
  .role__grid { grid-template-columns: 1fr 1fr; }
}
.role__block h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.role__block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.role__block li {
  padding-left: 20px;
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.role__block li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 9px; height: 1px;
  background: var(--gold);
}

.role__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.role__loc {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 0;
}

/* Hiring steps — a horizontal timeline on desktop, stacked on mobile. */
.hiring {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 720px) {
  .hiring { grid-template-columns: repeat(4, 1fr); }
}
.hiring__step {
  background: var(--bone);
  padding: clamp(20px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hiring__step .mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hiring__step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 4px 0 0;
}
.hiring__step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

/* Paper-tinted section variant used on the careers page + product pages */
.section--paper { background: var(--paper); }
