/* v5 draft: the site in the product's own design language.
   Tokens are the app's (tokens.css, carbon): three neutral surfaces, four text steps, hairline borders, near-white as
   the one accent ("nothing is coloured for being clickable"), blue only in the brand, green and amber only for state.
   Type: Manrope for display, Inter for text, self-hosted. Motion: the app's curves, short, no overshoot. */

@font-face { font-family: "Inter"; src: url("/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: dark;
  /* surfaces */
  --canvas: #0a0a0b;
  --surface: #141416;
  --sunken: #1c1c1f;
  --raised: #202025;
  /* text */
  --text: #f2f2f3;
  --text-2: #a1a1a8;
  --text-3: #909098;
  --text-inverse: #0a0a0b;
  /* lines */
  --line-1: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.22);
  /* state and brand */
  --ok: #3fb950;
  --ok-soft: rgba(63, 185, 80, 0.14);
  --warn: #d4a72c;
  --warn-soft: rgba(212, 167, 44, 0.14);
  --brand: #5b9bea;
  --brand-tile: #2b71c4;
  --ring: rgba(255, 255, 255, 0.45);
  /* type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  /* space (4 px base) and shape */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 3.75rem;
  /* motion: the app's own curves */
  --ease: cubic-bezier(0.2, 0, 0.13, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-sym: cubic-bezier(0.45, 0, 0.55, 1);
  --t-1: 120ms; --t-2: 200ms; --t-3: 420ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  font-feature-settings: "cv11", "ss03", "calt";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgba(255, 255, 255, 0.22); color: #fff; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--line-3); text-decoration-thickness: 1px; text-underline-offset: 0.22em;
    transition: text-decoration-color var(--t-2) var(--ease), color var(--t-2) var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.nb { white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; padding: 0.6rem 0.9rem; border-radius: var(--r-s);
             background: var(--text); color: var(--text-inverse); font-weight: 600; text-decoration: none; transition: top var(--t-2) var(--ease); }
.skip-link:focus { top: 0.6rem; }

/* ---------- small parts ---------- */
.kicker { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; height: 1.6rem; padding: 0 0.6rem; border-radius: 999px;
        border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
        font: 500 0.75rem/1 var(--sans); letter-spacing: 0.005em; white-space: nowrap; text-decoration: none; }
a.chip { transition: border-color var(--t-2) var(--ease), color var(--t-2) var(--ease), background-color var(--t-2) var(--ease); }
a.chip:hover { border-color: var(--line-3); color: var(--text); background: var(--sunken); }
.chip-ok { color: var(--ok); border-color: rgba(63, 185, 80, 0.32); background: var(--ok-soft); }
.chip-warn { color: var(--warn); border-color: rgba(212, 167, 44, 0.32); background: var(--warn-soft); }
.chip-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.btn { --bg: transparent; --fg: var(--text); --bd: var(--line-3);
       display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.75rem; padding: 0 1.15rem;
       border-radius: var(--r-m); border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
       font: 600 0.94rem/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
       transition: background-color var(--t-2) var(--ease), border-color var(--t-2) var(--ease), color var(--t-2) var(--ease), transform var(--t-1) var(--ease); }
.btn:hover { --bg: rgba(255, 255, 255, 0.06); --bd: rgba(255, 255, 255, 0.34); }
.btn:active { transform: scale(0.98); }
.btn-primary { --bg: var(--text); --fg: var(--text-inverse); --bd: transparent; }
.btn-primary:hover { --bg: #fff; --bd: transparent; }
.btn-sm { height: 2.25rem; padding: 0 0.85rem; font-size: 0.875rem; border-radius: var(--r-s); }
.btn .arr { transition: transform var(--t-2) var(--ease); }
.btn:hover .arr, .more:hover .arr { transform: translateX(3px); }
.more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; text-decoration: none; color: var(--text); }
.more .arr { transition: transform var(--t-2) var(--ease); }

.card { background: var(--surface); border: 1px solid var(--line-1); border-radius: var(--r-l); padding: clamp(1.25rem, 2.4vw, 1.75rem);
        transition: border-color var(--t-3) var(--ease), background-color var(--t-3) var(--ease); }
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.55rem; }
.card p { color: var(--text-2); font-size: 0.97rem; }
.card-kick { display: block; margin-bottom: 0.9rem; }
.ic { width: 2.25rem; height: 2.25rem; margin-bottom: 1.1rem; display: grid; place-items: center; border-radius: var(--r-m);
      background: var(--sunken); border: 1px solid var(--line-1); color: var(--text); }
.ic svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h);
               background: rgba(10, 10, 11, 0.72); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
               border-bottom: 1px solid transparent; transition: border-color var(--t-3) var(--ease), background-color var(--t-3) var(--ease); }
