/* ASP v2. Base: scale.com (video, scroll scene, hologram). Header over video: palantir.com. Nav, cursor, hover: metic.studio.
   Dark-first; text-heavy sections switch to "paper". Themes are scoped custom properties, components read --fg/--fg-2/... */
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #05081A; --surface: #0B1130; --navy: #001A72; --paper: #F3F5FA;
  --text: #F2F4FA; --text-2: #B4BCD6; --text-3: #8790B0;
  --ink: #0A0F2C; --ink-2: #414A6B; --ink-3: #5B6486;
  --accent: #6E95FF; --accent-l: #2F5BEA;
  --err: #FF8A80; --err-l: #C62828; --ok: #7BD8A1; --ok-l: #1E7A46;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shell: clamp(16px, 5vw, 72px); --max: 1440px; --hdr-h: 72px;
  --band: clamp(80px, 10vw, 160px);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --display: clamp(2.5rem, 6.2vw, 5.75rem);
  --h1: clamp(2.5rem, 5.6vw, 5.25rem);
  --h2: clamp(2rem, 4vw, 4rem);
  --h3: clamp(1.375rem, 2vw, 1.75rem);
  --body-l: clamp(1.0625rem, 1.3vw, 1.25rem);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200 64v104a8 8 0 0 1-16 0V83.3L69.7 197.7a8 8 0 0 1-11.4-11.4L172.7 72H88a8 8 0 0 1 0-16h104a8 8 0 0 1 8 8Z'/%3E%3C/svg%3E");
  color-scheme: dark;
}
/* themes */
:root, .band-black, .site-footer, .closing, .menu-sheet {
  --fg: var(--text); --fg-2: var(--text-2); --fg-3: var(--text-3); --line-c: rgba(242, 244, 250, .14); --line-s: rgba(242, 244, 250, .32);
  --acc: var(--accent); --field-c: #636D93; --field-bg: var(--bg); --surf: var(--surface); --err-c: var(--err); --ok-c: var(--ok);
  --btn-bg: var(--text); --btn-fg: var(--bg); --chip: var(--navy);
}
.band-white {
  --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); --line-c: rgba(10, 15, 44, .13); --line-s: rgba(10, 15, 44, .32);
  --acc: var(--accent-l); --field-c: #7C86A3; --field-bg: #fff; --surf: #fff; --err-c: var(--err-l); --ok-c: var(--ok-l);
  --btn-bg: var(--navy); --btn-fg: #fff; --chip: #fff;
  color-scheme: light;
}
/* the closing band is always navy, also when its section is marked band-white */
.band.closing {
  --fg: var(--text); --fg-2: #C9D1EA; --fg-3: #A9B3D6; --line-c: rgba(242, 244, 250, .22); --line-s: rgba(242, 244, 250, .4);
  --acc: var(--accent); --field-c: #636D93; --field-bg: var(--bg); --surf: var(--surface); --err-c: var(--err); --ok-c: var(--ok);
  --btn-bg: var(--text); --btn-fg: var(--navy); --chip: var(--navy); color-scheme: dark;
}
/* aliases for inline styles in the generated pages that still use the old variable names */
:root, .band-black, .band-white, .band.closing, .site-footer { --ash: var(--fg-2); --rule: var(--line-c); --rule-dark: var(--line-c); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 28px); }
/* pages only scroll vertically: nothing may widen the layout on phones (clip, not hidden, keeps position: sticky working) */
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1rem/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--shell); }
.band { padding-block: var(--band); }
.band:has(.principles, .faq-grid, .rv-calc, .ref-cards) { padding-block: clamp(64px, 7vw, 112px); }
.band.closing { padding-block: clamp(120px, 14vw, 224px); }
.band-white { background: var(--paper); color: var(--fg); }
.band-black { background: var(--bg); color: var(--fg); }
/* mid-page dark bands get the raised surface so consecutive dark sections still read as separate */
main > .band-black:not(.page-hero):not(.legal-hero):not(.closing) { background: var(--surface); }
.muted { color: var(--fg-3); }

/* ---------- type ---------- */
.display-l, .display-m, .display-s, .closing-title, .hero-title { font-weight: 400; color: var(--fg); text-wrap: balance; hyphens: manual; }
.display-l { font-size: var(--h1); line-height: 1.02; letter-spacing: -.025em; max-width: 18ch; }
.display-m { font-size: var(--h2); line-height: 1.05; letter-spacing: -.02em; max-width: 20ch; }
h2.display-l, h2.display-m { font-size: var(--h2); line-height: 1.05; letter-spacing: -.02em; }
.display-s { font-size: clamp(1.625rem, 2.6vw, 2.375rem); line-height: 1.1; letter-spacing: -.015em; }
.lead { font-size: var(--body-l); line-height: 1.5; color: var(--fg-2); max-width: 48ch; text-wrap: pretty; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 88px); }
/* mono eyebrow above section heads (signature) */
.section-head::before, .page-hero .wrap::before, .legal-hero .wrap::before {
  content: ""; display: block; width: 6px; height: 6px; background: var(--acc); margin-bottom: 4px;
}

