/* Statvis marketing site — shared design system.
   Type: Crimson Pro for titles, Inter for everything else (matches the sizzle reel and the conference two-pager).
   Headline rule from the reel: a white statement, then a blue payoff. The payoff (.accent) always starts its own
   line, so a blue word never follows a white word on the same line. */

@font-face { font-family: 'Crimson Pro'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/CrimsonPro.woff2) format('woff2'); }
@font-face { font-family: 'Crimson Pro'; font-style: italic; font-weight: 300 900; font-display: swap; src: url(../fonts/CrimsonPro-Italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/InterVariable.woff2) format('woff2'); }

/* scroll progress written by site.js; non-inheriting so a write restyles one element, not a subtree */
@property --sp { syntax: '<number>'; inherits: false; initial-value: 1; }

:root {
  /* night (default surfaces) */
  --night-0: #070D17;
  --night-1: #0B1422;
  --night-2: #0F1B2D;
  --night-3: #17263D;
  --night-line: rgba(159, 179, 200, 0.14);
  --night-line-strong: rgba(159, 179, 200, 0.26);
  --cream: #ECEDE4;
  --mist: #AEB8C8;
  --fog: #8497AE;
  --sky: #8EDBFF;
  --sky-strong: #7FD6FF;

  /* paper (light reading surfaces) */
  /* light surfaces are white, matching the current deck; --paper-2 is a cool off-white for alternating bands */
  --paper: #FFFFFF;
  --paper-2: #F6F8FB;
  --paper-ink: #0F172A;
  --paper-body: #334155;
  --paper-muted: #64748B;
  --paper-line: #E2E8F0;

  /* brand */
  --blue: #0095ED;
  --aqua: #00CACB;
  --indigo: #3A47A9;
  --teal: #49999C;
  --wordmark-blue: #29AAE1;

  --title: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--night-1);
  color: var(--cream);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: rgba(0, 149, 237, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 880px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--cream); color: var(--night-1); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ type */
.display, h1, h2, h3 { font-family: var(--title); font-weight: 400; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
.display { font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: 0.98; }
h1, .h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); line-height: 1.02; }
h2, .h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.06; }
h3, .h3 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.15; }
.accent { display: block; font-style: italic; color: var(--sky); }
:is(.paper, .paper-2) .accent, .on-paper .accent { color: var(--blue); }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--mist); max-width: 40em; text-wrap: pretty; }
:is(.paper, .paper-2) .lede { color: var(--paper-body); }
.body-copy { color: var(--mist); text-wrap: pretty; }
:is(.paper, .paper-2) .body-copy { color: var(--paper-body); }
.small { font-size: 0.9rem; }
.muted { color: var(--fog); }
:is(.paper, .paper-2) .muted { color: var(--paper-muted); }
.kicker { font: 600 0.82rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky-strong); }
:is(.paper, .paper-2) .kicker { color: var(--blue); }
.stack > * + * { margin-top: var(--stack, 1.25rem); }

/* ------------------------------------------------------------------ surfaces */
.section { position: relative; padding: clamp(88px, 12vw, 168px) 0; }
.section-tight { padding: clamp(64px, 8vw, 112px) 0; }
.night { background: var(--night-1); color: var(--cream); }
.night-deep { background: var(--night-0); color: var(--cream); }
.paper { background: var(--paper); color: var(--paper-ink); }
.paper-2 { background: var(--paper-2); color: var(--paper-ink); }
.rule { height: 1px; background: var(--night-line); border: 0; margin: 0; }
:is(.paper, .paper-2) .rule { background: var(--paper-line); }

