/* ==========================================================================
   Trenon — homepage styles
   Design tokens are reconstructed from brief.md (Carbon dark sections, Geist
   and Geist Mono, hairlines, zero radius, no shadows or gradients, status
   colours: green verified / amber attention / red stop, blue signal).
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --paper: #FFFFFF;
  --paper-2: #F4F4F2;
  --carbon: #1E1E1E;
  --carbon-2: #262626;

  /* ink */
  --ink: #111111;
  --ink-2: #4A4A48;
  --ink-3: #5F5F5C;
  --ink-inv: #F2F2EF;
  --ink-inv-2: #B8B8B4;
  --ink-inv-3: #8C8C88;

  /* hairlines */
  --line: rgba(17, 17, 17, 0.16);
  --line-strong: rgba(17, 17, 17, 0.9);
  --line-inv: rgba(255, 255, 255, 0.18);
  --line-inv-strong: rgba(255, 255, 255, 0.9);

  /* signal + status */
  --signal: #2F6BFF;
  --ok: #1F8F52;
  --ok-inv: #3CC97A;
  --attn: #B87400;
  --attn-inv: #F2B33D;
  --stop: #CF3A2C;
  --stop-inv: #FF5A47;

  /* type */
  --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* layout */
  --wrap: 1360px;
  --gutter: 32px;
  --col-gap: 32px;
  --section: clamp(72px, 9vw, 128px);
  --section-inner: clamp(44px, 5vw, 72px);

  --dur: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* contextual (light default) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --hair: var(--line);
  --hair-strong: var(--line-strong);
  --c-ok: var(--ok);
  --c-stop: var(--stop);
  --c-attn: var(--attn);
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0, "cv01" 1;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; font-size: 14px;
}
.skip:focus { top: 16px; }

/* ----------------------------------------------------------- utilities */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.label { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 20px;
}
.body-lg { font-size: 21px; line-height: 1.42; font-weight: 300; color: var(--fg); letter-spacing: -0.004em; }
.body { font-size: 17px; line-height: 1.55; color: var(--fg-2); }
.body-lg + .body, .body + .body, .body-lg + .body-lg { margin-top: 18px; }
.footnote { margin-top: 28px; font-size: 15px; line-height: 1.5; color: var(--fg-3); max-width: 72ch; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 8px 2px;
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-2); border: 1px solid var(--hair); line-height: 1.2;
}