/* ---------- buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--sans); letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-light, .btn-dark { background: var(--btn-bg); color: var(--btn-fg); padding-right: 8px; }
.btn-light::after, .btn-dark::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background-color: var(--chip);
  -webkit-mask: none; transition: transform .35s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23F2F4FA'%3E%3Cpath d='M200 64v104a8 8 0 0 1-16 0V83.3L69.7 197.7a8 8 0 0 1-11.4-11.4L172.7 72H88a8 8 0 0 1 0-16h104a8 8 0 0 1 8 8Z'/%3E%3C/svg%3E");
  background-position: center; background-size: 16px; background-repeat: no-repeat;
}
.band-white .btn-light::after, .band-white .btn-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23001A72'%3E%3Cpath d='M200 64v104a8 8 0 0 1-16 0V83.3L69.7 197.7a8 8 0 0 1-11.4-11.4L172.7 72H88a8 8 0 0 1 0-16h104a8 8 0 0 1 8 8Z'/%3E%3C/svg%3E");
}
.band.closing .btn-light::after, .band.closing .btn-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23F2F4FA'%3E%3Cpath d='M200 64v104a8 8 0 0 1-16 0V83.3L69.7 197.7a8 8 0 0 1-11.4-11.4L172.7 72H88a8 8 0 0 1 0-16h104a8 8 0 0 1 8 8Z'/%3E%3C/svg%3E");
}
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-s); }
.btn-ghost:hover { border-color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover::after, .btn-dark:hover::after { transform: translate(2px, -2px) rotate(45deg); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link, main p a:not(.btn), .legal a:not(.btn), .faq a:not(.btn), .form-note a, .side-item a:not(.btn), .facts-table a {
  color: inherit; text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.link:hover, main p a:not(.btn):hover, .legal a:hover { text-decoration-thickness: 2px; }
.link { position: relative; font-weight: 500; }

/* corner brackets (metic): nav items, links with .link, chips */
.nav-item, .link, .lang-switch a { position: relative; }
.nav-item::before, .nav-item::after, .link::before, .link::after, .lang-switch a::before, .lang-switch a::after {
  content: ""; position: absolute; width: 7px; height: 7px; border: 0 solid var(--acc); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .45s var(--ease);
}
.nav-item::before, .lang-switch a::before { border-width: 1px 0 0 1px; top: 7px; left: 3px; transform: translate(-5px, -5px); }
.nav-item::after, .lang-switch a::after { border-width: 0 1px 1px 0; bottom: 7px; right: 3px; transform: translate(5px, 5px); }
.link::before { border-width: 1px 0 0 1px; top: -3px; left: -7px; transform: translate(-5px, -5px); }
.link::after { border-width: 0 1px 1px 0; bottom: -3px; right: -7px; transform: translate(5px, 5px); }
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover::before, .nav-item:hover::after, .link:hover::before, .link:hover::after,
  .lang-switch a:hover::before, .lang-switch a:hover::after { opacity: 1; transform: translate(0); }
}
.nav-item:focus-visible::before, .nav-item:focus-visible::after { opacity: 1; transform: translate(0); }

/* ---------- header: palantir's frosted, rounded bar over the hero; metic nav items inside ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--text); padding-top: 12px; transition: transform .6s var(--ease); --acc: var(--accent); }
.hdr.is-hidden { transform: translateY(-115%); }
.hdr-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--hdr-h);
  width: calc(100% - 2 * var(--shell)); max-width: calc(var(--max) - 2 * var(--shell)); margin-inline: auto; padding: 0 10px 0 6px;
  border-radius: 14px; border: 1px solid rgba(242, 244, 250, .12);
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px -24px rgba(0, 0, 0, .7);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.hdr.is-scrolled .hdr-row { background: color-mix(in srgb, var(--bg) 30%, transparent); border-color: rgba(242, 244, 250, .16); }
.pill { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid transparent; }
.nav-item {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; font: 500 .875rem/1 var(--sans); letter-spacing: 0; color: var(--text); text-decoration: none; cursor: pointer;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-item[aria-current="page"] { color: var(--text); background: rgba(242, 244, 250, .08); }
.pill-nav .nav-item { color: var(--text-2); }
.pill-nav .nav-item:hover, .pill-nav .nav-item[aria-current="page"] { color: var(--text); }
.brand { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; height: 44px; padding: 0 14px; text-decoration: none; color: var(--text); line-height: 1; }
.brand-mark { font-size: 1.375rem; font-weight: 700; letter-spacing: .14em; }
/* metic: the lens dial that grows around the wordmark on hover */
.hdr .brand::before, .hdr .brand::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease), transform .7s var(--ease); }
.hdr .brand::before { width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 1.5px solid var(--acc); -webkit-mask: repeating-conic-gradient(#000 0 3deg, transparent 3deg 10deg); mask: repeating-conic-gradient(#000 0 3deg, transparent 3deg 10deg); transform: scale(.5) rotate(-60deg); }
.hdr .brand::after { width: 60px; height: 60px; margin: -30px 0 0 -30px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); transform: scale(.6); }
@media (hover: hover) and (pointer: fine) { .hdr .brand:hover::before, .hdr .brand:hover::after { opacity: 1; transform: scale(1) rotate(0); } }
.brand-sub { font: 400 .625rem/1 var(--mono); letter-spacing: .04em; color: var(--fg-3); }
.hdr .brand-sub { display: none; }
.nav-cta { background: var(--text); color: var(--bg); padding-inline: 18px; }
.nav-cta:hover { background: #fff; }
.lang-switch { display: flex; align-items: center; }
.lang-switch a { display: inline-flex; align-items: center; height: 44px; padding: 0 10px; font: 500 .75rem/1 var(--mono); letter-spacing: .06em; color: var(--text-2); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch [aria-current="true"] { color: var(--text); }
.lang-switch span { color: rgba(242, 244, 250, .3); font: 400 .75rem/1 var(--mono); }
.menu-btn, .menu-close { width: 44px; padding: 0; justify-content: center; }
.menu-btn span, .menu-close span { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--text); }
.menu-btn span::before, .menu-btn span::after, .menu-close span::before, .menu-close span::after {
  content: ""; position: absolute; left: 8px; width: 12px; height: 1.5px; background: var(--bg); transition: transform .5s var(--ease);
}
.menu-btn span::before { top: 11px; } .menu-btn span::after { top: 15.5px; }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover span::before { transform: translateY(-2px); } .menu-btn:hover span::after { transform: translateY(2px); } }
.menu-close span::before, .menu-close span::after { top: 13.25px; }
.menu-close span::before { transform: rotate(45deg); } .menu-close span::after { transform: rotate(-45deg); }
.pill-nav { display: none; }
@media (min-width: 1240px) { .pill-nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 560px) {
  .hdr .lang-switch { display: none; } /* also in the menu */
  .hdr .nav-cta { padding-inline: 14px; font-size: .8125rem; }
}

/* mobile menu: circular reveal from the menu button (metic) */
.menu-sheet {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--surface); color: var(--fg); overflow-y: auto;
  clip-path: circle(0 at calc(100% - var(--shell) - 22px) calc(var(--hdr-h) / 2));
  transition: clip-path .7s var(--ease), overlay .7s allow-discrete, display .7s allow-discrete;
}
.menu-sheet:popover-open { clip-path: circle(150% at calc(100% - var(--shell) - 22px) calc(var(--hdr-h) / 2)); }
@starting-style { .menu-sheet:popover-open { clip-path: circle(0 at calc(100% - var(--shell) - 22px) calc(var(--hdr-h) / 2)); } }
.menu-sheet::backdrop { background: transparent; }
.menu-inner { display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; padding-bottom: 32px; max-width: var(--max); margin-inline: auto; padding-inline: var(--shell); }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: var(--hdr-h); }
.menu-links { display: grid; align-content: center; gap: 2px; padding-block: 24px; }
.menu-links a { font-size: clamp(2rem, 8.5vw, 3.5rem); line-height: 1.14; letter-spacing: -.02em; text-decoration: none; color: var(--text-2); transition: color .3s var(--ease); }
.menu-links a:hover, .menu-links a:focus-visible, .menu-links a[aria-current="page"] { color: var(--text); }
.menu-sheet:popover-open .menu-links a { animation: menu-in .7s var(--ease) backwards; }
.menu-sheet:popover-open .menu-links a:nth-child(2) { animation-delay: .04s; } .menu-sheet:popover-open .menu-links a:nth-child(3) { animation-delay: .08s; }
.menu-sheet:popover-open .menu-links a:nth-child(4) { animation-delay: .12s; } .menu-sheet:popover-open .menu-links a:nth-child(5) { animation-delay: .16s; }
.menu-sheet:popover-open .menu-links a:nth-child(6) { animation-delay: .2s; } .menu-sheet:popover-open .menu-links a:nth-child(7) { animation-delay: .24s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(40%); } }
.menu-foot { display: grid; gap: 16px; justify-items: start; border-top: 1px solid var(--line-c); padding-top: 24px; }
.menu-foot .lang-switch a { padding-inline: 0 10px; }