.site-header.is-stuck { border-bottom-color: var(--line-1); }
.site-nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 700 1.02rem/1 var(--display); letter-spacing: -0.02em; }
.brand b { color: var(--brand); font-weight: 700; }
.brand-mark { width: 1.75rem; height: 1.75rem; color: var(--brand-tile); transition: transform var(--t-3) var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; height: 2.1rem; padding: 0 0.7rem; border-radius: var(--r-s);
                         color: var(--text-2); font-size: 0.9rem; font-weight: 500; text-decoration: none;
                         transition: color var(--t-2) var(--ease), background-color var(--t-2) var(--ease); }
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta { margin-left: 0.6rem; }
.nav-toggle { display: none; height: 2.25rem; padding: 0 0.8rem; border-radius: var(--r-s); border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 500; font-size: 0.9rem; }
@media (max-width: 62em) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0;
               padding: 0.5rem var(--gutter) 1.25rem; background: var(--canvas); border-bottom: 1px solid var(--line-1);
               visibility: hidden; opacity: 0; transform: translateY(-6px);
               transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease), visibility 0s linear var(--t-2); }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a:not(.btn) { height: 2.9rem; font-size: 1rem; border-bottom: 1px solid var(--line-1); border-radius: 0; padding: 0; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; height: 2.75rem; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.hero .eyebrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-bottom: 1.6rem; }
.eyebrow-note { color: var(--text-3); font-size: 0.85rem; font-weight: 500; margin-left: 0.25rem; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.03; letter-spacing: -0.038em; font-weight: 600; margin-inline: auto; max-width: 20ch; }
.hero-def { margin: 1.25rem auto 0; max-width: 50rem; color: var(--text-2); font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.6; }
.hero-plain { margin: 1rem auto 0; max-width: 40rem; color: var(--text); font-size: 1rem; }
.hero-ctas { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.cta-note { margin-top: 0.9rem; color: var(--text-3); font-size: 0.85rem; }
.def-wrap { position: relative; display: inline-block; }
.def { padding: 0; border: 0; background: none; cursor: help; border-bottom: 1px dashed var(--line-3); transition: border-color var(--t-2) var(--ease); }
.def:hover, .def[aria-expanded="true"] { border-bottom-color: var(--text); }
.def-pop { position: absolute; left: 50%; top: calc(100% + 0.6rem); z-index: 5; width: min(22rem, 80vw); transform: translateX(-50%);
           padding: 0.85rem 1rem; border-radius: var(--r-m); background: var(--raised); border: 1px solid var(--line-2);
           box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); color: var(--text-2); font-size: 0.875rem; line-height: 1.5; text-align: left; }

/* ---------- the tour: the dashboard, taken apart ---------- */
.tour { position: relative; }
.tour-pin { position: relative; }
.tour-still { width: min(73.75rem, 100% - 2 * var(--gutter)); height: auto; margin-inline: auto; border-radius: 10px; border: 1px solid var(--line-1); }
.tour-gl, .tour-rail { display: none; }
.tour-steps { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.tour-step { display: grid; gap: 1.25rem; }
.tour-step .kicker { margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.tour-step .kicker i { font-style: normal; color: var(--text); }
.tour-step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -0.028em; margin-bottom: 0.8rem; }
.tour-step p { color: var(--text-2); max-width: 34rem; }
.tour-step img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-1); }
.tour-step[data-i="0"] img { display: none; }
@media (min-width: 62em) { .tour-step { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: 3rem; } }