.section-head { display: grid; gap: 22px; max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--cream); --fg: var(--night-1);
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s, box-shadow 0.4s var(--ease-out);
  position: relative; isolation: isolate; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(142, 219, 255, 0.45); }
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-blue { --bg: var(--blue); --fg: #fff; }
.btn-blue:hover { box-shadow: 0 14px 34px -10px rgba(0, 149, 237, 0.6); }
.btn-ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 1px var(--night-line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--sky), 0 10px 30px -14px rgba(142, 219, 255, 0.5); }
:is(.paper, .paper-2) .btn { --bg: var(--paper-ink); --fg: var(--paper); }
:is(.paper, .paper-2) .btn-blue { --bg: var(--blue); --fg: #fff; }
:is(.paper, .paper-2) .btn-ghost { --bg: transparent; --fg: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--paper-line); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.94rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sky); }
:is(.paper, .paper-2) .link-arrow { color: var(--blue); }
.link-arrow .arrow { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.play-btn { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--cream); }
.play-btn .ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--night-line-strong); transition: box-shadow 0.3s, transform 0.4s var(--ease-out); }
.play-btn:hover .ring { box-shadow: inset 0 0 0 1px var(--sky); transform: scale(1.06); }
.play-btn .ring svg { margin-left: 3px; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s, box-shadow 0.35s, transform 0.45s var(--ease-out);
}
.nav.scrolled { background: rgba(9, 16, 28, 0.72); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--night-line); }
.nav.hidden { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1360px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; color: var(--mist); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links button:hover, .nav-links [aria-current='page'] { color: var(--cream); }
.nav-links [aria-current='page'] { background: rgba(255, 255, 255, 0.06); }
.nav-links .caret { transition: transform 0.3s var(--ease-out); }
.has-menu[data-open='true'] .caret { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 420px; padding: 10px;
  background: rgba(15, 27, 45, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--night-line); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0.25s;
}
.has-menu[data-open='true'] .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu a { display: grid; grid-template-columns: 1fr; gap: 3px; height: auto; padding: 12px 14px; border-radius: 12px; align-items: start; }
.menu a:hover { background: rgba(255, 255, 255, 0.05); }
.menu .mi-title { color: var(--cream); font-weight: 600; font-size: 0.98rem; }
.menu .mi-desc { color: var(--fog); font-size: 0.86rem; line-height: 1.45; font-weight: 400; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--cream); position: relative; transition: transform 0.35s var(--ease-out), background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--cream); transition: transform 0.35s var(--ease-out); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--night-1);
    padding: 24px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0.3s;
  }
  .nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav { background: var(--night-1); }
  .mobile-menu a { display: block; padding: 14px 0; font-family: var(--title); font-size: 1.9rem; border-bottom: 1px solid var(--night-line); }
  .mobile-menu .sub a { font-family: var(--sans); font-size: 1rem; color: var(--mist); padding: 10px 0 10px 16px; border: 0; }
  .mobile-menu .btn { margin-top: 28px; width: 100%; justify-content: center; font-family: var(--sans); font-size: 1rem; border: 0; }
}

/* ------------------------------------------------------------------ topo + pixel motifs */
.topo-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
/* contours: one shared bitmap (assets/img/topo-mask.webp) used as a mask over a flat colour per surface. The mask's
   alpha encodes minor lines at 0.45 and index lines at 1; each variant's opacity sets the overall strength. */
.topo-bg .topo-layer { position: absolute; inset: 0; }
.topo-bg img, .topo-bg svg, .topo-bg .topo-art { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; max-width: none; user-select: none; }
.topo-art { -webkit-mask: url(../img/topo-mask.webp) center / cover no-repeat; mask: url(../img/topo-mask.webp) center / cover no-repeat; background: var(--tc); opacity: var(--to); }
.topo-art.v-night { --tc: #B8C9DA; --to: 0.17; }
.topo-art.v-lit { --tc: #9FE4FF; --to: 0.5; }
.topo-art.v-paper { --tc: #5B6B80; --to: 0.18; }
.topo-bg .drift { animation: topo-drift 60s var(--ease-in-out) infinite alternate; transform-origin: 50% 50%; }
.topo-bg.paused .drift, .topo-bg.off .drift { animation-play-state: paused; }
/* pointer light: a masked window moved with transforms, holding a counter-moved copy of the lit contours */
.topo-light { position: absolute; left: 0; top: 0; width: calc(var(--lr, 420px) * 2); height: calc(var(--lr, 420px) * 2); overflow: hidden; will-change: transform;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%); opacity: 0; transition: opacity 0.6s ease; }
.topo-light.on { opacity: 1; }
.topo-light-inner { position: absolute; left: 0; top: 0; will-change: transform; }
@keyframes topo-drift { from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); } to { transform: translate3d(1.5%, 1.2%, 0) scale(1.06); } }
.glow { position: absolute; pointer-events: none; border-radius: 50%; opacity: 0.55; }
.grain::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.12; background: url(../img/grain.png) repeat; background-size: 112px; }