/* ----------------------------------------------------------- headings */
h1 {
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.lead {
  margin-top: 26px;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 300;
  color: var(--fg-2);
  max-width: 34ch;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0; text-transform: none;
  border: 1px solid var(--line-strong); color: var(--ink); background: transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--lg { height: 52px; padding: 0 26px; }
.btn__arrow { position: relative; display: inline-block; width: 12px; height: 12px; margin-left: 2px; transition: transform var(--dur) var(--ease); }
.btn__arrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.btn__arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: #000; border-color: #000; }
.btn--invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn--invert:hover { background: var(--ink-inv); border-color: var(--ink-inv); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; height: 52px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  color: var(--fg); border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease);
}
.link-arrow::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--fg); }
.link-arrow:hover::after { transform: rotate(45deg) translate(1px, 1px); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: var(--paper);
  box-shadow: inset 0 -1px 0 0 var(--line); /* hairline inside the 64px, so the hero starts at the very top */
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* Over the hero: transparent bar, inverse text, no second call to action. */
.js .nav.is-on-hero:not([data-open="true"]) { background: transparent; box-shadow: none; }
.js .nav.is-on-hero:not([data-open="true"]) .lockup__word,
.js .nav.is-on-hero:not([data-open="true"]) .nav__links a:not(.btn) { color: var(--ink-inv); }
.js .nav.is-on-hero:not([data-open="true"]) .nav__links a:not(.btn):hover { color: #fff; }
.js .nav.is-on-hero:not([data-open="true"]) .nav__toggle span { background: var(--ink-inv); }
.js .nav.is-on-hero .nav__cta { opacity: 0; pointer-events: none; }
/* Scrolled within the hero: the bar takes a carbon ground so the copy never runs under the links. */
.js .nav.is-on-hero.is-scrolled:not([data-open="true"]) { background: rgba(30, 30, 30, .94); box-shadow: inset 0 -1px 0 0 var(--line-inv); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; height: 30px; }
.lockup__mark { width: 30px; height: 30px; flex: none; }
.lockup__t { display: none; width: auto; height: 26px; flex: none; margin-left: 2px; }
.js .nav.is-on-hero:not([data-open="true"]) .lockup__mark,
.js .nav.is-on-hero:not([data-open="true"]) .lockup__word { display: none; }
.js .nav.is-on-hero:not([data-open="true"]) .lockup__t { display: block; }
.lockup__word { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a:not(.btn) {
  font-size: 15px; font-weight: 400; color: var(--ink-2); letter-spacing: -0.005em;
  transition: color var(--dur) var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__cta { transition: opacity var(--dur) var(--ease); }
.nav.is-at-pilot .nav__cta { opacity: 0; pointer-events: none; }
.nav__cta-mobile { display: none; }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform var(--dur) var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: -64px;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 64px; padding-bottom: clamp(56px, 9vh, 112px);
  background: var(--carbon); color: var(--ink-inv);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--carbon); }
.film__clip {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 50%;
  opacity: 0; z-index: 0;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
}
.film__clip.is-active { opacity: 1; z-index: 2; }
.film__clip.is-leaving { opacity: 1; z-index: 1; transition: none; } /* stays fully visible under the incoming clip until the dissolve is done */
.hero__shade { z-index: 3; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(17, 17, 17, .66) 0%, rgba(17, 17, 17, .4) 24%, rgba(17, 17, 17, .42) 48%, rgba(17, 17, 17, .8) 78%, var(--carbon) 100%);
}
.hero__content { position: relative; z-index: 1; width: 100%; }
.hero .eyebrow { color: var(--ink-inv); opacity: .78; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lead { color: var(--ink-inv); opacity: .86; max-width: 46ch; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero + .proof { border-top: 0; }

/* --------------------------------------------------------------- media (product view frames) */
.media {
  position: relative;
  background: var(--carbon);
  color: var(--ink-inv);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.media__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.section--carbon .media { border-color: var(--line-inv); }
.media__source { position: absolute; inset: 0; }
.media__source .drawing, .media__video { width: 100%; height: 100%; object-fit: cover; }
.drawing { width: 100%; height: 100%; }
.media__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 14px;
  font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-inv-3);
  pointer-events: none;
}

.hud__meta {
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-inv-2); white-space: nowrap;
}
.hud__wave { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.hud__wave i { display: block; width: 2px; height: 30%; background: var(--stop-inv); animation: wave 1s ease-in-out infinite; }
.hud__wave--dark i { background: var(--stop); }
.hud__wave i:nth-child(1) { animation-delay: 0s; }
.hud__wave i:nth-child(2) { animation-delay: .12s; }
.hud__wave i:nth-child(3) { animation-delay: .24s; }
.hud__wave i:nth-child(4) { animation-delay: .36s; }
.hud__wave i:nth-child(5) { animation-delay: .48s; }
@keyframes wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* focus frame: four corner brackets + status tag */
.focus {
  position: absolute;
  left: var(--fx); top: var(--fy); width: var(--fw); height: var(--fh);
  --c: var(--signal);
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease), opacity .3s var(--ease);
}
.focus i {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--c); border-style: solid; border-width: 0;
  transition: border-color var(--dur) var(--ease);
}
.focus i:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.focus i:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.focus i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.focus i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.focus__tag {
  position: absolute; left: calc(100% + 14px); top: 0;
  display: inline-flex; flex-direction: column; gap: 4px;
  white-space: nowrap;
}
.focus__status {
  font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c); line-height: 1;
}
.focus__target { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .04em; color: var(--ink-inv-2); line-height: 1; }
.focus--ok, [data-state="verified"] .focus { --c: var(--ok-inv); }
[data-state="stop"] .focus { --c: var(--stop-inv); }
[data-state="checking"] .focus { --c: var(--signal); }
[data-state="checking"] .focus i { animation: settle .6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
.focus--static i { animation: none !important; }
.focus--tag-left .focus__tag { left: auto; right: calc(100% + 14px); align-items: flex-end; text-align: right; }
.focus--tag-below .focus__tag { left: 0; top: calc(100% + 10px); }
.focus--tag-inside .focus__tag { left: 12px; right: auto; top: auto; bottom: 12px; align-items: flex-start; }
[data-state="released"] .focus { --c: var(--ok-inv); }

/* status chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 22px; padding: 0 8px;
  font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--hair); color: var(--fg-3); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }
.chip--ok { color: var(--c-ok); border-color: var(--c-ok); }
.chip--stop { color: var(--c-stop); border-color: var(--c-stop); }
.chip--live { color: var(--signal); border-color: var(--signal); }
.chip--live::before { animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ----------------------------------------------------------- sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section--carbon {
  --bg: var(--carbon); --fg: var(--ink-inv); --fg-2: var(--ink-inv-2); --fg-3: var(--ink-inv-3);
  --hair: var(--line-inv); --hair-strong: var(--line-inv-strong);
  --c-ok: var(--ok-inv); --c-stop: var(--stop-inv); --c-attn: var(--attn-inv);
  background: var(--bg); color: var(--fg); border-top-color: var(--carbon);
}
.section--carbon + .section { border-top-color: transparent; }
.section--carbon .body { color: var(--ink-inv-2); }
.section--carbon .eyebrow { color: var(--ink-inv-3); }
.proof { padding: clamp(48px, 5vw, 72px) 0; }
.proof .measures { margin-top: 0; border-top: 0; border-bottom: 0; }
.measure__word { font-family: var(--sans); font-weight: 300; font-size: clamp(48px, 5.6vw, 84px); line-height: 1.27; letter-spacing: -0.035em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--col-gap);
  align-items: start;
}
.split__b { max-width: 60ch; padding-top: 44px; }
.split__b > .btn { margin-top: 32px; }
.split--tight .split__a { grid-column: 1 / -1; }
.split--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ------------------------------------------------------------ problem: cost chart */
.costchart { margin-top: var(--section-inner); }
.costchart__bars { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-auto-flow: column; column-gap: var(--col-gap); height: clamp(300px, 34vw, 440px); }
.costchart__item { display: contents; }
.costchart__mult { font-family: var(--mono); font-weight: 300; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -0.04em; line-height: 1; color: var(--fg); grid-row: 1; align-self: end; margin-bottom: 14px; }
.costchart__bar { position: relative; display: block; align-self: end; grid-row: 2; height: var(--h); background: var(--ink); transform-origin: bottom; }
/* Monochrome progression: later stages darker and heavier. Final state is the default; site.js grows the bars from the baseline once the chart is in view. */
.costchart__item:nth-child(1) .costchart__bar { background: #C9C9C5; }
.costchart__item:nth-child(2) .costchart__bar { background: #8E8E8A; }
.costchart__item:nth-child(3) .costchart__bar { background: #4E4E4B; }
.costchart__item:nth-child(4) .costchart__bar { background: var(--ink); }
.costchart__item:nth-child(1) .costchart__mult { font-weight: 300; color: var(--fg-2); }
.costchart__item:nth-child(2) .costchart__mult { font-weight: 400; }
.costchart__item:nth-child(3) .costchart__mult { font-weight: 500; }
.costchart__item:nth-child(4) .costchart__mult { font-weight: 600; }
.costchart__stage { display: block; grid-row: 3; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-strong); font-size: 17px; font-weight: 500; letter-spacing: -0.008em; color: var(--fg); }
.costchart__note { display: block; grid-row: 4; align-self: start; margin-top: 4px; font-size: 15px; color: var(--fg-2); }
.costchart__src { margin-top: 36px; font-size: 14px; line-height: 1.5; color: var(--fg-3); max-width: 70ch; }

/* ------------------------------------------------------------ product: wearable configurations */
.configs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); margin-top: var(--section-inner); }
/* Sits in the gap, centred on the photographs: the two are alternatives, not a pair. */
.configs__or {
  position: absolute; top: 0; left: calc(var(--col-gap) / 2); width: calc(100% - var(--col-gap)); aspect-ratio: 32 / 9;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); line-height: 1;
}
.config { display: grid; gap: 18px; }
.config__media { aspect-ratio: 16 / 9; background: var(--paper); overflow: hidden; }
.config__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.config__media img[src*="headband"] { transform: scale(1.08); } /* matches the apparent scale of the glasses */
.config__text { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 6px; align-items: baseline; }
.config__text .label { color: var(--fg-3); grid-row: 1 / span 2; padding-top: 4px; }
.config__text h3 { font-size: 22px; }
.config__text p { font-size: 15px; line-height: 1.5; color: var(--fg-2); }

