/* =========================================================
   SANDRA SURGICAL — Design System
   "SSW Letterhead": light clinical luxury. Indigo chrome (header, footer),
   red actions, indigo-ink type. Colours sampled from the company letterhead.
   Token names are historical: --obsidian = page background, --ivory = ink.
   ========================================================= */

:root {
  /* — Color — */
  --obsidian: #f7f7fb;          /* page: clinical white, faint indigo cast */
  --graphite: #eeedf8;          /* raised surface: indigo mist */
  --slate: #ffffff;             /* cards */
  --hairline: rgba(23, 20, 63, 0.1);
  --hairline-strong: rgba(23, 20, 63, 0.22);
  --ivory: #17143f;             /* primary text: indigo ink */
  --ivory-dim: rgba(23, 20, 63, 0.7);
  --ivory-faint: rgba(23, 20, 63, 0.55);
  --indigo: #3b309e;            /* SSW letterhead indigo: header, footer */
  --indigo-deep: #2a2178;
  --coral: #ffb4a8;             /* red-family accent text on indigo (5.9:1) */
  --ice: var(--indigo);         /* accent on light surfaces */
  --ice-deep: var(--indigo-deep);
  --red: #d42a1a;               /* actions: letterhead red, deepened for 5:1 on white */
  --red-deep: #a81f10;
  --stripe: linear-gradient(90deg, var(--indigo) 0 68%, var(--red) 68% 100%); /* letterhead rule */
  --shadow: 0 30px 60px -30px rgba(23, 20, 63, 0.25), 0 2px 6px rgba(23, 20, 63, 0.04);
  --duo: linear-gradient(115deg, #3b309e 0%, #8b2d6a 25%, #d42a1a 50%, #8b2d6a 75%, #3b309e 100%);
  --steel: linear-gradient(115deg, #1c2638 0%, #7d8aa0 22%, #2f3a4e 40%, #9aa6b8 58%, #26303f 78%, #5d6a80 100%); /* dark steel: text on light */
  --steel-plate: linear-gradient(115deg, #8a9099 0%, #eef0f2 22%, #a2a8af 40%, #fafbfc 58%, #b0b6bc 78%, #e2e5e8 100%); /* bright metal surface */

  /* — Type — */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --t-hero: clamp(3.2rem, 9.4vw, 9.5rem);
  --t-h2: clamp(2.5rem, 5.6vw, 5.4rem);
  --t-h3: clamp(1.5rem, 2.1vw, 2rem);
  --t-lede: clamp(1.05rem, 1.25vw, 1.2rem);
  --t-body: 1rem;
  --t-mono: 0.72rem;

  /* — Space & layout — */
  --gutter: clamp(16px, 4vw, 64px);
  --section: clamp(96px, 16vh, 200px);
  --max: 1440px;
  --radius: 22px;

  /* — Motion — */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* expo-out: reveals */
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);    /* curtains, page moves */
  --dur: 0.9s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font: 400 var(--t-body)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--ice); color: var(--obsidian); }
:focus-visible { outline: 1px solid var(--ice); outline-offset: 4px; border-radius: 4px; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 999; padding: 10px 16px; background: var(--ivory); color: var(--obsidian); border-radius: 999px; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font: 500 var(--t-mono)/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-faint); }
em { font-style: italic; font-family: var(--f-display); font-weight: 300; }
.h2 { font: 300 var(--t-h2)/0.98 var(--f-display); letter-spacing: -0.02em; margin: 0 0 0.4em; }
.h2 em { color: var(--red); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.7em; font-size: 0.82rem; color: var(--ivory-dim); margin: 0 0 2rem; letter-spacing: 0.02em; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
[data-ph] { /* placeholder content — confirm before launch */ }

/* ---------- Stage / atmosphere ---------- */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.stage-fallback { position: fixed; inset: 0; z-index: 0; display: none; background: radial-gradient(60% 50% at 70% 40%, rgba(59, 48, 158, 0.12), transparent 70%); }
.no-webgl .stage-fallback { display: block; }
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.035; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 0.8s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); } }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(59, 48, 158, 0.07) 100%); }
main, .footer { position: relative; z-index: 2; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.preloader__curtain { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--obsidian); z-index: -1; }
.preloader__curtain--top { top: 0; }
.preloader__curtain--bottom { bottom: 0; }
.preloader__inner { width: min(360px, 80vw); text-align: center; }
.preloader__mark { display: block; font: 300 5rem/1 var(--f-display); font-style: italic; background: var(--steel); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 2.2s linear infinite; margin-bottom: 2rem; }
@keyframes sheen { to { background-position: -200% 0; } }
.preloader__line { height: 1px; background: var(--hairline); overflow: hidden; }
.preloader__line span { display: block; height: 100%; width: 100%; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.preloader__meta { display: flex; justify-content: space-between; margin-top: 14px; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(23, 20, 63, 0.3); display: grid; place-items: center; transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), margin 0.5s var(--ease-out), background 0.5s, border-color 0.5s; }
.cursor__label { font: 500 0.62rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--obsidian); opacity: 0; transition: opacity 0.3s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ice); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--ivory); border-color: transparent; }
.cursor.is-view .cursor__label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.8em; height: 58px; padding: 0 30px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease-out), border-color 0.5s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform 0.6s var(--ease-out); }
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(212, 42, 26, 0.7); }
.btn--primary::before { background: var(--red-deep); }
.btn--ghost { border: 1px solid var(--red); color: var(--red); background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); }
.btn--ghost::before { background: var(--red); }
.btn--ghost:hover { color: #fff; border-color: var(--red); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 0.82rem; }
.btn--block { width: 100%; }
.round-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--hairline-strong); display: grid; place-items: center; transition: background 0.4s, border-color 0.4s; }
.round-btn svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.round-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.link-line { position: relative; display: inline-block; font-size: 1.05rem; padding-bottom: 4px; }
.link-line::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0.25); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.link-line:hover::after { transform: scaleX(1); }