.pixels { position: absolute; display: grid; grid-template-columns: repeat(var(--cols, 12), var(--px, 18px)); gap: var(--gap, 6px); pointer-events: none; }
.pixels i { width: var(--px, 18px); height: var(--px, 18px); opacity: 0; transform: scale(0.4); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.pixels i.on { opacity: var(--o, 1); transform: none; }
.pixels i.c1 { background: var(--blue); } .pixels i.c2 { background: var(--aqua); } .pixels i.c3 { background: var(--indigo); } .pixels i.c4 { background: #1E9BD7; }

/* ------------------------------------------------------------------ reveal motion */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal='fade'] { transform: none; }
[data-reveal='scale'] { transform: scale(0.96); }
[data-reveal].in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.in .split-line > span, .split-line.in > span { transform: none; }

/* ------------------------------------------------------------------ app window / screen */
.screen {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(159, 179, 200, 0.16), 0 50px 120px -30px rgba(0, 0, 0, 0.75), 0 0 80px -30px rgba(0, 149, 237, 0.25);
  aspect-ratio: 1260 / 924;
}
.screen video, .screen img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen video { opacity: 0; transition: opacity 0.6s ease; }
.screen video.ready { opacity: 1; }
.screen .stack-vid { position: absolute; inset: 0; }
.screen .stack-vid > * { transition: opacity 0.7s ease; }
:is(.paper, .paper-2) .screen { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 40px 90px -30px rgba(15, 23, 42, 0.35); }

/* ------------------------------------------------------------------ cards + grids */
.grid { display: grid; gap: var(--g, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 38, 61, 0.7), rgba(15, 27, 45, 0.55));
  box-shadow: inset 0 0 0 1px var(--night-line);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.card:hover { box-shadow: inset 0 0 0 1px var(--night-line-strong); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--mist); }
:is(.paper, .paper-2) .card { background: #fff; box-shadow: 0 0 0 1px var(--paper-line), 0 1px 2px rgba(15, 23, 42, 0.04); }
:is(.paper, .paper-2) .card p { color: var(--paper-body); }
.card-link { display: flex; flex-direction: column; }
.card-link .link-arrow { margin-top: auto; padding-top: 24px; }
.card-link:hover { transform: translateY(-4px); }
/* spotlight that follows the pointer inside cards */
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(142, 219, 255, 0.10), transparent 60%); }
.spot:hover::before { opacity: 1; }
:is(.paper, .paper-2) .spot::before { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(0, 149, 237, 0.07), transparent 60%); }

.icon-tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(142, 219, 255, 0.08); color: var(--sky); margin-bottom: 22px; box-shadow: inset 0 0 0 1px rgba(142, 219, 255, 0.14); }
:is(.paper, .paper-2) .icon-tile { background: rgba(0, 149, 237, 0.08); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(0, 149, 237, 0.14); }
.sq { display: inline-block; width: 10px; height: 10px; background: var(--blue); margin-right: 10px; vertical-align: 0.05em; }
.sq.aqua { background: var(--aqua); } .sq.indigo { background: var(--indigo); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--mist); }
:is(.paper, .paper-2) .check-list li { color: var(--paper-body); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: rotate(-45deg) translateY(-3px); }
:is(.paper, .paper-2) .check-list li::before { border-color: var(--blue); }

/* ------------------------------------------------------------------ feature rows (text + screen) */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature-text .h3, .feature-text h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.08; margin-bottom: 20px; }
.feature-text .check-list { margin-top: 28px; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .feature-text { order: 0; } }

/* ------------------------------------------------------------------ page hero (inner pages) */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(80px, 12vw, 150px)) 0 clamp(80px, 10vw, 130px); overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .lede { margin-top: 28px; }
.page-hero .btn-row { margin-top: 40px; }
/* Page illustrations (assets/img/art) are self-contained vignettes on transparency: always shown whole, never
   cropped or masked, so there is no edge to hide. */
