/* ============================================================
   tsuro. "The Rail" identity, v2
   Ink / Graphite / Rail Violet / Bone
   Geist (display + body) · Geist Mono (data) · Unbounded (wordmark)
   ============================================================

   PAGE KIT (design of record D37). Lanes build pages from these classes and never edit this
   file; a page type that needs more adds css/pages/<name>.css and names it in front matter.
   The rules are in the "PAGE KIT" block at the end of this file.

   Page structure
     <section class="page-hero"><div class="wrap">            top of every inner page
       <span class="kicker mono">Feature</span> <h1>...</h1> <p class="lede">...</p>
       optional <div class="hero-actions"> with .cta-primary and .cta-rail links
     <section class="section"><div class="wrap">...            a content band; add "tone" for the
                                                               graphite band, "rail-top" for the light rail
     .section-head                                             heading plus .lede above a grid
     .prose                                                    long-form copy: h2, h3, p, ul, ol,
                                                               blockquote, table, figure, links
     .split-2                                                  two columns that stack on phones
   Cards and lists
     .feature-grid > .feature-card                             three or four up: optional .mono kicker,
                                                               h3, p, optional .cta-rail link
     .hub-cards > a.hub-card                                   linked cards on hub pages: .mono, h3, p; .cols-3 for nine cards
     .checklist > li                                           ticked list; <b> for a lead-in phrase; .cols-2 for two columns
     h2.h3                                                     an h2 sized as an h3, for cards directly under the h1
     .steps > li (.mono, h3, p)                                numbered rail of steps (switching)
     .faq > details > summary + p                              rendered by {{faq}} from front matter;
                                                               wrap it in .faq-layout with an h2
   Calls to action
     {{> cta-band}} or {{> cta-band heading="..." line="..."}} the .cta-band partial (D20)
     .cta-primary (filled), .cta-rail (text link with a rail), .cta-nav (header pill)
     {{> demo-form}}                                           the demo form (D21), inside .demo-grid
   Generated by the build (never written by hand)
     .breadcrumbs (D19), .related > .related-grid > .related-card ({{related}}), the header nav
     (.nav-list, .nav-item, .nav-trigger, .nav-menu) and the footer (.footer-col, .footer-registered)
   Articles
     .article-meta                                             the date, author and reading time line
   Forms
     .field select                                             styled to match the inputs
   ============================================================ */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --ink: #0a0a10;
  --ink-2: #101018;
  --ink-3: #16161f;
  --ink-4: #1d1d28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f2f8;
  --muted: #a3a0b8;
  --faint: #8f8ca6;
  --violet: #6a4dff;
  --violet-hi: #9a85ff;
  --violet-deep: #5b2eff;
  --violet-wash: rgba(106, 77, 255, 0.14);

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;

  --f-display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --f-mark: "Unbounded", "Sora", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--f-display);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.8vw, 4.1rem); }