/* ---------- Header: contact top bar + indigo main bar + letterhead red rule ---------- */
.nav { position: fixed; z-index: 100; top: 0; left: 0; right: 0; transition: transform 0.6s var(--ease-out); }
.nav.is-hidden { transform: translateY(-115%); }
.topbar { background: var(--indigo-deep); color: var(--ivory-dim); font-size: 0.8rem; max-height: 42px; overflow: hidden; transition: max-height 0.5s var(--ease-out), opacity 0.4s; }
.nav.is-scrolled .topbar { max-height: 0; opacity: 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 42px; }
.topbar__contacts { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.topbar__contacts li, .topbar__contacts a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar a { transition: color 0.3s, background 0.3s; }
.topbar a:hover { color: #fff; }
.topbar svg, .mobile-menu__contact svg { width: 15px; height: 15px; fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topbar__tag { margin: 0; font: 500 0.64rem/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-faint); white-space: nowrap; }
.topbar__wa { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; white-space: nowrap; }
.topbar__wa:hover { background: rgba(255, 255, 255, 0.2); }
.mainbar { position: relative; background: var(--indigo); box-shadow: 0 20px 40px -24px rgba(23, 20, 63, 0.7); }
.mainbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--red); }
.mainbar::before { content: ""; position: absolute; right: 0; bottom: -15px; width: clamp(90px, 14vw, 200px); height: 15px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%); }
.mainbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 80px; transition: height 0.5s var(--ease-out); }
.nav.is-scrolled .mainbar__inner { height: 66px; }
.nav__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav__badge { display: grid; place-items: center; width: 62px; height: 40px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4); flex: none; }
.nav__logo { width: 46px; height: 29px; color: var(--indigo); }
.nav__word { display: grid; gap: 5px; line-height: 1; min-width: 0; }
.nav__word strong { font: 700 1.14rem/1 var(--f-body); letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.nav__word strong b { font-weight: 700; color: var(--coral); }
.nav__word small { font: 500 0.58rem/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-faint); white-space: nowrap; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 0.9rem; font-weight: 500; color: var(--ivory-dim); }
.nav__links a { position: relative; padding: 8px 0; transition: color 0.3s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header__cta { box-shadow: 0 12px 26px -12px rgba(212, 42, 26, 0.95); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline-strong); position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ivory); transition: transform 0.5s var(--ease-out); }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 110px var(--gutter) var(--gutter); overflow-y: auto; }
.mobile-menu > a { font: 400 clamp(2.3rem, 10vw, 3.4rem)/1.15 var(--f-display); }
.mobile-menu__contact { display: grid; gap: 12px; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--hairline); font-size: 0.95rem; color: var(--ivory-dim); }
.mobile-menu__contact a { display: inline-flex; align-items: center; gap: 10px; }
.mobile-menu[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 190px; padding-bottom: 110px; }
.hero__title { font: 300 var(--t-hero)/0.92 var(--f-display); letter-spacing: -0.035em; margin: 0 0 2.2rem; max-width: 11ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title em { background: var(--duo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; padding-right: 0.06em; }
.hero__lede { max-width: 30rem; font-size: var(--t-lede); color: var(--ivory-dim); margin: 0 0 2.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__specs { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; gap: clamp(20px, 4vw, 64px); justify-content: flex-end; font-size: 0.82rem; color: var(--ivory-dim); }
.spec { display: grid; gap: 6px; padding-left: 14px; border-left: 1px solid var(--hairline-strong); }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 36px; display: flex; align-items: center; gap: 14px; }
.scroll-cue__line { width: 64px; height: 1px; background: var(--hairline-strong); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--ivory); animation: cue 2.2s var(--ease-inout) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Trust marquee ---------- */
.trust { border-block: 1px solid var(--hairline); padding: 26px 0; overflow: hidden; background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(6px); }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 38s linear infinite; font: 300 1.6rem var(--f-display); color: var(--ivory-dim); white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: 0.7rem; color: var(--red); }
.trust:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: var(--section); }
.manifesto__text { font: 300 clamp(1.9rem, 3.9vw, 3.6rem)/1.18 var(--f-display); letter-spacing: -0.015em; max-width: 22ch; margin: 0; }
.manifesto__text .w { opacity: 0.14; transition: none; }
.manifesto__sign { margin-top: 3.5rem; display: flex; align-items: baseline; gap: 18px; }
.script { font: italic 300 1.6rem var(--f-display); color: var(--ice); }

