/* NorthRAG: a field manual laid over the mountain. The photograph is the
   ground the page opens and closes on; between, one sheet of full-bleed tiles
   in snow, frost and polar night carries the words, and the isometric figures
   stand on night like the plates of a manual, each with its "Fig. N" caption.
   One typeface, Familjen Grotesk, letters the page and the drawings. Polaris
   amber is light, never paint: it lives in the drawings, the north star, the
   cite tags, live readouts and the lamp of whichever control is live. Cobalt
   is the one action, "Book a demo", and the links. */

/* Familjen Grotesk (SIL Open Font License) is served from this site: its
   latin subset, one variable file from 400 to 700, preloaded by each page.
   No third-party request, so no visitor's address goes anywhere else. */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Its fallback is Arial resized to Familjen's measure: a late font swaps in
   without rewrapping a headline. (Familjen is 0.9355 of Arial's width at 400
   and 0.9065 of Arial Bold's at 600; its ascent is 1.02 em, its descent 0.23 em.) */
@font-face {
  font-family: "Familjen Fallback";
  src: local("Arial"), local("ArialMT"), local("Arimo"), local("Liberation Sans");
  font-weight: 400 500;
  size-adjust: 93.55%;
  ascent-override: 109%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Familjen Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arimo Bold"), local("Liberation Sans Bold");
  font-weight: 600 700;
  size-adjust: 90.65%;
  ascent-override: 112.5%;
  descent-override: 25.4%;
  line-gap-override: 0%;
}

:root {
  /* Ground and ink. Night is a shade under the figures' own faces, so a
     drawing stands off it; snow and frost are the photo's sky and shade. */
  --night: #0b1a26;        /* dark tiles, case stages, screens, footer */
  --night-2: #12283a;      /* cards and control tracks on night */
  --night-3: #1c3a50;      /* the picked segment or tab */
  --rule-night: #24425a;   /* hairlines on night */
  --night-ink: #eef3f6;    /* text on night */
  --night-ink-2: #a7bac8;  /* secondary on night: 7.5:1 on --night-2 */
  --night-ink-3: #8aa1b2;  /* labels on night: 5.6:1 on --night-2 */
  --snow: #f8fafb;         /* light tiles */
  --frost: #ecf0f2;        /* the second light tile, and cells on snow */
  --rule: #d3dce2;         /* hairlines on snow and frost */
  --ink: #13222e;          /* text on snow and frost */
  --ink-2: #4a5b68;        /* secondary on snow and frost: 6.1:1 on frost */
  --ink-photo: #2b3a46;    /* every non-headline text over the photograph */
  --ground: #e4e8ea;       /* behind both photo windows: a late image never flashes white */

  /* Cobalt: "Book a demo" (white on it 6.2:1) and the links in its family. */
  --cta: #2a5fb5;
  --cta-hover: #234f9b;
  --cta-ink: #fff;
  --link: #2457a8;         /* on snow and frost: 6.0:1 on frost */
  --link-night: #8cc3ee;   /* on night: 8.0:1 on --night-2 */
  --link-photo: #1d4f8c;   /* over the photograph's sky */
  --focus: #2a5fb5;
  --focus-night: #8cc3ee;

  /* Figure plates: iso.js draws with these. Keep them as they are. */
  --body: #142b3b;
  --deck: #1c384a;
  --side: #0f2230;
  --line: #7f9aad;
  --detail: #365163;
  --recess: #0b1b26;
  --fig-ink: #8fa5b5;
  --fig-ink-hi: #e3ecf2;
  --glass: #0d1f2b;
  --glass-on: #b9781c;
  --accent: #ffb13b;
  --accent-hi: #ffd68c;
  --accent-dim: #a8690f;
  --font: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* One family for the page; the drawings keep --font above. */
  --sans: "Familjen Grotesk", "Familjen Fallback", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 60px;
  --section: clamp(56px, 6.4vw, 104px);
  /* Radii: tags 6, controls 8, cards 12, stages and cells 14, the sheet 20. */
  --r-tag: 6px;
  --r-ctl: 8px;
  --r-card: 12px;
  --r-stage: 14px;
  --r-sheet: 20px;

  /* The photograph is --k screen-heights tall in the hero and the article
     heads, so the summit lands under the words on any screen. */
  --k: 1.5;
  color-scheme: light;
}
@media (max-height: 800px) and (min-aspect-ratio: 4/5) { :root { --k: 1.62; } }
@media (max-width: 599px) { :root { --section: 52px; } }
@media (max-aspect-ratio: 3/5) { :root { --k: 1.78; } }
/* Short landscape screens (phones on their side, a desktop at 200% zoom):
   a larger photo puts the summit under the words, never behind them. */
@media (max-height: 520px) and (min-aspect-ratio: 3/2) { :root { --k: 2.4; } }

/* ---- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Familjen is narrow, with a small x-height: 18px reads like 17px of a
   wider face, and a hair of tracking opens it at this size. */
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  letter-spacing: 0.003em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
/* Links are underlined, as in a manual; the line darkens on hover. */
a {
  color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  transition: text-decoration-color 160ms ease;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .case :focus-visible, .footer :focus-visible, .nav[data-theme-now="dark"] :focus-visible { outline-color: var(--focus-night); }
/* An index card is a night link on frost: its ring is drawn on the frost, so it stays cobalt. */
.case-card:focus-visible { outline-color: var(--focus); outline-offset: 4px; }
::selection { background: rgba(42, 95, 181, 0.22); }
.nowrap { white-space: nowrap; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -64px; z-index: 100; padding: 11px 16px; border-radius: var(--r-ctl);
  background: var(--cta); color: var(--cta-ink); font-size: 15px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.container.narrow { width: min(100% - 2 * var(--gutter), 820px); }

/* ---- Type ----------------------------------------------------------------- */
/* NorthRAG's scale, on an 18px body: 13 / 15 / 18 / 21 / 24 / 38 / 54 / 82.
   Tracking tightens as the size grows; leading closes up. */

h2 { font-size: clamp(34px, 2.4vw + 20px, 54px); line-height: 1.02; letter-spacing: -0.028em; }
.intro { max-width: 34em; font-size: clamp(19px, 0.3vw + 15.5px, 21px); line-height: 1.45; letter-spacing: -0.002em; color: var(--ink-2); }

/* A section's head sits on the grid's left; from 1024px its intro takes the
   right-hand columns, on the headline's first baseline. */
.head { display: grid; gap: 16px; margin-bottom: clamp(36px, 4.4vw, 60px); }
@media (min-width: 1024px) {
  .head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 5vw, 80px); align-items: baseline; }
  .head h2 { max-width: 13em; }
}
.head-left { margin-bottom: clamp(32px, 4vw, 48px); }

/* Split layouts (developers, security): the headline sits beside its visual. */
.split-head { display: grid; gap: 16px; align-content: start; }
.split-head h2 { font-size: clamp(32px, 2vw + 20px, 48px); line-height: 1.04; letter-spacing: -0.026em; }

.more { font-weight: 500; text-underline-offset: 0.26em; }

/* ---- The one action -------------------------------------------------------- */

/* A key, like the drawings' pressable parts: a cobalt face with a darker lip. */
.demo-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-ctl); background: var(--cta); color: var(--cta-ink);
  box-shadow: inset 0 -2px 0 rgba(9, 24, 40, 0.24);
  font: 600 17px/1 var(--sans); letter-spacing: 0.004em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease; -webkit-tap-highlight-color: transparent;
}
.demo-btn:hover { background: var(--cta-hover); }
.demo-btn:active { transform: scale(0.97); }
.demo-btn.sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }

/* ---- Nav: one translucent bar that takes the colour of the tile under it -- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); color: var(--ink); isolation: isolate;
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
}
.nav::before, .nav::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity 240ms ease; pointer-events: none; }
.nav::before { background: rgba(248, 250, 251, 0.8); box-shadow: inset 0 -1px 0 rgba(19, 34, 46, 0.1); }
.nav::after { background: rgba(11, 26, 38, 0.8); box-shadow: inset 0 -1px 0 rgba(238, 243, 246, 0.1); opacity: 0; }
.nav[data-theme-now="dark"] { color: var(--night-ink); }
.nav[data-theme-now="dark"]::before { opacity: 0; }
.nav[data-theme-now="dark"]::after { opacity: 1; }
.nav-bar { display: flex; align-items: center; gap: 28px; width: min(100% - 2 * var(--gutter), 1200px); height: 100%; margin-inline: auto; }
.nav-brand {
  display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: inherit; text-decoration: none;
  font-size: 20px; line-height: 1; font-weight: 700; letter-spacing: -0.022em;
}
.mark { width: 30px; height: 30px; flex: none; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: inherit; opacity: 0.76; font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: 0.006em; text-decoration: none; transition: opacity 160ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { font-weight: 600; }
/* Seven links share one line down to where the menu folds away. */
.nav-links a { white-space: nowrap; }
@media (min-width: 834px) and (max-width: 1023px) {
  .nav-bar { gap: 20px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 14px; }
}
.nav-toggle { display: none; }
@media (max-width: 833px) {
  .nav-bar { gap: 14px; }
  /* The toggle comes before the menu in the markup, so Tab goes from it into
     the links it opens; order keeps it at the far right. */
  .nav-toggle {
    order: 3;
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; padding: 0;
    border: 0; border-radius: var(--r-ctl); background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle svg { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
  .nav.open .nav-toggle svg { transform: rotate(180deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; padding: 4px var(--gutter) 20px;
    background: var(--snow); box-shadow: 0 1px 0 rgba(19, 34, 46, 0.1), 0 18px 32px -24px rgba(11, 26, 38, 0.35);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  /* Over a night tile the menu is a shade lighter, with a real edge and shadow. */
  .nav[data-theme-now="dark"] .nav-links { background: var(--night-2); box-shadow: 0 1px 0 var(--rule-night), 0 20px 36px -16px rgba(0, 0, 0, 0.7); }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a { display: flex; align-items: center; min-height: 52px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; opacity: 1; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav::before { background: rgba(248, 250, 251, 0.96); }
  .nav::after { background: rgba(11, 26, 38, 0.96); }
}

/* ---- Tiles: one sheet laid over the photograph ----------------------------- */

.tile { position: relative; padding-block: var(--section); }
.light { background: var(--snow); }
.frost { background: var(--frost); }
.dark { background: var(--night); color: var(--night-ink); color-scheme: dark; }
.dark .intro { color: var(--night-ink-2); }
.dark a:not(.demo-btn) { color: var(--link-night); }

/* Its first edge and its last are rounded, and the photo shows past them. */
.sheet-top { position: relative; z-index: 1; margin-top: calc(var(--r-sheet) * -1); border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.sheet-bottom { position: relative; z-index: 1; margin-bottom: calc(var(--r-sheet) * -1); border-radius: 0 0 var(--r-sheet) var(--r-sheet); }

/* ---- The photograph's windows ------------------------------------------------ */

/* --rate is how far the photo lags the page: 0.5 moves it at half the page's
   speed. The hero and the article heads lag less, so the peaks rise with the
   sheet instead of sinking behind it and leaving bare sky under the nav. */
.window {
  --win-h: max(100svh, 560px);
  --rate: 0.5;
  position: relative; isolation: isolate; overflow: hidden; min-height: var(--win-h); background: var(--ground);
}
.hero, .article-hero { --rate: 0.22; }
/* The photo is one of a few (assets/backdrop.js marks which on <html>). Each is cropped so its
   summit is at 40% of its height; what differs is where the summit is across (--bd-sx) and how
   far below it the rock reaches (--bd-rock), which the close keeps its words under. */
:root { --bd-sx: 0.4; --bd-rock: 0.17; }
:root[data-backdrop="gerph"] { --bd-rock: 0.26; }
:root[data-backdrop="bharti"] { --bd-rock: 0.33; }
:root[data-backdrop="blickwedel"] { --bd-rock: 0.36; }
:root[data-backdrop="volnuhin"] { --bd-sx: 0.44; --bd-rock: 0.18; }
.window-media { position: absolute; inset: 0; z-index: -1; }
.window-media picture { display: block; width: 100%; height: 100%; }
.window a:not(.demo-btn) { color: var(--link-photo); }

/* Hero and article heads: the photo is --k screen-heights tall (never narrower
   than the screen) and the summit, --bd-sx across the photo, is centred. */
.hero .window-media img, .article-hero .window-media img {
  --bd-w: max(calc(var(--k) * 150lvh), 100vw);
  --bd-h: calc(var(--bd-w) / 1.5);
  position: absolute; top: 0;
  left: clamp(calc(100vw - var(--bd-w)), calc(50vw - var(--bd-sx) * var(--bd-w)), 0px);
  width: var(--bd-w); height: var(--bd-h); max-width: none;
  transform-origin: 50% 40%;
}

.hero-copy { display: flex; flex-direction: column; align-items: center; padding: calc(var(--nav-h) + clamp(32px, 7svh, 92px)) var(--gutter) 0; text-align: center; }
.hero h1 { max-width: 11.6em; font-size: clamp(44px, 3.4vw + 26px, 82px); line-height: 0.98; letter-spacing: -0.034em; }
.hero-intro { max-width: 29em; margin-top: clamp(18px, 1.7vw, 26px); font-size: clamp(19px, 0.55vw + 14px, 23px); line-height: 1.42; letter-spacing: -0.004em; color: var(--ink-photo); text-wrap: balance; }
.hero .actions { margin-top: clamp(24px, 2.6vw, 36px); }
.hero .actions .more { font-size: clamp(17px, 0.3vw + 14px, 19px); }
@media (max-width: 380px) { .hero .actions { column-gap: 20px; } }
/* From 1024px the words stand on the page's 1200px grid, set left like every
   section head below them; phones keep them centred over the summit. */
@media (min-width: 1024px) {
  .hero-copy { align-items: flex-start; width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; padding-inline: 0; text-align: left; }
  .hero .actions { justify-content: flex-start; }
  .hero-intro { max-width: 30em; text-wrap: pretty; }
}
/* Short landscape screens: tighter words, so the summit still clears the buttons. */
@media (max-height: 760px) and (min-width: 761px) {
  .hero-copy { padding-top: calc(var(--nav-h) + clamp(22px, 4svh, 44px)); }
  .hero h1 { font-size: clamp(44px, 9.6svh, 76px); }
  .hero-intro { font-size: clamp(18px, 2.6svh, 21px); }
}
/* Large screens and portrait tablets: the summit sits at 60% of the screen,
   so the words grow and come down to meet it instead of leaving bare sky. */
@media (min-width: 1800px) and (min-height: 1000px) {
  .hero-copy { padding-top: calc(var(--nav-h) + 12svh); }
  .hero h1 { font-size: clamp(82px, 7.2svh, 108px); }
  .hero-intro { font-size: clamp(23px, 1.75svh, 26px); }
}
@media (min-width: 600px) and (max-aspect-ratio: 4/5) {
  .hero-copy { padding-top: calc(var(--nav-h) + 18svh); }
}
/* 320px: both actions on one row, and a larger photo, so the link stays on the sky. */
@media (max-width: 359px) {
  .hero { --k: 2.4; }
  .hero .actions { column-gap: 14px; }
  .hero .demo-btn { padding: 0 16px; }
  .hero .actions .more { font-size: 16px; }
}

/* At the close the camera is nearer the summit: the photo is 1.15 times the
   hero's size, sized by the screen's height the same way, with the summit just
   under the nav. The words start below the peaks (their room is held in the
   copy's top padding: the rock runs from 40% of the photo's height down --bd-rock more), so they
   sit on the sea of clouds on any screen. The close and the footer fill one
   screen where they fit; a short screen gets a taller window instead. */
.closing {
  --foot: 360px; /* the footer's height, about */
  --win-h: max(calc(max(100svh, 560px) - var(--foot)), 432px);
  --bd-w: max(calc(var(--k) * 1.15 * 150lvh), 100vw);
  --bd-h: calc(var(--bd-w) / 1.5);
  --summit: calc(var(--nav-h) + clamp(12px, 3svh, 32px));
}
.closing .window-media img {
  position: absolute; top: calc(var(--summit) - 0.40 * var(--bd-h));
  left: clamp(calc(100vw - var(--bd-w)), calc(50vw - var(--bd-sx) * var(--bd-w)), 0px);
  width: var(--bd-w); height: var(--bd-h); max-width: none;
}
.closing-copy {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 18px;
  min-height: var(--win-h); text-align: center;
  padding: calc(var(--summit) + var(--bd-rock) * var(--bd-h) + 28px) var(--gutter) clamp(40px, 8svh, 96px);
}
@media (max-width: 1023px) { .closing { --foot: 460px; } }
@media (max-width: 699px) { .closing { --foot: 650px; } }
@media (max-height: 760px) and (min-width: 761px) { .closing h2 { font-size: clamp(36px, 7svh, 54px); } }
.closing h2 { max-width: 12.5em; }
.closing .intro { max-width: 29em; color: var(--ink-photo); text-wrap: balance; }
.closing .actions { margin-top: 8px; }
.mail { font-size: 15px; line-height: 1.45; color: var(--ink-photo); }

/* ---- Figures: plates on night, each with its caption ---------------------------- */

.plate { margin: 0; color: var(--fig-ink); }
/* Under each drawing, on a hairline: "Fig. N" and its title, the live
   readout on its own line under it, then the controls that play it. The
   readout never shares a line with the caption, so a long one can't rewrap
   the caption and move the keys under the pointer. */
.fig-ui {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "cap" "read" "ctl" "note";
  align-items: baseline; gap: 2px 24px; margin-top: clamp(10px, 1.4vw, 18px); padding-top: 14px;
  border-top: 1px solid var(--rule-night);
}
.fig-ui:not(:has(.controls, .fig-note)) { row-gap: 0; }
.fig-cap { grid-area: cap; font-size: 15px; line-height: 1.45; letter-spacing: 0.006em; color: var(--night-ink-2); }
.fig-n { margin-right: 0.45em; font-weight: 600; color: var(--night-ink); font-variant-numeric: tabular-nums; }
.readout {
  grid-area: read; justify-self: start; min-height: 1.45em; font-size: 14px; line-height: 1.45; letter-spacing: 0.012em;
  font-variant-numeric: tabular-nums; color: var(--night-ink-3); white-space: normal;
}
.readout.live { color: var(--accent-hi); }
/* The buttons under a drawing never get wider than its column. */
.fig-ui .controls { grid-area: ctl; justify-self: start; max-width: 100%; margin-top: 12px; }
.fig-note { grid-area: note; max-width: 40em; margin-top: 10px; font-size: 15px; line-height: 1.47; letter-spacing: 0.006em; color: var(--night-ink-3); }
/* Below about 390px a long readout takes two lines: hold them. */
@media (max-width: 389px) { .readout { min-height: calc(2 * 1.45em); } }
/* Fig. 1's caption is short and its readouts are too: from 600px they share
   one line, which holds for every readout. */
@media (min-width: 600px) {
  .core-grid .fig-ui { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cap read" "ctl ctl"; row-gap: 14px; }
  .core-grid .readout { justify-self: end; white-space: nowrap; }
  .core-grid .fig-ui .controls { margin-top: 0; }
}

/* A control panel under a figure: keys in a hairline frame, each with a lamp
   like the drawings' own lights, an empty ring until it's the live one. */
.seg {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px;
  border-radius: 11px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--rule-night);
}
.seg button, .part-tabs [role="tab"] {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px;
  border: 0; background: transparent; color: var(--night-ink-2); cursor: pointer; white-space: nowrap;
  font-family: var(--sans); -webkit-tap-highlight-color: transparent;
  transition: transform 120ms var(--ease-out), color 160ms ease;
}
.seg button { min-height: 40px; padding: 0 16px 0 13px; border-radius: var(--r-ctl); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: 0.006em; }
.seg button::before, .part-tabs [role="tab"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--night-3);
  box-shadow: inset 0 1px 0 rgba(238, 243, 246, 0.07), inset 0 -2px 0 rgba(4, 12, 18, 0.35);
  opacity: 0; transition: opacity 180ms var(--ease-out);
}
.seg button::after, .part-tabs [role="tab"]::after {
  content: ""; flex: none; order: -1; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--night-ink-3);
}
.seg [aria-pressed="true"], .seg [aria-selected="true"], .part-tabs [aria-selected="true"] { color: var(--night-ink); }
.seg [aria-pressed="true"]::before, .seg [aria-selected="true"]::before, .part-tabs [aria-selected="true"]::before { opacity: 1; }
.seg [aria-pressed="true"]::after, .seg [aria-selected="true"]::after, .part-tabs [aria-selected="true"]::after {
  background: var(--accent-hi); box-shadow: 0 0 0 1.5px var(--accent), 0 0 10px 2px rgba(255, 177, 59, 0.55);
}
.seg button:active, .part-tabs [role="tab"]:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .seg button:hover, .part-tabs [role="tab"]:hover { color: var(--night-ink); }
}
.seg-sm { background: var(--night); }
.seg-sm button { min-height: 36px; font-size: 14px; }
@media (max-width: 599px) {
  .seg { gap: 8px; padding: 0; background: none; box-shadow: none; }
  .seg button { background: var(--night-2); box-shadow: inset 0 0 0 1px var(--rule-night); }
  .seg-sm button { background: var(--night); }
}

/* Phones: a drawing bleeds to the edges of its dark surface and is shown a
   little larger than its box, so its lettering stays readable. */
@media (max-width: 599px) {
  .stage-box { margin-inline: calc(var(--bleed, var(--gutter)) * -1); overflow: hidden; }
  .stage-box > .stage { width: var(--zoom, 112%); max-width: none; margin-left: calc((100% - var(--zoom, 112%)) / 2); }
}

/* ---- Fig. 1: the drawing, and the conversation beside it ---------------------------- */

.core-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "ui" "talk"; gap: 20px; }
.core-grid .stage-box { grid-area: stage; width: 100%; max-width: 860px; justify-self: center; }
.core-grid .fig-ui { grid-area: ui; margin-top: 0; }
.exchange {
  grid-area: talk; display: grid; gap: 10px; padding: 22px 24px; border-radius: var(--r-card);
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--rule-night);
}
.exchange .q { font-size: 15px; line-height: 1.45; letter-spacing: 0.006em; color: var(--night-ink-2); }
.exchange .a {
  min-height: calc(2 * 1.36em); font-size: clamp(19px, 0.5vw + 14px, 22px); line-height: 1.36; font-weight: 600; letter-spacing: -0.01em;
  color: var(--night-ink);
}
.exchange .a.waiting { color: var(--night-ink-3); }
/* Cite tags: amber, because each one is a source the answer just used. */
.cites { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 28px; margin: 4px 0 0; padding: 0; list-style: none; transition: opacity 160ms ease; }
.cites.pending { opacity: 0; }
.cites li {
  padding: 4px 9px; border: 1px solid var(--accent-dim); border-radius: var(--r-tag);
  font-size: 13px; line-height: 1.3; letter-spacing: 0.012em; color: var(--accent-hi); animation: cite-in 260ms var(--ease-out) both;
}
.cites li:nth-child(2) { animation-delay: 60ms; }
@keyframes cite-in { from { opacity: 0; transform: translateY(3px); } }
@media (max-width: 599px) {
  .exchange { padding: 18px; }
  .exchange .cites { min-height: 62px; }
}
/* Below about 390px the longest answer takes three lines: hold them. */
@media (max-width: 389px) { .exchange .a { min-height: calc(3 * 1.36em); } }
/* Below 480px two of the three questions take two lines: hold them, so
   switching team doesn't move the page under the card. */
@media (max-width: 479px) { .exchange .q { min-height: calc(2 * 1.45em); } }
/* From 600px to about 680px Legal's two sources take two rows: hold them. */
@media (min-width: 600px) and (max-width: 699px) { .exchange .cites { min-height: 62px; } }
@media (min-width: 1024px) {
  .core-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); grid-template-areas: "stage talk" "ui talk";
    column-gap: clamp(32px, 4vw, 56px); row-gap: 0;
  }
  .core-grid .stage-box { max-width: none; }
  .core-grid .fig-ui { margin-top: 14px; }
  /* In the column the whole exchange holds the room of the longest one (a
     two-line question, a three-line answer, two rows of sources), so a short
     answer leaves no hole between itself and its sources. */
  .core-grid .exchange {
    align-self: center; align-content: start; min-height: 236px; padding: 4px 0 4px clamp(24px, 3vw, 40px);
    border-left: 1px solid var(--rule-night); border-radius: 0; background: none; box-shadow: none;
  }
  .core-grid .exchange .a { min-height: 0; }
}
/* Landscape phones: the drawing is held to the screen's height, so it and
   its keys fit on screen together, and it can come far enough into view to
   play its first run. */