h3 { font-family: var(--f-display); font-weight: 560; font-size: 1.14rem; letter-spacing: -0.012em; line-height: 1.3; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.24rem); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.lede strong { color: var(--text); font-weight: 520; }
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.dim { color: var(--muted); }
.grad-text { background: linear-gradient(100deg, #fff 30%, var(--violet-hi) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; flex-direction: column; gap: 5px; line-height: 1; }
.wordmark-text { font-family: var(--f-mark); font-weight: 500; font-size: 1.32rem; letter-spacing: -0.01em; }
.wordmark-rail { width: 58px; height: 8px; }
.wordmark-rail line { stroke: var(--violet); stroke-width: 1.6; }
.wordmark-rail circle { fill: var(--text); }
.wordmark-rail .terminus { fill: var(--ink); stroke: var(--text); stroke-width: 1.4; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(10, 10, 16, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; white-space: nowrap; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; color: #cfcce0; }
.site-nav a { position: relative; transition: color .3s; }
.site-nav a:hover { color: var(--text); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.site-nav a:hover::after { transform: scaleX(1); }

/* CTA 1: nav demo, outlined pill with live station dot */
.cta-nav {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 0.9rem; font-weight: 520;
  transition: border-color .3s, background .3s;
}
.cta-nav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 rgba(106,77,255,.6); animation: ping 2.4s 3; }
.cta-nav:hover { border-color: var(--violet); background: var(--violet-wash); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(106,77,255,.55); } 70%,100% { box-shadow: 0 0 0 9px rgba(106,77,255,0); } }

.nav-toggle { display: none; width: 44px; height: 44px; margin-left: 4px; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   FILM: the scroll-scrubbed rail
   ============================================================ */
.film { position: relative; background: var(--ink); }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; z-index: 0; }
.film-media, .film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-poster { transition: opacity .6s ease; }
.film.is-live .film-poster { opacity: 0; }
.film.use-frames video.film-media, .film.use-video canvas.film-media, .film:not(.use-frames):not(.use-video) .film-media { display: none; }
canvas.film-media { background: var(--ink); }
.film-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,16,.88) 0%, rgba(10,10,16,.55) 38%, rgba(10,10,16,0) 64%),
    linear-gradient(180deg, rgba(10,10,16,.55) 0%, rgba(10,10,16,0) 22%, rgba(10,10,16,0) 72%, rgba(10,10,16,1) 100%);
}
.film-chapters { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100dvh; }
.chapter { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; }
.chapter .wrap { width: 100%; }
.chapter-body { max-width: 35rem; }
.chapter--hero { min-height: 100dvh; align-items: center; padding-top: 72px; }
.chapter--hero .chapter-body { max-width: 45rem; }
.chapter h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); margin: 14px 0 18px; }
.chapter p { color: #c9c6da; font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 46ch; }
.chapter-step { color: var(--violet-hi); display: inline-flex; align-items: center; gap: 10px; }
.chapter-step::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.chapter--hero .kicker { color: var(--muted); margin-bottom: 24px; display: block; }
.hero-sub { margin-top: 26px; font-size: clamp(1.08rem, 1.5vw, 1.3rem) !important; max-width: 50ch !important; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.chapter--last { min-height: 105dvh; }

/* CTA 2: primary demo, filled violet with travelling light */
.cta-primary {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; border-radius: 999px;
  background: var(--violet-deep); color: #fff; font-weight: 560; font-size: 1rem;
  box-shadow: 0 10px 40px -10px rgba(91,46,255,.7), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cta-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.28) 45%, transparent 60%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(91,46,255,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.cta-primary:hover::before { transform: translateX(120%); }
.cta-primary:active { transform: translateY(0) scale(.98); }
.cta-primary .arr { width: 18px; height: 10px; }
.cta-primary .arr path { stroke: #fff; stroke-width: 1.6; fill: none; }

/* CTA 3: explore link, drawn rail underline that extends */
.cta-rail { display: inline-flex; align-items: center; gap: 12px; font-weight: 520; color: var(--text); }
.cta-rail .rail { position: relative; width: 36px; height: 8px; }
.cta-rail .rail::before { content: ""; position: absolute; left: 0; right: 6px; top: 3.5px; height: 1px; background: var(--violet-hi); transform-origin: left; transition: transform .45s var(--ease); }
.cta-rail .rail::after { content: ""; position: absolute; right: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; border: 1.4px solid var(--violet-hi); transition: transform .45s var(--ease), background .3s; }
.cta-rail:hover .rail::before { transform: scaleX(1.5); }
.cta-rail:hover .rail::after { transform: translateX(16px); background: var(--violet-hi); }

/* progress rail HUD */
.film-hud {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 34px;
  max-width: calc(var(--maxw) - 2 * 48px); margin-inline: auto;
  pointer-events: none;
}
.hud-track { position: relative; height: 1px; background: rgba(255,255,255,.16); }
.hud-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--violet), var(--violet-hi)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hud-stations { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -4.5px; }
.hud-station { display: flex; flex-direction: column; gap: 12px; color: var(--faint); transition: color .4s; }
.hud-station:last-child { align-items: flex-end; text-align: right; }
.hud-station:nth-child(2), .hud-station:nth-child(3) { align-items: flex-start; }
.hud-station i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1.4px solid rgba(255,255,255,.35); transition: background .4s, border-color .4s, box-shadow .4s; }
.hud-station.is-on { color: var(--text); }
.hud-station.is-on i { background: var(--violet-hi); border-color: var(--violet-hi); box-shadow: 0 0 14px rgba(154,133,255,.9); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; padding: clamp(72px, 8vw, 120px) 0; isolation: isolate; }
.section + .section { border-top: 0; }
.section-head { max-width: 52rem; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head .lede { margin-top: 24px; }

/* reveal: transform-only, content always visible */
.rise { transform: translateY(26px); transition: transform 1s var(--ease); }
.rise.in { transform: none; }

/* ---- PLATFORM: bento ---- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento > * { border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); padding: 30px; position: relative; overflow: hidden; }
.bento-hero { grid-column: span 7; grid-row: span 2; min-height: 460px; padding: 0; display: flex; align-items: flex-end; }
.bento-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.bento-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,16,.94) 8%, rgba(10,10,16,.1) 62%); }
.bento-hero .inner { position: relative; z-index: 1; padding: 34px; max-width: 520px; }
.bento-hero p { color: #d4d1e4; font-size: 1.08rem; }
.bento-cell { grid-column: span 5; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 220px; }
.bento-cell.span-6 { grid-column: span 6; }
.bento-cell p { color: var(--muted); font-size: 0.98rem; margin-top: 10px; max-width: 44ch; }
.bento-cell .big { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 520; letter-spacing: -0.04em; line-height: 1; }
.bento-cell.tint { background: radial-gradient(120% 120% at 100% 0%, rgba(106,77,255,.28), rgba(106,77,255,0) 60%), var(--ink-2); border-color: rgba(106,77,255,.3); }
.bento-cell.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-color: var(--ink-2); }
.practice-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.practice-list li { list-style: none; font-size: 0.86rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #d4d1e4; }

/* ---- JOURNEY: horizontal rail ---- */
.journey-scroller { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 20px; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.journey { position: relative; display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 0; min-width: 1100px; list-style: none; }
.journey::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: linear-gradient(90deg, var(--violet), var(--violet-hi) 60%, rgba(154,133,255,.2)); }
.journey li { position: relative; padding: 36px 26px 0 0; }
.journey li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--violet-hi); }
.journey li:last-child::before { background: var(--violet-hi); box-shadow: 0 0 18px rgba(154,133,255,.8); }
.journey .mono { color: var(--violet-hi); }
.journey h3 { margin: 12px 0 8px; }
.journey p { color: var(--muted); font-size: 0.95rem; }
.status-strip {
  margin-top: 56px; display: inline-flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted);
  padding: 14px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2);
}
.status-strip .live { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.status-strip .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; }
.status-strip .wait { color: var(--violet-hi); }