/* ---------- Collections ---------- */
.collections { padding-top: var(--section); padding-bottom: 60px; }
.collections__head { margin-bottom: 4rem; }
.collections__viewport { overflow: hidden; }
.collections__track { display: flex; gap: 22px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.card { position: relative; width: clamp(290px, 27vw, 400px); aspect-ratio: 3 / 4.1; padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(238, 237, 248, 0.92)); border: 1px solid var(--hairline); box-shadow: var(--shadow); backdrop-filter: blur(14px); display: flex; flex-direction: column; overflow: hidden; transform-style: preserve-3d; will-change: transform; transition: border-color 0.5s; }
.card:hover { border-color: var(--hairline-strong); }
.card h3 { font: 400 var(--t-h3)/1.1 var(--f-display); margin: auto 0 0.5rem; transform: translateZ(40px); }
.card p { font-size: 0.9rem; color: var(--ivory-dim); margin: 0 0 1.4rem; transform: translateZ(26px); }
.card__index { transform: translateZ(30px); }
.card__meta { padding-top: 16px; border-top: 1px solid var(--hairline); }
.card__art { position: absolute; inset: 14% 8% 38%; display: grid; place-items: center; transform: translateZ(60px); pointer-events: none; }
.card__art svg { width: 100%; height: 100%; fill: none; stroke: url(#steelStroke); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 18px 24px rgba(23, 20, 63, 0.18)); transition: transform 1.2s var(--ease-out); }
.card:hover .card__art svg { transform: rotate(-8deg) scale(1.06); }
.card__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(59, 48, 158, 0.08), transparent 40%); opacity: 0; transition: opacity 0.5s; z-index: 2; }
.tilt:hover .card__glare { opacity: 1; }
.card--cta { justify-content: flex-end; gap: 18px; background: linear-gradient(160deg, rgba(212, 42, 26, 0.12), rgba(255, 255, 255, 0.95)); }
.card--cta h3 { margin: 0 0 12px; font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
.card--cta em { color: var(--red); }
.collections__progress { margin-top: 48px; }
.collections__progress .bar { display: block; height: 1px; background: var(--hairline); }
.collections__progress .bar span { display: block; height: 100%; background: var(--ivory); transform-origin: left; transform: scaleX(0); }

/* ---------- Craft ---------- */
.craft { padding-block: var(--section); }
.craft__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 8vw, 140px); }
.craft__sticky { position: sticky; top: 18vh; align-self: start; }
.craft__counter { margin-top: 3rem; display: flex; align-items: flex-end; gap: 12px; }
.craft__num { display: block; height: 1em; overflow: hidden; font: 300 clamp(6rem, 13vw, 12rem)/1 var(--f-display); background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.craft__num-roll { display: flex; flex-direction: column; transition: transform 0.9s var(--ease-out); }
.craft__num-roll span { height: 1em; }
.craft__steps { list-style: none; margin: 0; padding: 30vh 0 20vh; display: grid; gap: 34vh; }
.step { max-width: 30rem; opacity: 0.18; transition: opacity 0.8s var(--ease-out); padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.step.is-active { opacity: 1; }
.step__k { color: var(--ice); }
.step h3 { font: 400 clamp(1.8rem, 2.8vw, 2.6rem)/1.08 var(--f-display); margin: 0.7rem 0 1rem; }
.step p { color: var(--ivory-dim); margin: 0; }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); padding-block: 80px var(--section); }
.stat { padding: 24px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--hairline); }
.stat__n { font: 300 clamp(3.4rem, 6vw, 6rem)/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__u { font: italic 300 1.5rem var(--f-display); color: var(--red); margin-left: 6px; }
.stat p { color: var(--ivory-dim); font-size: 0.9rem; margin: 12px 0 0; max-width: 16rem; }

/* ---------- Materials ---------- */
.materials { padding-block: var(--section); background: linear-gradient(180deg, transparent, rgba(238, 237, 248, 0.9) 20%, rgba(238, 237, 248, 0.9) 80%, transparent); }
.materials__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: end; }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2rem; border-bottom: 1px solid var(--hairline); }
.tab { padding: 14px 16px; font-size: 0.92rem; color: var(--ivory-faint); transition: color 0.4s; }
.tab.is-active, .tab:hover { color: var(--ivory); }
.tabs__ink { position: absolute; bottom: -1px; left: 0; height: 1px; background: linear-gradient(90deg, var(--ice), var(--red)); transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out); }
.panel__lede { font: 300 clamp(1.4rem, 2.2vw, 2rem)/1.3 var(--f-display); margin: 0 0 2.4rem; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--hairline); }
.specs div { padding: 18px 16px 0 0; }
.specs dd { margin: 8px 0 0; font-size: 1.05rem; }
.panel.is-entering > * { animation: rise 0.9s var(--ease-out) both; }
.panel.is-entering > *:nth-child(2) { animation-delay: 0.08s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Voices ---------- */
.voices { padding-block: var(--section); text-align: center; }
.voices .eyebrow { justify-content: center; }
.voices__stage { display: grid; min-height: 18rem; align-items: center; }
.voice { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), visibility 0.9s; }
.voice.is-active { opacity: 1; visibility: visible; transform: none; }
.voice blockquote { font: 300 clamp(1.8rem, 3.6vw, 3.4rem)/1.18 var(--f-display); letter-spacing: -0.015em; margin: 0 auto 2rem; max-width: 26ch; }
.voice figcaption { display: grid; gap: 6px; }
.voices__nav { margin-top: 3rem; display: flex; align-items: center; justify-content: center; gap: 28px; }

