/* Katalyst site base: every shared component. Reads its colours, fonts and scale from css/tokens.css (load that first).
   Prompt 16: ink only for the hero, the final call and the footer; content sections alternate beige and white; Geist and
   Geist Mono; one spacing scale (8, 16, 24, 32, 48, 64, 96, 120); one reveal; blue = AI and action; amber = the problem. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* the three site pages open and close on ink, and every section paints its own background: an ink page background means
   the translucent header over the top of the hero (and any overscroll) reads ink, never grey (Prompt 16B) */
body[data-page] { background: #071B53; }
body[data-page="leadership"] { background: var(--bg); }   /* Prompt 18: its first section is light (the compact header), so the translucent nav sits on grey */
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
p, li { text-wrap: pretty; }

/* Prompt 29: one layout grid site-wide: content at most 1200px, side margins clamp(20px, 5vw, 80px), 12 columns, 24px gutters */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--side)); margin: 0 auto; padding-inline: var(--side); }
/* (Prompt 29: the phone margin comes from --side: 20px) */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 16px; border-radius: 12px; box-shadow: var(--shadow); transform: translateY(-120px); }
.skip:focus { transform: none; }

/* anchor jumps: the section's first line lands 32px under the 72px nav (the sticky header covers the page's top 72px),
   so each section's top sits (72 + 32 - its top padding) from the screen's top */
main > section[id], .anchor-alias { scroll-margin-top: calc(var(--nav-h) + var(--land) - var(--pad-sec)); }
main > section.hero[id] { scroll-margin-top: 0; }