/* ---------- page heroes ---------- */
.page-hero, .legal-hero { position: relative; padding-block: calc(var(--hdr-h) + clamp(56px, 9vw, 136px)) clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line-c); }
.page-hero .wrap, .legal-hero .wrap { display: grid; gap: 24px; }
.page-hero h1, .legal-hero h1 { font-size: var(--h1); max-width: 18ch; }
.page-hero .lead { max-width: 56ch; }
@media (min-width: 1024px) {
  .page-hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }
  .page-hero .wrap::before, .page-hero h1, .page-hero .svc-kicker { grid-column: 1; }
  .page-hero .wrap > :not(h1):not(.svc-kicker) { grid-column: 2; }
  .page-hero h1 { grid-row: 2 / span 3; }
}
.js .page-hero h1, .js .legal-hero h1 { animation: rise 1.1s var(--ease) both; }
.js .page-hero .lead, .js .page-hero .actions { animation: rise 1.1s .12s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }

/* ---------- home stage (scale.com): full-bleed video + centred headline, then the pinned hologram with centred copy ---------- */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.stage > .hero { grid-row: 1; grid-column: 1; }
.stage > .stage-pin { grid-row: 1 / 3; grid-column: 1; align-self: start; }
.stage > .stage-spacer { grid-row: 2; grid-column: 1; }
.hero { position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--hdr-h) + 24px) var(--shell) 96px; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); container-type: size; }
/* cover-fit the atlas' colour region (1536x864 at x0 y216 of 1920x1080) in pure CSS, so it paints right on first render:
   scale s = max(W/1536, H/864); size 1920s x 1080s; offset ((W-1536s)/2, (H-864s)/2 - 216s) */
.hero-video {
  position: absolute; max-width: none; object-fit: fill;
  width: max(125cqw, 222.2222cqh); height: max(70.3125cqw, 125cqh);
  left: calc((100cqw - max(100cqw, 177.7778cqh)) / 2);
  top: calc((100cqh - max(56.25cqw, 100cqh)) / 2 - max(14.0625cqw, 25cqh));
}
.js-webgl .hero-media { opacity: 0; pointer-events: none; }
/* scale: a flat 40% black over the footage, nothing else */
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(5, 8, 26, .55), rgba(5, 8, 26, .4) 20%, rgba(5, 8, 26, .4) 80%, rgba(5, 8, 26, .55)); }
.js-webgl:not(.stage-seq) .hero-scrim { display: none; }
.hero-center { width: 100%; max-width: 1240px; text-align: center; }
.hero-center, .hero-scroll { transition: opacity .3s var(--ease); }
.hero.is-gone .hero-center, .hero.is-gone .hero-scroll { opacity: 0; pointer-events: none; }
.hero-title { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.06; letter-spacing: -.01em; max-width: 42ch; margin-inline: auto; color: #fff; text-wrap: balance; }
.hero-title .line { display: inline; }
.hero-title .nb { white-space: nowrap; }
.js .hero-title .line { animation: rise 1.2s var(--ease) backwards; }
.js .hero-title .line + .line { animation-delay: .1s; }
.hero-scroll {
  position: absolute; right: var(--shell); bottom: 28px; display: inline-flex; align-items: center; gap: 14px;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .02em; color: #fff; text-decoration: none;
}
.hero-scroll i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.hero-scroll i::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transform: rotate(135deg); transition: transform .5s var(--ease); }
.hero-scroll:hover i { background: #fff; border-color: #fff; color: var(--bg); }
.hero-scroll:hover i::before { transform: rotate(135deg) translate(2px, -2px); }
.video-play { position: absolute; right: var(--shell); top: calc(var(--hdr-h) + 16px); width: 44px; padding: 0; justify-content: center; border: 1px solid var(--line-c); background: color-mix(in srgb, var(--bg) 70%, transparent); }

.stage-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 1; overflow: hidden; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-spacer { height: calc(4.7 * 100vh); height: calc(4.7 * 100dvh); }
.stage .why { position: absolute; inset: 0; pointer-events: none; padding: 0; border: 0; background: none; }
.stage .why-grid { position: relative; height: 100%; display: block; }
/* copy sits centred under the stack (the stack lives in the top ~55% of the viewport) */
.stage .why-item {
  position: absolute; left: 50%; top: 57%; transform: translateX(-50%); width: min(46rem, calc(100% - 2 * var(--shell)));
  display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--fg-2); font-size: var(--body-l); line-height: 1.5;
}
.stage .why-item h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.015em; color: var(--fg); max-width: none; }
.stage .why-item p:not(.eyebrow) { max-width: 54ch; text-wrap: pretty; }
.stage .why-item .actions { margin-top: 8px; }
.stage .why-item.is-on .actions { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 0 7px 7px 0; border-color: transparent var(--fg-3) transparent transparent; }
.stage-on .stage .why-item > * { opacity: 0; transform: translateY(1.25rem); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.stage-on .stage .why-item.is-on > * { opacity: 1; transform: none; }
.stage-on .stage .why-item.is-on > :nth-child(2) { transition-delay: .06s; }
.stage-on .stage .why-item.is-on > :nth-child(3) { transition-delay: .12s; }
.stage-on .stage .why-item.is-on > :nth-child(4) { transition-delay: .18s; }
html:not(.stage-on) .stage > .stage-pin { grid-row: 2; position: relative; height: auto; overflow: visible; }
html:not(.stage-on) .stage-canvas, html:not(.stage-on) .stage-spacer { display: none; }
html:not(.stage-on) .stage .why { position: relative; pointer-events: auto; padding-block: var(--band); border-top: 1px solid var(--line-c); }
html:not(.stage-on) .stage .why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); max-width: var(--max); margin-inline: auto; padding-inline: var(--shell); height: auto; }
html:not(.stage-on) .stage .why-item { position: static; width: auto; transform: none; text-align: left; justify-items: start; }
@media (max-width: 900px) { html:not(.stage-on) .stage .why-grid { grid-template-columns: 1fr; } }