/* ------------------------------------------------------------ product: comparison */
/* ------------------------------------------------------------ how it works: three stages, one open */
.stages {
  --stage-w: 104px;
  display: flex; height: clamp(440px, 37vw, 560px);
  margin-top: var(--section-inner); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stage {
  position: relative; display: flex; flex-direction: column;
  flex: 0 0 var(--stage-w); min-width: 0; overflow: hidden;
  border-left: 1px solid var(--line);
  transition: flex-grow .6s cubic-bezier(.4, 0, .2, 1);
}
.stage:first-child { border-left: 0; }
.stage.is-active { flex-grow: 1; }
.stage__head {
  appearance: none; -webkit-appearance: none; background: none; border: 0; margin: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 24px 20px 0 24px;
  transition: background-color var(--dur) var(--ease);
}
.stage:first-child .stage__head { padding-left: 0; }
.stage.is-active .stage__head { position: static; inset: auto; cursor: default; flex: 0 0 auto; }
.stage:not(.is-active) .stage__head:hover { background: var(--paper-2); }
.stage:not(.is-active) .stage__head:hover .stage__title { color: var(--fg); }
.stage__head:focus-visible { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.stage__idx { color: var(--fg-3); }
.stage__title { font-size: 20px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.2; color: var(--fg-2); transition: color var(--dur) var(--ease); white-space: nowrap; }
.stage.is-active .stage__title { color: var(--fg); }
.stage__body {
  flex: 1 1 auto; min-height: 0;
  width: var(--stage-body-w, auto);
  padding: 24px 24px 28px 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), visibility 0s linear .2s;
}
.stage:first-child .stage__body { padding-left: 0; }
.stage.is-active .stage__body { opacity: 1; visibility: visible; transition: opacity .3s var(--ease) .32s, visibility 0s linear .32s; }
.stage__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: var(--col-gap); align-items: end; height: 100%; }
.stage__media {
  position: relative; height: 100%; min-height: 0; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
}
.stage__media--dark { background: var(--carbon); color: var(--ink-inv); }
.stage__media > .checklist, .stage__media > .transition { max-width: 520px; }
.stage__copy { font-size: 20px; font-weight: 400; line-height: 1.35; letter-spacing: -0.012em; color: var(--fg); max-width: 30ch; }
.step__view { position: absolute; inset: 0; }
.step__view .drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.step__meta { position: absolute; left: 42px; bottom: 16px; }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255,255,255,.75); }
.corner--tl { left: 14px; top: 14px; border-left-width: 1.5px; border-top-width: 1.5px; }
.corner--tr { right: 14px; top: 14px; border-right-width: 1.5px; border-top-width: 1.5px; }
.corner--bl { left: 14px; bottom: 14px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.corner--br { right: 14px; bottom: 14px; border-right-width: 1.5px; border-bottom-width: 1.5px; }

.checklist { width: 100%; padding: 8px 20px; font-size: 14px; }
.checklist li {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li .mono { color: var(--ink-3); }
.checklist li.is-dim { color: var(--ink-3); }

.transition { width: 100%; padding: 20px; display: grid; gap: 14px; }
.transition__state { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; }
.transition__state--stop { border-color: var(--stop); }
.transition__state--ok { border-color: var(--ok); }
.transition__msg { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.transition__arrow { color: var(--ink-3); text-align: center; position: relative; }
.transition__arrow::before { content: "↓"; display: block; margin-bottom: 4px; font-size: 14px; }

/* ------------------------------------------------------------ proof */
.measures {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  margin-top: var(--section-inner);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.measure { padding: 36px 40px 40px 0; border-left: 1px solid var(--hair); padding-left: 40px; display: grid; gap: 8px; align-content: start; }
.measure:first-child { border-left: 0; padding-left: 0; }
.measure dt { color: var(--fg-3); }
.measure__value { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.measure__num {
  font-family: var(--mono); font-weight: 300; font-size: clamp(64px, 7.5vw, 112px); line-height: .95; letter-spacing: -0.12em;
  font-variant-numeric: tabular-nums;
}
.measure__unit { font-family: var(--mono); font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); color: var(--fg-2); letter-spacing: -0.01em; }
.measure__note { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--fg-2); max-width: 40ch; }

/* ------------------------------------------------------------ deployment */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.timeline__item { padding: 4px 32px 0 0; }

.timeline__k { display: block; color: var(--fg-3); margin-bottom: 14px; }
.timeline__item h3 { margin-bottom: 12px; }
.timeline__item p { font-size: 15px; line-height: 1.5; color: var(--fg-2); max-width: 32ch; }
.dbar { margin-top: var(--section-inner); }
.dbar__ends { display: flex; justify-content: space-between; color: var(--fg-3); margin-bottom: 12px; }
.dbar__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dbar__track i { display: block; height: 3px; background: var(--line); position: relative; overflow: hidden; }
.dbar__track i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 1)); transform-origin: left; }
.timeline { margin-top: 28px; }
.plain li { position: relative; padding: 10px 0 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.plain li:last-child { border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------ architecture */
.arch { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--section-inner); border-top: 1px solid var(--line-inv); }
.arch__node { position: relative; padding: 24px 32px 0 0; border-left: 1px solid var(--line-inv); padding-left: 32px; }
.arch__art { height: clamp(96px, 9.5vw, 136px); margin-bottom: 20px; color: var(--ink-inv); }
.arch__art .drawing { display: block; width: 100%; height: 100%; }
.arch__node:first-child { border-left: 0; padding-left: 0; }
.arch__node:not(:last-child)::after {
  content: ""; position: absolute; right: -4px; top: calc(24px + 12% ); width: 7px; height: 7px;
  border-top: 1.5px solid var(--ink-inv-3); border-right: 1.5px solid var(--ink-inv-3); transform: rotate(45deg);
}
.arch__idx { display: block; color: var(--ink-inv-3); margin-bottom: 12px; }
.arch__node h3 { margin-bottom: 8px; color: var(--ink-inv); font-size: 20px; line-height: 1.3; }
.arch__node p { color: var(--ink-inv-2); font-size: 15px; line-height: 1.5; max-width: 26ch; padding-bottom: 28px; }

/* ------------------------------------------------------------ privacy */
.privacy { margin-top: var(--section); padding-top: var(--section-inner); border-top: 1px solid var(--line-inv); }
/* ------------------------------------------------------------ pilot */

/* ------------------------------------------------------------ industries: photography grid */
.photos { display: grid; gap: var(--col-gap); margin-top: var(--section-inner); }
.photos--4 { grid-template-columns: repeat(4, 1fr); --photo-ratio: 4 / 5; }
.photo { display: grid; gap: 16px; align-content: start; }
.photo__media { position: relative; aspect-ratio: var(--photo-ratio); overflow: hidden; background: var(--paper-2); }
.photo__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1); filter: brightness(.7) saturate(.68) contrast(1.02); transition: transform .7s var(--ease), filter .7s var(--ease); }
.photo:hover .photo__media img { filter: brightness(.76) saturate(.74) contrast(1.02); }
.photo__corner::before, .photo__corner::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid rgba(255,255,255,.92); }
.photo__corner::before { left: 12px; top: 12px; border-left-width: 1.5px; border-top-width: 1.5px; }
.photo__corner::after { right: 12px; bottom: 12px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.photo:hover .photo__media img { transform: scale(1.03); }
.photo__text h3 { display: flex; align-items: baseline; gap: 12px; font-size: 20px; margin-bottom: 6px; }
.photo__idx { color: var(--fg-3); }
.photo__text p { font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.ind-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: var(--section-inner); padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ind-cta__title { font-size: 24px; line-height: 1.2; letter-spacing: -0.016em; font-weight: 400; }

/* ------------------------------------------------------------ privacy: verification records */
.records { margin-top: var(--section-inner); border: 1px solid var(--line-inv); }
.records__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-inv); color: var(--ink-inv); }
.records__table { width: 100%; border-collapse: collapse; }
.records__table th { text-align: left; padding: 12px 20px; color: var(--ink-inv-3); border-bottom: 1px solid var(--line-inv); font-weight: 500; }
.records__table td { padding: 14px 20px; border-bottom: 1px solid var(--line-inv); font-family: var(--mono); font-size: 14px; letter-spacing: .01em; color: var(--ink-inv); }
.records__table td:nth-child(4) { color: var(--ink-inv-2); }
.records__table tr:last-child td { border-bottom: 0; }
.records__never { display: flex; gap: 20px; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--line-inv); color: var(--ink-inv-2); font-family: var(--mono); font-size: 14px; }
.records__never .mono { color: var(--ink-inv-3); }