/* ---- MODULES: index list ---- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 5vw, 80px); }
.module { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); transition: background .4s; }
.module img { width: 56px; height: 56px; opacity: .95; transition: transform .5s var(--ease); }
.module:hover img { transform: translateX(4px) scale(1.05); }
.module p { color: var(--muted); margin-top: 6px; font-size: 0.98rem; max-width: 50ch; }

/* ---- INTELLIGENCE: split ---- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .tag {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px;
  background: rgba(10,10,16,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  font-size: 0.92rem;
}
.split-media .tag .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-deep); }
.split-media .tag .tick svg { width: 14px; height: 14px; }
.split-media .tag small { display: block; color: var(--muted); font-size: 0.8rem; }
.ai-list { list-style: none; margin-top: 40px; }
.ai-list li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.ai-list li:last-child { border-bottom: 1px solid var(--line); }
.ai-list .n { font-family: var(--f-mono); font-size: 0.74rem; color: var(--violet-hi); padding-top: 4px; }
.ai-list b { font-weight: 560; display: block; }
.ai-list span { color: var(--muted); font-size: 0.96rem; }

/* ---- INTEGRATIONS: table ---- */
.int-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.int-table { list-style: none; border-top: 1px solid var(--line); }
.int-row { display: grid; grid-template-columns: 48px 220px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.int-row:hover { padding-left: 10px; }
.int-row img { width: 40px; height: 40px; }
.int-row .glyph { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.72rem; color: var(--violet-hi); }
.int-row h3 { font-size: 1.05rem; }
.int-row p { color: var(--muted); font-size: 0.96rem; }
.aside-card { position: sticky; top: 100px; padding: 30px; border-radius: var(--radius); border: 1px solid rgba(106,77,255,.35); background: linear-gradient(180deg, rgba(106,77,255,.16), rgba(106,77,255,.02)), var(--ink-2); }
.aside-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.aside-card p { color: #cfcbe2; font-size: 0.98rem; }
.aside-card ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.aside-card li { display: flex; gap: 12px; font-size: 0.94rem; }
.aside-card li::before { content: ""; flex: none; margin-top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-hi); }

/* ---- PORTALS: asymmetric gallery ---- */
.gallery { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 14px; }
.g-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; display: flex; flex-direction: column; }
.g-card figure { position: relative; overflow: hidden; }
.g-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g-card:hover figure img { transform: scale(1.035); }
.g-card .copy { padding: 26px 28px 30px; }
.g-card .copy p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }
.g-main { grid-row: span 2; }
.g-main figure { flex: 1; min-height: 520px; }
.g-side figure { aspect-ratio: 16 / 10; }
.g-side figure img { object-position: 50% 30%; }
.g-msg { background: radial-gradient(90% 120% at 0% 100%, rgba(106,77,255,.22), rgba(106,77,255,0) 60%), var(--ink-2); justify-content: space-between; }
.msg-thread { padding: 26px 28px 0; display: grid; gap: 10px; }
.bubble { max-width: 80%; padding: 11px 15px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; }
.bubble.in { background: var(--ink-4); border-bottom-left-radius: 4px; color: #d8d5e8; }
.bubble.out { justify-self: end; background: var(--violet-deep); border-bottom-right-radius: 4px; color: #fff; }
.bubble small { display: block; font-family: var(--f-mono); font-size: 0.66rem; opacity: .65; margin-top: 4px; letter-spacing: .06em; }

/* ---- INSIGHT: full-bleed band ---- */
.band { position: relative; padding: 0; overflow: hidden; }
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,16,.96) 0%, rgba(10,10,16,.8) 40%, rgba(10,10,16,.1) 75%), linear-gradient(0deg, #0c0c14 0%, rgba(12,12,20,0) 30%, rgba(12,12,20,0) 75%, #0c0c14 100%); }
.band .wrap { position: relative; padding-block: clamp(110px, 14vw, 190px); }
.band-copy { max-width: 35rem; }
.metric-list { list-style: none; margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.metric-list li { padding: 14px 0; border-top: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: .06em; color: #d8d5e8; display: flex; align-items: center; gap: 10px; }
.metric-list li::before { content: ""; width: 5px; height: 5px; background: var(--violet-hi); border-radius: 1px; transform: rotate(45deg); }

/* ---- TRUST: spec grid ---- */
.trust { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.trust-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.trust-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spec { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec > div { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.spec > div:hover { background: var(--ink-2); }
.spec .mono { color: var(--violet-hi); display: block; margin-bottom: 14px; }
.spec p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* ---- SWITCHING: steps over image ---- */
.switch-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; margin-bottom: 56px; }
.switch-media img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 30px 28px 0 0; border-top: 1px solid var(--line-2); }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--violet-hi); }
.steps .mono { color: var(--faint); }
.steps h3 { margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* ---- FAQ ---- */
.faq-layout { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 80px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: 1.1rem; font-weight: 520; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; position: relative; width: 14px; height: 14px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1.5px; background: var(--violet-hi); transition: transform .4s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details p { color: var(--muted); padding: 0 0 26px; max-width: 64ch; }

/* ---- DEMO ---- */
.demo { overflow: hidden; }
.demo-glow { position: absolute; inset: auto -10% -40% -10%; height: 90%; background: radial-gradient(50% 60% at 50% 100%, rgba(91,46,255,.35), rgba(91,46,255,0) 70%); pointer-events: none; }
.demo-rails { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.demo-rails path { fill: none; stroke-width: 1.2; }
.demo-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.demo-grid .lede { margin-top: 24px; }
.contact-line { margin-top: 36px; color: var(--muted); font-size: 0.96rem; }
.contact-line a { color: var(--text); border-bottom: 1px solid var(--violet); }
.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(16,16,24,.8); backdrop-filter: blur(10px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.86rem; color: #cfcbe2; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--text);
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8d8aa3; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet-hi); box-shadow: 0 0 0 4px rgba(106,77,255,.22); }
.field .err { color: #ff9aa9; font-size: 0.82rem; min-height: 1em; }
.form-note { font-size: 0.8rem; color: var(--faint); }
.form-note a { color: var(--muted); text-decoration: underline; }

/* CTA 4: form submit, full-width bar with arrow that runs to the terminus */
.cta-submit {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 20px; border-radius: 10px;
  background: var(--text); color: var(--ink); font-weight: 600; font-size: 1rem;
  transition: background .3s, transform .2s;
}
.cta-submit .run { position: relative; width: 64px; height: 10px; }
.cta-submit .run::before { content: ""; position: absolute; left: 0; right: 8px; top: 4.5px; height: 1.5px; background: var(--ink); transform: scaleX(.35); transform-origin: right; transition: transform .5s var(--ease); }
.cta-submit .run::after { content: ""; position: absolute; right: 0; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet-deep); }
.cta-submit:hover { background: #fff; }
.cta-submit:hover .run::before { transform: scaleX(1); }
.cta-submit:active { transform: scale(.99); }
.cta-submit[disabled] { opacity: .6; cursor: progress; }
.form-success { display: none; padding: 40px 10px; text-align: center; }
.form-success h3 { font-size: 1.5rem; margin: 18px 0 10px; }
.form-success p { color: var(--muted); }
.form-success .ring { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; border: 1.5px solid var(--violet-hi); display: grid; place-items: center; box-shadow: 0 0 30px rgba(154,133,255,.45); }
.form.is-sent .form-body { display: none; }
.form.is-sent .form-success { display: block; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-top p { color: var(--muted); font-size: 0.92rem; margin-top: 18px; max-width: 34ch; }
.footer-col .footer-h { font-family: var(--f-mono); font-weight: 400; font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 4px 0; transition: color .3s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--faint); }

/* ---- legal pages ---- */
.legal { padding: 150px 0 110px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 44px 0 14px; line-height: 1.3; }
.legal p, .legal li { color: #c9c6da; margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .site-nav { gap: 20px; font-size: 0.8rem; }
  .int-layout { grid-template-columns: 1fr; }
  .aside-card { position: relative; top: 0; }
}
@media (max-width: 920px) {
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(10,10,16,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; transform: translateY(calc(-100% - 96px)); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s; font-size: 0.98rem;
  }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-open .site-nav { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
  .nav-toggle { display: block; }
  .cta-nav { margin-left: auto; }
  .bento-hero, .bento-cell, .bento-cell.span-6 { grid-column: span 12; }
  .bento-hero { min-height: 380px; }
  .modules { grid-template-columns: 1fr; }
  .split, .trust, .faq-layout, .demo-grid { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 4 / 4.2; }
  .gallery { grid-template-columns: 1fr; }
  .g-main { grid-row: auto; }
  .g-main figure { min-height: 0; aspect-ratio: 4 / 4.2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .switch-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .film-scrim { background: linear-gradient(180deg, rgba(10,10,16,.5) 0%, rgba(10,10,16,.35) 40%, rgba(10,10,16,.85) 78%, rgba(10,10,16,1) 100%); }
  .chapter { align-items: flex-end; padding-bottom: 120px; }
  .chapter--hero { align-items: center; min-height: 100dvh; padding-bottom: 150px; }
  .hud-station span { font-size: 0.58rem; letter-spacing: .1em; }
  .film-hud { bottom: 22px; }
  .int-row { grid-template-columns: 40px 1fr; gap: 6px 16px; }
  .int-row p { grid-column: 2; }
  .form .row { grid-template-columns: 1fr; }
  .metric-list { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .status-strip { border-radius: 14px; }
  .bento > * { padding: 24px; }
  .bento-hero .inner { padding: 24px; }
  .cta-nav { display: none; }
  .nav-toggle { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { transform: none; }
  .film-poster { opacity: 1 !important; }
  .film-poster.end { display: block; }
}

/* ============================================================
   AMBIENT SHADING: no section sits on flat black
   ============================================================ */
body {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, var(--ink) 0%, #0c0c14 50%, var(--ink) 100%);
  background-attachment: fixed, scroll;
}
/* soft glow layer behind every section */
.section::before {
  content: ""; position: absolute; inset: -160px 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
  background:
    radial-gradient(60% 55% at var(--gx, 85%) var(--gy, 10%), rgba(106,77,255,var(--ga, .13)), rgba(106,77,255,0) 70%),
    radial-gradient(50% 50% at var(--hx, 10%) var(--hy, 90%), rgba(150,160,210,var(--ha, .05)), rgba(150,160,210,0) 70%);
}
/* tonal bands: alternate sections lift to graphite, fading in and out so the page flows */
.section.tone::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(22,22,34,0) 0%, rgba(22,22,34,.85) 18%, rgba(22,22,34,.85) 82%, rgba(22,22,34,0) 100%);
}
/* hairline divider replaced by a fading rail of light */
.section.rail-top > .wrap::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(760px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(154,133,255,0), rgba(154,133,255,.35), rgba(154,133,255,0));
}
.section > .wrap { position: relative; }
.section.rail-top > .wrap { position: static; }

#platform     { --gx: 88%; --gy: 8%;  --ga: .16; --hx: 8%;  --hy: 80%; }
#journey      { --gx: 12%; --gy: 70%; --ga: .12; --hx: 90%; --hy: 20%; }
#modules      { --gx: 90%; --gy: 50%; --ga: .12; --hx: 10%; --hy: 10%; }
#intelligence { --gx: 20%; --gy: 45%; --ga: .18; --hx: 90%; --hy: 90%; }
#integrations { --gx: 92%; --gy: 30%; --ga: .14; --hx: 5%;  --hy: 95%; }
#portals      { --gx: 15%; --gy: 20%; --ga: .13; --hx: 85%; --hy: 85%; }
#security     { --gx: 18%; --gy: 60%; --ga: .16; --hx: 90%; --hy: 10%; }
#switching    { --gx: 80%; --gy: 85%; --ga: .15; --hx: 10%; --hy: 15%; }
#faq          { --gx: 10%; --gy: 20%; --ga: .12; --hx: 90%; --hy: 80%; }
#demo         { --gx: 50%; --gy: 100%; --ga: .10; }

/* film hands over to the page with a violet horizon rather than a hard black cut */
.film::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 240px; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 100% at 50% 100%, rgba(106,77,255,.18), rgba(106,77,255,0) 70%);
}
.band::before { display: none; }
/* card surfaces pick up a faint top light so they read against the glow */
.bento > *, .g-card, .form, .aside-card, .trust-media, .split-media, .switch-media {
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px -40px rgba(0,0,0,.8);
}
@media (max-width: 640px) {
  .section::before { background: radial-gradient(90% 45% at var(--gx, 85%) var(--gy, 10%), rgba(106,77,255,var(--ga, .13)), rgba(106,77,255,0) 70%); }
}

/* ============================================================
   DEVICE PASS (v4)
   ============================================================ */
/* journey: fits without sideways scrolling below 1100px */
@media (max-width: 1100px) {
  .journey-scroller { overflow: visible; margin-inline: 0; padding: 0; }
  .journey { min-width: 0; grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .journey::before { display: none; }
  .journey li { border-top: 1px solid rgba(154,133,255,.45); padding-top: 30px; }
  .journey li::before { top: -7px; }
}
@media (max-width: 640px) {
  .journey { grid-template-columns: 1fr; row-gap: 0; padding-left: 26px; position: relative; }
  .journey::before { display: block; left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, var(--violet), var(--violet-hi) 70%, rgba(154,133,255,.2)); }
  .journey li { border-top: 0; padding: 0 0 30px 0; }
  .journey li::before { left: -26px; top: 4px; }
  .journey h3 { margin-top: 6px; }
}
/* tablets: keep two columns where there is room, stop photos going poster-sized */
@media (min-width: 641px) and (max-width: 920px) {
  .modules { grid-template-columns: 1fr 1fr; }
  .split-media { aspect-ratio: 16 / 10; }
  .split-media img { object-position: 50% 30%; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-main { grid-column: 1 / -1; }
  .g-main figure { aspect-ratio: 16 / 9; min-height: 0; }
  .g-main figure img { object-position: 50% 35%; }
  .trust-media { min-height: 0; aspect-ratio: 16 / 8; }
  .trust-media img { object-position: 50% 50%; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}
/* short landscape screens (phones turned sideways) */
@media (max-height: 520px) and (orientation: landscape) {
  .chapter, .chapter--hero { min-height: 100dvh; align-items: center; padding: 64px 0 70px; }
  .chapter--hero .kicker { display: none; }
  h1 { font-size: clamp(2rem, 7vh + 1rem, 3.2rem); }
  .chapter h2 { font-size: clamp(1.5rem, 5vh + .8rem, 2.2rem); margin: 8px 0 10px; }
  .chapter p, .hero-sub { font-size: .95rem !important; }
  .hero-sub { margin-top: 12px; }
  .hero-actions { margin-top: 16px; }
  .cta-primary { padding: 11px 18px; }
  .film-hud { bottom: 14px; }
  .hud-station { gap: 6px; }
  .film-scrim { background: linear-gradient(90deg, rgba(10,10,16,.9) 0%, rgba(10,10,16,.6) 45%, rgba(10,10,16,.1) 75%), linear-gradient(180deg, rgba(10,10,16,.4) 0%, rgba(10,10,16,0) 25%, rgba(10,10,16,0) 70%, rgba(10,10,16,1) 100%); }
  .site-nav { max-height: calc(100dvh - 72px); overflow-y: auto; }
}
/* large and very large screens: scale the whole system up */
@media (min-width: 1800px) { html { font-size: 18px; } :root { --maxw: 1440px; } }
@media (min-width: 2300px) { html { font-size: 21px; } :root { --maxw: 1720px; } }
@media (min-width: 3000px) { html { font-size: 26px; } :root { --maxw: 2200px; } }
@media (min-width: 1800px) {
  .header-inner { height: 84px; }
  .wordmark-text { font-size: 1.4rem; }
  .bento-hero { min-height: 30rem; }
  .g-main figure { min-height: 34rem; }
  .int-layout { grid-template-columns: 1fr 22rem; }
  .module { grid-template-columns: 3.4rem 1fr; }
  .module img { width: 3.4rem; height: 3.4rem; }
}

/* ============================================================
   ACCESSIBILITY PASS (v5)
   ============================================================ */
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 10px; background: var(--text); color: var(--ink); font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
/* legible header over the bright film: a dark wash behind the bar until it turns solid */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -48px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,16,.82) 0%, rgba(10,10,16,.7) 60%, rgba(10,10,16,0) 100%);
  transition: opacity .5s;
}
.site-header.is-solid::before { opacity: 0; }
/* chapter copy over the film: a soft shadow so every frame of the film stays readable */
.chapter h1, .chapter h2, .chapter p, .chapter .mono { text-shadow: 0 1px 18px rgba(10,10,16,.85), 0 0 2px rgba(10,10,16,.6); }
@media (max-width: 640px) {
  .film-scrim { background: linear-gradient(180deg, rgba(10,10,16,.55) 0%, rgba(10,10,16,.45) 35%, rgba(10,10,16,.8) 62%, rgba(10,10,16,.92) 82%, rgba(10,10,16,1) 100%); }
}
/* stronger, consistent focus ring on every interactive control */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--violet-hi); outline-offset: 3px;
}
.cta-primary:focus-visible, .cta-submit:focus-visible, .cta-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(154,133,255,.45); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff9aa9; }
@media (forced-colors: active) {
  .cta-primary, .cta-submit, .cta-nav { border: 1px solid ButtonText; }
  .hud-fill, .journey::before { background: Highlight; }
}
.chapter .grad-text { text-shadow: none; }