.page-hero { --art-w: min(36vw, 480px); }
.page-hero-art { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: calc(var(--nav-h) + 24px); bottom: 24px; width: var(--art-w); z-index: 1; pointer-events: none; }
.page-hero-art img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
/* the hero's text column stops before the illustration's column */
@media (min-width: 901px) { .page-hero:has(> .page-hero-art) > .wrap { padding-right: calc(var(--gutter) + var(--art-w) + 40px); } }
/* small screens: the illustration sits above the headline, compact and at full strength, never behind text */
@media (max-width: 900px) {
  .page-hero:has(> .page-hero-art) { padding-top: calc(var(--nav-h) + 28px); }
  .page-hero-art { position: relative; inset: auto; width: min(52vw, 260px); height: min(62vw, 300px); margin: 0 0 12px var(--gutter); }
  .page-hero-art img { object-position: left center; }
}

/* ------------------------------------------------------------------ stats */
.stat-num { font-family: var(--title); font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; }
:is(.paper, .paper-2) .stat-num { color: var(--paper-ink); }
.stat-label { margin-top: 14px; color: var(--mist); max-width: 22em; }
:is(.paper, .paper-2) .stat-label { color: var(--paper-body); }

/* ------------------------------------------------------------------ quote / callout */
.callout { position: relative; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg); background: rgba(0, 149, 237, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 149, 237, 0.2); }
:is(.paper, .paper-2) .callout { background: #F1F7FD; box-shadow: inset 0 0 0 1px #D6E6F5; }

/* ------------------------------------------------------------------ table (use cases, checklist) */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 0.8rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); padding: 0 24px 18px 0; border-bottom: 1px solid var(--night-line-strong); }
.table td { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--night-line); vertical-align: top; color: var(--mist); }
.table td:first-child { font-family: var(--title); font-size: 1.4rem; line-height: 1.2; color: var(--cream); width: 26%; }
:is(.paper, .paper-2) .table th { color: var(--paper-muted); border-color: var(--paper-ink); }
:is(.paper, .paper-2) .table td { color: var(--paper-body); border-color: var(--paper-line); }
:is(.paper, .paper-2) .table td:first-child { color: var(--paper-ink); }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 22px 0; border-bottom: 1px solid var(--night-line); }
  :is(.paper, .paper-2) .table tr { border-color: var(--paper-line); }
  .table td { display: block; border: 0; padding: 6px 0; width: auto !important; }
  .table td[data-label]::before { content: attr(data-label); display: block; font: 600 0.74rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); margin-bottom: 4px; }
}

/* ------------------------------------------------------------------ CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 190px) 0; text-align: center; background: radial-gradient(ellipse 80% 90% at 50% 100%, #1B2E7A 0%, #16245E 30%, #0B1422 75%); }
.cta-band .wrap { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; }

/* line drawings (tools/art/line_art.py): document stacks behind the CTA, themed scenes beside section headings.
   Edges and detail are separate paths so the detail sits quieter and draws on after its outline. */
.doc-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
.doc-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.line-art path { fill: none; stroke: #C3CEFF; stroke-linecap: round; stroke-linejoin: round; }
.line-art .e { stroke-opacity: 0.3; stroke-width: 1.2; }
.line-art .t { stroke-opacity: 0.17; stroke-width: 1; }
.sec-art .line-art .e { stroke-opacity: 0.42; }
.sec-art .line-art .t { stroke-opacity: 0.24; }
.line-art.drawing path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.4s var(--ease-in-out) var(--d, 0s); }
.line-art.drawing .t { transition-duration: 2s; transition-delay: calc(var(--d, 0s) + 0.7s); }
.line-art.in path { stroke-dashoffset: 0; }
.line-art.done path { stroke-dasharray: none; transition: none; }
/* beside a section heading: top right of the wrap, with the heading column narrowed to clear it */
.wrap:has(> .sec-art) { --art-w: min(38vw, 520px); }
.sec-art { pointer-events: none; }
.sec-art svg { display: block; width: 100%; height: 100%; }
.wrap > .sec-art { position: absolute; top: -12px; right: 0; width: var(--art-w); height: clamp(150px, 13vw, 190px); }
.wrap:has(> .sec-art) > .section-head { max-width: min(820px, calc(100% - var(--art-w) - 48px)); }
.sec-art-inline { width: min(100%, 440px); height: 170px; margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) {
  .wrap > .sec-art { position: static; width: min(100%, 400px); height: 150px; margin-bottom: 28px; }
  .wrap:has(> .sec-art) > .section-head { max-width: 820px; }
}