/* ---------- OEM ---------- */
.oem { padding-block: var(--section); }
.oem__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.oem__copy > p:not(.eyebrow) { color: var(--ivory-dim); max-width: 32rem; font-size: var(--t-lede); }
.oem__list { list-style: none; padding: 0; margin: 2.4rem 0 0; }
.oem__list li { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-top: 1px solid var(--hairline); }
.oem__visual { position: relative; aspect-ratio: 1; border-radius: 28px; background: radial-gradient(80% 70% at 30% 20%, rgba(59, 48, 158, 0.12), transparent 60%), var(--graphite); border: 1px solid var(--hairline); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; transform-style: preserve-3d; }
.etch { width: 82%; display: grid; gap: 18px; transform: translateZ(50px); }
.etch__input { background: transparent; border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 12px 18px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.etch__input:focus { border-color: var(--ice); outline: none; }
.etch__blade { position: relative; height: 120px; border-radius: 60px 14px 14px 60px; background: var(--steel-plate); background-size: 220% 100%; animation: sheen 9s linear infinite; display: flex; flex-direction: column; justify-content: center; padding-left: 52px; box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.7), inset 0 -6px 14px rgba(0, 0, 0, 0.25), 0 30px 50px -10px rgba(23, 20, 63, 0.3); }
.etch__text { font: 500 clamp(1rem, 2.4vw, 1.5rem) var(--f-body); letter-spacing: 0.28em; color: rgba(25, 28, 32, 0.78); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etch__sub { color: rgba(25, 28, 32, 0.6); font-size: 0.58rem; margin-top: 6px; }
.etch__hint { text-align: center; }

/* ---------- Quote form ---------- */
.quote { padding-block: var(--section); }
.quote__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 7vw, 120px); padding: clamp(28px, 5vw, 72px); border-radius: 32px; border: 1px solid var(--hairline); background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(238, 237, 248, 0.94)); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.quote__intro > p:not(.eyebrow) { color: var(--ivory-dim); max-width: 28rem; }
.quote__direct { display: grid; gap: 12px; margin-top: 2.4rem; justify-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; align-content: start; }
.field { position: relative; }
.field--full, .chips, .form .btn, .form__note { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hairline-strong); padding: 26px 0 10px; font-size: 1rem; resize: vertical; transition: border-color 0.4s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ice); }
.field label { position: absolute; left: 0; top: 24px; color: var(--ivory-faint); pointer-events: none; transform-origin: left; transition: transform 0.5s var(--ease-out), color 0.4s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(0.78); color: var(--ice); }
.field.is-invalid input { border-color: #b5121b; }
.field.is-invalid label { color: #b5121b; }
.chips { border: 0; padding: 0; margin: 12px 0 4px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { margin-bottom: 14px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--hairline-strong); font-size: 0.85rem; color: var(--ivory-dim); transition: all 0.4s var(--ease-out); }
.chips input:checked + span { background: var(--ice); color: #fff; border-color: var(--ice); }
.chips input:focus-visible + span { outline: 1px solid var(--ice); outline-offset: 3px; }
.form .btn { margin-top: 16px; }
.form__note { text-align: center; }
.form.is-sent .form__note { color: var(--ice); }

/* ---------- Footer ---------- */
.footer { padding-top: 100px; border-top: 1px solid var(--hairline); overflow: hidden; background: var(--obsidian); }
.footer__top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__top p:not(.mono) { color: var(--ivory-dim); line-height: 1.9; margin-top: 10px; }
.footer__top a:hover { color: var(--ivory); }
.footer__mark { text-align: center; line-height: 0.78; margin-top: 60px; }
.footer__mark span { display: inline-block; font: 300 clamp(5rem, 25vw, 26rem)/0.8 var(--f-display); letter-spacing: -0.04em; background: var(--steel); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 14s linear infinite; }
.footer__base { display: flex; justify-content: space-between; padding-block: 28px; border-top: 1px solid var(--hairline); }


/* ---------- Brand chrome: indigo header & footer, letterhead accents ----------
   Inside indigo areas the ink tokens are flipped to white, so every child
   rule (links, .mono labels, hairlines, focus rings) adapts automatically.
   Rule: never red TEXT on indigo (2:1) — red only as solid fills/stripes. */
.nav, .mobile-menu, .footer, .card--cta {
  --ivory: #ffffff;
  --ivory-dim: rgba(255, 255, 255, 0.8);
  --ivory-faint: rgba(255, 255, 255, 0.62);
  --hairline: rgba(255, 255, 255, 0.16);
  --hairline-strong: rgba(255, 255, 255, 0.34);
  --ice: #ffffff;
  color: var(--ivory);
}

.mobile-menu { background: linear-gradient(160deg, var(--indigo), var(--indigo-deep)); }
.mobile-menu__cta { color: var(--coral); }

/* Footer: indigo slab, letterhead stripe on top, slanted red tab top-right */
.footer { background: var(--indigo); border-top: 0; padding-top: 120px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px; background: linear-gradient(var(--red) 0 5px, #fff 5px 7px, transparent 7px); }
.footer::after { content: ""; position: absolute; top: 0; right: 0; width: clamp(120px, 22vw, 320px); height: 46px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%); }
.footer__mark span { background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.42) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 180, 168, 0.35) 75%, rgba(255, 255, 255, 0.1) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; }
.footer__base { border-top-color: rgba(255, 255, 255, 0.16); }

/* Section rhythm: red index numbers, indigo figures */
.eyebrow > .mono:first-child { color: var(--red); }
.stat__n { color: var(--indigo); }
.trust { background: var(--graphite); }
.marquee__track { color: var(--indigo); }

/* Feature surfaces carry the letterhead rule */
.quote__grid { position: relative; overflow: hidden; }
.quote__grid::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--stripe); }
.card--cta { background: linear-gradient(160deg, var(--indigo), var(--indigo-deep)); border-color: transparent; }
.card--cta em { color: var(--coral); }
.card--cta::after { content: ""; position: absolute; top: 0; right: 0; width: 42%; height: 26px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.oem__visual { border-top: 0; }
.oem__visual::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--stripe); z-index: 3; }