@media (orientation: landscape) and (max-height: 500px) {
  .core-grid .stage-box { max-width: min(860px, 110vh); }
}

/* ---- Why: the three questions ------------------------------------------------------ */

.questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.question { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
.question h3 { font-size: clamp(22px, 0.7vw + 14px, 25px); line-height: 1.16; letter-spacing: -0.016em; }
.question p { color: var(--ink-2); }
.question .more { justify-self: start; margin-top: 6px; }
/* An API path inside a point (the Developers page). */
.question code { font: 500 0.86em/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 833px) { .questions { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* The home page's story beats (why now, the first tries): the same columns, as a sequence. */
.beats { list-style: none; }
.beat-when { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.question .beat-n { font-size: clamp(56px, 2.6vw + 34px, 80px); font-weight: 600; line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.question .beat-src { font-size: 14px; line-height: 1.4; }
.beat-turn { max-width: 24em; margin-top: clamp(40px, 4.4vw, 64px); font-size: clamp(24px, 1vw + 16px, 32px); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }

/* ---- The answer: one sentence on night, beside Polaris -------------------------------- */

.statement-tile { padding-block: clamp(76px, 6vw + 48px, 150px); }
.statement-tile .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .statement-tile .container { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(48px, 7vw, 128px); } }
.statement-tile h2 { max-width: 14em; font-size: clamp(36px, 3.2vw + 16px, 68px); line-height: 1.02; letter-spacing: -0.032em; color: var(--night-ink); }
.statement-lead {
  max-width: 30em; margin-top: clamp(18px, 2vw, 28px); text-wrap: balance;
  font-size: clamp(19px, 0.5vw + 14px, 23px); line-height: 1.42; letter-spacing: -0.004em; color: var(--night-ink-2);
}
/* The north star of the logo, drawn as a chart mark: hairline rings, the
   star in the figures' deck colour, and its amber light, the only one here. */
.polaris { width: clamp(150px, 15vw, 220px); height: auto; color: var(--line); }
.polaris .ring { fill: none; stroke: var(--rule-night); stroke-width: 1; vector-effect: non-scaling-stroke; }
.polaris .ring.dash { stroke-dasharray: 2 5; }
.polaris .tick { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.6; }
.polaris .body { fill: var(--deck); stroke: var(--line); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.polaris .glow { fill: var(--accent); opacity: 0.4; }
.polaris .core { fill: var(--accent-hi); stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (max-width: 899px) { .polaris { display: none; } }
/* The sentence is always lit; the star's core is the one thing that lights as
   the tile comes up the screen. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement-tile { view-timeline: --statement block; }
    .statement-tile .polaris .glow, .statement-tile .polaris .core {
      animation: star-on linear both; animation-timeline: --statement; animation-range: cover 30% cover 45%;
    }
  }
}
@keyframes star-on { from { opacity: 0; } }

/* ---- Case studies: two night stages on frost ------------------------------------------- */

.case {
  --case-pad: clamp(20px, 3.6vw, 52px);
  --bleed: var(--case-pad);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px;
  padding: clamp(28px, 4vw, 52px) var(--case-pad);
  border-radius: var(--r-stage); background: var(--night); color: var(--night-ink); color-scheme: dark;
}
.case + .case { margin-top: 20px; }
.case a:not(.demo-btn) { color: var(--link-night); }
.case-head { display: grid; justify-items: start; gap: 10px; }
.case-head h3 { font-size: clamp(30px, 1.5vw + 19px, 42px); line-height: 1.04; letter-spacing: -0.026em; }
.case-line { max-width: 34em; text-wrap: balance; font-size: clamp(19px, 0.4vw + 15px, 22px); line-height: 1.4; letter-spacing: -0.003em; color: var(--night-ink-2); }
.case-head .more { margin-top: 2px; }
.case > .plate { width: 100%; max-width: 860px; }
.case-body { display: grid; gap: 22px; align-content: start; width: 100%; max-width: 860px; }
.case-story { color: var(--night-ink-2); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; margin: 0; }
.facts div { display: grid; gap: 3px; align-content: start; padding: 12px 0 13px; border-top: 1px solid var(--rule-night); }
.facts dt { font-size: 13px; line-height: 1.35; font-weight: 500; letter-spacing: 0.016em; color: var(--night-ink-3); }
.facts dd { margin: 0; font-size: 17px; line-height: 1.38; letter-spacing: 0; color: var(--night-ink); }
@media (min-width: 600px) and (max-width: 1199px) { .case .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .case { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "head head" "fig body"; gap: 24px 48px; padding: clamp(28px, 4vw, 52px); }
  .case.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "head head" "body fig"; }
  .case-head { grid-area: head; }
  .case > .plate { grid-area: fig; max-width: none; }
  .case-body { grid-area: body; align-self: center; max-width: none; }
}
.all-cases { margin-top: clamp(24px, 3vw, 32px); }

/* ---- Part by part: a list of lamps, the drawing beside it ----------------------------- */

.explore {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "tabs fig" "panel fig";
  grid-template-rows: auto 1fr; gap: 20px clamp(32px, 4vw, 64px); align-items: start;
}
/* The parts as rows on hairlines; the picked one is a raised key with its lamp lit. */
.part-tabs { grid-area: tabs; display: grid; gap: 0; border-top: 1px solid var(--rule-night); }
.part-tabs [role="tab"] {
  width: 100%; min-height: 54px; padding: 0 18px 0 16px; border-radius: 0; box-shadow: inset 0 -1px 0 var(--rule-night);
  font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-align: left;
}
.part-tabs [role="tab"]::before { inset: 4px 0 5px; border-radius: var(--r-ctl); }
.part-panels { grid-area: panel; min-height: 21em; }
.part-panel { display: grid; gap: 14px; padding: 26px 26px 28px; border-radius: var(--r-card); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--rule-night); }
.part-panel h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.014em; }
.part-panel p { color: var(--night-ink-2); }
.part-panel .formats { padding-top: 14px; border-top: 1px solid var(--rule-night); font-size: 15px; line-height: 1.47; letter-spacing: 0.006em; color: var(--night-ink-3); }
/* The choices in a panel stand as a column of keys: three never fit one row there. */
.part-panel .choices { display: grid; justify-self: stretch; margin-top: 4px; }
.part-panel .choices button { justify-content: flex-start; }
.explore-fig { grid-area: fig; align-self: center; }
[role="tabpanel"]:not([hidden]) { animation: panel-in 220ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } }
/* Beside the drawing, the panels share one cell, so the column always holds
   the tallest and the drawing stays put whichever part is picked. Hidden ones
   keep their room but stay out of sight, focus and the accessibility tree. */
@media (min-width: 1024px) {
  .part-panels { display: grid; }
  .part-panels > [role="tabpanel"] { grid-area: 1 / 1; }
  .part-panels > [role="tabpanel"][hidden] { display: grid !important; visibility: hidden; }
}
@media (max-width: 1023px) {
  .explore { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fig" "tabs" "panel"; grid-template-rows: auto; gap: 18px; }
  .part-tabs {
    display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-top: 0;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .part-tabs::-webkit-scrollbar { display: none; }
  .part-tabs [role="tab"] {
    flex: none; width: auto; min-height: 44px; padding: 0 16px 0 14px; border-radius: var(--r-ctl);
    box-shadow: inset 0 0 0 1px var(--rule-night); font-size: 15px; font-weight: 500;
  }
  .part-tabs [role="tab"]::before { inset: 0; }
  .part-panels { min-height: 0; }
}
@media (max-width: 599px) { .part-panel { padding: 22px 20px 24px; } }

/* ---- What teams get: frost cells; the drawings sit on night screens --------------- */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-stage); background: var(--frost); overflow: hidden;
}
.cell-sources { grid-column: span 7; }
.cell-current { grid-column: span 5; }
.cell-models { grid-column: span 5; }
.cell-apart { grid-column: span 7; }
.cell-k8s { grid-column: span 7; }
.cell-brand { grid-column: span 5; }
.cell-license { grid-column: span 12; }
.cell-copy { display: grid; gap: 8px; align-content: start; max-width: 30em; }
.cell-copy h3 { font-size: clamp(21px, 0.4vw + 16px, 24px); line-height: 1.18; letter-spacing: -0.016em; color: var(--ink); }
.cell-copy p { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.screen { padding: clamp(18px, 2vw, 26px); border-radius: var(--r-card); background: var(--night); color: var(--night-ink); color-scheme: dark; }
.screen > .stage { margin-inline: auto; }
.cell-current .screen > .stage { max-width: 380px; }
.cell-apart .screen > .stage { max-width: 360px; }
.cell .label.lit { fill: var(--accent-hi); }
.cell .label.dim { fill: var(--fig-ink); }
@media (min-width: 1024px) {
  .cell-apart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .cell-license { display: grid; grid-template-columns: minmax(0, 30em) minmax(0, 1fr); align-items: end; }
  .cell-license .big-line { justify-self: end; text-align: right; }
}

.chat { display: grid; gap: 14px; }
.chat-q {
  justify-self: end; max-width: 85%; padding: 10px 15px; border-radius: 12px 12px 4px 12px; background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--rule-night); color: var(--night-ink); font-size: clamp(15px, 0.3vw + 12px, 17px); line-height: 1.38;
}
.chat-a { max-width: 24em; font-size: clamp(19px, 0.6vw + 13px, 23px); line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; color: var(--night-ink); }

.models { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.models-k { margin-bottom: 10px; font-size: 13px; line-height: 1.35; font-weight: 500; letter-spacing: 0.016em; color: var(--ink-2); }
.models li { font-size: clamp(22px, 1vw + 12px, 28px); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

.big-line { font-size: clamp(30px, 1.6vw + 16px, 42px); line-height: 1.04; font-weight: 600; letter-spacing: -0.028em; color: var(--ink); text-wrap: balance; }

.console { overflow: hidden; border-radius: 10px; background: var(--night); box-shadow: inset 0 0 0 1px var(--night-3); }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--night-3); }
.console-logo { display: grid; place-items: center; width: 36px; height: 36px; border: 1px dashed var(--night-ink-3); border-radius: var(--r-ctl); font-size: 11px; color: var(--night-ink-3); }
.console-name { font-size: 16px; font-weight: 600; color: var(--night-ink); }
.console-body { display: grid; gap: 10px; padding: 18px 16px 20px; }
.sk { width: 78%; height: 8px; border-radius: 3px; background: var(--night-3); }
.sk.short { width: 52%; }
.sk:last-child { width: 64%; }

.clusters { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--rule); }
.clusters li { padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: clamp(21px, 1.2vw + 12px, 30px); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

@media (max-width: 1023px) {
  /* Dense packing brings "Under your brand" up beside "Each team kept apart". */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .bento > .cell { grid-column: auto; }
  .bento > .cell-sources, .bento > .cell-k8s, .bento > .cell-license { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento > .cell { grid-column: 1 / -1; gap: 20px; }
}

/* ---- Build: the copy beside the examples, a tab for each --------------------------- */

.dev { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 52px); }
.code-card { overflow: hidden; border-radius: var(--r-card); background: var(--night); color: #c9d6df; color-scheme: dark; }
.code-card :focus-visible { outline-color: var(--focus-night); }
.code-bar { padding: 14px 18px; border-bottom: 1px solid var(--rule-night); }
/* The examples share one cell, so the card holds the tallest and nothing
   below it moves when another tab is picked. Hidden ones keep their room
   but stay out of sight, focus and the accessibility tree. */
.code-sets { display: grid; }
.code-sets > [role="tabpanel"] { grid-area: 1 / 1; min-width: 0; }
.code-sets > [role="tabpanel"][hidden] { display: block !important; visibility: hidden; }
.code-pane { min-width: 0; padding: 24px 30px 28px; }
.code-pane + .code-pane { border-top: 1px solid var(--rule-night); }
.code-label { margin-bottom: 12px; font-size: 13px; line-height: 1.35; font-weight: 500; letter-spacing: 0.016em; color: var(--night-ink-3); }
.code-card pre { margin: 0; overflow-x: auto; font: 400 13.5px/1.75 var(--mono); letter-spacing: 0; }
.code-card pre:focus-visible { outline-color: var(--focus-night); outline-offset: 6px; }
.code-card .c { color: var(--night-ink-3); }
.code-card .k { color: var(--link-night); }
.code-card .s { color: var(--night-ink); }
.points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
.points li { display: grid; gap: 3px; align-content: start; padding: 13px 0 15px; border-top: 1px solid var(--rule); }
.points h3 { font-size: 19px; line-height: 1.26; letter-spacing: -0.01em; }
.points p { font-size: 17px; color: var(--ink-2); }
@media (min-width: 600px) and (max-width: 1023px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .dev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head code" "points code"; align-items: start; column-gap: clamp(40px, 5vw, 80px); row-gap: 36px; }
  .dev > .split-head { grid-area: head; }
  .dev > .code-card { grid-area: code; }
  .dev > .points { grid-area: points; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .code-card pre { font-size: 12.5px; } }
@media (max-width: 559px) { .code-bar { padding: 12px; } .code-pane { padding: 20px 18px 22px; } .code-card pre { font-size: 12.5px; } }
/* Phones: the three example tabs keep to one row. */
@media (max-width: 599px) { .code-bar .seg { gap: 6px; } .code-bar .seg button { gap: 8px; padding: 0 11px 0 10px; } }

/* ---- Security: the network beside what the review asks ------------------------------ */

.sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 52px); }
.sec-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
.sec-points li { display: grid; gap: 3px; padding: 13px 0 15px; border-top: 1px solid var(--rule-night); }
.sec-points h3 { font-size: 20px; line-height: 1.26; letter-spacing: -0.012em; }
.sec-points p { font-size: 17px; color: var(--night-ink-2); }
@media (min-width: 600px) and (max-width: 1023px) { .sec-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .sec { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "fig head" "fig points"; grid-template-rows: auto 1fr; align-items: start; column-gap: clamp(40px, 5vw, 80px); row-gap: 28px; }
  .sec > .split-head { grid-area: head; }
  .sec > .plate { grid-area: fig; align-self: center; }
  .sec > .sec-points { grid-area: points; }
}

/* ---- FAQ: the headline holds the left columns, the questions the right --------------- */

.faq { display: grid; gap: clamp(28px, 4vw, 44px); }
@media (min-width: 1024px) {
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .faq > h2 { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 0;
  font-size: clamp(19px, 0.5vw + 14px, 22px); line-height: 1.26; font-weight: 600; letter-spacing: -0.012em;
  list-style: none; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px; color: var(--ink-2);
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 220ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 40em; padding: 0 0 24px; color: var(--ink-2); }
.faq-list details[open] p { animation: faq-in 220ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---- Footer: the colophon, on night ------------------------------------------------------- */

/* The brand and a line about it, then the links in columns under their headings, then the
   legal line. Four columns from 700px, two on a phone. */
.footer { padding-block: clamp(48px, 5vw, 72px) 38px; background: var(--night); color: var(--night-ink-3); color-scheme: dark; font-size: 15px; line-height: 1.45; letter-spacing: 0.006em; }
.footer a { color: var(--night-ink-2); text-decoration: none; }
.footer a:hover { color: var(--night-ink); text-decoration: underline; }
.footer a[aria-current="page"] { color: var(--night-ink); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule-night); }
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px; color: var(--night-ink) !important;
  font-size: 18px; font-weight: 700; letter-spacing: -0.022em; text-decoration: none !important;
}
.footer-brand .mark { width: 26px; height: 26px; }
.footer-about p { max-width: 19em; margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--night-ink-3); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.footer-h { margin-bottom: 10px; font-size: 14px; line-height: 1.35; font-weight: 600; letter-spacing: 0.01em; color: var(--night-ink); }
.footer-col ul { display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 34px; font-size: 16px; line-height: 1.3; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; }
@media (min-width: 700px) { .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 48px; } }

/* ---- Case-study pages: the same tiles, set as an article ------------------------------------ */

/* The head stands on the sky, and the summit shows under it. */
.article-hero { --win-h: max(560px, min(100svh, calc(var(--k) * 52lvh))); }
@media (max-width: 599px) { .article-hero { --k: 2.0; } }
.article-hero .container { padding-top: calc(var(--nav-h) + clamp(30px, 6.5svh, 84px)); text-align: center; }
.crumb { font-size: 15px; line-height: 1.45; letter-spacing: 0.006em; color: var(--ink-photo); }
.article-hero h1 { max-width: 14em; margin: 14px auto 0; font-size: clamp(38px, min(4.9vw, 9svh), 72px); line-height: 1; letter-spacing: -0.032em; }
.article-hero .intro { margin: clamp(16px, 2vw, 24px) auto 0; color: var(--ink-photo); text-wrap: balance; }
/* From 1024px the head is set left on the 1200px grid, as the home page's is. */
@media (min-width: 1024px) {
  .article-hero .container.narrow { width: min(100% - 2 * var(--gutter), 1200px); }
  .article-hero .container { text-align: left; }
  .article-hero h1, .article-hero .intro { margin-inline: 0; }
}
/* The list of case studies has a one-line intro and two cards to show: a
   shorter window, with the summit just under the words. */
.article-hero.list-head { --k: 1.25; --win-h: max(480px, min(76svh, calc(var(--k) * 62lvh))); }
@media (max-width: 599px) { .article-hero.list-head { --k: 1.3; --win-h: max(480px, min(72svh, calc(var(--k) * 52lvh))); } }
@media (max-height: 520px) and (min-aspect-ratio: 3/2) { .article-hero.list-head { --k: 2.4; } }

.article-stage { padding-block: clamp(52px, 6.4vw, 92px); }
.article-stage .plate { max-width: 980px; margin-inline: auto; }

.article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.article aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.article .facts div { border-top-color: var(--rule); }
.article .facts dt { color: var(--ink-2); }
.article .facts dd { color: var(--ink); }
.prose { display: grid; gap: 20px; max-width: 40em; }
.prose h2 { margin-top: 28px; font-size: clamp(28px, 1.2vw + 20px, 38px); line-height: 1.06; letter-spacing: -0.024em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 19px; line-height: 1.55; letter-spacing: 0.002em; color: var(--ink-2); }
.prose ol { display: grid; gap: 14px; padding-left: 1.2em; }
.prose ol li::marker { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.prose li strong { color: var(--ink); font-weight: 600; }
.prose .actions { justify-content: flex-start; margin-top: 6px; }
@media (max-width: 1023px) { .article { grid-template-columns: minmax(0, 1fr); } .article aside { position: static; } }

/* The case studies, listed: each card is one link, a night stage holding the
   case's plate (drawn at rest, inert, so a click anywhere opens the case). */
.case-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.case-card {
  --card-pad: clamp(28px, 4vw, 48px);
  --bleed: var(--card-pad);
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; padding: var(--card-pad);
  border-radius: var(--r-stage); background: var(--night); color: var(--night-ink); color-scheme: dark; text-decoration: none;
}
.case-card .plate { width: 100%; max-width: 860px; margin-bottom: 6px; }
.case-card-copy { display: grid; justify-items: start; gap: 14px; align-content: start; }
.case-card h2 { font-size: clamp(30px, 1.2vw + 22px, 38px); line-height: 1.06; letter-spacing: -0.026em; }
.case-card p { max-width: 34em; font-size: 19px; line-height: 1.5; letter-spacing: 0.002em; color: var(--night-ink-2); }
@media (min-width: 1200px) {
  .case-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy plate"; align-items: center; column-gap: 48px; }
  .case-card.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "plate copy"; }
  .case-card .plate { grid-area: plate; max-width: none; margin: 0; }
  .case-card-copy { grid-area: copy; }
}
.case-card .more {
  justify-self: start; margin-top: 8px; color: var(--link-night); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.26em; text-decoration-color: color-mix(in srgb, currentColor 42%, transparent); transition: text-decoration-color 160ms ease;
}
.case-card:hover .more { text-decoration-color: currentColor; }

/* ---- Where it pays: the flow, the shape of the return, the calculator -------------------- */

/* Who does a step: cobalt is the customer's, amber is NorthRAG at work. */
.owner {
  display: inline-flex; align-items: center; gap: 7px; padding: 2px 9px 3px 8px; border-radius: var(--r-tag);
  font-size: 13px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; vertical-align: 0.12em;
}
.owner::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.owner.you { color: var(--link-night); box-shadow: inset 0 0 0 1px rgba(140, 195, 238, 0.42); }
.owner.you::before { background: var(--link-night); }
.owner.nr { color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--accent-dim); }
.owner.nr::before { background: var(--accent); box-shadow: 0 0 8px 1px rgba(255, 177, 59, 0.55); }
.owner.both { color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--rule-night); }
.owner.both::before { background: linear-gradient(90deg, var(--link-night) 50%, var(--accent) 50%); }