/* ------------------------------------------------------------------ footer */
.footer { background: var(--night-0); color: var(--mist); padding: 88px 0 40px; font-size: 0.95rem; }
/* brand column, then four even link columns (6-8 page-level links each) */
.footer-top { display: grid; grid-template-columns: minmax(200px, 1.3fr) repeat(5, minmax(0, 1fr)); gap: 40px 28px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 4px; }
.footer-brand p { max-width: 20em; line-height: 1.55; }
.footer-mail { color: var(--cream); }
.footer-cta { margin-top: 6px; }
.footer .footer-h { margin: 0 0 16px; font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { transition: color 0.2s; }
.footer a:hover { color: var(--cream); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--fog); font-size: 0.86rem; }
@media (max-width: 1080px) { .footer-top { grid-template-columns: repeat(5, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; } .footer-brand p { flex-basis: 100%; } }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 20px; } }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--mist); }
.footer-bottom-links a:hover { color: var(--cream); }

/* ------------------------------------------------------------------ film lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4vw; background: rgba(5, 9, 15, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox video { width: min(1280px, 100%); max-height: 86vh; border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); transform: scale(0.96); transition: transform 0.5s var(--ease-out); background: #000; }
.lightbox.open video { transform: none; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.16); }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--cream); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--cream); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line-strong);
  border-radius: 12px; padding: 14px 16px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sky); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 4px rgba(142, 219, 255, 0.12); }
.field select option { color: #0F172A; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 0.92rem; color: var(--mist); box-shadow: inset 0 0 0 1px var(--night-line-strong); cursor: pointer; transition: all 0.2s; user-select: none; }
.chip:has(input:checked) { background: rgba(142, 219, 255, 0.12); color: var(--cream); box-shadow: inset 0 0 0 1px var(--sky); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ marquee */
.marquee { --dur: 60s; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.doc-chip { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 22px 0 14px; border-radius: 14px; background: rgba(23, 38, 61, 0.6); box-shadow: inset 0 0 0 1px var(--night-line); white-space: nowrap; color: var(--cream); font-weight: 500; }
.doc-chip .ext { font: 700 0.66rem/1 var(--sans); letter-spacing: 0.06em; padding: 6px 7px; border-radius: 6px; background: rgba(142, 219, 255, 0.12); color: var(--sky); }
.doc-chip .yr { color: var(--fog); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal], .split-line > span { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* ------------------------------------------------------------------ native motion graphics in frames */
/* A .screen frame holds either a UI recording (framed) or a native motion graphic (no frame: it sits on the
   page's own background). Stacked frames toggle .is-motion as their active panel changes. */
.screen { transition: background-color 0.5s ease, box-shadow 0.5s ease; }
.screen.is-motion, .screen:has(> .motion) { background-color: transparent; box-shadow: none; overflow: visible; }
.screen > .motion, .screen .stack-vid > .motion, [data-chapter-clip] > .motion { position: absolute; inset: 0; }

/* ------------------------------------------------------------------ rendering performance */
/* No content-visibility: estimated heights for unrendered sections made anchor links and scrollIntoView land
   in the wrong place as sections rendered. The offscreen work it saved is handled by pausing animation instead. */
/* motion graphics lay out and paint inside their own box only */
/* motion graphics lay out inside their own box; paint is not contained so card shadows are never clipped flat */
.motion { contain: layout style; }
.marquee-track { will-change: transform; }
.marquee.off .marquee-track { animation-play-state: paused; }

/* ------------------------------------------------------------------ menus: full-width panels under the nav bar
   Each dropdown spans the viewport, attached to the bottom of the nav, with its links in columns on the page grid
   and a feature card on the right. The <li> is static so the fixed nav is the panel's containing block. */
.nav-links > li.has-menu { position: static; }
.has-menu > button { position: relative; }
.has-menu[data-open='true'] > button::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: calc((var(--nav-h) - 40px) / 2 + 4px); } /* hover bridge to the panel */
.has-menu[data-open='true'] > button { color: var(--cream); background: rgba(255, 255, 255, 0.06); }
.nav:has(.has-menu[data-open='true']) { background: var(--night-1); box-shadow: 0 1px 0 var(--night-line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu.menu-panel {
  top: 100%; left: 0; right: 0; width: auto; padding: 0; border: 0; border-radius: 0;
  background: var(--night-1); backdrop-filter: none; -webkit-backdrop-filter: none;
  border-top: 1px solid var(--night-line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 1px 0 var(--night-line);
  transform: translateY(-6px); max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.has-menu[data-open='true'] .menu.menu-panel { transform: none; }
.nav .wrap.mg-inner { max-width: 1360px; display: grid; align-items: start; justify-content: stretch; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-top: 36px; padding-bottom: 40px; }
.mg-cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-content: start; }
.mg-col { display: grid; align-content: start; gap: 22px; padding: 0 clamp(12px, 1.6vw, 24px); border-left: 1px solid var(--night-line); }
.mg-col:first-child { border-left: 0; padding-left: 0; }
.mg-group { display: grid; align-content: start; gap: 2px; }
.menu-panel .mg-head { display: block; height: auto; margin: 0 0 6px; padding: 0 10px; border-radius: 6px; font: 500 0.88rem/1.6 var(--sans); color: var(--fog); }
.menu-panel a.mg-head:hover { background: none; color: var(--cream); }
.menu-panel .mg-group > a:not(.mg-head) { gap: 2px; padding: 9px 10px; border-radius: 10px; }
.menu-panel .mi-title { font-size: 0.98rem; }
.menu-panel .mi-desc { font-size: 0.86rem; }
.menu-panel a.mg-all { grid-column: 1 / -1; display: inline-flex; justify-self: start; gap: 8px; align-items: center; height: auto; margin-top: 26px; padding: 8px 10px; font-weight: 600; font-size: 0.94rem; color: var(--sky); }
.menu-panel a.mg-all:hover { background: none; }
.menu-panel a.mg-all:hover .arrow { transform: translateX(4px); }
.menu-panel a.mg-all .arrow { transition: transform 0.35s var(--ease-out); }
.menu-panel a.mg-feature { display: grid; gap: 6px; align-content: start; height: auto; padding: 0; border-radius: 0; }
.menu-panel a.mg-feature:hover { background: none; }
.mg-feature-art { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 12px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); overflow: hidden; }
.mg-feature-art img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: transform 1s var(--ease-out); }
.mg-feature:hover .mg-feature-art img { transform: translateY(-4px); }
.mg-kicker { font-size: 0.82rem; color: var(--sky); font-weight: 500; }
.menu-panel .mg-feature .mi-title { font-size: 1.05rem; }
.menu-panel .mg-feature .mi-desc { font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 1180px) { .nav .wrap.mg-inner { grid-template-columns: minmax(0, 1fr); } .mg-feature { display: none !important; } }

/* byline mark: the generic ".byline span { display: block }" outranks ".byline-mark", which pushed the logo into
   the circle's top-left corner. Pin the centring at a higher specificity. */
.byline .byline-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--night-3, #15233A); box-shadow: 0 0 0 2px rgba(142, 219, 255, 0.25); }
.byline .byline-mark img { display: block; width: 26px; height: auto; border-radius: 0; box-shadow: none; object-fit: contain; }

/* line drawings on light sections: slate strokes instead of the periwinkle used on navy */
:is(.paper, .paper-2) .line-art path { stroke: #3E5675; }
:is(.paper, .paper-2) .sec-art .line-art .e { stroke-opacity: 0.5; }
:is(.paper, .paper-2) .sec-art .line-art .t { stroke-opacity: 0.28; }
/* links inside a lede read as links */
.lede a:not(.btn) { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lede a:not(.btn):hover { color: var(--blue); }
.night .lede a:not(.btn):hover, .night-deep .lede a:not(.btn):hover { color: var(--sky); }