/* ---------- scale: the inset panel that opens to full bleed as it scrolls in ---------- */
[data-inset] { position: relative; --l: 0; background: none !important; }
[data-inset]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--inset-bg); clip-path: inset(0 calc(24px * (1 - var(--l))) round calc(16px * (1 - var(--l)))); }
.band-black[data-inset] { --inset-bg: var(--surface); }
.band-white[data-inset] { --inset-bg: var(--paper); }

/* ---------- scale: the scrolling statement with a media card ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 2.5vw, 40px); align-items: stretch; }
.quote-media { margin: 0; position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 5; container-type: size; background: var(--bg); }
.quote-media video { position: absolute; max-width: none; object-fit: fill; width: max(125cqw, 222.2222cqh); height: max(70.3125cqw, 125cqh); left: calc((100cqw - max(100cqw, 177.7778cqh)) / 2); top: calc((100cqh - max(56.25cqw, 100cqh)) / 2 - max(14.0625cqw, 25cqh)); filter: brightness(.7); }
.quote-media .sec-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; left: 0; top: 0; filter: brightness(.8); }
.quote-card { display: grid; align-content: space-between; gap: 32px; padding: clamp(28px, 3.5vw, 56px); border-radius: 16px; background: var(--navy); color: var(--fg); }
.quote-text { font-size: clamp(1.625rem, 3.2vw, 3rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: pretty; max-width: 22ch; }
.quote-text .w { display: inline-block; opacity: .22; transition: opacity .35s var(--ease); }
.quote-text .w.on { opacity: 1; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .quote-media { aspect-ratio: 16 / 10; } }

/* ---------- scale: rotating word in the capabilities headline ---------- */
.rot { position: relative; display: inline-grid; vertical-align: baseline; }
.rot > span { grid-area: 1 / 1; white-space: nowrap; color: var(--rot-c, var(--accent)); opacity: 0; transform: translateY(.35em); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.rot > span.on { opacity: 1; transform: none; }
.rot > span.out { opacity: 0; transform: translateY(-.35em); }

/* ---------- scale: the benchmark card panel and the fact row ---------- */
.bench .section-head { margin-bottom: clamp(28px, 4vw, 56px); }
.bench-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bench-card { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 2.6vw, 36px); border-radius: 12px; background: #fff; border: 1px solid var(--line-c); }
.bench-card svg { width: 28px; height: 28px; fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bench-card h3 { font-size: var(--h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.bench-card p { color: var(--fg-2); }
.stats-eye { margin-top: clamp(40px, 6vw, 80px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-s); margin-top: 16px; }
.stat-grid li { display: grid; gap: 8px; align-content: start; padding: 24px clamp(16px, 2vw, 28px) 24px 0; border-right: 1px solid var(--line-c); }
.stat-grid li + li { padding-left: clamp(16px, 2vw, 28px); }
.stat-grid li:last-child { border-right: 0; }
.stat-k { font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.stat-grid strong { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.stat-grid li > span:last-child { color: var(--fg-2); font-size: .9375rem; }
@media (max-width: 900px) { .bench-grid { grid-template-columns: 1fr; } .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-grid li:nth-child(2n) { border-right: 0; } .stat-grid li:nth-child(n+3) { border-top: 1px solid var(--line-c); } .stat-grid li:nth-child(2n+1) { padding-left: 0; } }

/* ---------- capabilities grid (anduril product tiles) ---------- */
.caps .section-head { max-width: 48rem; }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-c); border: 1px solid var(--line-c); margin-bottom: 40px; }
.cap { position: relative; display: grid; align-content: end; gap: 14px; min-height: clamp(200px, 22vw, 300px); padding: clamp(20px, 2.4vw, 32px); background: var(--bg); color: var(--fg); text-decoration: none; transition: background-color .35s var(--ease); }
.cap::after { content: ""; position: absolute; right: 22px; top: 22px; width: 18px; height: 18px; background: var(--fg-3); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .45s var(--ease), background-color .3s var(--ease); }
.cap-tag { font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; max-width: 16ch; }
.cap-name { font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
@media (hover: hover) and (pointer: fine) {
  .cap:hover { background: var(--surface); }
  .cap:hover::after { background: var(--acc); transform: translate(3px, -3px); }
}
/* desktop: 3 per row on a 6-track grid; a last row of two splits it in halves, so no empty cell shows */
@media (min-width: 901px) {
  .cap-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cap-grid > .cap { grid-column: span 2; }
  .cap-grid > .cap:nth-child(3n+1):nth-last-child(2), .cap-grid > .cap:nth-child(3n+1):nth-last-child(2) + .cap { grid-column: span 3; }
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cap-grid > .cap:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } .cap { min-height: 150px; } }

/* ---------- ask: the quote form under the stage ---------- */
.ask { border-top: 1px solid var(--line-c); }
.ask-grid { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.ask-copy { display: grid; gap: 24px; }
.ask-copy .lead { max-width: 44ch; }
.hero-sub { display: flex; align-items: center; gap: 14px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 500; color: var(--fg); }
.hero-sub::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--acc); }
@media (max-width: 900px) { .ask-grid { grid-template-columns: 1fr; } }

/* ---------- quote wizard / forms ---------- */
.wizard-card, .form-panel { position: relative; background: var(--surf); color: var(--fg); border: 1px solid var(--line-c); border-radius: 12px; box-shadow: none; }
.ask .wizard-card { --surf: var(--surface); }
.fbf { padding: clamp(20px, 2.2vw, 32px) !important; gap: 20px !important; }
.fbf h2, .fbf .form h2 { font-size: 1.5rem !important; font-weight: 500; letter-spacing: -.01em; color: var(--fg); margin: 0; }
.fbf .stepnum { font: 500 .75rem/1 var(--mono) !important; letter-spacing: .06em !important; color: var(--fg-3) !important; margin-bottom: 14px; }
.fbf .opts { display: grid; gap: 8px; }
.fbf .opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--field-c); border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.fbf .opt:has(input:checked) { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.fbf .opt input { accent-color: var(--acc); }
.fbf .input.short { min-height: 48px; }
.form { display: grid; gap: 20px; }
.fbf .form { gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.fbf .field { margin-bottom: 14px; }
.field > span, .field legend { font-size: .9375rem; color: var(--fg-2); padding: 0; transition: transform .35s var(--ease), color .35s var(--ease); }
.field:focus-within > span { transform: translateX(.35rem); color: var(--fg); }
.field small { color: var(--fg-3); font-size: .875rem; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field-c); border-radius: 8px; background: var(--field-bg); color: var(--fg);
  font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 40px; background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238790B0' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 16px center no-repeat; }
.input:hover { border-color: var(--fg-3); }
.input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.input[aria-invalid="true"] { border-color: var(--err-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err-c) 22%, transparent); }
.input::placeholder { color: var(--fg-3); opacity: 1; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--field-c); border-radius: 8px; overflow: hidden; }
.seg label { position: relative; display: grid; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 50px; padding: 0 12px; text-align: center; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg label + label span { border-left: 1px solid var(--field-c); }
.seg input:checked + span { background: var(--fg); color: var(--field-bg); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: -4px; }
.form-err { color: var(--err-c); font-size: .9375rem; }
.form-err:not(:empty) { display: flex; gap: 8px; align-items: baseline; margin-bottom: 12px; }
.form-err:not(:empty)::before { content: "!"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--err-c); color: var(--field-bg); font: 700 .75rem/1 var(--mono); transform: translateY(2px); }
.form-note { font-size: .8125rem; color: var(--fg-3); }
.fbf .form-note { margin-bottom: 12px; }
.form .actions .btn-ghost { padding-inline: 24px; }
.done { display: grid; gap: 12px; padding-block: 8px; color: var(--fg-2); }
.done:focus { outline: none; }
.done h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 400; line-height: 1.1; letter-spacing: -.015em; color: var(--fg); }
.done h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 50%; background: var(--ok-c); transform: translateY(-3px); }