/* live (WebGL 2, motion allowed): one pinned stage; the copy sits beside it and changes with the deck */
.v5-gl .tour { height: 620vh; }
.v5-gl .tour-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.v5-gl .tour-pin::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 60% 52%, rgba(255, 255, 255, 0.045), transparent 70%); }
.v5-gl .tour-gl { display: block; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 500ms var(--ease); }
.v5-gl .tour-gl canvas { width: 100%; height: 100%; }
.v5-gl .tour.is-live .tour-gl { opacity: 1; }
.v5-gl .tour-still { position: absolute; top: 1rem; left: 0; right: 0; border-color: transparent; }
.v5-gl .tour.is-live .tour-still { visibility: hidden; }
.v5-gl .tour.is-live.at-rest .tour-still { visibility: visible; }
.v5-gl .tour-steps { position: absolute; left: max(var(--gutter), (100% - var(--wrap)) / 2); top: 50%; width: min(24rem, 30vw); margin: 0; display: block; transform: translateY(-50%); }
.v5-gl .tour-step { position: absolute; left: 0; top: 0; width: 100%; display: block; transform: translateY(calc(-50% + 10px)); opacity: 0; visibility: hidden;
                    transition: opacity 160ms var(--ease-in), transform 160ms var(--ease-in), visibility 0s linear 160ms; }
.v5-gl .tour-step.is-on { opacity: 1; visibility: visible; transform: translateY(-50%);
                          transition: opacity 320ms var(--ease) 170ms, transform 420ms var(--ease) 170ms, visibility 0s linear 170ms; }
.v5-gl .tour-step img { display: none; }
.v5-gl .tour-rail { display: flex; position: absolute; left: max(var(--gutter), (100% - var(--wrap)) / 2); bottom: clamp(1.5rem, 5vh, 3rem); gap: 6px; opacity: 0; transition: opacity var(--t-3) var(--ease); }
.v5-gl .tour.in-deck .tour-rail { opacity: 1; }
.tour-rail i { width: 1.5rem; height: 2px; border-radius: 2px; background: var(--line-2); transition: background-color var(--t-3) var(--ease), width var(--t-3) var(--ease); }
.tour-rail i.is-on { background: var(--text); width: 2.5rem; }
@media (max-width: 62em) {
  .v5-gl .tour-steps { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: clamp(4rem, 12vh, 7rem); transform: none; height: 11.5rem; }
  .v5-gl .tour-step { top: 0; transform: translateY(10px); }
  .v5-gl .tour-step.is-on { transform: none; }
  .v5-gl .tour-step h3 { font-size: 1.4rem; }
  .v5-gl .tour-step p { font-size: 0.95rem; }
  .v5-gl .tour-pin::before { background: radial-gradient(90% 40% at 50% 34%, rgba(255, 255, 255, 0.045), transparent 70%); }
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--line-1); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .kicker { margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -0.032em; }
.section-head p { margin-top: 1.1rem; color: var(--text-2); font-size: 1.06rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
@media (min-width: 48em) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68em) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prose-foot { margin-top: 2rem; max-width: 52rem; color: var(--text-2); font-size: 0.97rem; }
.prose-foot a, .card a, .section-head a { color: var(--text); }

/* figures (why now, substance) */
.fig-card { display: flex; flex-direction: column; }
.fig-src { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line-1);
           font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.fig { font: 600 clamp(2.4rem, 4.4vw, 3.4rem)/1 var(--display); letter-spacing: -0.04em; margin-bottom: 1rem; }
.fig small { font-size: 0.5em; font-weight: 500; color: var(--text-3); letter-spacing: -0.01em; margin-left: 0.15em; }

/* phase strip: three states on one line */
.phases { margin-top: 1rem; display: grid; border: 1px solid var(--line-1); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.phase { padding: 1.25rem clamp(1.25rem, 2.4vw, 1.75rem); display: grid; gap: 0.5rem; align-content: start; border-top: 1px solid var(--line-1); }
.phase:first-child { border-top: 0; }
.phase b { font: 600 1.02rem/1.3 var(--display); letter-spacing: -0.015em; }
.phase span:last-child { color: var(--text-2); font-size: 0.9rem; }
.phase .chip { justify-self: start; }
@media (min-width: 48em) { .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); } .phase { border-top: 0; border-left: 1px solid var(--line-1); } .phase:first-child { border-left: 0; } }