/* ------------------------------------------------------------ pilot: copy + form */
.pilot__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.pilot__copy .body-lg { margin-top: 28px; max-width: 40ch; }
.pilot__note { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--fg-3); max-width: 40ch; }
.pform { position: relative; border: 1px solid var(--line); padding: 20px 24px 24px; background: var(--paper); }
.pform .corner { border-color: var(--ink); }
.pform .corner--tl { left: 6px; top: 6px; } .pform .corner--tr { right: 6px; top: 6px; } .pform .corner--bl { left: 6px; bottom: 6px; } .pform .corner--br { right: 6px; bottom: 6px; }
.pform__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.pform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.field { display: grid; gap: 6px; padding: 10px 0 6px; }
.field--wide { grid-column: 1 / -1; }
.field__k { color: var(--fg-3); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; border-radius: 0;
  padding: 8px 0; font: inherit; font-size: 17px; color: var(--fg); outline: none; resize: vertical;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 76px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); opacity: .8; }
.field input:focus, .field textarea:focus { border-bottom-width: 2px; padding-bottom: 7px; }
.field.is-invalid input { border-bottom-color: var(--stop); }
.pform__error { margin-top: 12px; color: var(--stop); text-transform: none; letter-spacing: 0; font-size: 14px; }
.pform__actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.pform__alt { font-size: 15px; color: var(--fg-3); }
.pform__alt a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.pform__done { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; outline: none; }
.pform__done-k { color: var(--ok); }
.pform__done p:not(.mono) { font-size: 16px; line-height: 1.5; color: var(--fg-2); max-width: 52ch; }
.pform__done-actions { display: flex; align-items: center; gap: 16px; }
.pform.is-sent .pform__grid, .pform.is-sent .pform__actions, .pform.is-sent .pform__error { display: none; }