/* ---------- services rows + line art ---------- */
.svc { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-c); }
.svc:last-child { border-bottom: 1px solid var(--line-c); }
.svc-text { grid-column: 1 / span 6; display: grid; gap: 22px; align-content: start; }
.svc-art { grid-column: 8 / -1; }
.svc-flip .svc-text { grid-column: 7 / -1; grid-row: 1; }
.svc-flip .svc-art { grid-column: 1 / span 5; grid-row: 1; }
.svc-text > p { color: var(--fg-2); max-width: 52ch; }
.svc-kicker { font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 900px) { .svc-text, .svc-art, .svc-flip .svc-text, .svc-flip .svc-art { grid-column: 1 / -1; grid-row: auto; } }
.ticks { display: grid; gap: 12px; max-width: 58ch; }
.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 1px; background: var(--acc); }
.art { width: 100%; height: auto; color: var(--fg); overflow: visible; }
.art .d { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.art .f { fill: var(--acc); }
.art .t { font: 500 12px var(--mono); fill: var(--fg-3); letter-spacing: .04em; }
.js .art .d { --t: clamp(0, calc(var(--p, 1) * 1.5 - var(--i, 0) * .04), 1); stroke-dasharray: var(--len, none); stroke-dashoffset: calc(var(--len, 0px) * (1 - var(--t))); }
.js .art .fade { opacity: clamp(0, calc((var(--p, 1) * 1.5 - var(--i, 0) * .04) * 2 - 1), 1); }
.art .phone { transform: translate(calc((1 - var(--p, 1)) * 90px), calc((1 - var(--p, 1)) * 24px)); }

/* ---------- process: ruled rows with a mono index, sticky head with CTA ---------- */
.process-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.process-head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--hdr-h) + 40px); display: grid; gap: 24px; }
.process-head .display-l { font-size: var(--h2); }
.steps { grid-column: 7 / -1; position: relative; counter-reset: step; border-top: 1px solid var(--line-c); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding-block: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line-c); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; font: 500 .8125rem/1.9 var(--mono); letter-spacing: .06em; color: var(--fg-3); transition: color .5s var(--ease); }
.step::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--acc); transform: scaleX(0); transform-origin: 0 0; transition: transform .9s var(--ease); }
.step h3 { font-size: var(--h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; color: var(--fg-3); margin-bottom: 8px; transition: color .5s var(--ease); }
.step p { color: var(--fg-3); max-width: 50ch; transition: color .5s var(--ease); }
.step.is-on::before { color: var(--acc); }
.step.is-on h3 { color: var(--fg); }
.step.is-on p { color: var(--fg-2); }
.step.is-on::after { transform: scaleX(1); }
.no-js .step h3 { color: var(--fg); } .no-js .step p { color: var(--fg-2); }
.step-big { padding-inline: 20px; margin-inline: -20px; background: color-mix(in srgb, var(--acc) 7%, transparent); box-shadow: inset 2px 0 0 var(--acc); }
.step-big h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.08; }
.step-big::before { color: var(--acc); }
@media (max-width: 900px) { .process-head, .steps { grid-column: 1 / -1; } .process-head { position: static; } }