/* Placeholders: text colour with a dotted underline */
.ph { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ph-tag { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; vertical-align: middle; margin-left: 12px; color: var(--muted); }
/* Prompt 19: [CONFIRM] and [XX] are hidden unless the page is opened with ?review=1 (the head script sets html.is-review);
   there each shows as a small amber mark whose tooltip (title, set by js/site.js) carries the full placeholder */
.ph--q { display: none; }
html.is-review .ph--q { display: inline-block; font-size: 0; line-height: 1; text-decoration: none; vertical-align: .15em; margin-left: 4px; cursor: help; }
html.is-review .ph--q::after {
  content: attr(data-k); display: inline-block; padding: 2px 5px; border-radius: 6px;
  font: 500 9px/1.2 var(--f-mono); letter-spacing: .06em; color: #42506E; background: #EEF2F8; box-shadow: inset 0 0 0 1px rgba(138, 147, 166, .45);
}
html.is-review .ph-tag.ph--q { margin-left: 12px; }

/* the old second-tone phrase, kept only for the preview pages */
.tone2 { color: var(--ink-2); }

/* ---------- buttons (Prompt 16B): the main one a #071B53 pill with white text (on ink and in the dark theme a white pill
   with #071B53 text), with a soft blue-to-cyan glow under it (a blurred gradient at 40%, 8px below) that brightens on
   hover; the secondary a white pill with a #E3EAF3 line (on ink a frosted outline pill) ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 24px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  border-radius: 999px; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 18px; }
/* the pill is painted by ::after and the glow by ::before, both inside the button's own stacking context (isolation), so
   the glow always sits under the pill, whatever the section behind it */
/* Prompt 23: the primary button is a lime pill with navy text. On dark (the dark sections, the header over them, the dark
   theme) a soft lime glow under it (::before); on light a subtle layered shadow instead. Hover: a slight brighten and a
   2px lift (200ms); press: a 1px settle. The secondary is an outline pill: navy on light, white on navy. */
.btn--solid { color: var(--btn-ink); font-weight: 600; }
.btn--solid::after {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--btn);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(7, 27, 83, .14), 0 8px 18px -10px rgba(7, 27, 83, .4);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.btn--solid::before {
  content: ""; position: absolute; z-index: -2; left: 10%; right: 10%; top: 6px; bottom: -6px; border-radius: inherit;
  background: rgba(227, 251, 153, .55); filter: blur(16px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
:is(.on-ink, [data-theme="dark"], .hdr[data-on="ink"], .film-frame.is-dusk) .btn--solid::before { opacity: .45; }
:is(.on-ink, [data-theme="dark"], .hdr[data-on="ink"], .film-frame.is-dusk) .btn--solid::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--sm.btn--solid::before { filter: blur(12px); }
.btn--solid:hover { transform: translateY(-2px); transition-duration: .2s; }
.btn--solid:hover::after { background: var(--btn-hover); }
:is(.on-ink, [data-theme="dark"], .hdr[data-on="ink"], .film-frame.is-dusk) .btn--solid:hover::before { opacity: .62; }
.btn--line { background: transparent; border: 1px solid rgba(7, 27, 83, .55); color: #071B53; }
.btn--line:hover { border-color: #071B53; background: rgba(7, 27, 83, .04); transform: translateY(-2px); transition-duration: .2s; }
.on-ink .btn--line, [data-theme="dark"] .btn--line, .hdr[data-on="ink"] .btn--line {
  background: transparent; border-color: rgba(255, 255, 255, .55); color: #FFFFFF;
}
.on-ink .btn--line:hover, [data-theme="dark"] .btn--line:hover { background: rgba(255, 255, 255, .06); border-color: #FFFFFF; }
.btn-arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.btn:hover .btn-arr { transform: translateX(3px); }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 999px; color: var(--ink);
}
.icon-btn:hover { color: var(--ink-2); background: var(--line); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- wordmark ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: .14em;
}
.brand-cur { width: 7px; height: 14px; background: var(--signal); }   /* colour and the calm blink: see "The brand mark" at the end of this file */
@keyframes blink { 50% { opacity: 0; } }

/* ---------- header: translucent with a blur. Over ink: translucent ink; over the light sections: translucent beige
   (never grey). js/site.js sets data-on="ink" or "light" from the section under its bottom edge; it fades over 200ms. ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--hdr-bg); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hdr a, .hdr .icon-btn, .hdr .menu, .hdr .menu-in a, .hdr .menu-theme { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-in { height: var(--nav-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.hdr-nav { justify-self: center; display: flex; gap: 32px; font-size: 15px; white-space: nowrap; }
.hdr-nav a { color: var(--ink); opacity: .82; }
.hdr-nav a:hover { opacity: 1; }
/* the active tab: the page you are on (aria-current="page") or the homepage part in view (site.js) */
.hdr-nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; text-decoration-color: currentColor; }
.menu-in a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }

.menu-btn { display: none; }
.menu-btn path { transition: transform .3s ease; transform-origin: 10px 10px; }
.menu-btn[aria-expanded="true"] .m1 { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .m2 { transform: translateY(-3px) rotate(-45deg); }

.menu { position: absolute; left: 0; right: 0; top: var(--nav-h); background: var(--bg); border-bottom: 1px solid var(--line); }
.menu-in { display: flex; flex-direction: column; padding-block: 8px 24px; }
.menu-in a, .menu-theme { display: flex; align-items: center; min-height: 56px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; border-bottom: 1px solid var(--line); }
.menu-in a:hover { color: var(--ink-2); }
.menu-theme { justify-content: space-between; border-bottom: 0; width: 100%; text-align: left; }
.menu-theme-v { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-theme .t-dark { display: none; }
[data-theme="dark"] .menu-theme .t-dark { display: inline; }
[data-theme="dark"] .menu-theme .t-light { display: none; }

@media (max-width: 899.98px) {
  .hdr-in { grid-template-columns: 1fr auto; }
  .hdr-actions .btn--sm { padding: 0 12px; }
  .hdr-nav, .hdr-actions > .theme-btn { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (min-width: 900px) { .menu { display: none; } }

/* ---------- section shell: one padding everywhere; one head rhythm (label 16, headline, 24, sub line, 64, content) ---------- */
.sec { padding-block: var(--pad-sec); }
.sec-h, .hero-h, .final-h {
  font-weight: 600; letter-spacing: -0.03em; text-wrap: balance;
}
.sec-h { font-size: var(--fs-h2); line-height: 1.06; }
.sec-k { display: block; color: var(--muted); margin-bottom: var(--g-label); }
.sec-sub { margin-top: var(--g-sub); font-size: var(--fs-sub); line-height: 1.5; color: var(--muted); max-width: var(--measure); text-wrap: pretty; }
.sec-head + *, .sec-head ~ .sec-body { margin-top: var(--g-content); }

/* ---------- hero (ink, the glow, the grain): the headline and buttons left, the sample chat right (under the buttons
   below 1100px) ---------- */
.hero { padding-block: var(--hero-top) var(--pad-sec); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.hero-h { font-size: var(--fs-h1); line-height: 1.02; max-width: 8.25em; }   /* 12ch in Geist, as em so the fallback font never changes the wrap (a ch is 23% narrower in the fallback: a layout shift) */
.hero-sub { margin-top: var(--g-sub); font-size: var(--fs-sub); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; }
.hero-cta { margin-top: var(--g-actions); display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 1099.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero-h { max-width: 8.95em; }
}

/* ---------- the hero chat (Prompt 16B; js/home.js initChat): a sample AI conversation that plays on its own, in a frosted
   panel on the ink hero (white at 6%, a 20px backdrop blur, a 1px white line at 14%, 24px radius). The panel has a fixed
   height and the messages move only by transform inside it, so nothing on the page shifts. Questions are right-aligned
   bubbles (white at 12%); answers carry no bubble, only a small blue AI mark; sources are outlined mono chips. ---------- */
.chat {
  --chat-h: 464px;
  position: relative; height: var(--chat-h); display: flex; flex-direction: column;
  padding: 24px 24px 0; border-radius: var(--r-panel);
  background: rgba(14, 38, 104, .92); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, .5);
  contain: layout paint;
}
.chat-k { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.chat-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px rgba(108, 196, 254, .8); }
.chat-view { position: relative; flex: 1; min-height: 0; margin-top: 0; overflow: hidden; }
.chat-view.is-over {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px); mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
}
.chat-track {
  position: absolute; left: 0; right: 0; top: 0; padding-bottom: 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .5s var(--ease);
}
.chat-track.no-ease { transition: none; }
.chat-view { transition: opacity .6s ease; }
.chat-view.is-fade { opacity: 0; }
.chat-q {
  align-self: flex-end; max-width: 84%; padding: 12px 16px; border-radius: 20px 20px 6px 20px;
  background: #2A4486; color: #FFFFFF; font-size: 15.5px; line-height: 1.45;
}
.chat-a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.chat-mark {
  position: relative; width: 24px; height: 24px; margin-top: 1px; border-radius: 12px;
  background: linear-gradient(135deg, #6CC4FE 0%, #6CC4FE 60%, #A6DBFF 140%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 4px 14px -4px rgba(108, 196, 254, .8);
}
.chat-mark::after { content: ""; position: absolute; left: 10px; top: 7px; width: 4px; height: 10px; border-radius: 2px; background: #FFFFFF; }
.chat-t { min-height: 1.55em; font-size: 16px; line-height: 1.55; color: #FFFFFF; text-wrap: wrap; }   /* not "pretty": a streaming line must never rebalance (words would jump back) */
.chat-flag {
  display: inline; padding: 1px 6px 1px 4px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: rgba(138, 151, 181, .12); color: #C4CDE3; font-weight: 500; white-space: nowrap;   /* the amber on dark, lifted a touch so it stays 4.5:1 over the glow */
}
.chat-flag svg { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chat-src { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); color: var(--ink-2);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.chat-dots { display: inline-flex; gap: 5px; height: 1.55em; align-items: center; }
.chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: no-preference) {
  .chat-q.is-new { animation: chat-rise .3s var(--ease) both; }
  .chat-chip.is-new { animation: chat-fade .4s ease both; }
  .chat-dots i { animation: chat-dot 1.2s ease-in-out infinite; }
  .chat-dots i:nth-child(2) { animation-delay: .15s; }
  .chat-dots i:nth-child(3) { animation-delay: .3s; }
  .chat.is-paused .chat-dots i, .chat.is-paused .is-new { animation-play-state: paused; }
}
.chat-track > .is-out { opacity: 0; transition: opacity .3s ease; }
@keyframes chat-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes chat-fade { from { opacity: 0; } }
@keyframes chat-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 1099.98px) { .chat { --chat-h: 420px; max-width: 640px; } }
@media (max-width: 599.98px) {
  /* no backdrop blur on phones: blurring the drifting glow every frame stalled the renderer (headless at 390); the glow
     behind is already soft there, so a touch more white reads the same */
  .chat { --chat-h: 340px; padding: 20px 16px 0; background: rgba(255, 255, 255, .075); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .chat-q { font-size: 15px; max-width: 90%; }
  .chat-t { font-size: 15px; }
}

/* ---------- label chips (mono): Running (solid signal), In testing (signal outline), We build it (muted outline) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 24px; padding: 0 12px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  border-radius: 999px; border: 1px solid transparent;
}
.chip--running { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.chip--testing { border-color: var(--signal); color: var(--signal); }
.chip--build { border-color: var(--ring); color: var(--muted); }
.chip--sm { height: 20px; padding: 0 8px; font-size: 10px; }

/* ---------- how we work: see "Prompt 21B" at the end of this file ---------- */
.how-foot { margin-top: var(--g-actions); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 52em; }
.how-link { color: var(--signal); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; white-space: nowrap; }
.how-link:hover { text-decoration-thickness: 2px; }

/* ---------- the bridge and Issues (one white section): the line, its sub line, then the two problem figures ---------- */
.bridge-t { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; max-width: 9.6em; text-wrap: balance; }
.issues-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.issue { padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; }
.issue-n { color: var(--amber); white-space: nowrap; }
.issue-n .issue-u { font-size: .5em; letter-spacing: -0.02em; margin-left: .08em; }
.issue-l { margin-top: 24px; color: var(--ink); max-width: 30em; }
.issue-s { margin-top: auto; padding-top: 16px; color: var(--muted); }
@media (max-width: 899.98px) { .issues-row { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* the bridge's background (Prompt 16C): a soft gradient from pale blue at the top-left to white, a faint blueprint grid
   (1px lines every 32px, ink at about 5%) fading out toward the edges, and a bottom edge that blends into the film
   section's background below (--next), so the bridge reads as the film's opening. Static. */
.bridge, .bp {
  --next: #F3F8FD; --pale: #F3F8FD; --grid: rgba(7, 27, 83, .05);
  position: relative; isolation: isolate;
  background-color: #FFFFFF;
  background-image:
    linear-gradient(180deg, rgba(243, 248, 253, 0) 62%, var(--next) 100%),
    radial-gradient(120% 90% at 0% 0%, var(--pale) 0%, rgba(243, 248, 253, .55) 32%, rgba(255, 255, 255, 0) 70%);
}
.bridge::before, .bp::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: none;   /* Prompt 23: no grids */
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 42% 40%, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 82%);
  mask-image: radial-gradient(ellipse 70% 62% at 42% 40%, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 82%);
}
/* the amber figures: #8A93A6 falls under 3:1 on the gradient's paler blue and grey, so they take the darker amber here */
.bridge .issue-n { color: #5E6A85; }
[data-theme="dark"] .bridge, [data-theme="dark"] .bp {
  --next: #0B1F55; --pale: #0E2969; --grid: rgba(255, 255, 255, .05);
  background-color: #0E2563;
  background-image:
    linear-gradient(180deg, rgba(11, 31, 85, 0) 62%, var(--next) 100%),
    radial-gradient(120% 90% at 0% 0%, var(--pale) 0%, rgba(14, 41, 105, .5) 32%, rgba(14, 37, 99, 0) 70%);
}
[data-theme="dark"] .bridge .issue-n { color: var(--amber); }

/* counting numbers keep their final width (js/home.js sets it before counting): nothing beside them moves */
.count { display: inline-block; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- what we build (white; Prompt 16C): one screen at 1440 x 900. The header in one row (headline left, sub
   line right), then a 4 x 2 grid of equal tiles: the seven tools in order and an eighth, "Need something else?".
   Each tool tile is a light gradient panel (the soft blue highlight in a different corner per tile) with a small
   preview (its sample screen drawn at a fixed design width and scaled down by js/home.js, so it stays crisp; Klyst
   Assistant as a muted loop), the status badge in mono over the preview, the tool's name and its one-liner clamped to
   two lines. The whole tile opens the lightbox (#wbox). 3 columns at 1099px and below, 2 under 900px, compact rows on
   phones (a 96px preview on the left). ---------- */
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 64px; }
.sec-head--row .sec-sub { margin-top: 0; max-width: 26em; text-align: right; }
@media (max-width: 899.98px) {
  .sec-head--row { display: block; }
  .sec-head--row .sec-sub { margin-top: var(--g-sub); text-align: left; }
}

.wt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.wt {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 10px 10px 14px;
}
.wt:nth-child(1) { --hx: 100%; --hy: 0%; }
.wt:nth-child(2) { --hx: 0%; --hy: 0%; }
.wt:nth-child(3) { --hx: 100%; --hy: 100%; }
.wt:nth-child(4) { --hx: 0%; --hy: 100%; }
.wt:nth-child(5) { --hx: 50%; --hy: 0%; }
.wt:nth-child(6) { --hx: 100%; --hy: 45%; }
.wt:nth-child(7) { --hx: 12%; --hy: 8%; }
.wt:hover, .wt:focus-within {
  box-shadow: inset 0 0 0 1px rgba(108, 196, 254, .45), 0 0 0 1px rgba(108, 196, 254, .12), 0 20px 40px -26px rgba(108, 196, 254, .5);
}
/* the preview: a fixed height; the sample screen inside is laid out at 440px wide and scaled to fit (--k, js/home.js) */
.wt-pv { position: relative; height: 100px; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: var(--ss-shadow); }
.wt-sc { position: absolute; left: 0; top: 0; width: 440px; height: calc(100px / var(--k, .58)); transform: scale(var(--k, .58)); transform-origin: 0 0; display: flex; flex-direction: column; }
.wt-sc .ss { pointer-events: none; }
.wt-pv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* the play badge on a film preview (blue: the AI tool at work), and the "Sample screen" label (lightbox only) */
.tc-badge { position: absolute; left: 16px; bottom: 16px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; background: var(--signal); box-shadow: 0 8px 20px -6px rgba(108, 196, 254, .6); }
.tc-badge svg { width: 14px; height: 14px; fill: var(--on-signal); }
.ss-lbl { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: 10px; color: var(--muted); }
.wt-pv .ss-lbl { display: none; }
.wt-pv .tc-badge { left: 10px; bottom: 10px; width: 28px; height: 28px; }
.wt-pv .tc-badge svg { width: 11px; height: 11px; }
/* the status badge (mono) over the preview's top-left corner; outside the preview, so screen readers get it */
.wt-body { padding: 12px 6px 0; }
.wt-h { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.wt-open { text-align: left; font: inherit; letter-spacing: inherit; color: inherit; }
.wt-open::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-panel); }
.wt-open:focus-visible { outline: none; }
.wt-open:focus-visible::after { outline: 2px solid var(--signal); outline-offset: 3px; }
.wt-b {
  margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
/* the eighth tile: not a tool, so no panel; a dashed card with the scoping call */
.wt--cta { justify-content: space-between; padding: 20px; background: var(--surface); border: 1px dashed var(--ring); border-radius: var(--r-panel); }
.wt--cta:hover, .wt--cta:focus-within { box-shadow: none; }
.wt--cta .lbl { color: var(--muted); }
.wt--cta .wt-h { margin-top: 8px; font-size: 20px; line-height: 1.25; }
.wt--cta .wt-b { -webkit-line-clamp: 3; line-clamp: 3; }
.wt-cta-a { align-self: flex-start; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.wt-cta-a:hover { color: var(--ink); text-decoration-thickness: 2px; }

@media (max-width: 1099.98px) { .wt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899.98px) { .wt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 599.98px) {
  .wt-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }   /* Prompt 28: phones keep the desktop card, one per row */
  .wt-pv { height: 140px; }
  .wt-sc { height: calc(140px / var(--k, .8)); }
  .wt-h { font-size: 17px; }
  .wt-b { font-size: 15px; }
}

/* ---------- the lightbox (#wbox, a modal <dialog>): the full-size sample screen (or the Klyst film with sound and
   controls), the name, the full description and the status; Esc and a click outside close it; the arrows (and the
   left and right keys) move to the next tool. The modal keeps focus inside; focus returns to the tile. ---------- */
.wbox {
  width: min(920px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible;
}
.wbox::backdrop { background: rgba(7, 27, 83, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wbox-in { display: flex; flex-direction: column; max-height: calc(100vh - 32px); padding: 16px; background: var(--surface-2); border-radius: var(--r-panel); box-shadow: 0 24px 64px rgba(0, 0, 0, .3); }
.wbox-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 12px 8px; }
.wbox-st { display: flex; align-items: center; gap: 12px; }
.wbox-n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.wbox-ctl { display: flex; gap: 4px; }
.wbox-stage { position: relative; flex: none; display: flex; flex-direction: column; height: clamp(320px, 54vh, 470px); border-radius: 20px; overflow: hidden; }
.wbox-stage > .ss { flex: 1; padding: 20px 20px 36px; font-size: 13px; }
.wbox-stage > .ss--brain { font-size: 14px; gap: 12px; }
.wbox-stage > .ss--klyst { position: static; }
.wbox-stage.is-film { height: auto; aspect-ratio: 16 / 9; max-height: 60vh; background: #071B53; }
.wbox-stage video { width: 100%; height: 100%; display: block; object-fit: contain; }
.wbox-copy { padding: 16px 8px 4px; overflow: auto; }
.wbox-k { color: var(--muted); margin-bottom: 4px; }
.wbox-h { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.wbox-b { margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 40em; }
@media (max-width: 599.98px) {
  .wbox-in { padding: 12px; }
  .wbox-stage { height: clamp(280px, 46vh, 400px); }
  .wbox-stage > .ss { padding: 12px 12px 32px; font-size: 12px; }
  .wbox-stage > .ss--brain { font-size: 12px; gap: 8px; }
  .wbox-h { font-size: 20px; }
  .wbox-b { font-size: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .wbox[open] { animation: wbox-in .35s var(--ease); }
  .wbox[open]::backdrop { animation: wbox-fade .35s ease; }
}
@keyframes wbox-in { from { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes wbox-fade { from { opacity: 0; } }

/* ---------- the sample screens: light UI on the panel (white cards, ink text, blue highlights, amber flags),
   labelled "Sample screen"; films replace them later ---------- */
.ss { position: relative; flex: 1; padding: 12px 12px 32px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.ss-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ss-box { background: var(--surface); border-radius: 12px; box-shadow: var(--ss-shadow); }
.ss-flag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--flag-soft); color: var(--flag); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ss-flag svg, .ss-ai svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ss-ai { display: inline-flex; align-items: center; gap: 4px; color: var(--signal); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }

/* Dashboards: three KPI tiles, a bar chart, a project health row */
.ss-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-kpi { padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.ss-kpi b { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ss-chart { flex: 1; display: flex; flex-direction: column; padding: 12px; min-height: 72px; }
.ss-bars { flex: 1; margin-top: 8px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line-2); }
.ss-bars i { flex: 1; height: calc(var(--h) * 100%); min-height: 4px; background: var(--fill-2); border-radius: 6px 6px 0 0; }
.ss-bars i:last-child { background: var(--signal); }
.ss-health { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px 12px; }
.ss-health li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ss-health li i { width: 7px; height: 7px; border-radius: 50%; background: var(--ring); }
.ss-health li.is-risk { color: var(--flag); font-weight: 500; }
.ss-health li.is-risk i { background: var(--amber); }

/* Email sentiment analysis: an inbox of four */
.ss-inbox { display: flex; flex-direction: column; overflow: hidden; }
.ss-mail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ss-mail:last-child { border-bottom: 0; }
.ss-mail b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-mail span { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.ss-mail time { grid-column: 2; grid-row: 1; font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
.ss-mail .ss-flag { grid-column: 2; grid-row: 2; justify-self: end; }
.ss-mail.is-flag { background: var(--flag-soft); box-shadow: inset 3px 0 0 var(--amber); }
.ss-mail .ss-sum { grid-column: 1 / -1; margin-top: 4px; padding: 8px; border-radius: 12px; background: var(--signal-soft); color: var(--ink); white-space: normal; }
.ss-mail .ss-sum .ss-ai { margin-right: 8px; }

/* Document overlay and extraction: two revisions overlaid, changes clouded in amber, and a small table */
.ss-ov { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; flex: 1; min-height: 0; }
.ss-dwg { position: relative; padding: 8px; }
.ss-dwg svg { width: 100%; height: 100%; }
.ss-dwg .a { fill: none; stroke: var(--ring); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ss-dwg .b { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.ss-dwg .cl { fill: rgba(138, 147, 166, .08); stroke: var(--amber); stroke-width: 1.5; stroke-linejoin: round; }
.ss-key { position: absolute; left: 12px; bottom: 8px; display: flex; gap: 12px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ss-key i { display: inline-block; width: 12px; height: 0; margin-right: 4px; vertical-align: middle; border-top: 2px dashed var(--ring); }
.ss-key i.b { border-top-style: solid; border-color: var(--ink); }
.ss-tbl { width: 100%; border-collapse: collapse; font-size: 11px; align-self: start; padding: 8px; }
.ss-tblw { padding: 8px 4px; align-self: start; }
.ss-tbl th { padding: 4px 8px; text-align: left; font-family: var(--f-mono); font-size: 9px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.ss-tbl td { padding: 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-tbl tr:last-child td { border-bottom: 0; }
.ss-tbl td.is-chg { color: var(--flag); font-weight: 600; }
.ss-tbl caption { caption-side: top; text-align: left; padding: 0 8px 4px; }

/* Ticketing: three columns; the moved ticket already sits in Approved, with its blue tick */
.ss-board { position: relative; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-col { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.ss-col .ss-k { padding: 0 2px 4px; }
.ss-col.is-done .ss-k { color: var(--signal); }
.ss-tk { height: 34px; border: 1px dashed var(--line-2); border-radius: 12px; }
.ss-move {
  position: absolute; left: 0; top: 34px; width: calc((100% - 16px) / 3 - 16px); margin-left: calc((100% - 16px) / 3 + 16px);
  padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft), var(--ss-shadow); color: var(--ink);
  transform: translateX(calc(100% + 24px));
  transform: translateX(round(calc(100% + 24px), 1px));   /* Prompt 27: whole pixels at rest */
}
.ss-move b { display: block; font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.ss-move span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; }
.ss-move .nw { display: inline; margin: 0; white-space: nowrap; }
.ss-move .ss-ok { position: absolute; right: 8px; top: 8px; width: 14px; height: 14px; }
.ss-move .ss-ok svg { width: 14px; height: 14px; fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* QA/QC: a five-line checklist, two fails in amber, and the report */
.ss-list { display: flex; flex-direction: column; }
.ss-check { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ss-check:last-child { border-bottom: 0; }
.ss-check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--signal); }
.ss-check em { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ss-check.is-fail { color: var(--ink); background: var(--flag-soft); }
.ss-check.is-fail svg { color: var(--amber); }
.ss-check.is-fail em { color: var(--flag); font-weight: 600; }
.ss-list .ss-check:first-child { border-radius: 12px 12px 0 0; }
.ss-list .ss-check:last-child { border-radius: 0 0 12px 12px; }
.ss-report { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--signal-soft); color: var(--ink); }

/* AI Brain: a department bar, an earlier exchange, a question, an answer and its sources, an input */
.ss--brain { padding: 16px 16px 40px; gap: 16px; font-size: 17px; }
.ss--brain > .ss-q, .ss--brain > .ss-a, .ss--brain > .ss-src { margin-inline: 16px; }
.ss-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; background: var(--surface); border-radius: 12px; box-shadow: var(--ss-shadow); }
.ss-bar .ss-conn { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.ss-bar .ss-conn span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ss-bar .ss-conn span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 6px rgba(108, 196, 254, .5); }
.ss--brain .ss-q { margin-top: 8px; }
.ss--brain .ss-bar + .ss-q { margin-top: auto; }
.ss--brain .ss-old { opacity: .55; font-size: .88em; }
.ss--brain .ss-src { margin-bottom: auto; }
.ss-input { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; color: var(--muted); font-size: 14px; box-shadow: var(--ss-shadow); }
.ss-input i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 12px; background: var(--signal); color: var(--on-signal); font-size: 13px; }
.ss-q { align-self: flex-end; max-width: 78%; padding: 12px 16px; border-radius: 12px 12px 6px 12px; background: var(--surface); color: var(--ink); box-shadow: var(--ss-shadow); }
.ss-a { max-width: 88%; padding: 16px; border-radius: 12px 12px 12px 6px; background: var(--surface); border: 1px solid rgba(108, 196, 254, .28); box-shadow: 0 0 0 3px var(--signal-soft), var(--ss-shadow); color: var(--ink); line-height: 1.55; }
.ss-a .ss-ai { display: flex; margin-bottom: 8px; }
.ss-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ss-src .ss-k { margin-right: 4px; }
.ss-chip { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; background: var(--surface); border-radius: 999px; box-shadow: var(--ss-shadow); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ss-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.ss-conn { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; color: var(--muted); }
@media (max-width: 599.98px) {
  .ss--brain { padding: 12px 12px 32px; font-size: 13.5px; gap: 12px; }
  .ss--brain > .ss-q, .ss--brain > .ss-a, .ss--brain > .ss-src { margin-inline: 4px; }
  .ss-bar { padding: 12px; }
  .ss-ov { grid-template-columns: minmax(0, 1fr); }
  .ss-dwg { min-height: 120px; }
}

/* the Klyst Assistant sample screen: shown only if the film fails to load (js/home.js) */
.ss--klyst { position: absolute; inset: 0; padding: 24px 24px 32px; font-size: 14px; justify-content: center; }

/* ---------- Results (#proof, hidden until its numbers are real) ---------- */
.proof-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.pnums { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.pnum { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.plab { margin-top: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ptext { margin-top: 24px; margin-bottom: 24px; font-size: 16px; line-height: 1.5; }
.pmeta { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.proof-note { margin-top: 32px; font-size: 14px; color: var(--muted); }
@media (max-width: 899.98px) { .proof-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* ---------- the proof strip (retired in Prompt 21: its markup is gone; these rules are unused) ---------- */
.pstrip-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px 64px; align-items: end; }
.pstrip-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pstrip-nums li { padding-top: 24px; border-top: 1px solid var(--ink); }
.pstrip-nums .lbl { margin-top: 16px; color: var(--muted); }
.pstrip-data { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.55; color: var(--ink); }
.pstrip-data svg { flex: none; width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899.98px) {
  .pstrip-in { grid-template-columns: minmax(0, 1fr); }
  .pstrip-nums { gap: 24px; }
}

/* ---------- the final call (ink, the glow): every page ends here (#contact). Prompt 16B: two columns: the label, the
   headline, what you get (stacked) and the buttons on the left; the sample roadmap you leave with on the right (below
   1100px it follows the buttons) ---------- */
.final { padding-block: var(--pad-sec); overflow: hidden; }
.final-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }   /* Prompt 17B: the headline left (7 of 12 columns); what you get and the buttons right, centred against it */
.final-h { max-width: 11em; font-size: var(--fs-h2); line-height: 1.06; }
.final-k { display: block; color: var(--muted); margin-bottom: var(--g-label); }
.final-list { margin-top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.final-list li {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: var(--ink);
}
.final-list svg { width: 14px; height: 14px; fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.final-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 1099.98px) {
  .final-grid { grid-template-columns: minmax(0, 1fr); gap: var(--g-content); }
}
@media (max-width: 599.98px) {
  .final-cta .btn { width: 100%; }
}

/* ---------- footer (ink, small mono) ---------- */
.ftr { padding-block: 48px; border-top: 1px solid var(--line); }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.ftr-id { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.ftr-meta, .ftr-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ftr-nav a { color: var(--ink-2); }
.ftr-nav a:hover, .ftr-nav a[aria-current] { color: var(--ink); }
@media (max-width: 899.98px) {
  .ftr-in, .ftr-id { flex-direction: column; align-items: flex-start; }
  .ftr-meta, .ftr-nav { flex-direction: column; gap: 8px; }
}

/* ---------- the stage page pieces (the campus #fits on the homepage, and preview/road.html) ----------
   The discipline note with the Buildings | Plants switch, the stage line, the description panel shell and the closing
   line. No sticky, no scroll-driven motion. */
.life-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend li + li::before { content: "·"; margin-right: 8px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--signal); color: var(--on-signal); }
.life-note { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* the stage line: every dot with a soft blue glow; visited stations keep a faint glow and the line from Plan to the
   active station fills blue; the active dot filled blue with a stronger glow and a slow breathing pulse (2.4s, opacity) */
.lc-line { position: relative; }
.lc-track { position: absolute; top: 7px; left: 5%; right: 5%; border-top: 2px dotted var(--tick); }
.lc-fill { position: absolute; top: 7px; left: 5%; right: 5%; height: 2px; background: var(--signal); box-shadow: 0 0 8px rgba(108, 196, 254, .45); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.lc-list { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.lc-list > li { display: flex; justify-content: center; }
.lc-st {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 4px 4px; border-radius: 6px;
  font-size: 14px; color: var(--muted);
}
.lc-st:hover { color: var(--ink); }
.lc-dot {
  position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(108, 196, 254, .45);
  box-shadow: 0 0 10px rgba(108, 196, 254, .22);
}
.lc-st.is-past .lc-dot { border-color: var(--signal); box-shadow: 0 0 8px rgba(108, 196, 254, .3); }
.lc-st.is-active .lc-dot { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft), 0 0 16px rgba(108, 196, 254, .55); }
.lc-st.is-active .lc-dot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(108, 196, 254, .18), 0 0 24px 4px rgba(108, 196, 254, .5);
  opacity: .35;
}
@media (prefers-reduced-motion: no-preference) {
  .lc-st.is-active .lc-dot::after { animation: lc-breathe 2.4s ease-in-out infinite; }
}
@keyframes lc-breathe { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.lc-st.is-active { color: var(--ink); font-weight: 600; }
.lc-name { white-space: nowrap; }

/* the description panel */
.lc-panel {
  padding: 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.lc-pname { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.lc-cols { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.lc-lab { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lc-lab--today::before, .lc-lab--now::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 2px; vertical-align: 1px; }
.lc-lab--today::before { background: var(--amber); }
.lc-lab--now::before { background: var(--signal); }
.lc-txt, .lc-spots li, .lc-pm { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.lc-spots li + li { margin-top: 12px; }
.lc-pm b { font-weight: 600; }
.lc-panel .chip { margin-left: 4px; vertical-align: 1px; }

.life-close { margin-top: var(--g-content); text-align: center; }
.life-close-t { max-width: 30em; margin-inline: auto; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.life-close-cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Under 900px the stage line becomes a strip of station chips that scrolls sideways (only the strip moves) */
@media (max-width: 899.98px) {
  .lc-line { margin-inline: -20px; }
  .lc-track, .lc-fill { display: none; }
  .lc-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 20px 8px; overscroll-behavior-x: contain; }
  .lc-list::-webkit-scrollbar { display: none; }
  .lc-list > li { flex: none; }
  .lc-st { flex-direction: row; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
  .lc-dot { width: 8px; height: 8px; border-width: 1.5px; background: transparent; }
  .lc-st.is-active .lc-dot::after { inset: -6px; }
  .lc-st.is-past { border-color: rgba(108, 196, 254, .45); }
  .lc-st.is-active { background: var(--signal); border-color: var(--signal); color: var(--on-signal); box-shadow: 0 0 16px rgba(108, 196, 254, .4); }
  .lc-st.is-active .lc-dot { background: var(--on-signal); border-color: var(--on-signal); box-shadow: 0 0 8px rgba(255, 255, 255, .8); }
  .lc-panel { padding: 24px 20px; }
  .lc-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 600px) and (max-width: 899.98px) { .lc-line { margin-inline: -32px; } .lc-list { padding-inline: 32px; } }

/* ---------- building drawing (js/building.js; preview/building.html only). The .bld line styles are also used by the road's scenes. ---------- */
.bf { position: relative; overflow: hidden; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow), 0 0 0 1px var(--card-edge); }
.bf svg.bld { width: 100%; height: auto; }
.bld .s { fill: none; stroke: var(--ink); stroke-opacity: .85; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bld .t { fill: none; stroke: var(--tick); stroke-width: 1.5; stroke-linecap: round; }
.bld .sig { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bld .amb { fill: var(--flag-soft); stroke: var(--flag); stroke-width: 2; }
.bld .thin { stroke-width: 1.5; }
.bld .dash { stroke-dasharray: 7 7; }
.bld .f { fill: var(--surface); }
.bld .g { fill: var(--fill-2); }
.bld .lit { fill: var(--signal-soft); }
.bld .sigf { fill: var(--signal); }
.bld .st.past .s { stroke: var(--tick); stroke-opacity: 1; }
.lead { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lead .ld-line { stroke: var(--signal); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lead .ring { fill: var(--signal-soft); }
.lead .dot { fill: var(--signal); }
.lead .ld { opacity: 0; }
.lead .ld.is-in { opacity: 1; transition: opacity .3s ease; }
.co {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: min(440px, 64%); padding: 4px 8px 4px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3; opacity: 0;
}
.co.is-in { opacity: 1; transition: opacity .3s ease; }
.co-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.co-t { min-width: 0; }
.co .chip { flex: none; }
.is-compact .bf .co { gap: 8px; padding: 4px 4px 4px 12px; font-size: 12.5px; border-radius: 20px; }
.is-compact .bf .co .chip { height: 19px; padding: 0 8px; font-size: 10px; }
.is-stacked .co, .is-stacked.co { position: static; max-width: none; box-shadow: none; }
.is-stacked .lead .ld-line { display: none; }

/* ---------- the one reveal: every block fades in with a 16px rise over 500ms (the same easing), once, when its top
   reaches 85% of the screen (js/home.js). Visible by default: hidden only once js/home.js has set html.js-anim (never
   under reduced motion). ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
.reveal.no-fade { transition: none !important; }

/* an old anchor kept alive (index.html#tools lands on What we build) */
#what-we-build { position: relative; }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 0; overflow: hidden; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-anim .reveal { opacity: 1; transform: none; }
}

/* ---------- What we build: the wave, the rows' drift, the tilt and the sheen (Prompt 18; js/home.js initWave) ---------- */
.wt { --py: 0px; --lift: 0px; --rx: 0deg; --ry: 0deg; transform: perspective(900px) translate3d(0, calc(var(--py) + var(--lift)), 0) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s var(--ease), box-shadow .35s ease; }
.wt:hover, .wt:focus-within { --lift: -3px; }
.wt--cta:hover, .wt--cta:focus-within { --lift: 0px; }
.wt:is([data-tool], .how-card)::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%); opacity: 0; transition: opacity .3s ease; }
[data-theme="dark"] .wt:is([data-tool], .how-card)::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 45%); }
@media (hover: hover) and (pointer: fine) { .wt:is([data-tool], .how-card):hover::after { opacity: 1; } }
.js-anim .wt-grid.reveal { opacity: 1; transform: none; transition: none; }
.js-anim .wt-grid.reveal:not(.is-in) > li { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(6px); }
.wt-grid.reveal.is-in:not(.no-fade):not(.is-done) > li { animation: wt-wave .9s cubic-bezier(.22, 1.18, .36, 1) calc(var(--wi, 0) * 70ms) both; }
@keyframes wt-wave {
  from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(6px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: perspective(900px) translate3d(0, var(--py), 0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .wt { transform: none; transition: box-shadow .35s ease; }
  .wt-grid.reveal > li { animation: none !important; opacity: 1 !important; filter: none !important; }
  .wt[data-tool]::after { display: none; }
}

/* =====================================================================================================================
   PROMPT 18B
   ===================================================================================================================== */

/* ---------- the intro (homepage, once per session; js/home.js initIntro). Fixed, so nothing on the page moves. ---------- */
.intro { display: none; }
html.is-intro .intro { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
html.is-intro .intro::before { content: ""; position: absolute; inset: 0; background: #071B53; transition: opacity .55s cubic-bezier(.65, 0, .35, 1); }
.intro.is-gliding::before, .intro.is-out::before { opacity: 0; }
html.is-intro-rm .intro::before { transition: opacity .3s ease; }
.intro.is-out .intro-w { opacity: 0; transition: opacity .3s ease; }
.intro-w { position: relative; display: inline-flex; font-weight: 600; font-size: clamp(36px, 7vw, 76px); line-height: 1; letter-spacing: .14em; color: #FFFFFF; transform-origin: 0 0; transition: transform .6s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.intro-ghost, .intro-live { display: inline-flex; align-items: center; gap: .533em; white-space: pre; }
.intro-ghost { visibility: hidden; }
.intro-live { position: absolute; left: 0; top: 0; bottom: 0; }
.intro-cur { display: block; width: .467em; height: .933em; background: #6CC4FE; }
.intro-w.is-blink .intro-live .intro-cur { animation: blink .5s steps(1) infinite; }
html.is-intro .hdr .brand { visibility: hidden; }   /* the gliding wordmark lands exactly on it; it shows when the intro ends */

/* ---------- the bridge goes dark: a deep ink gradient, a soft blue glow behind the headline, the faint blueprint grid in
   white; its bottom (#040F33) runs straight on into the film section (Prompt 21: no dawn fade, no seam). The numbers in amber #8A97B5 with their glow (below). ---------- */
.bridge.on-ink {
  --grid: rgba(255, 255, 255, .04);
  background-color: #071B53;
  background-image:
    linear-gradient(180deg, #071B53 0%, #040F33 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
}
.bridge.on-ink .issue-n { color: #8A97B5; }
.bridge.on-ink .issue { border-top-color: rgba(255, 255, 255, .14); }

/* ---------- big numbers, everywhere they appear: amber for problems, blue for AI or good results ----------
   Dark sections: the number stays perfectly crisp; its glow is a separate layer behind it (a copy of the number with three
   soft text-shadow layers, ::before), which breathes once, gently, when the count finishes, then holds still.
   Light sections: no glow (it would look muddy); a crisp gradient fill in the number's colour with a very soft coloured
   shadow under it. */
.issue-n { --n-rgb: 255, 176, 32; --n-a: #8A93A6; --n-b: #5E6A85; }
.cs-stat-n { --n-rgb: 110, 160, 255; --n-a: #6CC4FE; --n-b: #6CC4FE; }
:is(.issue-n, .cs-stat-n) .count { position: relative; isolation: isolate; }
html:not([data-theme="dark"]) :is(.on-beige, .on-white, .bp) :is(.issue-n, .cs-stat-n) .count {
  background: linear-gradient(180deg, var(--n-a) 0%, var(--n-b) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 16px rgba(var(--n-rgb), .16));
}
:is(.on-ink, [data-theme="dark"]) :is(.issue-n, .cs-stat-n) .count::before {
  content: attr(data-n) / ""; position: absolute; left: 0; top: 0; z-index: -1; white-space: nowrap; pointer-events: none;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(var(--n-rgb), .5), 0 0 28px rgba(var(--n-rgb), .3), 0 0 64px rgba(var(--n-rgb), .16);
  opacity: .5;
}
:is(.on-ink, [data-theme="dark"]) :is(.issue-n, .cs-stat-n) .count.is-lit::before { opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  :is(.on-ink, [data-theme="dark"]) :is(.issue-n, .cs-stat-n) .count.is-lit::before { animation: n-breathe 2.4s var(--ease) 1; }
}
@keyframes n-breathe { 0% { opacity: .5; } 45% { opacity: 1; } 100% { opacity: .8; } }
[data-theme="dark"] .cs-stat-n { color: #6CC4FE; }

/* ---------- first-screen fit: the homepage and consulting heroes fill the screen exactly, behind the translucent nav,
   their content padded below it (so no strip of the next section ever shows at the bottom) ---------- */
body[data-page="home"] .hero, body[data-page="consulting"] .hero {
  min-height: 100vh; min-height: 100svh;
  margin-top: calc(-1 * var(--nav-h) - 1px); padding-top: calc(var(--nav-h) + 1px + var(--hero-top));   /* the header is the nav height plus its 1px hairline */
}

/* ---------- the polish pass (Prompt 18B, item 4) ---------- */
/* display type: tighter tracking and a 1.05 line height on every display headline */
.sec-h, .hero-h, .final-h, .bridge-t { letter-spacing: -0.035em; line-height: 1.05; }
/* one entrance: the shared easing at 700ms */
.js-anim .reveal { transition-duration: .7s; }
/* one glass: the header takes the same 20px blur as the chat panel */
.hdr { -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
/* interaction: a refined press state on every button (about 200ms), the focus ring kept visible */
.btn:active { transform: translateY(1px); transition-duration: .1s; }   /* Prompt 23: a 1px settle */
.btn--solid:active::before { opacity: .3; }
.wt-cta-a:active, .how-link:active, .film-how:active { opacity: .7; }
.film-how:focus-visible, .film-st:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- Prompt 19, the reviewer pass ---------- */
/* the homepage and consulting heroes: the content sits centred in the screen under the nav (it was top-weighted, leaving
   a quarter of the first screen empty at the bottom) */
body[data-page="home"] .hero, body[data-page="consulting"] .hero {
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 1px + 48px); padding-bottom: 48px;
}
@media (max-width: 599.98px) { body[data-page="home"] .hero, body[data-page="consulting"] .hero { padding-top: calc(var(--nav-h) + 1px + 40px); } }
/* footnotes under the film and What we build: quieter than labels */

/* ---------- Prompt 20: About us, a small dropdown in the nav (js/site.js): a glass panel with Our story and Leadership,
   each with a one-line description; it opens on hover and on click with a 200ms fade and a 4px rise, and works fully by
   keyboard (Enter, Space or Down opens; the arrows move; Esc closes). Phones: both items sit in the menu under About us. ---------- */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); opacity: .82; cursor: pointer; }
.nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { opacity: 1; }
.nav-dd-btn svg { transition: transform .2s var(--ease); }
.nav-dd.is-open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd.is-current .nav-dd-btn { opacity: 1; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.nav-dd-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 6px; }
.nav-dd-panel {
  position: absolute; z-index: 60; top: calc(100% + 18px); left: 50%; width: 320px; margin-left: -160px; padding: 8px;
  border-radius: 20px; white-space: normal;
  background: rgba(255, 255, 255, .95); border: 1px solid rgba(7, 27, 83, .08);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 1px 2px rgba(7, 27, 83, .06), 0 24px 48px -20px rgba(7, 27, 83, .3);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }   /* keeps hover across the gap */
.nav-dd.is-open .nav-dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-dd-i { display: block; padding: 12px 14px; border-radius: 12px; color: #071B53; opacity: 1 !important; text-decoration: none !important; }
.nav-dd-i b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.nav-dd-i span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: #42506E; }
.nav-dd-i:hover, .nav-dd-i:focus-visible { background: rgba(7, 27, 83, .05); outline: none; }
.nav-dd-i:focus-visible { box-shadow: inset 0 0 0 2px var(--signal); }
.hdr[data-on="ink"] .nav-dd-panel, [data-theme="dark"] .nav-dd-panel { background: rgba(6, 22, 68, .9); border-color: rgba(255, 255, 255, .12); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6); }
.hdr[data-on="ink"] .nav-dd-i, [data-theme="dark"] .nav-dd-i { color: #FFFFFF; }
.hdr[data-on="ink"] .nav-dd-i span, [data-theme="dark"] .nav-dd-i span { color: #C4CDE3; }
.hdr[data-on="ink"] .nav-dd-i:hover, .hdr[data-on="ink"] .nav-dd-i:focus-visible, [data-theme="dark"] .nav-dd-i:hover { background: rgba(255, 255, 255, .06); }
@media (prefers-reduced-motion: reduce) { .nav-dd-panel { transform: none; } }
/* the phone menu: About us as a small heading, its two items under it */
.menu-k { display: flex; align-items: flex-end; min-height: 48px; padding-bottom: 8px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-in a.menu-sub { min-height: 48px; padding-left: 16px; font-size: 20px; }

/* ---------- Prompt 21: the data line under the final call's buttons (it replaces the retired proof strip); the footer's
   email address ---------- */
.final-data { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.ftr-mail { color: inherit; text-transform: none; letter-spacing: .02em; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ftr-mail:hover { color: var(--ink); }

/* ==========================================================================================================
   Prompt 21B: HOW WE WORK, THE ROADMAP BUILDS ITSELF (homepage #how; the same ruler is consulting.html's Next step)
   A fine ruler, five week markers and five white cards, each with a small fine-line illustration. js/home.js
   initRoadmap arms it (.is-armed) and, once the block is half in view, plays it once: the ruler draws behind a glowing
   blue-to-cyan comet that runs Week 1 to Ongoing in 2.8s without stopping; as it passes each marker the marker lights,
   the card lifts 8px and lights (a gradient border, a faint glow under it) and its illustration plays (about 900ms;
   .is-play; replayed on hover). The row holds, lit. Reduced motion, no observer or no JavaScript: everything lit and
   still (the lit, played state is the default; only .is-armed hides it).
   ========================================================================================================== */
/* Prompt 25: How we work sits on plain ice white (the dark theme's light-section blue), with no gradient, glow, light pool
   or grain, and starts on a straight edge right under the hero */
.how-sec { position: relative; background: #F3F8FD; }
[data-theme="dark"] .how-sec { background: #0B1F55; }

.how { position: relative; --hw-y: 36px; --hw-blue: #6CC4FE; --hw-cyan: #A6DBFF; }
.how-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.how-step { position: relative; display: flex; flex-direction: column; }
.how-when { height: 24px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 24px; white-space: nowrap; color: #6CC4FE; }
[data-theme="dark"] .how-when { color: #6CC4FE; }
/* the ruler: one hairline (Prompt 25: no drawn line, no comet) */
.hw-rule { position: absolute; left: 0; right: 0; top: var(--hw-y); height: 0; z-index: 1; pointer-events: none; }
.hw-track { position: absolute; left: 0; right: 0; top: -.5px; height: 1px; background: rgba(7, 27, 83, .1); }
[data-theme="dark"] .hw-track { background: rgba(255, 255, 255, .12); }
/* the week markers on the ruler */
.how-mk { position: absolute; left: -4px; top: calc(var(--hw-y) - 5px); z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 1px solid rgba(7, 27, 83, .3); transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
[data-theme="dark"] .how-mk { border-color: rgba(255, 255, 255, .3); }
/* Prompt 25: the cards ARE What we build tiles (class "wt panel-grad": the same fill, edge, radius, shadow, hover lift,
   tilt and sheen); all five alike (one highlight corner); no glow, no lit border, no deepening gradient */
.how-card { margin-top: 32px; flex: 1; }
.how-card.wt { padding: 20px 22px 24px; --hx: 100%; --hy: 0%; }
.how-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.how-card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
/* the week markers: small dots on the hairline; lit, solid azure (no glow) */
:is(.how:not(.is-armed) .how-step, .how-step.is-lit) .how-mk { background: #6CC4FE; border-color: #6CC4FE; }
/* the pop: each card scales from .92 to 1 on a soft spring with a very small overshoot (600ms), 120ms apart (js) */
.how.is-armed .how-step:not(.is-in) .how-card { opacity: 0; transform: scale(.92); transition: none; }
.how.is-armed .how-step.is-in .how-card { animation: hw-pop .6s cubic-bezier(.3, 1.35, .5, 1) backwards; }
@keyframes hw-pop { from { opacity: 0; transform: scale(.92); } 45% { opacity: 1; } to { opacity: 1; transform: scale(1); } }

/* the mini illustrations: fine ink lines, blue for the AI result, amber for the waste */
.how-ill { display: block; width: 100%; max-width: 200px; height: 64px; margin-bottom: 16px; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.how-ill * { transform-box: fill-box; }
/* end states (the default) */
.hi-disc .hi-ln { opacity: .75; }
.hi-disc .hi-waste { stroke: var(--amber); fill: rgba(138, 147, 166, .14); }
.hi-disc .hi-mag { stroke: var(--signal); stroke-width: 1.5; transform: translate(126px, 32px); transform-box: view-box; }
.hi-score .hi-tr { stroke: rgba(7, 27, 83, .1); stroke-width: 5; }
.hi-score .hi-bar { stroke: var(--signal); stroke-width: 5; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.hi-plan .hi-card { stroke: rgba(7, 27, 83, .4); }
.hi-plan .hi-row path { stroke: rgba(7, 27, 83, .45); }
.hi-plan .hi-top rect { stroke: var(--signal); fill: var(--signal); }
.hi-plan .hi-top path { stroke: #FFFFFF; }
.hi-build .hi-brl, .hi-build .hi-brr { stroke-width: 1.5; }
.hi-build .hi-gear { transform-origin: center; }
.hi-build .hi-ok circle { stroke: var(--signal); fill: var(--signal); transform-origin: center; }
.hi-build .hi-tick { stroke: #FFFFFF; stroke-width: 1.5; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.hi-scale .hi-pod rect { fill: var(--surface); }
.hi-scale .hi-pod circle { fill: var(--signal); stroke: none; }
.hi-scale .hi-pod0 rect { stroke: var(--signal); }
[data-theme="dark"] .hi-score .hi-tr { stroke: rgba(255, 255, 255, .12); }
[data-theme="dark"] .hi-plan .hi-card { stroke: rgba(255, 255, 255, .4); }
[data-theme="dark"] .hi-plan .hi-row path { stroke: rgba(255, 255, 255, .45); }
/* start states: armed and not yet played (no transition, so a replay resets at once) */
.how.is-armed .how-step:not(.is-play) .how-ill * { transition: none !important; }
.how.is-armed .how-step:not(.is-play) .hi-disc .hi-mag { opacity: 0; transform: translate(14px, 32px); }
.how.is-armed .how-step:not(.is-play) .hi-disc .hi-waste { stroke: var(--ink); fill: rgba(138, 147, 166, 0); }
.how.is-armed .how-step:not(.is-play) .hi-score .hi-bar { stroke-dashoffset: 1; }
.how.is-armed .how-step:not(.is-play) .hi-plan .hi-row { opacity: 0; transform: translateY(-14px); }
.how.is-armed .how-step:not(.is-play) .hi-plan .hi-top rect { stroke: var(--ink); fill: rgba(108, 196, 254, 0); }
.how.is-armed .how-step:not(.is-play) .hi-plan .hi-top path { stroke: rgba(7, 27, 83, .45); }
.how.is-armed .how-step:not(.is-play) .hi-build .hi-brl { opacity: 0; transform: translateX(-16px); }
.how.is-armed .how-step:not(.is-play) .hi-build .hi-brr { opacity: 0; transform: translateX(16px); }
.how.is-armed .how-step:not(.is-play) .hi-build .hi-gear { opacity: 0; transform: scale(.4) rotate(-120deg); }
.how.is-armed .how-step:not(.is-play) .hi-build .hi-ok circle { transform: scale(0); }
.how.is-armed .how-step:not(.is-play) .hi-build .hi-tick { stroke-dashoffset: 1; }
.how.is-armed .how-step:not(.is-play) .hi-scale .hi-pod:not(.hi-pod0) { opacity: 0; transform: translate(var(--dx), var(--dy)); }
/* the plays (about 900ms each) */
.how.is-armed .how-step.is-play .hi-disc .hi-mag { transition: transform .62s cubic-bezier(.45, 0, .25, 1), opacity .2s ease; }
.how.is-armed .how-step.is-play .hi-disc .hi-waste { transition: stroke .25s ease .5s, fill .3s ease .5s; }
.how.is-armed .how-step.is-play .hi-score .hi-bar { transition: stroke-dashoffset .38s var(--ease) calc(var(--d) * 160ms); }
.how.is-armed .how-step.is-play .hi-plan .hi-row { transition: opacity .3s ease calc(var(--d) * 150ms), transform .42s cubic-bezier(.22, 1.2, .36, 1) calc(var(--d) * 150ms); }
.how.is-armed .how-step.is-play .hi-plan .hi-top rect, .how.is-armed .how-step.is-play .hi-plan .hi-top path { transition: stroke .25s ease .65s, fill .25s ease .65s; }
.how.is-armed .how-step.is-play .hi-build .hi-brl, .how.is-armed .how-step.is-play .hi-build .hi-brr { transition: opacity .3s ease, transform .4s var(--ease); }
.how.is-armed .how-step.is-play .hi-build .hi-gear { transition: opacity .3s ease .15s, transform .55s var(--ease) .15s; }
.how.is-armed .how-step.is-play .hi-build .hi-ok circle { transition: transform .3s cubic-bezier(.22, 1.4, .36, 1) .58s; }
.how.is-armed .how-step.is-play .hi-build .hi-tick { transition: stroke-dashoffset .25s ease .72s; }
.how.is-armed .how-step.is-play .hi-scale .hi-pod { transition: opacity .25s ease calc(80ms + var(--d) * 110ms), transform .4s var(--ease) calc(80ms + var(--d) * 110ms); }

/* phones: the cards stack and the hairline runs down the left side */
@media (max-width: 899.98px) {
  .how { padding-left: 32px; --hw-x: 8px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hw-rule { left: var(--hw-x); right: auto; top: 12px; bottom: 0; width: 0; height: auto; }
  .hw-track { left: -.5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .how-mk { left: calc(var(--hw-x) - 32px - 5px); top: 7px; }
  .how-card { margin-top: 8px; }
}


/* ==========================================================================================================
   Prompt 22: facts (js/facts.js). Source markers, their popover, the review marks and the source list at the bottom of a
   page. Every fact on the site renders from data/where-days-go-data.json; see CLAUDE.md, THE DATA RULE.
   ========================================================================================================== */
.src-m {
  display: inline-block; vertical-align: super; margin-left: 3px; padding: 0 3px; min-width: 14px; height: 14px; border-radius: 6px;
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; line-height: 14px; letter-spacing: 0; text-align: center;
  font-style: normal; text-decoration: none !important; color: var(--muted); border: 1px solid var(--line-2); background: transparent;
  -webkit-text-fill-color: currentColor; transition: color .15s ease, border-color .15s ease;
}
.src-m[role="button"] { cursor: pointer; }
.src-m:hover, .src-m:focus-visible { color: var(--ink); border-color: var(--ink); outline: none; }
.src-m.is-rv { color: #5E6A85; border-color: rgba(138, 147, 166, .5); }
.on-ink .src-m.is-rv, [data-theme="dark"] .src-m.is-rv, .film-frame .src-m.is-rv { color: #8A97B5; border-color: rgba(138, 151, 181, .5); }
.rv-fact { display: inline-block; vertical-align: super; width: 7px; height: 7px; margin-left: 4px; transform: rotate(45deg); background: #8A97B5; box-shadow: 0 0 0 2px rgba(138, 151, 181, .25); cursor: help; }
.is-unverified { text-decoration: underline dotted rgba(138, 147, 166, .7); text-underline-offset: 4px; }
.src-pop {
  position: fixed; left: 0; top: 0; z-index: 300; width: min(320px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 12px;
  background: rgba(6, 22, 68, .96); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.45;
  opacity: 0; transition: opacity .15s ease;
}
.src-pop.is-on { opacity: 1; }
.src-pop-k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #C4CDE3; }
.src-pop-s { margin-top: 4px; font-weight: 500; }
.src-pop-y { margin-top: 2px; color: #E2EAF8; }
.src-pop-a { margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.src-pop-a a { color: #6CC4FE; text-decoration: underline; text-underline-offset: 3px; }
.fact-fig { font-variant-numeric: tabular-nums; }

/* Prompt 22: the bridge facts (F01, F16): the first figure set large in amber with its glow; the sentence as the label */
.issue-f .fact-fig { display: block; position: relative; isolation: isolate; width: max-content; margin-bottom: 24px; font-family: var(--f-sans); font-size: var(--fs-big); font-weight: 600; letter-spacing: -0.03em; line-height: 1; text-transform: none; color: #8A97B5; }
.issue-f .fact-fig::before { content: attr(data-n) / ""; position: absolute; left: 0; top: 0; z-index: -1; white-space: nowrap; pointer-events: none; color: transparent; -webkit-text-fill-color: transparent; text-shadow: 0 0 10px rgba(138, 151, 181, .5), 0 0 28px rgba(138, 151, 181, .3), 0 0 64px rgba(138, 151, 181, .16); opacity: .8; }
.bridge .issue-l { margin-top: 0; color: var(--ink); max-width: 32em; line-height: 1.6; }

/* ==========================================================================================================
   Prompt 23: the colour law in the shared components (see css/tokens.css). Waiting = grey, dashed; AI = azure;
   resolved = lime. Fact numbers: white with a soft azure glow on dark, navy without a glow on light.
   ========================================================================================================== */
/* the bridge facts: white figures with a soft, layered azure glow */
.issue-f .fact-fig { color: #FFFFFF; }
.issue-f .fact-fig::before { text-shadow: 0 0 12px rgba(108, 196, 254, .45), 0 0 32px rgba(108, 196, 254, .25), 0 0 72px rgba(108, 196, 254, .12); opacity: .9; }
.bridge.on-ink { background-image: linear-gradient(180deg, #071B53 0%, #040F33 100%); }
:is(.on-ink, [data-theme="dark"]) :is(.issue-n, .cs-stat-n) .count { color: #FFFFFF; }
:is(.on-ink, [data-theme="dark"]) :is(.issue-n, .cs-stat-n) .count::before { text-shadow: 0 0 12px rgba(108, 196, 254, .45), 0 0 32px rgba(108, 196, 254, .25), 0 0 72px rgba(108, 196, 254, .12); }
html:not([data-theme="dark"]) :is(.on-beige, .on-white, .bp) :is(.issue-n, .cs-stat-n) .count { background: none; color: #071B53; -webkit-text-fill-color: #071B53; filter: none; }
/* How we work: the week labels in navy (azure is never text on white), the lit markers azure */
.how-when { color: #071B53; }
[data-theme="dark"] .how-when { color: #E2EAF8; }
.how { --hw-blue: #6CC4FE; --hw-cyan: #A6DBFF; }
/* the waiting / problem flag (the hero chat, the sample screens): grey, with a dashed outline */
.chat-flag, .ss-flag { color: #E2EAF8; background: transparent; border: 1px dashed rgba(138, 151, 181, .7); }
.panel-grad .ss-flag { color: #42506E; border-color: rgba(138, 147, 166, .8); }
/* focus rings everywhere: navy on light, azure on dark, 2px, offset */
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
/* scrollbars: thin and quiet where a strip scrolls */
* { scrollbar-color: rgba(7, 27, 83, .25) transparent; }
.on-ink *, [data-theme="dark"] * { scrollbar-color: rgba(255, 255, 255, .25) transparent; }

/* Prompt 23: the Klyst Assistant preview is a recording of a real app whose purple button falls outside the palette: the tile shows it desaturated (the lightbox keeps the full recording) */
.wt[data-tool="klyst"] .wt-pv video { filter: grayscale(1) contrast(1.02); }

/* Prompt 23: the Build illustration lands a resolved tick: lime with a navy check */
.hi-build .hi-ok circle { stroke: #E3FB99; fill: #E3FB99; }
.hi-build .hi-tick { stroke: #071B53; }
/* the light header: opaque enough that a dark section scrolling under it never greys it */
:root, .on-beige { --hdr-bg: rgba(243, 248, 253, .94); }

/* ---------- Prompt 28, signature moment a: the headline reveal (js/site.js). Until its turn a headline is hidden; then
   each line rises 24px from behind its mask (800ms, 80ms apart). The rest of its block fades in after it (--hl-d). ---------- */
html.hl-on .hl:not(.hl-split):not(.hl-done) { visibility: hidden; }
.hl-l { display: block; overflow: hidden; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.hl-i { display: block; transform: translateY(24px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--li, 0) * 80ms); }
.hl-go .hl-i { transform: none; opacity: 1; }
.js-anim .reveal.hl-after.is-in:not(.no-fade) { transition-delay: var(--hl-d, .9s); }

/* ---------- Prompt 28, signature moment b: the bridge illumination (js/home.js initBridgeLight). The words start at 25%
   and are lit by the scroll; the two facts fade in once the lines are lit ---------- */
html.bw-on .bridge .bw { opacity: .25; }
html.bw-on .bridge .bw-issues { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.bw-on .bridge .bw-issues.is-lit { opacity: 1; transform: none; }
/* ---------- signature moment c: the cursor light (hero and final call, desktop) ---------- */
.cur-light { position: absolute; z-index: 0; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(108, 196, 254, .16), rgba(108, 196, 254, .06) 55%, rgba(108, 196, 254, 0)); transition: opacity .4s ease; }

/* ==========================================================================================================
   Prompt 28: the phone pass (under 600px; checked at 390 x 844 and 360 x 780). Body text at least 15px, labels at least
   12px, tap targets at least 44px tall, nothing wider than the screen.
   ========================================================================================================== */
@media (max-width: 599.98px) {
  /* tap targets */
  .hdr .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .hdr .btn--sm { height: 44px; }
  .menu-btn { width: 44px; height: 44px; }
  .ftr a, .ftr-mail { display: inline-flex; align-items: center; min-height: 44px; }
  .cs-index a { display: inline-flex; align-items: center; min-height: 44px; }
  .wt-cta-a { display: inline-flex; align-items: center; min-height: 44px; }
  .film-end-r a { height: 44px; font-size: 13px; }
  /* small text */
  .src-m { font-size: 12px; }
  .final-data { font-size: 15px; }
  .cs-day-n, .cs-links li { font-size: 12px; }
  .lbl { font-size: 12px; }
}

/* Prompt 28: the phone menu is a clean full-screen sheet under the header: the four tabs, the About us and AI in
   Construction items, the theme, and the booking button at the bottom */
@media (max-width: 899.98px) {
  .menu { position: fixed; top: var(--nav-h); bottom: 0; overflow-y: auto; overscroll-behavior: contain; border-bottom: 0; }
  .menu-in { min-height: 100%; padding-bottom: 24px; }
  .menu-in a.menu-book { margin-top: auto; min-height: 0; height: 56px; justify-content: center; border-bottom: 0; font-size: 17px; font-weight: 600; }
  .menu-theme { margin-bottom: 24px; }
}
@media (min-width: 900px) { .menu-book { display: none; } }

/* Prompt 28E: a visual settled straight to its end state (scrolled past before it played) skips its transitions */
.kv-final, .kv-final *, .kv-final *::before, .kv-final *::after { transition: none !important; animation: none !important; }
.js-anim .reveal.hl-after.is-in:not(.no-fade) { transition-delay: 0s; }   /* no added delay after the headline */

/* ==========================================================================================================
   Prompt 28E: no blank starts (homepage and the shared parts). How we work: the five cards, their week dots and the
   still part of each drawing show from the first paint; the play pops each card gently (a 2% swell, no fade), lights its
   dot and plays its drawing. What we build: the tiles show from the first paint; the wave is a 16px settle, no fade, no
   blur. The Build drawing starts with its brackets in place.
   ========================================================================================================== */
.how.is-armed .how-step:not(.is-in) .how-card { opacity: 1; transform: none; }
.how.is-armed .how-step.is-in .how-card { animation: hw-pop28 .6s cubic-bezier(.3, 1.35, .5, 1); }
@keyframes hw-pop28 { 0% { transform: scale(1); } 40% { transform: scale(1.02); } 100% { transform: scale(1); } }
.how.is-armed .how-step:not(.is-play) .hi-build .hi-brl, .how.is-armed .how-step:not(.is-play) .hi-build .hi-brr { opacity: 1; transform: none; }
.js-anim .wt-grid.reveal:not(.is-in) > li { opacity: 1; transform: translateY(16px); filter: none; }
.wt-grid.reveal.is-in:not(.no-fade):not(.is-done) > li { animation: wt-wave28 .7s cubic-bezier(.22, 1, .36, 1) calc(var(--wi, 0) * 40ms) both; }
@keyframes wt-wave28 { from { transform: translateY(16px); } to { transform: perspective(900px) translate3d(0, var(--py), 0); } }
/* Prompt 28E: the bridge facts show from the first paint (the illumination lights the words; it no longer holds the facts back) */
html.bw-on .bridge .bw-issues { opacity: 1; transform: none; transition: none; }

/* Prompt 28G: in the dark theme the header is always translucent navy with white text and links, a white theme icon
   and the lime booking button, whatever section is under it (a later :root rule had reset its glass to light while its
   text turned white). In the light theme it still follows the section beneath (data-on). */
[data-theme="dark"] .hdr, [data-theme="dark"] .hdr[data-on] { --hdr-bg: rgba(7, 27, 83, .85); --ink: #FFFFFF; --ink-2: #E2EAF8; --muted: #C4CDE3; --line: rgba(255, 255, 255, .12); --bg: #071B53; --surface: #0B2461; color: #FFFFFF; }
[data-theme="dark"] .hdr .icon-btn, [data-theme="dark"] .hdr .theme-btn { color: #FFFFFF; }

/* Prompt 28H: the brighter lime on white (light theme only): the Build drawing's tick */
html:not([data-theme="dark"]) .hi-build .hi-ok circle { fill: #C6EE3E; stroke: #A6CC2A; }

/* ==========================================================================================================
   Prompt 29: THE WOW FIRST SCREEN. Behind the headline and the chat, across the right two-thirds of the hero, the
   finished data centre from the film as a precise azure blueprint on navy (img/hero-blueprint.svg, inlined; no WebGL).
   Line weights as in the film (outlines 1.5px, secondary 1px at 60%, detail 1px at 45%; non-scaling). It dims to 35%
   behind the headline (a mask), draws itself in once (1.2s) after the intro, then soft light pulses travel its power,
   chilled water and cable tray runs (azure, small lime heads, slow and staggered), pausing while the chat types; the
   drawing breathes very slightly (1 to 1.02 over 30s). Reduced motion: the finished drawing, still, no pulses.
   ========================================================================================================== */
.hero { position: relative; }
.hero-bp { position: absolute; z-index: 0; top: var(--nav-h); right: 0; bottom: 0; left: 30%; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .35) 22%, #000 52%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .35) 22%, #000 52%, #000 100%); }
.bp-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; transform-origin: 60% 55%; }
.bp-svg path { vector-effect: non-scaling-stroke; fill: none; }
.bp-a { stroke: #6CC4FE; stroke-opacity: .85; }
.bp-b { stroke: #6CC4FE; stroke-opacity: .55; }
.bp-c { stroke: #6CC4FE; stroke-opacity: .45; }
.bp-run, .bp-head { stroke-linecap: round; opacity: 0; }
.bp-run { stroke: #A6DBFF; stroke-width: 2.5; stroke-dasharray: .07 .93; filter: drop-shadow(0 0 4px rgba(108, 196, 254, .9)); }
.bp-head { stroke: #E3FB99; stroke-width: 3.5; stroke-dasharray: .006 .994; filter: drop-shadow(0 0 4px rgba(227, 251, 153, .8)); }
@media (prefers-reduced-motion: no-preference) {
  html.js-bp .hero-bp .bp-svg { clip-path: inset(0 100% 0 0); }
  html.js-bp .hero-bp.is-drawing .bp-svg { clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.52, 0, .2, 1); }
  html.js-bp .hero-bp.is-drawn .bp-svg { clip-path: none; animation: bp-breathe 30s ease-in-out infinite alternate; }
  .hero-bp.is-drawn .bp-run, .hero-bp.is-drawn .bp-head { opacity: 1; animation: bp-pulse 9s linear infinite; }
  .hero-bp.is-drawn .bp-head { animation-name: bp-pulse-h; }
  .hero-bp.is-drawn .bp-run2, .hero-bp.is-drawn .bp-head.bp-run2 { animation-duration: 11s; animation-delay: -3.6s; }
  .hero-bp.is-drawn .bp-run3, .hero-bp.is-drawn .bp-head.bp-run3 { animation-duration: 13s; animation-delay: -7.8s; }
  .hero.is-typing .bp-run, .hero.is-typing .bp-head, .hero.is-typing .bp-svg { animation-play-state: paused !important; }
}
@keyframes bp-pulse { from { stroke-dashoffset: 1.07; } to { stroke-dashoffset: 0; } }
@keyframes bp-pulse-h { from { stroke-dashoffset: 1.002; } to { stroke-dashoffset: -.068; } }
@keyframes bp-breathe { from { transform: scale(1); } to { transform: scale(1.02); } }
/* the chat floats over the drawing's lower right; the copy and the chat sit above it */
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 1099.98px) { .hero-bp { left: 0; top: auto; height: 60%; opacity: .5; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); } }
/* round 2: the drawing's left edge feathers into the dimmed band (no hard edge); the homepage hero drops the glow's arcs, so the
   blueprint is the only linework (one soft light pool stays) */
.hero-bp { -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .35) 26%, #000 52%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .35) 26%, #000 52%, #000 100%); }
body[data-page="home"] .hero .glow i:nth-child(2) { display: none; }
@media (max-width: 1099.98px) { .hero-bp { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); } }

/* Prompt 29: the developer grid overlay (?grid=1, js/site.js): the 12 columns and their 24px gutters inside the 1200px
   content and its side margins, so the alignment can be checked by eye */
.grid-ov { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.grid-ov .wrap { height: 100%; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
.grid-ov i { background: rgba(255, 0, 90, .08); box-shadow: inset 1px 0 0 rgba(255, 0, 90, .35), inset -1px 0 0 rgba(255, 0, 90, .35); }
.grid-ov::before, .grid-ov::after { content: ""; position: fixed; top: 0; bottom: 0; width: 1px; background: rgba(255, 0, 90, .6); left: max(var(--side), calc((100vw - var(--maxw)) / 2)); }
.grid-ov::after { left: auto; right: max(var(--side), calc((100vw - var(--maxw)) / 2)); }

/* ==========================================================================================================
   Prompt 29: craft details. Large left-aligned headlines sit optically on the content edge (their first letter's side
   bearing pulled back, about 0.04em); quotes hang in the margin where the browser supports it; one designed focus
   state everywhere (a 2px ring in the surface's signal colour with a soft azure halo, rounded); the selection is azure
   at 30% (tokens.css); scrollbars follow the theme.
   ========================================================================================================== */
:is(.hero-h, .sec-h, .final-h, .bridge-t, .dg-h, .fits-h, .dg-h2) { margin-left: -0.04em; }
:is(.ab-hero-h, .ls-name) { margin-left: 0; }
html { hanging-punctuation: first allow-end last; scrollbar-color: rgba(7, 27, 83, .35) transparent; }
html[data-theme="dark"] { scrollbar-color: rgba(255, 255, 255, .3) transparent; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px rgba(108, 196, 254, .22); }
.btn:focus-visible { border-radius: 999px; }
.src-m:focus-visible { box-shadow: 0 0 0 2px var(--signal), 0 0 0 6px rgba(108, 196, 254, .22); }

/* Prompt 29: the 404 page (404.html): one ink screen, left-aligned on the grid like the heroes */
.nf { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
.nf-in { position: relative; z-index: 1; }
.nf-k { color: #C4CDE3; margin-bottom: 16px; }
.nf-h { max-width: 11em; }

/* Prompt 29: the two-column layouts sit on the 12-column grid (24px gutters), so every second column starts on a
   column line: the hero (copy 1 to 7, the chat 8 to 12) and the final call (headline 1 to 7, what you get 8 to 12) */
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
  .hero-grid > :first-child { grid-column: 1 / span 7; }
  .hero-grid > :last-child { grid-column: 8 / -1; }
  .final-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
  .final-grid > .final-head { grid-column: 1 / span 7; }
  .final-grid > .final-side { grid-column: 8 / -1; }
}

/* Prompt 29, the final pass: the bridge's two fact captions read as sentences (they were long lines of mono capitals);
   What we build's one-liners show in full (3 lines on desktop, no clamp on phones: an ellipsis looked unfinished) */
.bridge .issue-l { font-family: inherit; text-transform: none; letter-spacing: -0.005em; font-size: 17px; font-weight: 450; line-height: 1.55; color: #E2EAF8; max-width: 30em; }
.wt-b { -webkit-line-clamp: 3; line-clamp: 3; }
@media (max-width: 599.98px) { .wt-b { -webkit-line-clamp: unset; line-clamp: none; display: block; } }

/* Prompt 32: the phone hero (under 600px). The blueprint leaves the background and becomes its own block between the
   headline and the chat (js/home.js moves it into .hero-grid and crops its viewBox to the building's east half): full
   width, 260px tall, full strength, its top and bottom edges feathered into the hero; the draw-in and pulses as on desktop. */
@media (max-width: 599.98px) {
  .hero-grid { gap: 32px; }
  .hero-grid > .hero-bp.is-block { position: relative; inset: auto; z-index: 0; grid-column: 1 / -1; height: 260px; margin-inline: calc(-1 * var(--side)); opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .hero-grid > .hero-bp.is-block .bp-svg { transform-origin: 50% 50%; }
}

/* The brand mark: the azure block after KATALYST, on every page in both themes. Azure #6CC4FE wherever the header is dark
   (the ink header, the whole dark theme); the deeper azure #2E8FD6 on the light glass header, where the pale azure would
   wash out (it used to take --signal, which is navy there, so it read as part of the wordmark). It blinks calmly: a soft
   fade between full and 15% on a 1.2s cycle, the site's one allowed idle loop (exempt from the one-thing-moves rule).
   On the homepage the intro's gliding block lands on it: the blink is held while the intro runs and starts at full
   strength the moment the nav's own block takes over, so there is no gap and no double block. Reduced motion: solid. */
.hdr .brand-cur { background: #6CC4FE; }
html:not([data-theme="dark"]) .hdr:not([data-on="ink"]) .brand-cur { background: #2E8FD6; }
@media (prefers-reduced-motion: no-preference) {
  .hdr .brand-cur { animation: brand-blink 1.2s ease-in-out infinite; }
  html.is-intro .hdr .brand-cur { animation: none; }
}
@keyframes brand-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