/* operating model: four states, in order, on one rule */
.states { display: grid; gap: 1rem; counter-reset: m; }
.states li { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.states li::before { content: ""; position: absolute; left: 0; top: -1px; width: 2.5rem; height: 1px; background: var(--text); }
.model-num { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; color: var(--text-3); }
.states h3 { font-size: 1.2rem; margin: 0.8rem 0 0.55rem; }
.states p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 1.1rem; }
@media (min-width: 48em) { .states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
@media (min-width: 68em) { .states { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.handoff { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 0.9rem; background: var(--sunken); }
.handoff h3 { font-size: 1.25rem; }
.handoff p { max-width: 50rem; }

/* substance */
.stat { padding: 1.5rem 0 0; border-top: 1px solid var(--line-2); }
.stat-kick { display: block; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.stat p { color: var(--text-2); font-size: 0.92rem; max-width: 18rem; }
.cov { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cov .chip-base { color: var(--text); border-color: var(--line-3); }
.row-end { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; }
.row-end p { margin: 0; flex: 1 1 28rem; }

/* closing */
.close-card { display: grid; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 3rem); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-l); }
.close-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.028em; }
.close-card p { color: var(--text-2); max-width: 44rem; }
.close-card .btn { justify-self: start; }
.close-quiet { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
               padding: 1.1rem clamp(1.25rem, 2.4vw, 1.75rem); border: 1px solid var(--line-1); border-radius: var(--r-l); }
.close-quiet p { color: var(--text-2); font-size: 0.95rem; flex: 1 1 26rem; }
.close-quiet b { color: var(--text); font-weight: 600; }
.form-note { margin-top: 0.9rem; color: var(--text-3); font-size: 0.85rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-1); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; background: #070708; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand p { margin-top: 0.9rem; color: var(--text-2); font-size: 0.92rem; max-width: 22rem; }
.footer-col h2 { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.footer-col li + li { margin-top: 0.55rem; }
.footer-col a:not(.btn) { color: var(--text-2); font-size: 0.92rem; text-decoration: none; transition: color var(--t-2) var(--ease); }
.footer-col a:not(.btn):hover { color: var(--text); }
.footer-col p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 1rem; }
.cert-note { margin-top: 3rem; padding: 1rem 1.25rem; border: 1px solid var(--line-1); border-radius: var(--r-m); color: var(--text-2); font-size: 0.88rem; }
.footer-legal { margin-top: 1.5rem; display: grid; gap: 0.35rem; color: var(--text-3); font-size: 0.8rem; }

/* ---------- arrival ---------- */
@media (prefers-reduced-motion: no-preference) {
  .v5-js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .v5-js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero-in > * { animation: heroIn 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0s !important; }
}

/* the copy appears once the deck has formed */
.v5-gl .tour-steps { opacity: 0; transition: opacity 260ms var(--ease-in); }
.v5-gl .tour.in-deck .tour-steps { opacity: 1; transition: opacity 420ms var(--ease) 120ms; }

/* ================= second pass: the field, structure, small behaviours ================= */

/* the hero's cell field (v5-field.js) on a faint ruled ground */
.hero { position: relative; isolation: isolate; overflow: clip;
        background-image: linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
        background-size: 34px 34px; background-position: calc(50% + 17px) 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
               background: radial-gradient(60% 75% at 50% 46%, var(--canvas) 30%, rgba(10, 10, 11, 0) 100%), linear-gradient(to bottom, rgba(10, 10, 11, 0) 70%, var(--canvas) 100%); }
.hero-field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 900ms var(--ease); }
.hero-field.is-in { opacity: 1; }
.hero > .wrap { position: relative; }

/* reading progress: a hairline under the header */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--text); opacity: 0.55;
                      transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

/* structure: sections alternate between two grounds; on wide screens each has a ruled margin that carries its number */
.section:nth-of-type(even) { background: #0d0d0f; }
.section { position: relative; }
@media (min-width: 72em) {
  .section > .wrap { padding-left: 13rem; }
  .section-head { position: relative; }
  .section-head .kicker { position: absolute; left: -13rem; top: 0.6rem; width: 11rem; margin: 0; line-height: 1.5; transition: color var(--t-3) var(--ease); }
  .section.is-current .section-head .kicker { color: var(--text); }
  .section::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 11.5rem); width: 1px; background: var(--line-1); }
  .section::after { content: ""; position: absolute; top: -5px; left: calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 11.5rem - 4px); width: 9px; height: 9px;
                    background: linear-gradient(var(--line-3), var(--line-3)) 50% 50% / 9px 1px no-repeat, linear-gradient(var(--line-3), var(--line-3)) 50% 50% / 1px 9px no-repeat; }
}

/* cards: the border lights where the pointer is */
.card, .close-card { position: relative; }
.card::after, .close-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity var(--t-3) var(--ease); }
.card:hover::after, .close-card:hover::after { opacity: 1; }

/* in-page links glide; targets clear the header */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* the model's hint steps aside once it has been used */
.model.has-used .model-hint { opacity: 0 !important; transition: opacity 600ms var(--ease-in); }