/* ---------- principles: the homepage's benchmark cards, everywhere ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0; }
.principle, .principles:has(> .principle:nth-child(3):last-child) > .principle, .principle:nth-child(even) { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line-c); border-left: 1px solid var(--line-c); border-radius: 12px; background: var(--surf); }
.principle h3 { font-size: var(--h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.principle p { color: var(--fg-2); max-width: 52ch; }
.principles:not(:has(> .principle:nth-child(3):last-child)) > .principle:last-child:nth-child(odd) { grid-column: auto; }
@media (max-width: 900px) { .principles, .principles:has(> .principle:nth-child(3):last-child) { grid-template-columns: 1fr; } }
.facts .stats-eye { margin-top: 0; }
.page-services .caps { padding-top: 0; }
.page-services .caps .cap-grid { margin-bottom: 0; }

/* ---------- principles (old rules kept for pages that still use the ruled layout) ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-c); }
.principle { padding: clamp(28px, 4vw, 48px) clamp(0px, 3vw, 48px) clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line-c); display: grid; gap: 12px; align-content: start; }
.principle:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line-c); }
.principle h3 { font-size: var(--h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.principle p { color: var(--fg-2); max-width: 52ch; }
.principles:has(> .principle:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles:has(> .principle:nth-child(3):last-child) > .principle { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line-c); }
.principles:has(> .principle:nth-child(3):last-child) > .principle:first-child { padding-left: 0; border-left: 0; }
.principles:not(:has(> .principle:nth-child(3):last-child)) > .principle:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .principles, .principles:has(> .principle:nth-child(3):last-child) { grid-template-columns: 1fr; } .principle:nth-child(n), .principles:has(> .principle:nth-child(3):last-child) > .principle { padding-left: 0; border-left: 0; } }

/* ---------- FAQ: numbered ruled list (vercel) ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.faq-grid > .section-head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--hdr-h) + 40px); }
.faq { grid-column: 6 / -1; counter-reset: q; border-top: 1px solid var(--line-c); }
@media (max-width: 900px) { .faq-grid > .section-head, .faq { grid-column: 1 / -1; position: static; } }
.faq details { border-bottom: 1px solid var(--line-c); interpolate-size: allow-keywords; counter-increment: q; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 16px; gap: 12px; align-items: baseline; padding-block: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 500; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(q, decimal-leading-zero); font: 500 .8125rem/1 var(--mono); color: var(--fg-3); letter-spacing: .06em; }
.faq summary::after { content: ""; align-self: center; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary::before { color: var(--acc); }
.faq details > :not(summary) { color: var(--fg-2); max-width: 62ch; padding: 0 0 24px 56px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (max-width: 560px) { .faq summary { grid-template-columns: 34px 1fr 16px; } .faq details > :not(summary) { padding-left: 46px; } }

/* ---------- closing CTA: the navy band, huge word ---------- */
.closing { background: var(--navy) !important; color: var(--fg); overflow: hidden; }
.closing-title { font-size: clamp(3.5rem, 13vw, 12rem); line-height: .9; letter-spacing: -.045em; margin-bottom: clamp(28px, 4vw, 48px); max-width: none; }
.closing .display-l, .closing .display-m { color: var(--fg); }
.closing .lead { margin-bottom: 32px; color: var(--fg-2); }
.closing .btn-ghost { border-color: rgba(242, 244, 250, .4); }

/* ---------- split, side items, facts ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.split-main { grid-column: 1 / span 7; }
.split-side { grid-column: 9 / -1; display: grid; align-content: start; border-top: 1px solid var(--line-s); }
@media (max-width: 900px) { .split-main, .split-side { grid-column: 1 / -1; } }
.split-main [style*="color:var(--ink-2)"] { color: var(--fg-2) !important; }
.side-item { padding-block: 22px; border-bottom: 1px solid var(--line-c); display: grid; gap: 6px; }
.side-item h2 { font-size: 1.125rem; font-weight: 500; }
.side-item p { color: var(--fg-2); }
.facts-table { display: grid; border-top: 1px solid var(--line-s); }
.facts-table div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line-c); }
.facts-table dt { font: 500 .75rem/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.facts-table dd { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .facts-table div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- legal ---------- */
.legal { padding-block: var(--band); }
.legal > * { max-width: 72ch; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.25; margin: 2.4em 0 .7em; padding-top: 1.2em; border-top: 1px solid var(--line-c); }
.legal h2:first-child { margin-top: 0; }
.legal h3, .legal h4 { font-size: 1.0625rem; font-weight: 600; margin: 1.6em 0 .5em; }
.legal p, .legal li { color: var(--fg-2); }
.legal p + p { margin-top: .8em; }
.legal ul, .legal ol { margin: .6em 0 1em; padding-left: 1.3em; list-style: disc; display: grid; gap: .45em; }
.legal ol { list-style: decimal; }
.legal strong { font-weight: 600; color: var(--fg); }
.legal-meta { color: var(--fg-3); max-width: 64ch; font-size: .9375rem; }