.terms { border-top: 1px solid var(--line); margin-bottom: 36px; }
.terms li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--fg); }
.terms li .mono { color: var(--fg-3); }
.cta__body .btn { margin-top: 32px; }
.cta__note { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--fg-3); max-width: 44ch; }
.measure__note a { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.measure__note a:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--col-gap); }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col a { font-size: 15px; color: var(--ink-2); width: max-content; }
.footer__brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.footer__mail { display: inline-block; font-size: 15px; color: var(--ink-2); }
.footer__mail:hover, .footer__bottom a:hover { color: var(--ink); }
.footer__col a:hover { color: var(--ink); }
.footer__h { color: var(--ink-3); margin-bottom: 6px; }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); }

/* ------------------------------------------------------------ reveal (functional, subtle) */
.reveal { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-out { opacity: 0; transform: translateY(10px); }
.reveal:nth-child(2) { transition-delay: .12s; }
.reveal:nth-child(3) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .photo__media img { transition: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .focus, .focus i, .hd-plug, .btn, .link-arrow::after { transition: none !important; animation: none !important; }
  .hud__wave i, .chip--live::before { animation: none !important; }
  .btn__arrow, .photo__media img, .nav__cta, .stage, .stage__head, .stage__body, .stage__title { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --section: 112px; --section-inner: 64px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; --col-gap: 24px; --section: 96px; --section-inner: 56px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px);
  }
  .nav[data-open="true"] .nav__links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); }
  .nav__cta-mobile { display: inline-flex; margin-top: 20px; height: 52px; }
  .nav__cta { display: none; }

  .lead { max-width: 44ch; }

  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__b { padding-top: 0; }




  .measure { padding: 24px 24px 28px 24px; }
  .measure:first-child { padding-left: 0; }

  .timeline__item { padding-right: 20px; }

  .photos--4 { grid-template-columns: 1fr 1fr; gap: 24px; --photo-ratio: 4 / 5; }
  .configs { grid-template-columns: 1fr 1fr; gap: 24px; }
  .arch { grid-template-columns: 1fr 1fr; gap: 0; }
  .arch__node { padding: 24px 24px 8px 24px; border-top: 1px solid var(--line-inv); margin-top: -1px; }
  .arch__node:nth-child(odd) { border-left: 0; padding-left: 0; }
  .arch__node:not(:last-child)::after { display: none; }
  .pilot__grid { grid-template-columns: 1fr; gap: 36px; }
  .costchart__bars { height: clamp(240px, 36vw, 340px); column-gap: 20px; }
  .costchart__mult { font-size: clamp(24px, 3.4vw, 34px); }
  .costchart__stage { font-size: 15px; }
  .costchart__note { font-size: 14px; }




  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Vertical accordion: one stage open at a time, the others collapse to a header row. */
  .stages { flex-direction: column; height: auto; }
  .stage { flex: 0 0 auto; border-left: 0; border-top: 1px solid var(--line); transition: none; overflow: visible; }
  .stage:first-child { border-top: 0; }
  .stage__head, .stage.is-active .stage__head { position: static; inset: auto; flex-direction: row; align-items: baseline; gap: 16px; padding: 18px 0; width: 100%; }
  .stage:not(.is-active) .stage__head:hover { background: transparent; }
  .stage__body, .stage:first-child .stage__body { display: grid; grid-template-rows: 0fr; width: auto; padding: 0; opacity: 1; visibility: visible; transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1); }
  .stage.is-active .stage__body { grid-template-rows: 1fr; }
  .stage__inner { display: block; height: auto; min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .5s; }
  .stage.is-active .stage__inner { visibility: visible; transition: none; }
  .stage__media { height: auto; aspect-ratio: 16 / 10; }
  .stage__copy { margin: 18px 0 26px; max-width: 40ch; }
}