/* phones: chapter text sits in the middle of the screen, as on desktop, rather than along the bottom edge */
@media (max-width: 640px) {
  .chapter:not(.chapter--hero) { align-items: center; padding-bottom: 60px; }
  .film-scrim { background: linear-gradient(180deg, rgba(10,10,16,.5) 0%, rgba(10,10,16,.5) 45%, rgba(10,10,16,.8) 75%, rgba(10,10,16,1) 100%); }
}
/* demo form: a little air under each field */
.field input, .field textarea, .field select { margin-bottom: 10px; }
/* integrations: the partners own marks, white on the dark ground and in their colours on hover */
.int-row { grid-template-columns: 132px 200px 1fr; }
.int-row .logo { width: auto; height: auto; max-width: 116px; max-height: 34px; filter: brightness(0) invert(1); opacity: .88; transition: filter .3s, opacity .3s; }
.int-row:hover .logo { filter: none; opacity: 1; }
.int-row .logo-pair { display: grid; gap: 8px; justify-items: start; }
.int-row .logo-pair .logo { max-height: 22px; max-width: 108px; }
@media (max-width: 900px) {
  .int-row { grid-template-columns: 116px 1fr; }
  .int-row .logo { max-width: 100px; max-height: 30px; }
}
/* customers: the firms already on tsuro, a slim band at the top of the platform section */
.customers { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 56px; padding-bottom: 36px; margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.customers .kicker { margin: 0; color: var(--muted); }
.customer-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 56px; }
.customer-list a { display: inline-flex; align-items: center; gap: 14px; opacity: .85; transition: opacity .3s; }
.customer-list a:hover { opacity: 1; }
.customer-logo { height: 34px; width: auto; }
.customer-logo--mark { height: 30px; }
.customer-name { font-weight: 500; letter-spacing: .01em; color: var(--text); font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 640px) {
  .customers { gap: 16px 32px; padding-bottom: 28px; }
  .customer-logo { height: 28px; }
  .customer-logo--mark { height: 26px; }
}
/* cookie choices: a small card, bottom left, until the reader has chosen */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(16,16,24,.96); backdrop-filter: blur(12px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.cookie-bar p { font-size: .92rem; line-height: 1.5; color: var(--muted); margin: 0 0 14px; }
.cookie-bar p a { color: var(--text); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.cookie-bar .cta-primary { padding: 11px 18px; font-size: .95rem; }
.cookie-essential { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: .95rem; transition: border-color .3s; }
.cookie-essential:hover, .cookie-essential:focus-visible { border-color: var(--violet-hi); }
@media (min-width: 641px) { .cookie-bar { left: 24px; right: auto; bottom: 24px; } }
.cookie-short { display: none; }
/* Phones: a slim strip, one sentence and the two buttons on one row, so the hero CTA stays clear (W3) */
@media (max-width: 480px) {
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .cookie-bar p { font-size: .8rem; line-height: 1.35; margin: 0 0 8px; }
  .cookie-long { display: none; }
  .cookie-short { display: inline; }
  .cookie-actions { flex-wrap: nowrap; gap: 8px; }
  .cookie-bar .cta-primary, .cookie-essential { padding: 7px 14px; font-size: .85rem; }
}

/* ============================================================
   PAGE KIT (multipage rebuild, D17 to D20 and D37): documented at the top of this file
   ============================================================ */
/* header nav with dropdowns (D17) */
.nav-list { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: inherit; font-size: inherit; transition: color .3s; }
.nav-trigger:hover, .nav-item.is-open > .nav-trigger, .nav-item.is-current > .nav-trigger { color: var(--text); }
.nav-trigger .chev { width: 6px; height: 6px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav-item.is-open > .nav-trigger .chev { transform: translateY(1px) rotate(-135deg); }
.site-nav a[aria-current="page"] { color: var(--text); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 250px; list-style: none; padding: 8px;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(16,16,24,.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility 0s linear .3s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item.is-open > .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
.nav-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: #cfcce0; white-space: nowrap; font-weight: 500; letter-spacing: 0.01em; }
.nav-menu a::after { display: none; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--violet-wash); color: var(--text); }
.nav-menu a[aria-current="page"] { background: rgba(255,255,255,.05); }
@media (max-width: 1080px) { .nav-list { gap: 20px; } }
@media (max-width: 920px) {
  .site-nav { max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item > a, .nav-trigger { display: flex; width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-item > a::after { display: none; }
  .nav-menu { position: static; display: none; min-width: 0; padding: 4px 0 10px 14px; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-menu::before { display: none; }
  .nav-item.is-open > .nav-menu { display: block; }
  .site-nav .nav-menu a { padding: 10px 0; border-bottom: 0; white-space: normal; }
  .nav-menu a:hover, .nav-menu a:focus-visible, .nav-menu a[aria-current="page"] { background: none; color: var(--violet-hi); }
}
/* the header CTA stays visible on phones (D20), as a compact pill beside the menu button */
@media (max-width: 640px) {
  .cta-nav { display: inline-flex; margin-left: auto; padding: 7px 12px 7px 11px; font-size: 0.84rem; gap: 8px; }
  .nav-toggle { margin-left: 0; }
}
@media (max-width: 360px) { .cta-nav .dot { display: none; } }

/* breadcrumbs (D19): under the fixed header on every page but home */
.breadcrumbs { padding-top: 104px; font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: ""; width: 14px; height: 1px; background: var(--violet-hi); opacity: .7; }
.breadcrumbs a { color: var(--muted); transition: color .3s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current="page"] { color: #cfcce0; }
@media (min-width: 1800px) { .breadcrumbs { padding-top: 120px; } }
.breadcrumbs + .legal { padding-top: 48px; }

/* page hero: kicker, h1, lede */
.page-hero { position: relative; padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 84px); }
.page-hero .kicker { display: block; color: var(--violet-hi); margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 20ch; }
.page-hero .lede { margin-top: 24px; max-width: 62ch; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero + .section { padding-top: clamp(24px, 4vw, 56px); }

/* long-form copy */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; margin-top: 56px; }
.prose h3 { font-size: 1.22rem; margin-top: 34px; }
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #c9c6da; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--violet-hi); }
.prose strong { color: var(--text); font-weight: 560; }
.prose a, .link { color: var(--text); text-decoration: underline; text-decoration-color: var(--violet-hi); text-underline-offset: 3px; transition: color .3s; }
.prose a:hover, .link:hover { color: var(--violet-hi); }
.prose blockquote { border-left: 2px solid var(--violet-hi); padding: 4px 0 4px 20px; color: var(--text); font-size: 1.12rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 560; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--faint); }
/* .prose on the .wrap itself keeps the page edge and limits each child to the reading width */
.wrap.prose { max-width: var(--maxw); }
.wrap.prose > * { max-width: 72ch; }
.split-2 h2, .faq-layout h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.08; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .split-2 { grid-template-columns: 1fr; } }

/* feature cards, hub cards and related cards share one card surface */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.feature-card, .hub-card, .related-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--ink-2); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 80px -40px rgba(0,0,0,.8);
}
.feature-card .mono, .hub-card .mono, .related-card .mono { color: var(--violet-hi); }
.feature-card p, .hub-card p, .related-card p { color: var(--muted); font-size: 0.97rem; }
.feature-card .cta-rail { margin-top: auto; padding-top: 8px; }
h2.h3 { font-size: 1.14rem; letter-spacing: -0.012em; line-height: 1.3; }
.faq-layout h2 + .prose, .split-2 h2 + .prose { margin-top: 24px; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hub-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .hub-cards.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hub-cards.cols-3 { grid-template-columns: 1fr; } }
.hub-card, .related-card { transition: border-color .3s, transform .4s var(--ease), background .3s; }
.hub-card:hover, .related-card:hover { border-color: rgba(154,133,255,.45); transform: translateY(-2px); background: var(--ink-3); }
.hub-card .cta-rail, .related-card .cta-rail { margin-top: auto; padding-top: 8px; font-size: 0.94rem; }
.hub-card:hover .rail::before, .related-card:hover .rail::before { transform: scaleX(1.5); }
.hub-card:hover .rail::after, .related-card:hover .rail::after { transform: translateX(16px); background: var(--violet-hi); }

/* ticked list */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: #c9c6da; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--violet-wash); border: 1px solid rgba(154,133,255,.5); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border-right: 1.6px solid var(--violet-hi); border-bottom: 1.6px solid var(--violet-hi); transform: rotate(45deg); }
.checklist b { color: var(--text); font-weight: 560; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 640px) { .checklist.cols-2 { grid-template-columns: 1fr; } }

/* CTA band (D20) */
.cta-band-section { padding: clamp(40px, 5vw, 72px) 0; }
.cta-band {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: calc(var(--radius) + 6px); border: 1px solid rgba(106,77,255,.38);
  background: radial-gradient(80% 140% at 100% 0%, rgba(106,77,255,.32), rgba(106,77,255,0) 60%), linear-gradient(180deg, rgba(106,77,255,.1), rgba(106,77,255,.02)), var(--ink-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 100px -50px rgba(91,46,255,.6);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.08; }
.cta-band-copy p { margin-top: 14px; color: #cfcbe2; max-width: 52ch; }
.cta-band-actions { display: grid; justify-items: start; gap: 14px; }
.cta-band-email { color: var(--muted); font-size: 0.94rem; }
.cta-band-email a { color: var(--text); border-bottom: 1px solid var(--violet); }
@media (max-width: 920px) { .cta-band { grid-template-columns: 1fr; } }

/* related cards ({{related}}) */
.related h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 920px) { .related-grid { grid-template-columns: 1fr; } }

/* article meta line */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* select styled to match the inputs */
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%239a85ff' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { color: var(--text); background: var(--ink-2); }

/* footer columns and the registered line (D18) */
.footer-top { grid-template-columns: 1.5fr repeat(5, 1fr); }
.footer-registered { margin-top: 48px; font-size: 0.84rem; color: var(--faint); max-width: 90ch; }
.footer-registered a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.footer-registered + .footer-bottom { margin-top: 20px; }
@media (max-width: 1080px) { .footer-top { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* home: module cards open their feature page (the heading link covers the card), the two extra
   feature links under the grid, and the one-line "more" links under a section (D24) */
.module { position: relative; }
.module h3 a { transition: color .3s; }
.module h3 a::after { content: ""; position: absolute; inset: 0; }
.module:hover h3 a { color: var(--violet-hi); }
.module-links { list-style: none; display: grid; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.module-links .cta-rail { font-weight: 500; color: #d8d5e8; }
.home-more { margin-top: 36px; }