/* ---------- references: showcase rows ---------- */
.refs { display: grid; }
.ref { position: relative; padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line-c); }
.ref:last-child { border-bottom: 1px solid var(--line-c); }
.ref-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(28px, 4vw, 48px); }
.ref-head { grid-column: 1 / -1; display: grid; gap: 14px; }
.ref-head .display-s { max-width: 24ch; }
.ref-tagline { color: var(--fg-2); max-width: 60ch; font-size: var(--body-l); text-wrap: pretty; }
.ref-stage { grid-column: 1 / span 8; position: relative; margin: 0; }
.ref-body { grid-column: 1 / span 8; display: grid; gap: 22px; }
.ref-summary { color: var(--fg-2); max-width: 62ch; }
.ref-price { grid-column: 9 / -1; grid-row: 2 / span 2; align-self: start; position: sticky; top: calc(var(--hdr-h) + 32px); display: grid; gap: 22px; }
.ref-facts { display: grid; border-top: 1px solid var(--line-s); }
.ref-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line-c); }
.ref-facts dt { color: var(--fg-2); }
.ref-facts dd { font: 500 .9375rem/1.4 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-total dd { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ref-total small { font-size: .9375rem; color: var(--fg-2); letter-spacing: 0; }
.ref-hours { border-bottom: 1px solid var(--line-c); }
.ref-hours summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; font-weight: 500; }
.ref-hours summary::-webkit-details-marker { display: none; }
.ref-hours summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .35s var(--ease); }
.ref-hours[open] summary::after { transform: rotate(45deg); }
.ref-hours table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-bottom: 14px; }
.ref-hours th { text-align: left; font-weight: 400; color: var(--fg-2); padding: 8px 12px 8px 0; border-top: 1px solid var(--line-c); }
.ref-hours td { text-align: right; padding: 8px 0; border-top: 1px solid var(--line-c); font: 400 .875rem/1.4 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-hours .sum th, .ref-hours .sum td { color: var(--fg); font-weight: 600; border-top-color: var(--line-s); }
.ref-stack { color: var(--fg-3); font: 400 .8125rem/1.6 var(--mono); }
.ref-price .btn { justify-self: start; }
.ref-stage-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 6vw, 72px); }
@media (max-width: 1080px) { .ref-price { position: static; } }
@media (max-width: 900px) { .ref-stage, .ref-body, .ref-price { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 760px) {
  .ref-stage .device-desktop { display: none; }
  .device-phone { position: static !important; width: min(100%, 320px) !important; margin-inline: auto; }
  .ref-stage-actions { margin-top: 24px; justify-content: center; }
}
/* device frames: flat, hairline, no heavy shadow */
.device { display: block; background: var(--surface); border: 1px solid rgba(242, 244, 250, .16); border-radius: 12px; padding: 6px; text-decoration: none; transition: border-color .3s var(--ease), transform .45s var(--ease); }
a.device:hover { border-color: var(--acc); }
.device-bar { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; color: var(--text-3); font: 400 .6875rem/1 var(--mono); }
.device-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(242, 244, 250, .22); }
.device-bar i { margin-left: 10px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-screen { position: relative; overflow: hidden; background: var(--surface); border-radius: 6px; aspect-ratio: 1440 / 900; }
.device-phone { position: absolute; right: -3%; bottom: -9%; width: 21%; border-radius: 22px; padding: 5px; }
.device-phone .device-screen { aspect-ratio: 390 / 844; border-radius: 17px; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-screen iframe { position: absolute; inset: 0; max-width: none; width: 1440px; height: 900px; border: 0; background: #fff; transform-origin: 0 0; transform: scale(var(--s, 1)); }
.device-phone .device-screen iframe { width: 390px; height: 844px; }
.is-live .device-screen img { visibility: hidden; }
@media (max-width: 760px) { .device-bar i { display: none; } }
.ref-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.ref-card { display: grid; gap: 20px; align-content: start; }
.ref-card-shot { display: block; text-decoration: none; }
.ref-card-body { display: grid; gap: 10px; }
.ref-card h3 { font-size: var(--h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; max-width: 26ch; }
.ref-card-body > p { color: var(--fg-2); max-width: 54ch; text-wrap: pretty; }
.ref-card-price { font-variant-numeric: tabular-nums; }
.ref-card-price b { font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.01em; }
.ref-card-price span { color: var(--fg-2); font-size: .9375rem; }
.ref-card .actions { margin-top: 6px; }
@media (max-width: 760px) { .ref-cards { grid-template-columns: 1fr; } }

/* AI references (was inline CSS on the AI pages) */
.ai-refs { display: grid; gap: 0; border-top: 1px solid var(--line-s); }
.ai-ref { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line-c); }
.ai-ref > div > * + * { margin-top: 10px; }
.ai-ref h3 { font-size: var(--h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; max-width: 30ch; }
.ai-ref p { color: var(--fg-2); max-width: 66ch; }
.ai-ref ul { display: grid; gap: 6px; margin-top: 14px; }
.ai-ref ul li { position: relative; padding-left: 24px; color: var(--fg-2); font-size: .9375rem; }
.ai-ref ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 1px; background: var(--acc); }
.ai-ref .svc-kicker { margin: 0; }
.ai-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.ai-badges span { border: 1px solid var(--line-s); border-radius: 999px; padding: 6px 12px; font: 500 .75rem/1 var(--mono); letter-spacing: .02em; color: var(--fg-2); }
.ai-shot { display: grid; gap: 14px; margin: 0; }
.ai-shot .actions { margin: 0; }
.ai-voice { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--line-s); border-radius: 12px; padding: 16px 20px; }
.ai-voice b { font: 500 1.375rem/1.2 var(--mono); letter-spacing: .02em; color: var(--fg); }
.ai-time { display: grid; gap: 12px; align-content: start; border-left: 1px solid var(--line-c); padding-left: 24px; }
.ai-time div { display: grid; gap: 2px; }
.ai-time dt { font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.ai-time dd { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ai-time dd small { display: block; font-size: .8125rem; font-weight: 400; color: var(--fg-3); }
@media (max-width: 820px) { .ai-time { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-c); padding-top: 16px; } }

/* ai-bevetel: call demos + revenue calculator (was inline CSS) */
.rv-demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.rv-call { display: flex; flex-direction: column; border: 1px solid var(--line-c); border-radius: 12px; background: var(--surf); overflow: hidden; }
.rv-call header { padding: 24px 24px 0; }
.rv-call h3 { font-size: 1.5rem; font-weight: 500; margin: 6px 0 8px; }
.rv-play { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line-c); }
.rv-btn { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; background: var(--btn-bg); color: var(--btn-fg); font-size: 18px; cursor: pointer; }
.rv-bar { flex: 1; height: 3px; background: var(--line-c); position: relative; cursor: pointer; border-radius: 2px; }
.rv-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--acc); border-radius: 2px; }
.rv-time { min-width: 88px; text-align: right; font: 400 .8125rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--fg-3); }
.rv-tx { list-style: none; margin: 0; padding: 12px 24px 20px; max-height: 340px; overflow: auto; display: grid; gap: 10px; }
.rv-tx li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: .9688rem; line-height: 1.5; color: var(--fg-3); transition: color .2s var(--ease); }
.rv-tx li b { font: 500 .6875rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.rv-tx li.on, .rv-tx li.done { color: var(--fg); }
.rv-crm { margin: auto 24px 24px; background: var(--bg); color: var(--text); border: 1px solid rgba(242, 244, 250, .14); border-radius: 8px; padding: 18px 20px; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.rv-crm.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.rv-crm p { margin: 0 0 10px; font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.rv-crm dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .9375rem; }
.rv-crm dt { color: var(--text-3); }
.rv-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 28px; }
.rv-calc label { display: grid; gap: 8px; font-size: .9375rem; color: var(--fg-2); }
.rv-out { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.rv-out div { border-top: 1px solid var(--line-s); padding-top: 14px; color: var(--fg-2); }
.rv-out b { display: block; margin-top: 6px; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- home: works carousel (React, home.js) ---------- */
.works { padding-block: var(--band); }
.works-title { margin-bottom: clamp(24px, 3vw, 40px); }
.wk { position: relative; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 12px; outline: none; }
.wk:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 12px; }
.wk-arrow, .wk-dots button { touch-action: manipulation; } /* no double-tap zoom on carousel controls */
.wk-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-s); background: transparent; color: var(--fg); font-size: 1.125rem; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
@media (hover: hover) { .wk-arrow:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); } } /* touch: no sticky white hover after a tap */
.wk-stage { height: clamp(440px, 48vw, 640px); display: grid; align-content: start; animation: wk-in .5s var(--ease) both; }
@keyframes wk-in { from { opacity: 0; transform: translateX(24px); } }
.wk-slide, .wk-final { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 22px; text-align: center; margin: 0; }
.wk-slide > *, .wk-final > * { min-height: 0; max-height: 100%; }
.wk-title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 400; letter-spacing: -.015em; color: var(--fg); }
.wk-img { height: 100%; width: auto; max-width: 100%; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line-c); background: #fff; }
.wk-phone { font-size: clamp(2rem, 5vw, 4rem); font-weight: 300; letter-spacing: -.02em; color: var(--fg); padding: clamp(32px, 6vw, 80px) 0; font-variant-numeric: tabular-nums; }
.wk-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.wk-dots { gap: 0; }
.wk-dots button { width: 24px; height: 24px; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle, var(--line-s) 0 4px, transparent 4.5px); }
.wk-dots button.on { background: radial-gradient(circle, var(--acc) 0 4px, transparent 4.5px); }
@media (max-width: 700px) {
  .wk { grid-template-columns: 1fr; }
  .wk-arrow { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; background: var(--bg); color: var(--fg); }
  .wk-prev { left: -6px; } .wk-next { right: -6px; }
  .wk-stage { height: 420px; }
  .wk-img { width: 100%; height: auto; max-height: 100%; }
}