/* ---------- Professional pass: hierarchy, rhythm, legibility ----------
   - Display type moves from 300 to 400: hairline serifs wash out on white.
   - Section labels become small caps-style kickers with a red index + rule.
   - Page rhythm alternates white / indigo mist / one full-bleed indigo band
     (numbers), so the eye gets a clear beat between sections.
   - Grain overlay removed: texture reads as dirt on a clinical white page. */
body { font-size: 1.02rem; }
.h2 { font-weight: 400; letter-spacing: -0.025em; max-width: 16ch; }
.h2 em { font-weight: 400; }
.hero__title { font-weight: 400; font-size: clamp(3rem, 7.8vw, 8.2rem); letter-spacing: -0.03em; }
.hero__lede { color: var(--ivory-dim); font-size: clamp(1.08rem, 1.3vw, 1.25rem); }
.manifesto__text { font-weight: 400; }

.eyebrow:not(.reveal-up) { font: 600 0.74rem/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo); gap: 0.6em; }
.eyebrow:not(.reveal-up) > .mono:first-child { font-size: 0.74rem; letter-spacing: 0.1em; color: var(--red); display: inline-flex; align-items: center; gap: 12px; }
.hero .eyebrow { font-weight: 600; color: var(--indigo); padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--hairline); font-size: 0.8rem; }

