/* ViSRUPT site styles.
   Palette comes from the logo: two horn blues on near-black.
   Type: Archivo (condensed) for headlines, Inter for reading, JetBrains Mono for times, prices and logs. */

:root {
  --ink: #07090d;
  --ink-2: #0c111a;
  --ink-3: #131a26;
  --line: #1d2532;
  --line-2: #2a3445;
  --text: #e8edf4;
  --muted: #9aa6b8;
  --faint: #66738a;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --blue-ink: #0b1a33;
  --up: #3ecf8e;
  --down: #f5736b;
  --amber: #f2b84b;

  --font-display: 'Archivo Variable', 'Archivo', 'Inter Variable', system-ui, sans-serif;
  --font-body: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(18px, 3.4vw, 64px);
  --radius: 10px;
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Type grows gently with the screen, so big monitors don't get a tiny-looking site */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); font-size: clamp(15px, 0.5vw + 8.5px, 20px); }
@media (min-width: 1440px) { :root { --wrap: 1480px; } }
@media (min-width: 1800px) { :root { --wrap: 1680px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #93c5fd; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: .35em; }
strong { font-weight: 600; color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero' 1; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 74%;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
  color: #fff;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); font-weight: 800; line-height: .98; }
h2 { font-size: clamp(2.1rem, 4.2vw, 4.6rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 2rem); font-stretch: 80%; line-height: 1.12; }
.lead { font-size: clamp(1.08rem, 1.3vw, 1.4rem); color: #c7d0dd; max-width: 38em; }
.kicker { font-family: var(--font-mono); font-size: .82rem; color: var(--blue-2); margin: 0 0 1.1rem; letter-spacing: 0; }
.kicker span { color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 1rem/1 var(--font-body);
  padding: .95em 1.25em; border-radius: 8px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2f6fe0; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue-2); color: #fff; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #198f48; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.text-link svg { width: 1em; height: 1em; transition: transform .15s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, .95);
  border-bottom: 1px solid var(--line);
}
/* The header spans the full width, lined up with the page edges */
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: #c4cddb; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { color: #fff; background: var(--ink-3); }
.nav a[aria-current='page'] { color: #fff; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.header-cta { margin-left: 8px; padding: .7em 1em; font-size: .95rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: #fff; border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; }
  .header-cta { margin: 16px 0 0; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 168px) 0; border-top: 1px solid var(--line); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); max-width: 16em; }
.page-head .lead { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue-2); }
.hero .lead { margin: 1.4rem 0 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.hero-facts li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Signature: a trader's rules turning into timestamped orders */
.ticket {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.ticket-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .76rem; color: var(--faint); }
.ticket-bar b { color: var(--muted); font-weight: 500; }
.ticket-rules { padding: 18px 18px 14px; }
.ticket-label { font-family: var(--font-mono); font-size: .74rem; color: var(--faint); margin: 0 0 10px; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; margin: 0; padding: 6px 8px; border-radius: 6px; color: #d6dde8; font-size: .97rem; line-height: 1.45; cursor: default; transition: background-color .15s ease; }
.rules li + li { margin-top: 2px; }
.rule-tag { font-family: var(--font-mono); font-size: .74rem; color: var(--blue-2); border: 1px solid #23406e; border-radius: 4px; text-align: center; padding: 1px 0; }
.ticket-log { border-top: 1px dashed var(--line-2); background: #080b11; padding: 14px 18px 16px; font-family: var(--font-mono); font-size: .8rem; line-height: 1.5; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 66px 34px 1fr; gap: 10px; margin: 0; padding: 4px 8px; border-radius: 5px; color: #b9c3d2; transition: background-color .15s ease, opacity .35s ease, transform .35s ease; }
.log .t { color: var(--faint); }
.log .r { color: var(--blue-2); }
.log .ok { color: var(--up); }
.log .hit { color: var(--down); }
.log .mv { color: var(--amber); }
.ticket-foot { padding: 10px 18px 14px; font-size: .78rem; color: var(--faint); border-top: 1px solid var(--line); }
.rules li.lit, .log li.lit { background: #12213b; }
.js .log li.pending { opacity: 0; transform: translateY(4px); }
@media (max-width: 520px) {
  .log li { grid-template-columns: 58px 1fr; }
  .log li .r { display: none; }
}

/* ---------- Divisions ---------- */
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.division {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--ink-2);
  text-decoration: none; color: var(--text);
  transition: border-color .2s ease, background-color .2s ease;
}
.division:hover { border-color: var(--blue); background: #0e1522; color: var(--text); }
.division .name { font-family: var(--font-display); font-stretch: 74%; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #fff; margin: 0 0 4px; }
.division .what { font-family: var(--font-mono); font-size: .8rem; color: var(--blue-2); margin: 0 0 18px; }
.division p { color: var(--muted); }
.division ul { list-style: none; padding: 0; margin: 4px 0 24px; }
.division li { padding-left: 18px; position: relative; color: #d3dae5; }
.division li::before { content: ''; position: absolute; left: 0; top: .68em; width: 8px; height: 1px; background: var(--blue-2); }
.division .text-link { margin-top: auto; }
@media (max-width: 800px) { .divisions { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line-2); }
.steps li { margin: 0; padding: 22px 22px 6px 0; position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font: 600 .85rem/1 var(--font-mono);
  color: var(--ink); background: var(--blue-2);
  position: absolute; top: -15px; left: 0;
}
.steps h3 { margin-top: 14px; font-size: 1.35rem; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); margin-left: 15px; }
  .steps li { padding: 0 0 26px 34px; }
  .steps li::before { left: -15px; top: 0; }
  .steps h3 { margin-top: 2px; }
}

/* ---------- Proof: real control panels ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.shot { margin: 0; grid-column: span 6; }
.shot.wide { grid-column: span 7; }
.shot.narrow { grid-column: span 5; }
.shot button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: #d9dde3; }
.shot button:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.shot img { width: 100%; height: clamp(220px, 26vw, 330px); object-fit: cover; object-position: top left; transition: transform .35s ease; }
.shot button:hover img { transform: scale(1.015); }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.shot figcaption b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.note { font-size: .88rem; color: var(--faint); margin-top: 22px; }
@media (max-width: 800px) { .shot, .shot.wide, .shot.narrow { grid-column: span 12; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(3, 5, 9, .88); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox p { color: var(--muted); text-align: center; margin: 12px 0 0; font-size: .92rem; }
.lightbox .close { position: fixed; top: 16px; right: 16px; background: var(--ink-3); color: #fff; border: 1px solid var(--line-2); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox .close svg { width: 20px; height: 20px; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-size: 1.04rem; line-height: 1.55; color: #e3e8f0; }
.quote blockquote::before { content: '\201C'; display: block; font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--blue); margin-bottom: 12px; }
.quote figcaption { margin-top: auto; font-family: var(--font-mono); font-size: .76rem; color: var(--faint); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- What you get ---------- */
.gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.get { padding: 24px 0; border-top: 1px solid var(--line-2); }
.get h3 { font-size: 1.3rem; margin-bottom: .4em; }
.get p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .gets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gets { grid-template-columns: 1fr; } }

/* ---------- Rate card ---------- */
.rates { border-top: 1px solid var(--line-2); }
.rate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 12px 36px; padding: 28px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.rate .div { font-family: var(--font-mono); font-size: .76rem; color: var(--blue-2); margin: 0 0 6px; }
.rate h3 { margin: 0 0 6px; }
.rate .for { color: var(--muted); margin: 0; font-size: .96rem; }
.rate ul { list-style: none; padding: 0; margin: 0; color: #cfd7e3; font-size: .96rem; }
.rate ul li { padding-left: 22px; position: relative; }
.rate ul li svg { position: absolute; left: 0; top: .32em; width: 14px; height: 14px; color: var(--blue-2); }
.price { text-align: right; min-width: 9.5rem; }
.price .amt { font-family: var(--font-mono); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; color: #fff; line-height: 1.1; white-space: nowrap; }
.price .from { font-size: .82rem; color: var(--faint); display: block; margin-bottom: 4px; }
.price .btn { margin-top: 14px; padding: .65em .95em; font-size: .9rem; }
.rates.compact .rate { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 0; }
.rates.compact .rate ul { display: none; }
.rates.compact .price .btn { display: none; }
.stack-lg { margin-top: 32px; }
@media (max-width: 860px) {
  .rate { grid-template-columns: 1fr; }
  .price { text-align: left; }
}

/* ---------- Notes, prose, FAQ ---------- */
.callout { border: 1px solid #23406e; background: #0b1424; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.callout h2, .callout h3 { margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }
.callout p { color: #c3ccda; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose { max-width: 46rem; color: #c9d2df; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-stretch: 80%; margin: 2.2em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose li { color: #c9d2df; }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.faq-group .what { font-family: var(--font-mono); font-size: .8rem; color: var(--blue-2); margin: -.4em 0 18px; }
details.qa { border-bottom: 1px solid var(--line-2); }
details.qa:first-of-type { border-top: 1px solid var(--line-2); }
details.qa summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.06rem; color: #fff;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue-2); border-bottom: 2px solid var(--blue-2); transform: rotate(45deg);
  transition: transform .2s ease;
}
details.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.qa summary:hover { color: var(--blue-2); }
details.qa .a { padding: 0 0 22px; color: #c3ccda; max-width: 46rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .9rem; font-weight: 600; color: #dfe5ee; margin-bottom: 7px; }
.field .opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(96, 165, 250, .18); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--down); }
.field .hint { font-size: .84rem; color: var(--faint); margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; margin: 0; min-height: 1.5em; }
.form-status.error { color: var(--down); }
.form-done { border: 1px solid #1d5a3f; background: #0a1a13; border-radius: var(--radius); padding: 28px; }
.form-done h3 { color: var(--up); margin-bottom: .3em; }
.form-done p { margin: 0; color: #c9d6cf; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-legal { font-size: .84rem; color: var(--faint); margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin: 0; border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list .item { display: flex; align-items: center; gap: 14px; padding: 16px 0; color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--blue-2); }
.contact-list svg { width: 20px; height: 20px; color: var(--blue-2); flex: none; }
.contact-list small { display: block; color: var(--faint); font-size: .82rem; }

/* ---------- Careers ---------- */
.roles { border-top: 1px solid var(--line-2); }
.role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.role h3 { margin: 0 0 6px; }
.role .meta { font-family: var(--font-mono); font-size: .78rem; color: var(--blue-2); margin: 0 0 10px; }
.role p { color: var(--muted); margin: 0 0 10px; }
.role ul { color: #c9d2df; font-size: .95rem; margin: 0; }
.role .btn { align-self: start; }
@media (max-width: 700px) { .role { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink) 0%, #0a1222 100%); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0; }
.cta-band p { color: var(--muted); margin: 14px 0 0; max-width: 30em; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: .94rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: #fff; margin: 0 0 12px; letter-spacing: 0; font-stretch: 100%; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0 0 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-brand p { margin: 14px 0 0; max-width: 24em; }
.foot-risk { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot-risk p { margin: 0; max-width: 52em; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(7, 9, 13, .97); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { justify-content: center; padding: .85em .6em; }
  body { padding-bottom: 76px; }
}

/* ---------- 404 ---------- */
.lost { padding: clamp(72px, 12vw, 160px) 0; }
.lost .code { font-family: var(--font-mono); color: var(--blue-2); margin: 0 0 12px; }

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

/* =====================================================================
   Motion layer: 3D hero, ticker tape, pinned story, sideways steps,
   screenshot deck, cursor, page curtain. Loaded after site.css.
   ===================================================================== */

/* Hidden until the animation code takes over (the page shows normally if it never loads) */
.motion [data-split] { visibility: hidden; }
.motion .hero3d [data-reveal], .motion .page-head [data-reveal], .motion .lost [data-reveal] { opacity: 0; }
.motion [data-stagger] > *, .motion main [data-reveal] { opacity: 0; }
html.pt::after { content: ''; position: fixed; inset: 0; background: var(--ink); z-index: 9998; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Split text pieces */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.swi, .sc { display: inline-block; will-change: transform; }
.statement .sw { overflow: visible; }

/* Scroll progress and header behaviour */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; pointer-events: none; }
.site-header { transition: transform .45s cubic-bezier(.2, .7, .2, 1), background-color .3s ease, border-color .3s ease; }
.motion .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.motion .site-header.solid { background: rgba(7, 9, 13, .95); border-bottom-color: var(--line); }
.site-header.tucked { transform: translateY(-100%); }

/* Every scene canvas fills its section */
canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
canvas.scene.no-gl { background: radial-gradient(80% 60% at 70% 40%, #10264a 0%, var(--ink) 70%); }

/* ---------- Hero ---------- */
.hero3d { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 40px) 0 120px; isolation: isolate; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .92) 0%, rgba(7, 9, 13, .7) 34%, rgba(7, 9, 13, 0) 68%),
    linear-gradient(180deg, rgba(7, 9, 13, .6) 0%, rgba(7, 9, 13, 0) 22%, rgba(7, 9, 13, 0) 70%, var(--ink) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero-title { margin: 0; max-width: none; }
.ht-a { display: block; font-size: clamp(3.6rem, 11.5vw, 11rem); line-height: .84; font-stretch: 70%; letter-spacing: -.012em; }
.ht-b { display: block; margin-top: .45em; font-size: clamp(1.7rem, 3.7vw, 3.3rem); line-height: 1.02; color: #dbe3ee; font-stretch: 76%; max-width: 15em; }
.ht-b em { font-style: normal; color: var(--blue-2); }
.hero3d .lead { margin: 1.6rem 0 2.1rem; max-width: 34em; }
.hud { position: absolute; z-index: 2; right: var(--gutter); bottom: 56px; font-family: var(--font-mono); font-size: .76rem; color: var(--faint); text-align: right; line-height: 1.9; }
.hud p { margin: 0; }
.hud span { margin-right: 12px; }
.hud b { color: #cfe0ff; font-weight: 500; }
.scroll-cue { position: absolute; z-index: 2; left: var(--gutter); bottom: 48px; display: inline-flex; align-items: center; gap: 14px; color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: .76rem; }
.scroll-cue i { position: relative; width: 1px; height: 54px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--blue-2); animation: cue 1.8s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 760px) {
  .hero3d { align-items: flex-end; padding-top: calc(var(--header-h) + 30vh); padding-bottom: 96px; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 9, 13, .1) 0%, rgba(7, 9, 13, .2) 28%, rgba(7, 9, 13, .9) 52%, var(--ink) 100%); }
  .ht-a { font-size: clamp(3.2rem, 15vw, 4.6rem); }
  .hud { display: none; }
  .scroll-cue { bottom: 28px; }
}

/* ---------- Ticker tape ---------- */
.tape { overflow: hidden; padding: 28px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); position: relative; z-index: 2; }
.tape-row { display: flex; width: max-content; will-change: transform; }
.tape-set { display: flex; align-items: center; flex: none; }
.tape-set span { font-family: var(--font-display); font-stretch: 68%; font-weight: 800; font-size: clamp(2.6rem, 7.4vw, 6.6rem); line-height: 1; padding: 0 .28em; color: #fff; white-space: nowrap; }
.tape-set i { width: .5rem; height: .5rem; background: var(--blue); transform: rotate(45deg); flex: none; }
.tape-row.outline .tape-set span { color: transparent; -webkit-text-stroke: 1.2px #3a4a63; font-weight: 700; font-stretch: 74%; }
.tape-row.outline .tape-set i { background: transparent; border: 1px solid #3a4a63; }

/* ---------- Pinned story ---------- */
.story { position: relative; border-top: 1px solid var(--line); }
.story-pin { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 10px) 0 40px; }
.story-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-title { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: .92; margin-bottom: .6em; }
.story-steps { list-style: none; padding: 0 0 0 26px; margin: 0; position: relative; }
.story-steps li { margin: 0; padding: 12px 0; color: var(--faint); transition: color .4s ease; display: flex; gap: 14px; align-items: baseline; font-size: 1.08rem; }
.story-steps li b { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--faint); transition: color .4s ease; }
.story-steps li.on { color: #fff; }
.story-steps li.on b { color: var(--blue-2); }
.story-steps::before, .story-steps::after { content: ''; position: absolute; left: 0; top: 14px; width: 2px; }
.story-steps::before { bottom: 14px; background: var(--line-2); }
.story-steps::after { height: calc((100% - 28px) * var(--p, 0)); background: var(--blue-2); box-shadow: 0 0 12px rgba(96, 165, 250, .7); }
.story-note { margin: 26px 0 0; font-size: .82rem; color: var(--faint); max-width: 28em; }
.story-stage { position: relative; height: min(640px, 78vh); perspective: 1400px; }
.stage-card { position: absolute; inset: 0; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 16px; padding: clamp(18px, 2.4vw, 28px); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(96, 165, 250, .04); display: flex; flex-direction: column; }
.stage-label { font-family: var(--font-mono); font-size: .76rem; color: var(--faint); margin: 0 0 16px; display: flex; justify-content: space-between; }
.stage-label span { color: #4d5c74; }
.bubble { align-self: flex-start; max-width: 620px; font-size: 1.08rem; background: #0f2447; border: 1px solid #1f3d6e; border-radius: 4px 18px 18px 18px; padding: 18px 20px 12px; }
.bubble-hi { margin: 0 0 10px; color: #fff; font-weight: 600; }
.bubble .rules li { padding: 7px 6px; }
.bubble-time { margin: 8px 0 0; text-align: right; font-family: var(--font-mono); font-size: .72rem; color: #7f9bc6; }
.code { margin: 0; flex: 1; font-family: var(--font-mono); font-size: clamp(.8rem, 1.12vw, 1rem); line-height: 1.75; color: #d5deea; white-space: pre-wrap; overflow: hidden; }
.code [data-rule] { display: block; padding: 4px 10px; margin: 0 -10px 8px; border-radius: 6px; transition: background-color .2s ease; }
.code .c { color: #5f6f88; }
.code .k { color: var(--blue-2); }
.code .s { color: #7ee2b0; }
.code .f { color: #c7dcff; }
.code .n { color: var(--amber); }
.chart { width: 100%; height: auto; flex: none; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.chart .line { fill: none; stroke: var(--blue-2); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .mk line { stroke-width: 1; stroke-dasharray: 3 3; }
.chart .mk circle { stroke: var(--ink); stroke-width: 2; }
.chart .mk text { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; }
.chart .entry circle, .chart .entry text { fill: var(--up); } .chart .entry line { stroke: var(--up); }
.chart .hit circle, .chart .hit text { fill: var(--down); } .chart .hit line { stroke: var(--down); }
.chart .move circle, .chart .move text { fill: var(--amber); } .chart .move line { stroke: var(--amber); }
.chart .exit circle, .chart .exit text { fill: #cfe0ff; } .chart .exit line { stroke: #cfe0ff; }
.chart .mk.lit circle { r: 7; }
.card-live .log { margin-top: 10px; font-family: var(--font-mono); font-size: .78rem; line-height: 1.45; }
.card-live .log li { padding: 3px 8px; }
.card-live .log b { font-weight: 500; }
.log b.ok { color: var(--up); } .log b.hit { color: var(--down); } .log b.mv { color: var(--amber); }
.story [data-rule].lit { background: #13284a; }
@media (max-width: 899px) {
  .story-pin { min-height: 0; padding: 80px 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { height: auto; display: grid; gap: 18px; perspective: none; }
  .stage-card { position: relative; inset: auto; }
}

/* ---------- Statement ---------- */
.statement { padding: clamp(80px, 14vw, 200px) 0; border-top: 1px solid var(--line); }
.statement p { font-family: var(--font-display); font-stretch: 74%; font-weight: 760; font-size: clamp(2.1rem, 5.4vw, 5rem); line-height: 1.02; color: #fff; margin: 0; max-width: 18em; letter-spacing: -.005em; }

/* ---------- Spotlight + tilt cards ---------- */
.spot { position: relative; }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, .13), transparent 60%); }
.spot:hover::after { opacity: 1; }
.division { transform-style: preserve-3d; will-change: transform; }
.division .name { overflow: hidden; }

/* ---------- Sideways steps ---------- */
.hsteps { border-top: 1px solid var(--line); overflow: hidden; }
.hsteps-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) 0 56px; gap: 44px; }
.hsteps-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hsteps-head h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.hsteps-head p { margin: 0; max-width: 26em; }
.hsteps-track { list-style: none; margin: 0; display: flex; gap: 24px; padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: max-content; will-change: transform; }
.hstep { flex: none; width: min(560px, 78vw); min-height: min(440px, 56vh); margin: 0; display: grid; grid-template-rows: 1fr auto; padding: 32px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, var(--ink-2), #0a0e16); overflow: hidden; }
.hstep .num { font-family: var(--font-display); font-weight: 800; font-stretch: 68%; font-size: clamp(9rem, 17vw, 15rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px #2f5fa8; display: block; }
.hstep:nth-child(odd) .num { -webkit-text-stroke-color: #3b82f6; }
.hstep .step-of { font-family: var(--font-mono); font-size: .76rem; color: var(--blue-2); margin: 0 0 8px; }
.hstep h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.hstep p { color: var(--muted); margin: 0; }
@media (max-width: 899px) {
  .hsteps-pin { min-height: 0; padding: 80px 0; }
  .hsteps-track { flex-direction: column; width: auto; padding: 0 var(--gutter); }
  .hstep { width: auto; min-height: 0; grid-template-rows: auto auto; gap: 10px; }
  .hstep .num { font-size: 6rem; }
}

/* ---------- Screenshot deck ---------- */
.gallery[data-deck] { position: relative; perspective: 1600px; }
.gallery[data-deck] .shot { will-change: transform; transform-style: preserve-3d; }
.shot button { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }

/* ---------- Big CTA ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(100px, 14vw, 180px) 0; }
.cta-band h2 { font-size: clamp(3rem, 8vw, 7.2rem); line-height: .9; }
.cta-grid { position: absolute; inset: -40% -10% 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(59, 130, 246, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, .14) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%);
  animation: gridrun 4s linear infinite; }
@keyframes gridrun { to { background-position: 0 64px, 0 0; } }
.btn[data-magnetic] { will-change: transform; }

/* ---------- Footer wordmark ---------- */
.site-footer { overflow: hidden; }
.foot-mark { padding: 0 var(--gutter); margin: -10px 0 40px; text-align: center; line-height: .8; }
.foot-mark span { display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-stretch: 66%; font-size: 28vw; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px #24324a;
  background: linear-gradient(90deg, var(--blue), var(--blue-2)) no-repeat; background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text; }
.motion .foot-mark span { background-size: 0% 100%; }

/* ---------- Inner page headers with a moving background ---------- */
.page-head.has-scene { position: relative; overflow: hidden; isolation: isolate; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(64px, 10vw, 140px)); padding-bottom: clamp(56px, 8vw, 110px); }
.page-head.has-scene::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 13, .85) 0%, rgba(7, 9, 13, .35) 50%, rgba(7, 9, 13, 0) 100%), linear-gradient(180deg, transparent 60%, var(--ink) 100%); }
.page-head.has-scene .wrap { position: relative; z-index: 2; }
.page-head.has-scene h1 { font-size: clamp(3rem, min(7.6vw, 13vh), 8.4rem); line-height: .9; font-stretch: 70%; max-width: 14em; }
@media (min-width: 900px) { .page-head.has-scene { min-height: 88vh; display: flex; align-items: center; } .page-head.has-scene > .wrap { width: 100%; } }

/* ---------- Cursor (mouse only) ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9997; opacity: 0; transition: opacity .3s ease; }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; display: flex; align-items: center; justify-content: center; }
.cursor i { position: absolute; inset: 0; border: 1px solid rgba(96, 165, 250, .55); border-radius: 50%; transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .3s ease, border-color .3s ease; }
.cursor span { position: relative; font-family: var(--font-mono); font-size: .7rem; color: #fff; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--blue-2); border-radius: 50%; }
.cursor.is-link i { transform: scale(1.7); background: rgba(59, 130, 246, .12); border-color: rgba(96, 165, 250, .8); }
.cursor.is-view i { transform: scale(2.3); background: var(--blue); border-color: var(--blue); }

/* ---------- Page curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 9999; background: var(--ink); display: flex; align-items: center; justify-content: center; pointer-events: none; visibility: hidden; }
.curtain-logo svg { width: 96px; height: 96px; overflow: visible; }
.curtain-logo path { fill-opacity: 0; stroke-width: 6; }
.curtain-logo .h1 { fill: var(--blue); stroke: var(--blue); }
.curtain-logo .h2 { fill: var(--blue-2); stroke: var(--blue-2); }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue i::after, .cta-grid { animation: none; }
}

/* =====================================================================
   Home "engine": a pinned stage with the 3D blocks, readouts, seven
   chapters and a command bar. Without the animation code the chapters
   simply stack, so everything stays readable.
   ===================================================================== */
.xp { position: relative; margin-top: calc(var(--header-h) * -1); }
.xp-stage { position: relative; isolation: isolate; }
.xp canvas.scene { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; }
.xp-shade { position: absolute; inset: 0 0 auto 0; height: 100vh; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .94) 0%, rgba(7, 9, 13, .84) 26%, rgba(7, 9, 13, .38) 46%, rgba(7, 9, 13, 0) 60%),
    linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, 0) 18%, rgba(7, 9, 13, 0) 78%, rgba(7, 9, 13, .7) 100%); }
.xp-chapters { position: relative; z-index: 3; padding-top: var(--header-h); }
.chap { display: flex; align-items: center; min-height: 86vh; padding: 60px var(--gutter); max-width: 1320px; margin: 0 auto; }
.chap-body { position: relative; max-width: min(35rem, 37vw); }
.chap[data-chap="0"] .chap-body { max-width: min(80rem, 76vw); }
.chap-body p { color: #c9d2df; font-size: 1.08rem; text-shadow: 0 2px 18px rgba(7, 9, 13, .9); }
.chap .fine { font-size: .8rem; color: var(--faint); margin-top: 14px; }
.chap h2 { font-size: clamp(2.6rem, min(5.4vw, 9.6vh), 5.6rem); line-height: .92; font-stretch: 68%; margin: 0 0 .4em; text-shadow: 0 4px 30px rgba(7, 9, 13, .8); }
.chap .btn-row { margin-top: 26px; }
.chap-tag { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-2); border: 1px solid #23406e; background: rgba(11, 26, 51, .8); padding: 5px 9px; border-radius: 4px; margin: 0 0 18px; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; font-family: var(--font-mono); font-size: .76rem; color: #cfe0ff; border: 1px solid var(--line-2); background: rgba(12, 17, 26, .9); padding: 6px 10px; border-radius: 999px; }
.xp-title { margin: 0; }
.xp .ht-a { font-size: clamp(3.2rem, min(10.5vw, 16vh), 10rem); }
.xp .ht-b { font-size: clamp(1.5rem, min(3.2vw, 5.4vh), 3rem); max-width: none; }
.xp .lead { margin: 1.3rem 0 0; max-width: 34em; text-shadow: 0 2px 18px rgba(7, 9, 13, .9); }

/* Labels that float next to the 3D */
.tags3d { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.tag3d { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; will-change: transform, opacity; }
.tag3d i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 3px rgba(96, 165, 250, .18); }
.tag3d b { position: absolute; left: 12px; top: -10px; white-space: nowrap; font: 500 .68rem/1.4 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: #dbe7ff; background: rgba(7, 9, 13, .86); border: 1px solid #23406e; border-radius: 3px; padding: 1px 6px; }
.tag3d.right b, .tag3d.flip b { left: auto; right: 12px; }
.tag3d.right.unright b { left: 12px; right: auto; }
.tag3d.up i { background: var(--up); } .tag3d.up b { color: #b7f0d4; border-color: #1d5a3f; }
.tag3d.down i { background: var(--down); } .tag3d.down b { color: #ffd0cc; border-color: #6b2a26; }
.tag3d.hub b { color: #fff; border-color: var(--blue); }

/* HUD pieces (only shown when the stage is pinned) */
.hud-frame, .hud-sys, .hud-time, .hud-count, .hud-spark, .cmd { display: none; }
.motion .hud-frame, .motion .hud-sys, .motion .hud-spark { display: block; }
.hud-frame { position: absolute; inset: calc(var(--header-h) + 14px) 18px 18px; z-index: 2; pointer-events: none; }
.hud-frame i { position: absolute; width: 22px; height: 22px; border-color: rgba(96, 165, 250, .55); border-style: solid; border-width: 0; }
.hud-frame i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud-frame i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud-frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hud-frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hud-frame b { position: absolute; font: 300 18px/1 var(--font-mono); color: rgba(96, 165, 250, .45); }
.hud-frame .x1 { left: 33%; top: -9px; } .hud-frame .x2 { right: 33%; top: -9px; }
.hud-frame .x3 { left: 33%; bottom: -9px; } .hud-frame .x4 { right: 33%; bottom: -9px; }
.hud-sys, .hud-time, .hud-count, .hud-spark { position: absolute; z-index: 4; font-family: var(--font-mono); font-size: .72rem; color: #66738a; text-transform: uppercase; letter-spacing: .05em; pointer-events: none; }
.hud-sys { right: var(--gutter); top: calc(var(--header-h) + 40px); width: 250px; padding: 10px 12px; font-size: .66rem; background: rgba(7, 9, 13, .82); border: 1px solid var(--line); border-radius: 8px; }
.hud-sys p { margin: 0 0 6px; }
.hud-sys p:last-child { margin-bottom: 0; }
.hud-h { color: #cfe0ff; border-bottom: 1px solid #23406e; padding-bottom: 6px; margin-bottom: 10px !important; }
.hud-h span { color: var(--blue); }
.hud-row { display: flex; align-items: baseline; gap: 6px; }
.hud-row i { flex: 1; border-bottom: 1px dotted #2a3445; transform: translateY(-3px); }
.hud-row b { font-weight: 500; color: #4d5c74; transition: color .4s ease; }
.hud-row.on b { color: var(--up); }
.hud-row.on span { color: #cfe0ff; }
/* shorter screens: a tighter readout panel leaves more room for the 3D labels */
@media (max-height: 860px) { .hud-sys { top: calc(var(--header-h) + 22px); padding: 8px 10px; } .hud-sys p { margin-bottom: 3px; } .hud-h { padding-bottom: 4px; margin-bottom: 6px !important; } }
.hud-time { left: var(--gutter); top: calc(var(--header-h) + 40px); }
.motion .hud-time { display: flex; gap: 22px; }
.hud-time p { margin: 0; }
.hud-time span { margin-right: 8px; }
.hud-time b { color: #cfe0ff; font-weight: 500; }
.hud-count { left: var(--gutter); bottom: 44px; }
.motion .hud-count { display: flex; align-items: baseline; gap: 6px; }
.hud-count b { font-family: var(--font-display); font-stretch: 68%; font-weight: 800; font-size: 3.4rem; line-height: 1; color: #fff; letter-spacing: 0; }
.hud-count span { font-size: .9rem; color: var(--faint); }
.hud-count em { font-style: normal; color: var(--blue-2); margin-left: 14px; }
.hud-spark { right: var(--gutter); bottom: 44px; text-align: right; }
.hud-spark canvas { width: 180px; height: 46px; display: block; margin-left: auto; }
.hud-spark p { margin: 6px 0 0; }
.hud-spark p span { color: #4d5c74; }
.hud-ticks { display: flex; gap: 4px; justify-content: flex-end; margin-top: 8px; }
.hud-ticks i { width: 22px; height: 3px; background: #1d2532; transition: background-color .4s ease; }
.hud-ticks i.on { background: var(--blue-2); }
/* Solid backgrounds instead of blur: blurring the moving 3D behind a panel costs the graphics card every frame */
.cmd { position: absolute; z-index: 4; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(600px, 44vw); padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 14, 21, .94); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); font-family: var(--font-mono); font-size: .86rem; color: #e3ebf7; }
.motion .cmd { display: flex; align-items: center; gap: 10px; }
.cmd-p { color: var(--blue-2); }
.cmd-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-caret { flex: none; width: 8px; height: 1.1em; background: var(--blue-2); animation: blink 1s steps(2, start) infinite; }
.cmd-k { margin-left: auto; font-size: .7rem; color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 7px; }
@keyframes blink { to { visibility: hidden; } }

/* Pinned version */
.motion .xp { height: var(--xp-h, 800vh); }
.motion .xp-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .xp canvas.scene, .motion .xp-shade { height: 100%; }
.motion .xp-chapters { position: absolute; inset: 0; padding: 0; }
.motion .chap { position: absolute; inset: 0; min-height: 0; max-width: none; margin: 0; padding: calc(var(--header-h) + 76px) var(--gutter) 160px; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.motion .chap[data-chap="0"] { opacity: 1; visibility: visible; }
.motion .xp [data-reveal] { opacity: 0; }
@media (max-height: 820px) and (min-width: 761px) {
  .motion .hud-spark { display: none; }
  .motion .chap { padding-top: calc(var(--header-h) + 60px); padding-bottom: 130px; }
  .chap-body p { font-size: 1rem; }
  .hud-count b { font-size: 2.6rem; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .motion .hud-sys { display: none; }
  .chap .chips { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .motion .hud-sys { display: none; }
  .motion .chap { padding-left: 44px; padding-right: 44px; }
  .cmd { left: auto; right: 44px; transform: none; width: min(460px, 52vw); }
  .motion .hud-spark { display: none; }
}
@media (max-width: 1100px) {
  .chap-body { max-width: min(35rem, 46vw); }
}
@media (max-width: 760px) {
  .chap-body, .chap[data-chap="0"] .chap-body { max-width: none; }
  .chap { align-items: flex-end; }
  .motion .chap { padding: calc(var(--header-h) + 20px) var(--gutter) 100px; align-items: flex-end; }
  .chap-body p { font-size: .95rem; }
  .motion .chap .btn-row { margin-top: 16px; }
  .chap-tag { margin-bottom: 12px; }
  .chips li { font-size: .7rem; padding: 5px 8px; }
  .xp .lead { font-size: 1rem; margin-top: 1rem; }
  .motion .hud-sys, .motion .hud-time, .motion .hud-spark, .motion .cmd { display: none; }
  .motion .hud-count { left: auto; right: 24px; top: calc(var(--header-h) + 20px); bottom: auto; }
  .hud-count b { font-size: 2.2rem; }
  .hud-frame { inset: calc(var(--header-h) + 8px) 10px 86px; }
  .xp-shade { background: linear-gradient(180deg, rgba(7, 9, 13, .1) 0%, rgba(7, 9, 13, .2) 30%, rgba(7, 9, 13, .9) 58%, var(--ink) 100%); }
  .chap h2 { font-size: clamp(2.2rem, 10.5vw, 3rem); margin-bottom: .25em; }
  .xp .ht-a { font-size: clamp(3rem, 14vw, 4.2rem); }
  .xp .ht-b { font-size: 1.6rem; }
  .tags3d { clip-path: inset(0 0 46% 0); }
  .tag3d b { font-size: .6rem; }
}

/* Film grain, very light and still (an animated full-screen layer costs the graphics card every frame) */
body::after { content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@media (prefers-reduced-motion: reduce) { .cmd-caret { animation: none; } }

/* Inner pages share the HUD language: boxed tags and corner brackets on the header */
.page-head .kicker, .section-head .kicker { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-2); border: 1px solid #23406e; background: rgba(11, 26, 51, .6); padding: 5px 9px; border-radius: 4px; }
.page-head .kicker span { color: #4d6a99; }
.page-head.has-scene::before { content: ''; position: absolute; z-index: 2; pointer-events: none; inset: calc(var(--header-h) + 14px) 18px 18px;
  background:
    linear-gradient(rgba(96, 165, 250, .55), rgba(96, 165, 250, .55)) left top / 22px 1px no-repeat,
    linear-gradient(rgba(96, 165, 250, .55), rgba(96, 165, 250, .55)) left top / 1px 22px no-repeat,
    linear-gradient(rgba(96, 165, 250, .55), rgba(96, 165, 250, .55)) right top / 22px 1px no-repeat,
    linear-gradient(rgba(96, 165, 250, .55), rgba(96, 165, 250, .55)) right top / 1px 22px no-repeat,
    linear-gradient(rgba(96, 165, 250, .55), rgba(96, 165, 250, .55)) left bottom / 22px 1px no-repeat,
    linear-gradient(rgba(96, 165, 250, .55), rgba(96, 165, 250, .55)) left bottom / 1px 22px no-repeat,
    linear-gradient(rgba(96, 165, 250, .55), rgba(96, 165, 250, .55)) right bottom / 22px 1px no-repeat,
    linear-gradient(rgba(96, 165, 250, .55), rgba(96, 165, 250, .55)) right bottom / 1px 22px no-repeat; }
.section-head .chap-tag, .hsteps-head .chap-tag, .split .chap-tag { margin-bottom: 14px; }

/* =====================================================================
   Inner-page pieces: section lines, ERP modules, ERP demo app,
   tick list, automation flow, About timeline, sample backtest report,
   side indexes for FAQ and legal pages.
   ===================================================================== */

/* Each section's top border draws in from the left */
.hsteps, .demo { position: relative; }
.motion .line-in { border-top-color: transparent !important; }
.motion .line-in::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--blue-2) 0%, var(--line-2) 28%, var(--line) 100%);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.motion .line-in.drawn::before { transform: scaleX(1); }

/* ERP page header: the 3D dashboard sits on the right */
.erp-head canvas.scene { opacity: .95; }
@media (min-width: 1000px) { .page-head.erp-head .wrap > * { max-width: min(100%, 52vw); } .page-head.erp-head h1 { font-size: clamp(3rem, min(5.8vw, 12vh), 7.6rem); max-width: min(100%, 52vw); } }
@media (max-width: 760px) { .erp-head canvas.scene { opacity: .35; } .erp-head .tags3d { display: none; } }

/* ERP modules */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 22px); }
.mod { position: relative; display: flex; flex-direction: column; min-height: clamp(13rem, 18vw, 17rem); padding: clamp(22px, 2.2vw, 36px); border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--ink-2), #090d15); overflow: hidden; transition: border-color .3s ease; }
.mod:hover { border-color: var(--blue); }
.mod-n { font-family: var(--font-display); font-weight: 800; font-stretch: 66%; font-size: clamp(3.6rem, 5vw, 5.4rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px #2f5fa8; margin-bottom: auto; transition: color .4s ease; }
.mod:hover .mod-n { color: var(--blue); -webkit-text-stroke-color: var(--blue); }
.mod h3 { margin: 1.4rem 0 .4rem; }
.mod p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .mod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mod-grid { grid-template-columns: 1fr; } }

/* ERP demo: a pinned example app */
.demo { border-top: 1px solid var(--line); }
.demo-pin { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 24px) 0 40px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(28px, 4vw, 80px); align-items: center; }
.demo-copy h2 { font-size: clamp(2.2rem, min(4.4vw, 8vh), 4.6rem); margin-bottom: .45em; }
.demo-steps { list-style: none; padding: 0; margin: 0; }
.demo-steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 10px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .4s ease; }
.demo-steps li b { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--blue-2); padding-top: .3rem; }
.demo-steps li h3 { font-size: clamp(1.15rem, 1.4vw, 1.5rem); margin: 0 0 .15rem; }
.demo-steps li p { margin: 0; color: var(--muted); font-size: .95rem; max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.demo-steps li.on { opacity: 1; }
.demo-steps li.on p { max-height: 5em; }
.demo-note { font-size: .8rem; color: var(--faint); margin: 16px 0 0; }

.demo-app { border: 1px solid var(--line-2); border-radius: 16px; background: #0b1018; overflow: hidden; font-size: .84rem; box-shadow: 0 60px 140px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(96, 165, 250, .05), 0 0 120px -60px rgba(59, 130, 246, .45); }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0e141f; font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.app-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #233046; }
.app-bar span { margin-left: 10px; }
.app-bar em { font-style: normal; color: var(--blue); }
.app-sync { margin-left: auto; color: var(--up); font-weight: 500; }
.app-sync::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); margin-right: 6px; box-shadow: 0 0 0 3px rgba(62, 207, 142, .18); }
.app-body { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); min-height: clamp(400px, 58vh, 600px); }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: #0a0f17; }
.app-logo { display: flex; align-items: center; gap: 8px; margin: 0 6px 12px; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1rem; }
.app-logo i { width: 14px; height: 14px; border-radius: 4px; background: var(--blue); }
.app-mod { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: #9aa6b8; transition: background-color .3s ease, color .3s ease, opacity .3s ease; }
.app-mod i { width: 8px; height: 8px; border-radius: 2px; background: #2a3445; }
.app-mod.on { background: #13284a; color: #fff; }
.app-mod.on i { background: var(--blue-2); }
.app-mod .lock { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: .6rem; color: var(--down); opacity: 0; transition: opacity .3s ease; }
.as-manager .app-mod:not([data-manager]) { opacity: .38; }
.as-manager .app-mod:not([data-manager]) .lock { opacity: 1; }
.as-manager .app-mod[data-manager] { color: #fff; }
.as-manager .app-mod[data-manager] i { background: var(--up); }
.app-user { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 8px 2px; border-top: 1px solid var(--line); }
.app-user span { width: 26px; height: 26px; border-radius: 50%; background: #1d3766; color: #cfe0ff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .66rem; }
.app-user em { font-style: normal; color: #cfe0ff; font-size: .78rem; }
.app-main { position: relative; padding: 16px; }
.screen { position: absolute; inset: 16px; }
.screen:not([data-screen="0"]) { visibility: hidden; }
.screen-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; color: #fff; font-weight: 600; font-size: .98rem; }
.screen-h span { font-family: var(--font-mono); font-size: .68rem; color: var(--faint); font-weight: 400; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.kpi, .panel { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #0e141f; }
.kpi p { margin: 0; color: var(--faint); font-size: .7rem; }
.kpi b { display: block; margin: 4px 0 2px; font-family: var(--font-mono); font-size: clamp(1.05rem, 1.3vw, 1.35rem); font-weight: 600; color: #fff; }
.kpi span { font-size: .68rem; color: var(--muted); }
.kpi.up span { color: var(--up); }
.kpi.warn span { color: var(--amber); }
.panel-h { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: .76rem; color: #cfe0ff; }
.panel-h span { color: var(--faint); font-family: var(--font-mono); font-size: .66rem; }
.app-chart { width: 100%; height: auto; display: block; }
.app-chart .bar { fill: #1f4c8f; }
.app-chart .bar.hot { fill: var(--blue-2); }
.app-chart .trend { fill: none; stroke: var(--up); stroke-width: 2; }
.app-chart text { fill: var(--faint); font-family: var(--font-mono); font-size: 10px; }
.table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr .7fr; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); color: #d3dae5; }
.tr.th { border-top: 0; background: #0e141f; color: var(--faint); font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; }
.tr.low { background: rgba(245, 115, 107, .05); }
.qty { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); }
.qty i { display: block; flex: none; height: 6px; width: calc(var(--w) * .6); border-radius: 3px; background: var(--blue); }
.tr.low .qty i { background: var(--down); }
.badge { font-style: normal; font-family: var(--font-mono); font-size: .6rem; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; border: 1px solid #6b2a26; color: #ffd0cc; }
.badge.ok { border-color: #1d5a3f; color: #b7f0d4; }
.fin { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.flows { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 6px; }
.wk { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; padding-bottom: 16px; }
.wk i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; }
.wk i.in, .legend i.in { background: var(--up); }
.wk i.out, .legend i.out { background: #2a4f86; }
.wk span { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: .62rem; color: var(--faint); }
.legend { display: flex; gap: 10px; align-items: center; margin: 6px 0 0; font-size: .68rem; color: var(--faint); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: -4px; }
.due { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.due span em { display: block; font-style: normal; color: var(--faint); font-size: .68rem; }
.due b { font-family: var(--font-mono); color: #fff; font-weight: 500; }
.drill { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; align-items: start; }
.screen[data-screen="3"] .app-chart .bar { fill: #1a2f50; }
.screen[data-screen="3"] .app-chart .bar.hot { fill: var(--blue-2); }
.screen[data-screen="3"] .app-chart .trend { display: none; }
.inv { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.inv .no { font-family: var(--font-mono); color: var(--blue-2); font-size: .72rem; }
.inv b { font-family: var(--font-mono); font-weight: 500; color: #fff; }
.roles-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.role-sees { margin: 0; color: #c9d2df; font-size: .84rem; }
@media (max-width: 899px) {
  .demo-pin { min-height: 0; padding: 80px 0; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-steps li p { max-height: none; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { min-height: 470px; }
  .motion .screen { visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility .5s; }
  .motion .screen.live { visibility: visible; opacity: 1; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .fin, .drill, .roles-demo { grid-template-columns: 1fr; }
  .drill .mini { display: none; }
  .tr { grid-template-columns: 1.4fr 1.2fr .7fr; }
  .tr > span:nth-child(2) { display: none; }
}

/* Tick list (How it runs) */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 16px; align-items: start; margin: 0; padding: 20px 0; border-top: 1px solid var(--line-2); }
.ticks li:last-child { border-bottom: 1px solid var(--line-2); }
.ticks li i { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #0c2219; border: 1px solid #1d5a3f; color: var(--up); }
.ticks li i svg { width: 1.15rem; height: 1.15rem; }
.ticks b { display: block; margin-bottom: 3px; font-family: var(--font-display); font-stretch: 80%; font-size: clamp(1.2rem, 1.5vw, 1.55rem); color: #fff; }
.ticks span { color: var(--muted); }

/* Automation flow */
.pipe { position: relative; aspect-ratio: 1200 / 400; margin: clamp(28px, 4vw, 64px) 0 clamp(36px, 5vw, 80px); }
.pipe-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pipe-path { fill: none; stroke: #2a5aa0; stroke-width: 2.5; }
.pipe-dot { fill: var(--up); filter: drop-shadow(0 0 6px rgba(62, 207, 142, .9)); }
.pipe-dot.alt { fill: var(--blue-2); filter: drop-shadow(0 0 6px rgba(96, 165, 250, .9)); }
.pipe-node { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: clamp(150px, 15vw, 250px); padding: clamp(12px, 1.2vw, 18px); border: 1px solid var(--line-2); border-radius: 14px; background: #0c121c; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .95); }
.pipe-node[data-node="erp"] { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, .12), 0 24px 60px -24px rgba(0, 0, 0, .95); }
.pipe-node .n { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--blue-2); }
.pipe-node p { margin: 4px 0 2px; color: #fff; font-weight: 600; font-size: clamp(.88rem, 1vw, 1.05rem); line-height: 1.3; }
.pipe-node span { font-family: var(--font-mono); font-size: .7rem; color: var(--faint); }
.auto-grid { margin-top: clamp(16px, 3vw, 40px); }
@media (max-width: 760px) {
  .pipe { aspect-ratio: auto; display: grid; gap: 12px; }
  .pipe-svg { display: none; }
  .pipe-node { position: relative; left: auto; top: auto; translate: none; width: auto; }
  .pipe-node + .pipe-node::before { content: ''; position: absolute; left: 24px; top: -13px; width: 2px; height: 12px; background: #2a5aa0; }
}

/* About: timeline */
.timeline { position: relative; padding-left: 3.4rem; }
.tl-line { position: absolute; left: .7rem; top: .9rem; bottom: 1rem; width: 2px; background: var(--line-2); }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(var(--blue-2), var(--blue)); box-shadow: 0 0 14px rgba(96, 165, 250, .6); transform-origin: 50% 0; }
.tl-item { position: relative; padding: 0 0 clamp(40px, 5vw, 72px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: calc(-3.4rem + .7rem - 8px); top: .9rem; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line-2); transition: all .4s ease; }
.tl-item.on::before { border-color: var(--blue-2); background: var(--blue); box-shadow: 0 0 0 6px rgba(96, 165, 250, .16); }
.tl-year { display: block; font-family: var(--font-display); font-stretch: 66%; font-weight: 800; font-size: clamp(3rem, 6vw, 6rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px #2f5fa8; transition: color .5s ease; }
.tl-item.on .tl-year { color: #fff; -webkit-text-stroke-color: transparent; }
.tl-item h3 { margin: .5rem 0 .3rem; }
.tl-item p { color: var(--muted); max-width: 36em; margin: 0; }

/* Algo page: sample backtest report */
.report { border: 1px solid var(--line-2); border-radius: 16px; background: #0b1018; overflow: hidden; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 100px -60px rgba(59, 130, 246, .4); }
.rep-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .74rem; color: #cfe0ff; }
.rep-head em { font-style: normal; color: var(--faint); }
.rep-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.rep-stats div { padding: 14px 16px; border-right: 1px solid var(--line); }
.rep-stats div:last-child { border-right: 0; }
.rep-stats p { margin: 0; font-size: .72rem; color: var(--faint); }
.rep-stats b { font-family: var(--font-mono); font-size: clamp(1.2rem, 1.8vw, 1.8rem); font-weight: 600; color: #fff; }
.rep-stats .neg b { color: var(--down); }
.rep-chart { display: block; width: 100%; height: auto; padding: 10px 12px 4px; }
.rep-chart .eq-line { fill: none; stroke: var(--blue-2); stroke-width: 2.2; }
.rep-chart .eq-area { fill: url(#eqfill); }
.rep-chart .dd-area { fill: rgba(245, 115, 107, .35); }
.rep-chart .dd-base { stroke: var(--line-2); }
.rep-chart text { fill: var(--faint); font-family: var(--font-mono); font-size: 10px; }
.rep-note { margin: 0; padding: 0 16px 14px; font-size: .74rem; color: var(--faint); }
@media (max-width: 600px) { .rep-stats { grid-template-columns: 1fr 1fr; } .rep-stats div:nth-child(2) { border-right: 0; } .rep-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* FAQ and legal pages: a sticky side index */
.with-index { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.side-index { position: sticky; top: calc(var(--header-h) + 32px); }
.side-index p { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 12px; }
.side-index a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line-2); color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .3s ease, border-color .3s ease; }
.side-index a:hover { color: #fff; }
.side-index a.on { color: #fff; border-left-color: var(--blue-2); }
.with-index .prose { max-width: 50rem; }
@media (max-width: 860px) { .with-index { grid-template-columns: 1fr; } .side-index { position: static; display: none; } }

/* Side index extras */
.side-index a small { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--faint); margin-top: 2px; letter-spacing: .02em; }
.side-index a.on small { color: var(--blue-2); }
.faq-list { max-width: 54rem; }
.faq-list .faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
/* With animations on, GSAP centres the pipeline boxes itself (see pipelineFlow) */
.motion .pipe-node { translate: none; }

/* About: vision and mission, lit word by word as you scroll */
.vm-grid { display: grid; gap: clamp(48px, 7vw, 110px); margin-top: clamp(20px, 3vw, 40px); }
.vm-k { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-2); margin: 0 0 16px; }
.vm-big { font-family: var(--font-display); font-stretch: 72%; font-weight: 760; font-size: clamp(2.2rem, 5.2vw, 5.2rem); line-height: 1.02; color: #fff; margin: 0; max-width: 19em; letter-spacing: -.005em; }
.vm-item + .vm-item { padding-top: clamp(40px, 6vw, 90px); border-top: 1px solid var(--line); }

/* About: culture as an editorial list */
.values { border-top: 1px solid var(--line-2); margin-top: clamp(20px, 3vw, 40px); }
.value { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(20px, 3vw, 56px); align-items: baseline; padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line-2); transition: padding-left .4s ease; }
.value .n { font-family: var(--font-mono); font-size: .8rem; color: var(--blue-2); }
.value h3 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 3.2rem); line-height: 1; font-stretch: 70%; transition: color .3s ease; }
.value p { margin: 0; color: var(--muted); font-size: 1.02rem; }
@media (hover: hover) { .value:hover { padding-left: 14px; } .value:hover h3 { color: var(--blue-2); } }
@media (max-width: 760px) { .value { grid-template-columns: 3rem minmax(0, 1fr); } .value p { grid-column: 2; } }

/* FAQ console: search bar, topic tabs, question list and an answer screen */
.faq-console { border: 1px solid var(--line-2); border-radius: 18px; background: #0a0f17; box-shadow: 0 50px 120px -60px rgba(0, 0, 0, .95), 0 0 120px -70px rgba(59, 130, 246, .45); }
.fq-top { padding: clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--line); }
.fq-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #070b11; font-family: var(--font-mono); transition: border-color .25s ease, box-shadow .25s ease; }
.fq-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.fq-p { color: var(--blue-2); font-size: 1.1rem; }
.fq-bar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 500 clamp(.95rem, 1.2vw, 1.1rem) var(--font-mono); }
.fq-bar input::placeholder { color: #4d5c74; }
.fq-count { font-size: .72rem; color: var(--faint); white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; }
.fq-tabs { display: none; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fq-tabs button { font: 500 .8rem var(--font-mono); color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.fq-tabs button b { color: var(--faint); font-weight: 500; margin-left: 4px; }
.fq-tabs button:hover { color: #fff; }
.fq-tabs button.on { color: #fff; border-color: var(--blue); background: rgba(59, 130, 246, .14); }
.fq-tabs button.on b { color: var(--blue-2); }
.fq-pop { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: .86rem; color: var(--faint); }
.fq-pop a { color: #b9c6da; text-decoration: underline dotted; text-underline-offset: 3px; }
.fq-pop a:hover { color: var(--blue-2); }
.fq-list { padding: clamp(10px, 1.6vw, 20px) clamp(14px, 2vw, 24px); }
.fq-list .faq-group + .faq-group { margin-top: 28px; }
.fq-empty p { color: var(--muted); }
.fq-screen { display: none; }
mark { background: rgba(59, 130, 246, .3); color: #fff; border-radius: 3px; padding: 0 1px; }
/* the search bar works everywhere once the script is running; the tabs and screen need it too */
.faq-console.live .fq-tabs { display: flex; }
@media (min-width: 980px) {
  .faq-console.live .fq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: start; }
  .faq-console.live .fq-list { border-right: 1px solid var(--line); }
  .faq-console.live .faq-group h2 { font: 600 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--blue-2); margin: 0 0 8px; }
  .faq-console.live .faq-group .what { display: none; }
  .faq-console.live details.qa { border: 0; }
  .faq-console.live details.qa summary { padding: 11px 14px 11px 16px; border-radius: 9px; font-size: .98rem; font-weight: 500; color: #c9d2df; transition: background-color .2s ease, color .2s ease; }
  .faq-console.live details.qa summary::after { display: none; }
  .faq-console.live details.qa summary:hover { background: rgba(255, 255, 255, .03); color: #fff; }
  .faq-console.live details.qa summary.active { background: rgba(59, 130, 246, .13); color: #fff; box-shadow: inset 2px 0 0 var(--blue-2); }
  .faq-console.live details.qa .a { display: none; }
  .faq-console.live .fq-screen { display: block; position: sticky; top: calc(var(--header-h) + 24px); margin: clamp(14px, 2vw, 24px); border: 1px solid var(--line-2); border-radius: 14px; background: #070b11; min-height: 440px; }
}
.fq-screen-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); font: .72rem var(--font-mono); color: var(--faint); }
.fq-screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3445; }
.fq-screen-bar i:nth-child(1) { background: #ff6b61; } .fq-screen-bar i:nth-child(2) { background: #f2b84b; } .fq-screen-bar i:nth-child(3) { background: #3ecf8e; }
.fq-screen-bar span { margin-left: 8px; }
.fq-screen-body { padding: clamp(22px, 2.6vw, 36px); }
.fq-q { margin: 0 0 18px; font-family: var(--font-display); font-stretch: 78%; font-weight: 700; font-size: clamp(1.5rem, 2.1vw, 2.1rem); line-height: 1.12; color: #fff; }
.fq-q > span { font-family: var(--font-mono); color: var(--blue-2); font-size: .7em; margin-right: 6px; }
.fq-q b { font-weight: inherit; }
.fq-q b.typing::after { content: ''; display: inline-block; width: .45em; height: .9em; margin-left: 4px; vertical-align: -1px; background: var(--blue-2); animation: blink 1s steps(2, start) infinite; }
.fq-a { color: #c9d2df; font-size: 1.05rem; }
.fq-a.in { animation: fqIn .5s ease both; }
@keyframes fqIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fq-follow { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .fq-a.in { animation: none; } }

/* Contact: the form is on screen the moment the page opens */
.page-head.contact-head { min-height: 0; display: block; padding-top: calc(var(--header-h) + clamp(22px, 3.4vw, 52px)); padding-bottom: clamp(40px, 5vw, 72px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4.5vw, 80px); align-items: start; }
.page-head.contact-head h1 { font-size: clamp(2.4rem, min(4.8vw, 9vh), 5.2rem); max-width: 11em; }
.contact-head .lead { max-width: 32em; }
.contact-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: clamp(18px, 2.4vw, 32px); }
.contact-card { position: relative; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(10, 15, 23, .94); padding: clamp(18px, 2.2vw, 32px); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 120px -60px rgba(59, 130, 246, .5); }
.card-k { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-2); margin: 0 0 16px; }
.contact-card .form { gap: 14px; }
.contact-card .field textarea { min-height: 120px; }
.contact-more { padding-top: clamp(40px, 6vw, 90px); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  /* on phones the form comes straight after the heading, the quick contacts after the form */
  .contact-intro { display: contents; }
  .contact-card { order: 1; margin-top: 22px; }
  .contact-quick { order: 2; margin-top: 22px; }
}
@media (max-width: 520px) { .contact-quick { grid-template-columns: 1fr; } }

/* ERP page: AI agents, with an example agent run that plays step by step */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(20px, 3vw, 48px); align-items: start; margin-top: clamp(20px, 3vw, 40px); }
.ai-cards { display: grid; gap: 14px; }
.agent-log { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line-2); border-radius: 16px; background: #070b11; box-shadow: 0 50px 120px -60px rgba(0, 0, 0, .95), 0 0 110px -60px rgba(167, 139, 250, .45); overflow: hidden; }
.al-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); font: .74rem var(--font-mono); color: var(--faint); }
.al-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b61; }
.al-bar i:nth-child(2) { background: #f2b84b; } .al-bar i:nth-child(3) { background: #3ecf8e; }
.al-bar span { margin-left: 8px; color: #cfe0ff; }
.al-state { margin-left: auto; font-style: normal; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--faint); transition: color .3s ease, border-color .3s ease; }
.al-state[data-s="running"] { color: var(--blue-2); border-color: #23406e; }
.al-state[data-s="waiting for approval"] { color: #f2b84b; border-color: #6b5320; }
.al-state[data-s="done"] { color: var(--up); border-color: #1d5a3f; }
.al-steps { list-style: none; margin: 0; padding: clamp(14px, 2vw, 24px) clamp(16px, 2.2vw, 28px) 6px; counter-reset: al; }
.al-steps li { counter-increment: al; position: relative; padding: 0 0 18px 42px; transition: opacity .5s ease; }
.al-steps li::before { content: counter(al); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .72rem var(--font-mono); color: #cfe0ff; background: #0f1a2c; border: 1px solid #23406e; transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.al-steps li::after { content: ''; position: absolute; left: 12.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line-2); }
.al-steps li:last-child::after { display: none; }
.al-steps b { display: block; color: #fff; font-weight: 600; font-size: .98rem; }
.al-steps span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.al-ok { display: inline-block; margin-left: 8px; font: 600 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--up); border: 1px solid #1d5a3f; border-radius: 999px; padding: 2px 7px; }
.al-note { margin: 0; padding: 0 clamp(16px, 2.2vw, 28px) 16px; font-size: .78rem; color: var(--faint); }
/* with animation on, steps start dimmed and light up one by one */
.motion .al-steps li { opacity: .28; }
.motion .al-steps li.on { opacity: 1; }
.motion .al-steps li.on::before { background: rgba(59, 130, 246, .2); border-color: var(--blue-2); }
.motion .al-steps li.done::before { content: '\2713'; background: rgba(62, 207, 142, .16); border-color: var(--up); color: var(--up); }
.motion .al-steps li[data-kind="wait"].on:not(.done)::before { border-color: #f2b84b; color: #f2b84b; background: rgba(242, 184, 75, .14); animation: alPulse 1s ease-in-out infinite; }
.motion .al-ok { opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease; }
.motion .agent-log.approved .al-ok { opacity: 1; transform: none; }
@keyframes alPulse { 50% { box-shadow: 0 0 0 6px rgba(242, 184, 75, .15); } }
.ai-ticks { margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } .ai-ticks { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .motion .al-steps li[data-kind="wait"].on::before { animation: none; } }

/* About header: the V built from glowing blocks, on the right */
.about-head canvas.scene { opacity: .95; }
@media (min-width: 1000px) { .page-head.about-head .wrap > * { max-width: min(100%, 54vw); } .page-head.about-head h1 { font-size: clamp(3rem, min(6vw, 12vh), 7.8rem); max-width: min(100%, 54vw); } }
@media (max-width: 760px) { .about-head canvas.scene { opacity: .3; } }

/* About: vision and mission. Stacked on phones; one pinned scene on wide screens */
.vmx { position: relative; border-top: 1px solid var(--line); }
.vmx-stage { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; }
.vmx-bg, .vmx-glow, .vmx-rail { display: none; }
.vmx-panels { display: grid; gap: clamp(56px, 8vw, 120px); }
.vmx-panel .chap-tag { margin-bottom: 22px; }
.vmx-big { font-family: var(--font-display); font-stretch: 72%; font-weight: 760; font-size: clamp(2.3rem, 5.2vw, 5.6rem); line-height: 1.02; color: #fff; margin: 0; max-width: 16.5em; letter-spacing: -.01em; }
.vmx-pillars { list-style: none; padding: 0; margin: clamp(32px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); max-width: 72rem; }
.vmx-pillars li { padding-top: 18px; border-top: 1px solid var(--line-2); }
.vmx-pillars b { display: block; font-family: var(--font-display); font-stretch: 72%; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1; color: #fff; margin-bottom: 10px; }
.vmx-pillars span { color: var(--muted); }
@media (max-width: 760px) { .vmx-pillars { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .motion .vmx { height: 360vh; }
  .motion .vmx-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; }
  .motion .vmx-inner { position: relative; height: 100%; }
  .motion .vmx-panels { height: 100%; align-items: center; gap: 0; }
  .motion .vmx-panel { grid-area: 1 / 1; }
  .motion .vmx-panel + .vmx-panel { opacity: 0; }
  .motion .vmx-bg { display: block; position: absolute; inset: 0; pointer-events: none; }
  .vmx-word { position: absolute; left: 50%; top: 52%; font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: 31vw; line-height: .8; letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(96, 165, 250, .2); opacity: 0; }
  .motion .vmx-glow { display: block; position: absolute; left: 60%; top: 50%; width: 70vw; height: 70vw; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(59, 130, 246, .17) 0%, rgba(59, 130, 246, .05) 35%, rgba(59, 130, 246, 0) 62%); }
  .motion .vmx-rail { display: flex; position: absolute; left: var(--gutter); bottom: clamp(28px, 6vh, 56px); align-items: center; gap: 14px; font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: #4d5c74; }
  .vmx-step { transition: color .4s ease; }
  .vmx-step.on { color: #fff; }
  .vmx-bar { position: relative; display: block; width: 160px; height: 2px; background: var(--line-2); }
  .vmx-bar b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform-origin: 0 50%; transform: scaleX(0); }
}

/* About: our story. A list on phones; on wide screens a pinned scene with a rolling year */
.storyx { position: relative; border-top: 1px solid var(--line); }
.sx-stage { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.sx-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.sx-left h2 { margin: 16px 0 0; }
.sx-year, .sx-cap, .sx-rail { display: none; }
.sx-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.sx-item { border-left: 2px solid var(--line-2); padding-left: 22px; }
.sx-k { display: flex; gap: 12px; align-items: baseline; margin: 0 0 8px; font-family: var(--font-mono); font-size: .8rem; color: var(--blue-2); text-transform: uppercase; letter-spacing: .05em; }
.sx-k em { font-style: normal; color: var(--faint); }
.sx-item h3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); margin: 0 0 10px; }
.sx-item p:last-child { color: var(--muted); max-width: 34rem; margin: 0; }
@media (max-width: 899px) { .sx-inner { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .motion .storyx { height: var(--sx-h, 440vh); }
  .motion .sx-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: flex; align-items: center; }
  .motion .sx-inner { width: 100%; align-items: center; }
  .motion .sx-year { display: flex; margin-top: clamp(16px, 3vh, 36px); font-family: var(--font-display); font-stretch: 62%; font-weight: 800; font-size: clamp(7rem, min(15vw, 30vh), 17rem); line-height: 1; color: #fff; letter-spacing: -.02em; }
  .sx-col { display: block; height: 1em; overflow: hidden; }
  .sx-strip { display: block; will-change: transform; }
  .sx-strip i { display: block; height: 1em; font-style: normal; text-align: center; }
  .sx-col:nth-child(3), .sx-col:nth-child(4) { color: var(--blue-2); }
  .motion .sx-cap { display: block; margin: 12px 0 0; font: 500 .85rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-2); }
  .motion .sx-item { grid-area: 1 / 1; border-left: 0; padding-left: 0; }
  .motion .sx-item:not(:first-child) { opacity: 0; }
  .motion .sx-item h3 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: .98; margin-bottom: 18px; }
  .motion .sx-item p:last-child { font-size: 1.15rem; }
  .motion .sx-rail { display: block; position: absolute; left: 0; right: 0; bottom: clamp(30px, 6vh, 60px); }
  .sx-rail-in { position: relative; height: 44px; }
  .sx-line { position: absolute; left: var(--gutter); right: var(--gutter); top: 8px; height: 2px; background: var(--line-2); }
  .sx-line b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform-origin: 0 50%; transform: scaleX(0); }
  .sx-stop { position: absolute; top: 0; width: 0; left: calc(var(--gutter) + (100% - 2 * var(--gutter)) * var(--at)); }
  .sx-stop i { position: absolute; left: -7px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #0b1018; border: 2px solid #23406e; transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease; }
  .sx-stop b { position: absolute; top: 26px; left: 0; transform: translateX(-50%); white-space: nowrap; font: 500 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: #4d5c74; transition: color .4s ease; }
  .sx-stop:first-of-type b { transform: none; }
  .sx-stop:last-of-type b { transform: translateX(-100%); }
  .sx-stop.on i { background: var(--blue-2); border-color: var(--blue-2); box-shadow: 0 0 0 5px rgba(96, 165, 250, .18); }
  .sx-stop.on b { color: #fff; }
}

/* Careers: full job descriptions in two columns */
.jd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(20px, 3vw, 48px); margin-top: 6px; }
.jd-k { margin: 6px 0 8px !important; font: 500 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-2) !important; }
@media (max-width: 760px) { .jd { grid-template-columns: 1fr; } }