/* plain (non-stage) why section, e.g. when the stage is not used */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.why-item { display: grid; gap: 16px; align-content: start; }
.why-item p { color: var(--fg-2); max-width: 52ch; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- footer: company details in mono, cropped wordmark ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--bg); color: var(--fg); padding-block: clamp(64px, 8vw, 112px) 40px; border-top: 1px solid var(--line-c); }
.site-footer .wrap { position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h2 { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.foot-grid ul { display: grid; gap: 10px; }
.foot-grid a { color: var(--fg-2); text-decoration: none; transition: color .2s var(--ease); }
.foot-grid a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 4px; }
.foot-brand .brand { padding: 0; height: auto; }
.foot-brand .brand-sub { display: block; margin-top: 6px; }
.foot-brand p { color: var(--fg-2); max-width: 32ch; margin-top: 18px; }
.foot-co { font: 400 .8125rem/1.9 var(--mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line-c); color: var(--fg-3); font-size: .875rem; }
.foot-bottom a { color: var(--fg-2); text-decoration: none; }
.foot-bottom a:hover { color: var(--fg); }
.foot-bottom span { margin-right: auto; }

/* ---------- 404 ---------- */
.nf { min-height: 100dvh; display: grid; align-content: center; padding-block: 96px; }
.nf-code { font-size: clamp(6rem, 30vw, 22rem); font-weight: 200; line-height: .8; letter-spacing: -.06em; }

/* ---------- metic layer: cursor ring + measured outline ---------- */
.fx-ring { position: fixed; left: 0; top: 0; z-index: 250; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform; mix-blend-mode: difference; }
.fx-ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--accent); }
.fx-measure { position: fixed; left: 0; top: 0; z-index: 240; border: 1px solid var(--accent); pointer-events: none; opacity: 0; transition: opacity .18s var(--ease); }
.fx-measure.is-on { opacity: 1; }
.fx-measure i { position: absolute; width: 5px; height: 5px; background: var(--accent); }
.fx-measure i:nth-child(1) { left: -3px; top: -3px; } .fx-measure i:nth-child(2) { right: -3px; top: -3px; }
.fx-measure i:nth-child(3) { left: -3px; bottom: -3px; } .fx-measure i:nth-child(4) { right: -3px; bottom: -3px; }
.fx-measure b { position: absolute; left: -1px; bottom: calc(100% + 5px); padding: 3px 6px; background: var(--accent); color: var(--bg); font: 500 10px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; border-radius: 2px; }
.fx-measure.below b { bottom: auto; top: calc(100% + 5px); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero-title { max-width: 20ch; }
}
@media (max-width: 767px) {
  :root { --hdr-h: 60px; }
  .hdr { padding-top: 8px; }
  .hdr-row { width: calc(100% - 16px); border-radius: 12px; }
  /* scale mobile: the video is a band at the top with the headline sitting low inside it; ours runs edge to edge */
  .hero { min-height: 100svh; height: 100svh; place-items: end center; padding: calc(var(--hdr-h) + 16px) 20px 88px; }
  .hero-scrim { background: linear-gradient(to bottom, rgba(5, 8, 26, .5), rgba(5, 8, 26, .3) 30%, rgba(5, 8, 26, .55) 70%, rgba(5, 8, 26, .9)); }
  .hero-title { font-size: clamp(1.875rem, 8.6vw, 2.5rem); }
  .hero-scroll { right: 20px; bottom: 20px; }
  .hero-scroll span { display: none; }
  .stage .why-item h2 { font-size: clamp(1.625rem, 7.4vw, 2.25rem); }
  .stage .why-item { font-size: 1rem; gap: 12px; width: calc(100% - 40px); }
  html:not(.stage-on) .stage .why-grid { grid-template-columns: 1fr; }
  .stage-spacer { height: calc(2.15 * 100vh); height: calc(2.15 * 100dvh); }
  .stage .why-item { top: 52%; }
  .rv-tx li { grid-template-columns: 1fr; gap: 2px; }
  .display-l { font-size: clamp(2.25rem, 9.6vw, 3rem); }
  .display-m { font-size: clamp(1.875rem, 8vw, 2.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .fx-ring { display: none; }
}
.quote-media .quote-note { position: absolute; left: 14px; bottom: 10px; margin: 0; font-family: var(--mono, ui-monospace, monospace); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); pointer-events: none; }