.btn { font-weight: 600; height: 56px; }
.btn--sm { height: 44px; }
.btn--ghost { background: #fff; }

/* Numbers: full-bleed indigo band */
.numbers { position: relative; border-top: 0; padding-block: clamp(64px, 9vw, 110px); margin-block: 0 var(--section); background: var(--indigo); box-shadow: 0 0 0 100vmax var(--indigo); clip-path: inset(0 -100vmax);
  --ivory: #fff; --ivory-dim: rgba(255, 255, 255, 0.8); --hairline: rgba(255, 255, 255, 0.18); color: #fff; }
.numbers::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: 0; height: 4px; background: var(--red); }
.numbers .stat__n { color: #fff; }
.numbers .stat__u { color: var(--coral); }

/* Craft: active step gets the red spine */
.step { border: 1px solid var(--hairline); border-left: 3px solid transparent; transition: opacity 0.8s var(--ease-out), border-color 0.6s; }
.step.is-active { border-left-color: var(--red); }
.step__k { color: var(--red); font-weight: 600; }

/* Collections */
.card__index { color: var(--red); }
.card h3 { font-weight: 500; color: var(--ivory); }
.card__meta { color: var(--indigo); }

/* Materials tabs */
.tab { font-weight: 500; }
.tab.is-active { color: var(--indigo); }
.tabs__ink { height: 2px; bottom: -1px; }

/* Testimonials: oversized red quote mark as an anchor */
.voices__stage { position: relative; }
.voices__stage::before { content: "\201C"; position: absolute; top: -0.35em; left: 50%; transform: translateX(-50%); font: 400 9rem/1 var(--f-display); color: var(--red); opacity: 0.16; pointer-events: none; }
.voice blockquote { font-weight: 400; }
.voice figcaption > span:first-child { font-weight: 600; color: var(--indigo); }

/* OEM + quote copy */
.oem__list li { align-items: baseline; }
.oem__list .mono { color: var(--red); }
.quote__direct .link-line { color: var(--indigo); font-weight: 500; }

/* Footer links */
.footer__top a { transition: color 0.3s; }
.footer__top a:hover { color: var(--coral); }

/* ---------- Reveal primitives (JS sets initial state; no-JS shows all) ---------- */
.reveal-words .w, .split-scrub .w { display: inline-block; }
.reveal-words .wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .topbar__tag { display: none; }
}
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .craft__inner, .materials__grid, .oem__grid, .quote__grid { grid-template-columns: 1fr; }
  .craft__sticky { position: relative; top: 0; }
  .craft__counter { display: none; }
  .craft__steps { padding: 6vh 0 0; gap: 24px; }
  .step { opacity: 1; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .collections__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .collections__viewport::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; width: 78vw; }
  .collections__progress { display: none; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .header__cta { display: none; }
  .mainbar__inner, .nav.is-scrolled .mainbar__inner { height: 68px; }
  .hero { padding-top: 130px; }
}
@media (max-width: 640px) {
  .hero__specs { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .form { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); padding-top: 32px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; gap: 12px; }
  .oem__list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (max-width: 420px) {
  .nav__word small { display: none; }
  .nav__word strong { font-size: 0.92rem; }
  .nav__badge { width: 52px; height: 34px; }
  .nav__logo { width: 40px; height: 25px; }
  .nav__brand { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .manifesto__text .w, .step { opacity: 1 !important; }
}