@media (max-width: 768px) {

  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline__item { padding: 0; }
  .timeline__item:first-child { padding-left: 0; }
  .timeline__item h3 { margin-bottom: 14px; }
  .measures { grid-template-columns: 1fr; }
  .measure { padding: 24px 0 28px 0; border-left: 0; border-top: 1px solid var(--hair); }
  .measure:first-child { border-top: 0; padding-top: 0; }
}

@media (max-aspect-ratio: 1/1) {
  .film__clip { object-position: var(--pos-m, 50% 50%); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 80px; --section-inner: 44px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(38px, 11vw, 46px); letter-spacing: -0.025em; }
  h2 { font-size: clamp(30px, 8.4vw, 36px); }
  .body-lg, .lead { font-size: 19px; }
  .hero { padding-bottom: 48px; }
  .configs { grid-template-columns: 1fr; gap: 20px; }
  .stage__media { aspect-ratio: 4 / 3; }
  .configs__or { position: static; width: auto; aspect-ratio: auto; padding: 2px 0; }
  .costchart__bars { column-gap: 10px; height: 260px; }
  .costchart__mult { font-size: 20px; margin-bottom: 10px; }
  .costchart__stage { font-size: 12px; padding-top: 10px; margin-top: 10px; }
  .costchart__note { display: none; }
  .hero__actions { gap: 20px; margin-top: 32px; }
  .hero__actions .btn { width: 100%; }
  .hero .lead { opacity: .92; }
  .hero__shade { background: linear-gradient(to bottom, rgba(17, 17, 17, .68) 0%, rgba(17, 17, 17, .42) 26%, rgba(17, 17, 17, .48) 50%, rgba(17, 17, 17, .84) 74%, var(--carbon) 100%); }
  .media__caption { position: static; padding: 9px 12px; border-top: 1px solid var(--line-inv); }



  .pform { padding: 16px 16px 20px; }
  .pform__grid { grid-template-columns: 1fr; gap: 6px; }
  .pform__actions .btn { width: 100%; }
  .dbar__ends { font-size: 11px; }
  .dbar__ends .dbar__more { display: none; }
  .records__table th:nth-child(4), .records__table td:nth-child(4) { display: none; }
  .records__table td { padding: 12px 14px; font-size: 13px; }
  .records__table th { padding: 10px 14px; }
  .records__head, .records__never { padding: 12px 14px; }
  .photos--4 { grid-template-columns: 1fr; gap: 36px; --photo-ratio: 4 / 3; }
  .ind-cta { align-items: flex-start; flex-direction: column; gap: 20px; }
  .arch { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr 1fr; }
  .arch__node, .arch__node:nth-child(odd) { padding: 18px 12px 4px 0; border-left: 0; }
  .arch__node:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line-inv); }
  .arch__node h3 { font-size: 16px; }
  .arch__node p { font-size: 13px; padding-bottom: 20px; }
  .arch__art { height: 72px; }
  .arch__art { margin-bottom: 12px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { margin-top: 44px; }
}