/* The drawing holds still while the steps pass it: beside them from 1024px,
   above them (stuck under the nav) on narrower screens. */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); }
.flow-fig {
  --zoom: 100%;
  position: sticky; top: var(--nav-h); z-index: 2;
  margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 14px; background: var(--night);
}
@media (min-width: 600px) { .flow-fig .stage-box, .flow-fig .fig-ui { max-width: 660px; margin-inline: auto; } }
/* The steps slide under a soft edge rather than a cut. */
.flow-fig::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(var(--night), rgba(11, 26, 38, 0)); pointer-events: none; }
.flow-keys { display: none; }
.steps { display: grid; }
.step { display: grid; align-content: center; gap: 12px; min-height: 62svh; padding-block: 36px; }
.step-meta { display: flex; align-items: center; gap: 12px; }
.step-n { font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--night-ink-3); }
.step h3 { max-width: 16em; font-size: clamp(26px, 0.9vw + 20px, 34px); line-height: 1.08; letter-spacing: -0.022em; color: var(--night-ink); transition: color 240ms ease; }
.step > p:not([class]) { max-width: 32em; color: var(--night-ink-2); }
.gain { max-width: 32em; margin-top: 4px; padding: 2px 0 2px 16px; border-left: 2px solid var(--link-night); font-size: 17px; line-height: 1.5; color: var(--night-ink); transition: border-color 240ms ease; }
.gain-k { display: block; margin-bottom: 2px; font-size: 13px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; color: var(--link-night); transition: color 240ms ease; }
/* With the script on, the step being played is the bright one. */
.flow.js .step:not(.on) h3 { color: var(--night-ink-3); }
.flow.js .step:not(.on) .gain { border-left-color: var(--rule-night); }
.flow.js .step:not(.on) .gain-k { color: var(--night-ink-3); }
.flow.js .step.on .step-n { color: var(--accent-hi); }
@media (min-width: 1024px) {
  .flow { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .flow-fig { top: calc(var(--nav-h) + max(24px, 50svh - 340px)); margin: 0; padding: 0; }
  .flow-fig .stage-box, .flow-fig .fig-ui { max-width: none; }
  .flow-fig::after { display: none; }
  .flow-keys { display: inline-flex; }
  .flow-keys button { gap: 8px; padding: 0 12px 0 10px; }
  .steps { padding-block: 8svh 22svh; }
  .step { min-height: 74svh; }
}
/* Short screens under 1024px: no room to hold the drawing above the steps.
   It stands on its own with its keys, and the steps read as a list. */
@media (max-width: 1023px) and (max-height: 699px) {
  .flow-fig { position: static; margin-bottom: 12px; }
  .flow-fig::after { display: none; }
  .flow-keys { display: inline-flex; }
  .step { min-height: 0; }
}
@media (max-width: 599px) { .step { gap: 10px; } .step h3 { font-size: 25px; } }

/* The shape of the return: a flat line for the cost, a column that grows. */
.pays { margin: 0; }
.pays-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pays-steps li { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; }
.pays-steps li > :not(.pays-viz) { padding-right: clamp(16px, 2.4vw, 32px); }
/* Two lanes with no shared scale: the cost on top, what comes back below. */
.pays-viz { position: relative; height: 168px; margin-bottom: 22px; border-bottom: 1px solid #b9c5cd; }
.pays-cost { position: absolute; left: 0; right: 0; top: 16px; border-top: 2px solid var(--ink-2); }
.pays-steps li:first-child .pays-cost::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.pays-ret {
  position: absolute; left: 14px; bottom: 0; width: min(46%, 120px); height: calc(var(--r) * 34px);
  border-radius: 4px 4px 0 0; background: var(--cta);
}
.pays-k { margin-bottom: 6px; font-size: 13px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.pays-steps h3 { margin-bottom: 8px; font-size: clamp(21px, 0.4vw + 16px, 24px); line-height: 1.18; letter-spacing: -0.016em; }
.pays-steps p:not(.pays-k) { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.pays-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: clamp(28px, 3vw, 40px); padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.pays-key span { display: inline-flex; align-items: center; gap: 9px; }
.key-cost::before { content: ""; width: 22px; border-top: 2px solid var(--ink-2); }
.key-ret::before { content: ""; width: 12px; height: 14px; border-radius: 2px 2px 0 0; background: var(--cta); }
.key-note { margin-left: auto; }
@media (max-width: 833px) {
  .pays-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .key-note { margin-left: 0; }
}
@media (max-width: 599px) {
  .pays-steps { column-gap: 0; row-gap: 32px; }
  .pays-viz { height: 112px; margin-bottom: 16px; }
  .pays-ret { left: 0; height: calc(var(--r) * 24px); }
  .pays-steps p:not(.pays-k) { font-size: 16px; }
}
@media (max-width: 359px) { .pays-steps { grid-template-columns: minmax(0, 1fr); } }

/* The calculator: the visitor's numbers on frost, the result on night. */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; } }
.calc-in { display: grid; gap: 28px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-stage); background: var(--frost); }
.field { display: grid; gap: 8px; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.field label { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.004em; color: var(--ink); }
.field output { font-size: 26px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.hint { font-size: 15px; line-height: 1.47; letter-spacing: 0.006em; color: var(--ink-2); }
.calc-basis { padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.47; color: var(--ink-2); }
.calc input[type="range"] { --fill: 50%; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cta) var(--fill), #c9d3da var(--fill)); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #c9d3da; }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--cta); }
.calc input[type="range"]::-webkit-slider-thumb {
  width: 26px; height: 26px; margin-top: -10px; border: 0; border-radius: 50%; background: #fff; -webkit-appearance: none; appearance: none;
  box-shadow: 0 0 0 1px rgba(19, 34, 46, 0.2), 0 2px 6px rgba(11, 26, 38, 0.24); transition: transform 120ms var(--ease-out);
}
.calc input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(19, 34, 46, 0.2), 0 2px 6px rgba(11, 26, 38, 0.24); }
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.calc input[type="range"]:focus-visible { outline: none; }
.calc input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus); }
.calc input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus); }
.money { display: flex; gap: 8px; }
.money input, .money select {
  min-height: 50px; padding: 0 14px; border: 1px solid #c9d3da; border-radius: var(--r-ctl); background: var(--snow); color: var(--ink);
  font: 600 20px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.money input { flex: 1; min-width: 0; }
.money select {
  padding-right: 36px; font-size: 17px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--snow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%234a5b68' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
}

.calc-out {
  display: grid; align-content: center; gap: 20px; padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-stage); background: var(--night); color: var(--night-ink); color-scheme: dark;
}
.out-k { font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; color: var(--night-ink-3); }
/* The result is the page's one live readout: amber, as a lit display. */
.out-big {
  margin-top: -8px; font-size: clamp(60px, 5vw + 28px, 116px); line-height: 0.95; font-weight: 600; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; color: var(--accent-hi); text-shadow: 0 0 32px rgba(255, 177, 59, 0.35);
}
.out-unit { font-size: 0.4em; letter-spacing: -0.02em; color: var(--night-ink); text-shadow: none; }
.out-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.out-row div { display: grid; gap: 4px; align-content: start; padding-top: 14px; border-top: 1px solid var(--rule-night); }
.out-row dt { font-size: 13px; line-height: 1.35; font-weight: 500; letter-spacing: 0.016em; color: var(--night-ink-3); }
.out-row dd { margin: 0; font-size: clamp(24px, 1vw + 17px, 34px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* One person's week as forty hour-cells: the work, the looking, the hours back. */
.week { position: relative; display: flex; height: 30px; margin-top: 6px; overflow: hidden; border-radius: 6px; background: var(--night-2); }
.week-work { flex: 1; }
.week-look { width: calc(var(--look, 0.15) * 100%); background: #2f5068; transition: width 200ms var(--ease-out); }
.week-back { width: calc(var(--back, 0.0375) * 100%); background: var(--accent); box-shadow: 0 0 18px 2px rgba(255, 177, 59, 0.5); transition: width 200ms var(--ease-out); }
.week::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(2.5% - 2px), var(--night) calc(2.5% - 2px) 2.5%);
}
.week-cap { margin-top: -8px; font-size: 15px; line-height: 1.47; color: var(--night-ink-2); }
@media (max-width: 479px) { .out-row { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Seats: what per-person assistants cost as the company grows. */
.seats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: clamp(64px, 7vw, 104px); }
@media (min-width: 1024px) {
  .seats { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head chart" "table chart" "note note"; column-gap: clamp(40px, 5vw, 80px); row-gap: 28px; align-items: start; }
  .seats-head { grid-area: head; }
  .seat-chart { grid-area: chart; }
  .seat-table-wrap { grid-area: table; }
  .seats > .note { grid-area: note; }
}
.seats-head h3 { font-size: clamp(28px, 1.2vw + 20px, 38px); line-height: 1.06; letter-spacing: -0.024em; }
.seats-head p { max-width: 30em; margin-top: 12px; color: var(--ink-2); }
.seat-chart { position: relative; margin: 0; padding: clamp(16px, 2vw, 26px); border-radius: var(--r-stage); background: var(--frost); }
.seat-svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.seat-svg .grid { stroke: #d9e1e6; stroke-width: 1; }
.seat-svg .base { stroke: var(--ink-2); stroke-width: 1; }
.seat-svg .tick { fill: var(--ink-2); font: 500 12px var(--sans); letter-spacing: 0.01em; }
.seat-svg .band { fill: rgba(74, 91, 104, 0.14); }
.seat-svg .edge { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.seat-svg .edge-label { fill: var(--ink-2); font: 600 12px var(--sans); paint-order: stroke; stroke: var(--frost); stroke-width: 5px; stroke-linejoin: round; }
.seat-svg .marker-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.seat-svg .marker-dot { fill: var(--ink); stroke: var(--frost); stroke-width: 2; }
.seat-svg .marker-label { fill: var(--ink); font: 600 13px var(--sans); paint-order: stroke; stroke: var(--frost); stroke-width: 5px; stroke-linejoin: round; }
.seat-svg .hover-line { stroke: var(--ink-2); stroke-width: 1; }
.seat-tip {
  position: absolute; top: 6px; transform: translateX(-50%); padding: 6px 10px; border-radius: var(--r-tag);
  background: var(--night); color: var(--night-ink); font-size: 13px; line-height: 1.35; white-space: nowrap; pointer-events: none;
}
.seat-table { width: 100%; border-collapse: collapse; }
.seat-table th, .seat-table td { padding: 13px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.seat-table thead th { padding-top: 0; border-top: 0; font-size: 13px; line-height: 1.35; font-weight: 600; letter-spacing: 0.016em; color: var(--ink-2); }
.seat-table thead th:last-child, .seat-table td { padding-left: 16px; text-align: right; }
.seat-table tbody th { font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.seat-table .sub { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; font-weight: 400; color: var(--ink-2); }
.seat-table td { font-size: 17px; line-height: 1.35; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.seat-table .ours th, .seat-table .ours td { border-top: 2px solid var(--ink); }
.seat-table .ours td { color: var(--link); }
.seats > .note { max-width: 62em; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* What you pay for, and what you never do. */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 834px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ledger-col { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-stage); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--rule-night); }
.ledger-col h3 { margin-bottom: 10px; font-size: clamp(24px, 0.6vw + 18px, 30px); line-height: 1.12; letter-spacing: -0.018em; }
.ledger-col li { padding: 15px 0 16px; border-top: 1px solid var(--rule-night); color: var(--night-ink-2); }
.ledger-col li strong { color: var(--night-ink); font-weight: 600; }
.ledger-col.never { background: none; box-shadow: inset 0 0 0 1px var(--rule-night); }
.ledger-col.never li strong { display: block; font-size: clamp(22px, 0.6vw + 16px, 26px); line-height: 1.2; letter-spacing: -0.016em; }
.ledger-note { margin-top: 24px; font-size: 17px; line-height: 1.5; color: var(--night-ink-2); }

/* ---- Rollout: ten stages, who owns each, and what the license covers -------------------- */

/* Our engineers: NorthRAG's people, and optional, so their lamp is an open ring. */
.owner.fde { color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--rule-night); }
.owner.fde::before { background: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.rollout-fig { margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 600px) { .rollout-fig .stage-box, .rollout-fig .fig-ui { max-width: 960px; margin-inline: auto; } }
.phases { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); }
@media (min-width: 834px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.phase { display: grid; align-content: start; gap: 10px; padding: 24px 0 30px; border-top: 1px solid var(--rule-night); }
.phase h3 { max-width: 18em; font-size: clamp(22px, 0.5vw + 18px, 26px); line-height: 1.15; letter-spacing: -0.018em; color: var(--night-ink); }
.phase > p:not([class]) { max-width: 34em; color: var(--night-ink-2); }

/* What comes with the license, what stays yours, and what our engineers can add. */
.scope { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1024px) { .scope { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scope-col { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--snow); box-shadow: inset 0 0 0 1px var(--rule); }
.scope-col.extra { background: none; }
.scope-k { margin-bottom: 6px; font-size: 13px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.scope-col h3 { margin-bottom: 10px; font-size: clamp(23px, 0.5vw + 18px, 27px); line-height: 1.15; letter-spacing: -0.018em; }
.scope-col li { padding: 14px 0 15px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.scope-col li strong { color: var(--ink); font-weight: 600; }
.scope-note { max-width: 46em; margin-top: 28px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* Each drawing's room is held before iso.js draws it, so nothing moves. */
[data-fig="core"] .stage { aspect-ratio: 840.74 / 548; }
[data-fig="explore"] .stage { aspect-ratio: 910.03 / 583.5; }
[data-fig="accounting"] .stage { aspect-ratio: 858.06 / 570; }
[data-fig="startupdeal"] .stage { aspect-ratio: 858.06 / 562; }
[data-fig="network"] .stage { aspect-ratio: 840.74 / 504; }
[data-fig="flow"] .stage { aspect-ratio: 961.99 / 621; }
/* The flow's ground lights when NorthRAG goes in. */
[data-fig="flow"] .zone .dash { transition: stroke 320ms ease; }
[data-fig="flow"] .zone.hot .dash { stroke: var(--accent); }
[data-fig="rollout"] .stage { aspect-ratio: 923.88 / 574; }
/* The rollout's lanes light with their owner; a stage's number reads large. */
[data-fig="rollout"] .zone .dash { transition: stroke 320ms ease; }
[data-fig="rollout"] .zone.hot .dash { stroke: var(--accent); }
[data-fig="rollout"] .scr-text.num { font-size: 12px; }
[data-fig="rollout"] .scr-text.name { font-size: 6.6px; }

/* ---- Context system: six jobs, the setup paid once, where the shape comes from ------------- */

/* Fig. 1 takes the whole width, and the four layers sit in a row under it. */
.shape-fig .stage-box { max-width: 980px; margin-inline: auto; }
.sec-points.layers { margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 1024px) { .sec-points.layers { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 40px); } }
.jobs .question { grid-template-rows: auto auto 1fr; }
.job-n { font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
/* Two bars per question on night: each person's own setup in slate, the shared system lit. */
.once-group { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rule-night); }
.once-group .out-k { margin-bottom: 2px; }
.once-bar { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 4.6em; align-items: center; gap: 14px; font-size: 15px; line-height: 1.35; color: var(--night-ink-2); }
.once-track { height: 12px; overflow: hidden; border-radius: 6px; background: var(--night-2); }
.once-fill { display: block; width: calc(var(--w, 0) * 100%); min-width: 4px; height: 100%; border-radius: inherit; background: #4d7391; transition: width 220ms var(--ease-out); }
.once-bar.ours .once-name { color: var(--night-ink); }
.once-bar.ours .once-fill { background: var(--accent); box-shadow: 0 0 14px 1px rgba(255, 177, 59, 0.45); }
.once-bar b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--night-ink); }
@media (max-width: 479px) {
  .once-bar { grid-template-columns: minmax(0, 1fr) 4.4em; row-gap: 4px; }
  .once-name { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .once-fill { transition: none; } }
.once-who { display: grid; gap: 14px; margin: 0; }
.once-who div { display: grid; gap: 3px; padding-top: 14px; border-top: 1px solid var(--rule); }
.once-who dt { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.once-who dd { margin: 0; font-size: 16px; line-height: 1.47; color: var(--ink-2); }
.once-license { max-width: 46em; margin-top: clamp(28px, 3vw, 40px); padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.shape-source { max-width: 46em; margin-top: clamp(32px, 4vw, 48px); padding-top: 16px; border-top: 1px solid var(--rule-night); font-size: 15px; line-height: 1.47; color: var(--night-ink-3); }

/* ---- SAP: two systems' layers, how they work together, where SAP runs, where to start ------- */

/* The layers, top to bottom: SAP's cell and NorthRAG's side by side, the AI row
   where they meet lit in cobalt. On phones each row stacks, its cells labelled. */
.stack { display: grid; }
.stack-row, .stack-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.stack-row { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.stack-row:first-of-type { border-top: 2px solid var(--ink); }
.stack-cols { display: none; }
.stack-k { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.stack-cell { position: relative; display: grid; align-content: start; gap: 4px; padding: 16px 18px 18px; border-radius: var(--r-card); background: var(--frost); }
.stack-cell.nr { background: var(--snow); box-shadow: inset 0 0 0 1px var(--rule); }
.stack-cell.none { background: none; box-shadow: none; outline: 1px dashed #b9c5cd; outline-offset: -1px; }
.stack-who { font-size: 13px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
.stack-cell.nr .stack-who { color: var(--link); }
.stack-cell p:not(.stack-who) { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.stack-cell strong { font-weight: 600; color: var(--ink); }
.meet .stack-cell { box-shadow: inset 0 0 0 2px var(--cta); }
/* Where they meet: a cobalt key on a hairline running between the two cells. */
.stack-meet { position: relative; display: flex; justify-content: center; padding-top: 4px; }
.stack-meet::before { content: ""; position: absolute; left: 0; right: 0; top: calc(50% + 2px); border-top: 2px solid var(--cta); }
.stack-meet span {
  position: relative; max-width: 100%; padding: 7px 14px 8px; border-radius: 999px; background: var(--cta); color: var(--cta-ink);
  font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: 0.006em; text-align: center;
}
@media (min-width: 834px) {
  .stack-row, .stack-cols { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); align-items: stretch; }
  .stack-cols { display: grid; padding-bottom: 12px; font-size: 13px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); }
  .stack-cols .nr { color: var(--link); }
  .stack-cell .stack-who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stack-k { padding-top: 16px; }
  .stack-meet { grid-column: 2 / -1; }
}
.stack-turn { max-width: 28em; }

/* Who does a step, on night: SAP's are neither the customer's cobalt nor NorthRAG's amber. */
.owner.sap { color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--rule-night); }
.owner.sap::before { background: var(--night-ink-2); }
[data-fig="sap"] .stage { aspect-ratio: 1024.34 / 630; }
/* NorthRAG's ground lights when it answers. */
[data-fig="sap"] .zone .dash { transition: stroke 320ms ease; }
[data-fig="sap"] .zone.hot .dash { stroke: var(--accent); }

/* What the SAP job may touch: three points on night, and the note under them. */
@media (min-width: 1024px) { .sec-points.lines { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 40px); } }
.sec-points.lines li { align-content: start; }
.lines-note { max-width: 46em; margin-top: clamp(28px, 3vw, 40px); padding-top: 16px; border-top: 1px solid var(--rule-night); font-size: 17px; line-height: 1.5; color: var(--night-ink-2); }

/* Four first steps, each with who does it. */
@media (min-width: 834px) { .questions.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .questions.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 40px); } }
.four .question { grid-template-rows: auto auto 1fr; }
.start-who { font-size: 14px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.start-who b { margin-right: 0.5em; font-weight: 600; color: var(--ink); }

/* Sources, numbered, at a page's end (the comparison and SAP pages), and their marks in the text. */
.sources-head { margin: clamp(56px, 6vw, 88px) 0 10px; font-size: 20px; line-height: 1.26; letter-spacing: -0.012em; }
.sources { max-width: 62em; padding-left: 1.4em; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sources li + li { margin-top: 6px; }
.sources-note { max-width: 62em; margin-bottom: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cite { line-height: 0; }
.cite a { font-size: 12px; text-decoration: none; }

/* ---- Motion ------------------------------------------------------------------------------ */

/* Arrival: the photograph settles and the words come up, once. CSS only, so
   nothing waits on a script. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-intro, .hero .actions,
  .article-hero .crumb, .article-hero h1, .article-hero .intro { animation: hero-in 1000ms var(--ease-out) both; }
  .hero-intro, .article-hero h1 { animation-delay: 90ms; }
  .hero .actions, .article-hero .intro { animation-delay: 180ms; }
  .hero .window-media img, .article-hero .window-media img { animation: photo-in 2200ms var(--ease-out) both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes photo-in { from { transform: scale(1.05); } }

/* Scroll: each photo window lags the page by its --rate (translateY is minus
   --rate times the window's top), the hero's words travel with the sky and
   fade, and Fig. 1 rises into place. site.js does the same where this isn't
   supported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Inset 0: the timeline ignores the root's scroll-padding, so the photo
       rests where it's designed at scroll 0, as in site.js's fallback. */
    .window { view-timeline: --win block; view-timeline-inset: 0px; }
    .window-media { animation: win-drift linear both; animation-timeline: --win; animation-range: cover 0% cover 100%; }
    /* The close drifts while it comes up the screen and holds once its top
       reaches the top, so the footer's arrival can't slide words onto rock. */
    .closing .window-media { animation-name: close-drift; animation-range: entry 0% entry 100%; }
    [data-fade] { animation: hero-away linear both; animation-timeline: scroll(root block); animation-range: 0px 60vh; }
    .core-grid { view-timeline: --core block; }
    .rise { transform-origin: 50% 80%; animation: fig-rise var(--ease-out-cubic) both; animation-timeline: --core; animation-range: entry 0% cover 40%; }
  }
}
@keyframes win-drift {
  from { transform: translate3d(0, calc(var(--rate) * -100vh), 0); }
  to { transform: translate3d(0, calc(var(--rate) * var(--win-h)), 0); }
}
@keyframes close-drift {
  from { transform: translate3d(0, -50vh, 0); }
  to { transform: none; }
}
@keyframes hero-away { to { opacity: 0; transform: translate3d(0, calc(var(--rate) * 60vh), 0); } }
@keyframes fig-rise { from { transform: scale(0.88); opacity: 0.3; } }

@media (prefers-reduced-motion: reduce) {
  .cites li, [role="tabpanel"]:not([hidden]), .faq-list details[open] p { animation: none; }
  .nav-toggle svg, .faq-list summary::after, .nav-links { transition: none; }
  .nav-links { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav::before { background: var(--snow); }
  .nav::after { background: var(--night); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #33434f; --ink-photo: #1d2b36; --night-ink-2: #c9d6df; --night-ink-3: #b5c4cf; --rule-night: #3d5d75; --rule: #a9b8c3; }
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav::before { background: #fff; box-shadow: inset 0 -1px 0 var(--ink); }
  .nav::after { background: var(--night); box-shadow: inset 0 -1px 0 var(--night-ink); }
  .statement-tile .polaris .glow, .statement-tile .polaris .core { animation: none; }
}
/* Forced colours drop backgrounds and shadows, which is all a pressed key, a
   picked tab and the FAQ's mark are drawn with: give them system colours. */
@media (forced-colors: active) {
  .seg button, .part-tabs [role="tab"] { border: 1px solid ButtonText; }
  .seg button::after, .part-tabs [role="tab"]::after { border: 1.5px solid currentColor; }
  .seg [aria-pressed="true"], .seg [aria-selected="true"], .part-tabs [aria-selected="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .seg [aria-pressed="true"]::before, .seg [aria-selected="true"]::before, .part-tabs [aria-selected="true"]::before { display: none; }
  .seg [aria-pressed="true"]::after, .seg [aria-selected="true"]::after, .part-tabs [aria-selected="true"]::after { background: HighlightText; border-color: HighlightText; box-shadow: none; }
  .faq-list summary::after { content: "+"; width: auto; height: auto; background: none; line-height: 1; }
  .part-panel, .exchange, .demo-btn { border: 1px solid CanvasText; }
}

/* ---- The drawing (iso.js): kept as it is ------------------------------------------------------ */
.stage { width: 100%; height: auto; touch-action: manipulation; }
.stage:focus-visible { outline-offset: -4px; }
/* The drawing: hairlines on night, opaque faces, accent only when live. */
.stage .face { fill: var(--body); stroke: var(--line); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.stage .face.top { fill: var(--deck); }
.stage .face.side { fill: var(--side); }
.stage .face.recess { fill: var(--recess); }
.stage .detail { fill: none; stroke: var(--detail); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stage .dash { stroke-dasharray: 4 5; }
.stage .label { fill: var(--fig-ink); font: 500 11px var(--font); letter-spacing: 0.01em; }
.stage .label.big { font-size: 13px; fill: var(--fig-ink-hi); }
.stage .plate-name { font-size: 9.5px; font-weight: 600; fill: var(--fig-ink-hi); letter-spacing: 0.02em; }
.stage .glass { fill: var(--glass); stroke: var(--detail); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill 260ms ease, stroke 260ms ease; }
.stage .halo { fill: var(--accent); opacity: 0; transition: opacity 320ms ease; }
.stage .led { fill: var(--recess); stroke: var(--detail); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill 200ms ease; }
.stage .scr { fill: var(--fig-ink); opacity: 0.18; transition: opacity 260ms ease, fill 260ms ease; }
.stage .scr-text { fill: var(--fig-ink); font: 600 8px var(--font); transition: fill 260ms ease; }
.stage .wire-under { fill: none; stroke: var(--deck); stroke-width: 5; vector-effect: non-scaling-stroke; }
.stage .wire { fill: none; stroke: var(--detail); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke 260ms ease; }
.stage .wire.hot { stroke: var(--accent-dim); }
.stage .pulse {
  fill: none; stroke: var(--accent-hi); stroke-width: 3.2; stroke-linecap: round;
  vector-effect: non-scaling-stroke; stroke-dasharray: 70 1000; stroke-dashoffset: 70; opacity: 0;
}
.stage .pulse.go { animation: iso-run var(--dur, 700ms) linear forwards; }
@keyframes iso-run {
  0% { stroke-dashoffset: 70; opacity: 1; }
  92% { opacity: 1; }
  100% { stroke-dashoffset: -930; opacity: 0; }
}
.stage .hot .glass { fill: var(--glass-on); stroke: var(--accent); }
.stage .hot .halo { opacity: 0.7; }
.stage .hot .led, .stage .led.hot { fill: var(--accent-hi); stroke: var(--accent); }
.stage .hot .scr { opacity: 1; fill: var(--accent-hi); }
.stage .hot .scr-text { fill: #2a1a04; }
.stage .hand { fill: none; stroke: var(--fig-ink); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 260ms ease; }
.stage .hand.thin { stroke-width: 1; }
.stage .hot .hand { stroke: #2a1a04; }
.stage .press, .stage [data-hit] { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .stage .press:hover .face.top { fill: #22445a; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .pulse.go { animation: none; opacity: 0; }
  .stage .glass, .stage .halo, .stage .scr, .stage .wire { transition: none; }
}
