/* Layout concept: a running system drawn in light. Every page opens on a dark "console" band with a live canvas,
   then the work is laid out on blueprint paper: asymmetric 12-column grid, mono annotations like an engineer's margin notes. */
:root {
  --paper: #F4F3FA;      /* page ground, a lavender-tinted white */
  --sheet: #FFFFFF;      /* raised surfaces */
  --ink: #15122F;        /* text */
  --ink-2: #4B4766;      /* secondary text */
  --ink-3: #77729A;      /* captions */
  --rule: #DDD9EE;       /* hairlines */
  --violet: #6E2FE0;     /* brand violet, from the mark */
  --violet-2: #9A5CF7;   /* lighter violet */
  --signal: #0E8FB0;     /* data / pipeline cyan, from the capabilities deck */
  --threat: #D63C63;     /* blocked traffic */
  --night: #0C0A1D;      /* console band, same in both themes */
  --night-2: #17143A;
  --night-ink: #ECEAFF;
  --night-ink-2: #ABA6D6;
  --night-rule: #2D2862;
  --grid-dot: rgba(60, 50, 140, 0.10);
  --shadow: 0 1px 0 rgba(21, 18, 47, 0.04), 0 12px 32px -18px rgba(21, 18, 47, 0.25);

  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F0D22; --sheet: #17143A; --ink: #ECEAFF; --ink-2: #B5B0DD; --ink-3: #8C87B8; --rule: #2A2559;
    --violet: #A877FF; --violet-2: #C59BFF; --signal: #3CC6E6; --threat: #FF6F92;
    --grid-dot: rgba(170, 150, 255, 0.07); --shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F0D22; --sheet: #17143A; --ink: #ECEAFF; --ink-2: #B5B0DD; --ink-3: #8C87B8; --rule: #2A2559;
  --violet: #A877FF; --violet-2: #C59BFF; --signal: #3CC6E6; --threat: #FF6F92;
  --grid-dot: rgba(170, 150, 255, 0.07); --shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.6); color-scheme: dark;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } html.anim .up { transform: none !important; transition: opacity .9s ease !important } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.62 var(--f-body);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--night) }
img { max-width: 100%; height: auto }
a { color: var(--violet); text-decoration: none }
a:hover { text-decoration: underline; text-underline-offset: 3px }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 4px }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; margin: 0 }
p { margin: 0 }
button { font: inherit; color: inherit }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r) }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase }
.note { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); display: flex; gap: 10px; align-items: center }
.note::before { content: ""; width: 18px; height: 1px; background: currentColor }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 62ch }
.h-xl { font-size: clamp(42px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.03em }
.h-l { font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.025em }
.h-m { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15 }
.h-s { font-size: 21px; line-height: 1.25 }
.tnum { font-variant-numeric: tabular-nums }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(12, 10, 29, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--night-rule); color: var(--night-ink) }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px }
.brand { display: flex; align-items: center; gap: 12px; color: var(--night-ink) }
.brand:hover { text-decoration: none }
.brand img.m { width: 26px; height: auto }
.brand img.w { width: 104px; height: auto }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px }
.nav a { color: var(--night-ink-2); position: relative; padding: 6px 0 }
.nav a:hover { color: var(--night-ink); text-decoration: none }
.nav a[aria-current="page"] { color: var(--night-ink) }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--violet-2) }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease }
.btn:hover { text-decoration: none; transform: translateY(-1px) }
.btn-hot { background: #8B4BF5; color: #fff }
.btn-hot:hover { background: #7A38EE; color: #fff }
.btn-line { border-color: var(--night-rule); color: var(--night-ink); background: transparent }
.btn-line:hover { border-color: var(--violet-2); color: var(--night-ink) }
.btn-ink { background: var(--ink); color: var(--paper) }
.btn-ink:hover { color: var(--paper) }
.btn .arr { font-family: var(--f-mono) }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--night-rule); border-radius: 8px; padding: 8px 12px; color: var(--night-ink); cursor: pointer }
@media (max-width: 960px) {
  .menu-btn { display: inline-block }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--night); border-bottom: 1px solid var(--night-rule); padding: 8px var(--gut-r) 16px var(--gut) }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--night-rule) }
  .nav.open { display: flex }
  .top .btn-hot { display: none }
}

/* ---------- console band (dark hero) ---------- */
.console { position: relative; background: var(--night); color: var(--night-ink); overflow: hidden; isolation: isolate }
.console canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1 }
.console::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,10,29,0.92) 0%, rgba(12,10,29,0.55) 48%, rgba(12,10,29,0) 75%); pointer-events: none }
.console .wrap { padding-block: 96px 88px }
.console .note { color: #C59BFF }
.console .lede { color: var(--night-ink-2) }
.console h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px #C59BFF }
.console-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; font-family: var(--f-mono); font-size: 12.5px; color: var(--night-ink-2) }
.console-legend span { display: inline-flex; align-items: center; gap: 8px }
.console-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block }
.console-legend b { color: var(--night-ink); font-weight: 500 }
.page-hero .wrap { padding-block: 84px 72px }

/* ---------- sections ---------- */
.sec { padding-block: 112px }
.sec-tight { padding-block: 72px }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 24px; margin-bottom: 56px; align-items: end }
.sec-head > :first-child { grid-column: 1 / span 7; display: grid; gap: 18px; min-width: 0 }
.sec-head > :last-child:not(:first-child) { grid-column: 9 / span 4; color: var(--ink-2); min-width: 0 }
@media (max-width: 860px) { .sec-head > :first-child, .sec-head > :last-child:not(:first-child) { grid-column: 1 / -1 } }
.band { background: var(--sheet); border-block: 1px solid var(--rule) }
.night { background: var(--night); color: var(--night-ink) }
.night .note { color: #C59BFF }
.night .lede, .night .muted, .night .sec-head > :last-child:not(:first-child) { color: var(--night-ink-2) }

/* ---------- proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule) }
.proof > div { padding: 26px 22px 6px 0; border-right: 1px solid var(--rule); min-width: 0 }
.proof > div:last-child { border-right: 0 }
.proof > div + div { padding-left: 22px }
.proof b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1; color: var(--ink) }
.proof span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.45 }
@media (max-width: 900px) { .proof { grid-template-columns: repeat(2, 1fr) } .proof > div { border-right: 0; border-bottom: 1px solid var(--rule); padding: 22px 12px 18px 0 !important } }

/* ---------- navigator ---------- */
.navi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: var(--sheet); box-shadow: var(--shadow) }
.navi-list { border-right: 1px solid var(--rule); padding: 10px; display: grid; align-content: start; gap: 2px; max-height: 640px; overflow: auto }
.navi-list button { text-align: left; background: none; border: 0; padding: 13px 14px; border-radius: 10px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-size: 16px; color: var(--ink-2) }
.navi-list button:hover { background: var(--paper); color: var(--ink) }
.navi-list button[aria-pressed="true"] { background: var(--ink); color: var(--paper) }
.navi-list button .k { font-family: var(--f-mono); font-size: 11.5px; opacity: .7 }
.navi-out { padding: 36px 40px; display: grid; gap: 26px; align-content: start; min-width: 0 }
.navi-out h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12 }
.route { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.route .chip { padding: 7px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--rule); font-size: 14px; font-weight: 500 }
.route .to { font-family: var(--f-mono); color: var(--ink-3); font-size: 13px }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 12px 20px; font-size: 16px }
.kv dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px }
.kv dd { margin: 0; color: var(--ink) }
@media (max-width: 860px) {
  .navi { grid-template-columns: 1fr }
  .navi-list { border-right: 0; border-bottom: 1px solid var(--rule); grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; max-height: none }
  .navi-list button { grid-template-columns: 1fr }
  .navi-list button .k { display: none }
  .navi-out { padding: 26px 22px }
  .kv { grid-template-columns: 1fr; gap: 4px }
  .kv dd { margin-bottom: 10px }
}

/* ---------- practice rail ---------- */
.practices { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border-top: 1px solid var(--rule) }
.prac { grid-column: span 4; padding: 32px 28px 36px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 14px; align-content: start; color: var(--ink); position: relative; min-width: 0 }
.prac:hover { text-decoration: none }
.prac:hover h3 { color: var(--violet) }
.prac + .prac { padding-left: 28px; border-left: 1px solid var(--rule) }
.prac:nth-child(3n+1) { padding-left: 0; border-left: 0 }
.prac .idx { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em }
.prac p { color: var(--ink-2); font-size: 16px }
.prac .tags { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3) }
@media (max-width: 900px) { .prac { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important } }

/* ---------- atlas ---------- */
.atlas-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px }
.atlas-bar input { flex: 1 1 280px; min-width: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); font: inherit; font-size: 16px }
.atlas-bar input:focus { outline: 2px solid var(--violet-2); outline-offset: 1px }
.fchip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); cursor: pointer; font-size: 14px; color: var(--ink-2) }
.fchip[aria-pressed="true"] { background: var(--violet); color: #fff; border-color: var(--violet) }
.atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden }
.atlas .cap { background: var(--sheet); padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; min-width: 0 }
.atlas .cap .p { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet) }
.atlas .cap b { font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.25 }
.atlas .cap span { color: var(--ink-2); font-size: 15px; line-height: 1.5 }
.atlas .cap.ask { background: var(--ink); color: var(--paper) }
.atlas .cap.ask span { color: var(--paper); opacity: .78 }
.atlas .cap.ask .p { color: var(--violet-2) }
.atlas-count { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); margin: 0 0 14px }

/* ---------- replay ---------- */
.replay { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start }
.replay-stage { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 18px; padding: 22px; min-width: 0 }
.replay-stage canvas { width: 100%; height: 300px; display: block; border-radius: 10px; background: #0A0919 }
.replay-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px }
.replay-ctl .btn { padding: 10px 16px }
.replay-ctl .clock { margin-left: auto; font-family: var(--f-mono); font-size: 13px; color: var(--night-ink-2) }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.steps li { border: 1px solid var(--night-rule); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; transition: background .25s ease, border-color .25s ease; color: var(--night-ink-2) }
.steps li .n { font-family: var(--f-mono); font-size: 12px; padding-top: 3px }
.steps li b { color: var(--night-ink); font-weight: 600; font-size: 15.5px }
.steps li .out { grid-column: 2; font-family: var(--f-mono); font-size: 12px; color: #6FD8F0; letter-spacing: .02em }
.steps li[data-on="true"] { background: rgba(139, 75, 245, 0.16); border-color: #8B4BF5 }
.steps li[data-on="true"] .n { color: #C59BFF }
@media (max-width: 960px) { .replay { grid-template-columns: 1fr } }

/* ---------- before / after ---------- */
.ba { display: grid; gap: 18px }
.ba-row { display: grid; grid-template-columns: 120px 1fr 90px; gap: 16px; align-items: center; font-size: 15px }
.ba-row .bar { height: 14px; border-radius: 4px; background: var(--rule); position: relative; overflow: hidden }
.ba-row .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ink-3) }
.ba-row.after .bar i { background: var(--violet) }
.ba-row .v { font-family: var(--f-mono); font-size: 13px; text-align: right }
.ba-row .l { color: var(--ink-2) }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: var(--sheet) }
.calc-in { padding: 32px; display: grid; gap: 26px; align-content: start }
.calc-in label { display: grid; gap: 10px; font-weight: 500 }
.calc-in label span.row { display: flex; justify-content: space-between; gap: 12px }
.calc-in output { font-family: var(--f-mono); font-size: 14px; color: var(--violet) }
.calc-in input[type=range] { width: 100%; accent-color: var(--violet) }
.calc-out { background: var(--night); color: var(--night-ink); padding: 32px; display: grid; gap: 18px; align-content: start }
.calc-out .big { font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em }
.calc-out .muted { color: var(--night-ink-2); font-size: 15px }
.calc-out ul { margin: 0; padding-left: 18px; color: var(--night-ink-2); font-size: 15px; display: grid; gap: 6px }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr } }

/* ---------- phases ---------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: ph; position: relative }
.phase { padding: 28px 24px 30px 0; border-top: 2px solid var(--rule); display: grid; gap: 10px; align-content: start; position: relative; min-width: 0 }
.phase + .phase { padding-left: 24px }
.phase::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--violet) }
.phase + .phase::before { left: 24px }
.phase:last-child { border-top-color: var(--violet) }
.phase:last-child::before { background: var(--violet) }
.phase .mono { color: var(--violet) }
.phase p { color: var(--ink-2); font-size: 16px }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr 1fr; row-gap: 28px } .phase:nth-child(odd) { padding-left: 0 } .phase:nth-child(odd)::before { left: 0 } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr } .phase { padding-left: 0 !important } .phase::before { left: 0 !important } }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px }
.model { border: 1px solid var(--rule); border-radius: 16px; padding: 26px; background: var(--sheet); display: grid; gap: 10px; align-content: start }
.model p { color: var(--ink-2); font-size: 16px }
@media (max-width: 860px) { .models { grid-template-columns: 1fr } }

/* ---------- manifesto ---------- */
.manifesto { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px }
.manifesto .big { grid-column: 1 / span 7; font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -0.02em }
.manifesto .big span { color: #C59BFF }
.manifesto .side { grid-column: 9 / span 4; display: grid; gap: 22px; align-content: end }
.facts { display: grid; gap: 0; border-top: 1px solid var(--night-rule) }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--night-rule); font-size: 15.5px }
.facts dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: #C59BFF; padding-top: 3px }
.facts dd { margin: 0; color: var(--night-ink-2) }
@media (max-width: 900px) { .manifesto .big, .manifesto .side { grid-column: 1 / -1 } }

/* ---------- timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--rule) }
.timeline li { list-style: none; padding: 24px 22px 0 0; display: grid; gap: 8px; align-content: start; position: relative; min-width: 0 }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--violet) }
.timeline li .y { font-family: var(--f-display); font-size: 32px; letter-spacing: -0.02em }
.timeline li p { color: var(--ink-2); font-size: 15.5px }
.timeline { padding: 0; margin: 0 }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--rule); padding-left: 22px } .timeline li { padding: 0 0 26px } .timeline li::before { left: -27px; top: 12px } }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px }
.person { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-content: start }
.person .av { grid-row: span 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 500; font-size: 19px; color: #fff; background: linear-gradient(140deg, #8B4BF5, #3C388B) }
.person b { font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.2 }
.person .t { font-size: 14px; color: var(--violet); font-weight: 500 }
.person p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5 }
.person.lead { grid-column: span 2; grid-template-columns: 84px 1fr }
.person.lead .av { width: 84px; height: 84px; font-size: 28px }
@media (max-width: 640px) { .person.lead { grid-column: auto; grid-template-columns: 56px 1fr } .person.lead .av { width: 56px; height: 56px; font-size: 19px } }

/* ---------- case files ---------- */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-block: 56px; border-top: 1px solid var(--rule) }
.case .meta { display: grid; gap: 16px; align-content: start }
.case .meta dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 6px 0 0; font-size: 15px }
.case .meta dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px }
.case .meta dd { margin: 0 }
.case .body { display: grid; gap: 22px; min-width: 0 }
.case .body h4 { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet) }
.case .body ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px }
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px }
.outcomes div { border: 1px solid var(--rule); border-radius: 12px; padding: 16px; background: var(--sheet) }
.outcomes b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; line-height: 1.05 }
.outcomes span { font-size: 14px; color: var(--ink-2) }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; gap: 26px } }

/* ---------- insights ---------- */
.posts { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px }
.post { grid-column: span 6; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; display: grid; gap: 14px; align-content: start; color: var(--ink); min-width: 0 }
.post:hover { text-decoration: none; border-color: var(--violet) }
.post:hover h3 { color: var(--violet) }
.post.feat { grid-column: span 12; background: var(--night); color: var(--night-ink); border-color: var(--night-rule); padding: 44px }
.post.feat p { color: var(--night-ink-2) }
.post.feat .mono { color: #C59BFF }
.post.feat:hover h3 { color: #C59BFF }
.post .mono { color: var(--ink-3) }
.post p { color: var(--ink-2); font-size: 16px }
.post .go { font-weight: 600; color: var(--violet); font-size: 15px }
.post.feat .go { color: #C59BFF }
@media (max-width: 860px) { .post { grid-column: 1 / -1 } .post.feat { padding: 28px } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start }
.form { background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 32px; display: grid; gap: 20px; box-shadow: var(--shadow) }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500 }
.form input, .form textarea, .form select { padding: 13px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; width: 100% }
.form textarea { min-height: 140px; resize: vertical }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px }
.form legend { font-size: 15px; font-weight: 500; margin-bottom: 10px }
.form .chips { display: flex; flex-wrap: wrap; gap: 8px }
.form .chips label { display: inline-flex; flex-direction: row; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 400; font-size: 14px; cursor: pointer; background: var(--paper) }
.form .chips input { width: auto; accent-color: var(--violet) }
.form .chips label:has(input:checked) { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--sheet)) }
.form .ok { padding: 16px; border-radius: 12px; background: color-mix(in srgb, var(--signal) 12%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--signal) 40%, var(--rule)); font-size: 15px }
.form .err { color: var(--threat); font-size: 14px }
.addr { display: grid; gap: 26px }
.addr div { display: grid; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid var(--rule) }
.addr p { color: var(--ink-2) }
.copy { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap }
.copy code { font-family: var(--f-mono); font-size: 15px; color: var(--ink); user-select: all }
.copy button { border: 1px solid var(--rule); background: var(--sheet); border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr } .form .two { grid-template-columns: 1fr } .form { padding: 22px } }

/* ---------- CTA + footer ---------- */
.cta { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; isolation: isolate }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7 }
.cta .wrap { padding-block: 104px; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end }
.cta h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1; letter-spacing: -0.03em }
.cta p { color: var(--night-ink-2); margin-top: 18px; max-width: 56ch }
.cta .acts { display: grid; gap: 12px; justify-items: start }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr } }
.foot { background: var(--night); color: var(--night-ink-2); border-top: 1px solid var(--night-rule); font-size: 15px }
.foot .wrap { padding-block: 56px 32px; display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px }
.foot h4 { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-ink); margin-bottom: 14px }
.foot a { color: var(--night-ink-2); display: block; padding: 3px 0 }
.foot a:hover { color: var(--night-ink) }
.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--night-rule); font-size: 13.5px }
.foot .tag { margin-top: 18px; max-width: 34ch }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: 1fr 1fr } .foot .wrap > :first-child { grid-column: 1 / -1 } }

/* ---------- practice detail (services page) ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-block: 80px; border-top: 1px solid var(--rule); scroll-margin-top: 90px }
.pd .lhs { display: grid; gap: 16px; align-content: start; position: sticky; top: 100px }
.pd .lhs .mono { color: var(--violet) }
.pd .lhs p { color: var(--ink-2) }
.pd .lhs .plat { display: flex; flex-wrap: wrap; gap: 6px }
.pd .lhs .plat span { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 6px; font-size: 13.5px; background: var(--sheet) }
.pd .rhs { display: grid; gap: 22px; min-width: 0 }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.tri > div, .duo > div { border: 1px solid var(--rule); border-radius: 14px; padding: 22px; background: var(--sheet); display: grid; gap: 10px; align-content: start; min-width: 0 }
.tri .mono, .duo .mono { color: var(--violet) }
.tri ul, .duo ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; display: grid; gap: 6px }
.tri p, .duo p { color: var(--ink-2); font-size: 15.5px }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.pipe { display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--sheet) }
.pipe div { flex: 1 1 140px; padding: 16px 18px; border-right: 1px solid var(--rule); display: grid; gap: 4px; position: relative; min-width: 0 }
.pipe div:last-child { border-right: 0; background: var(--ink); color: var(--paper) }
.pipe div:last-child span { color: var(--paper); opacity: .7 }
.pipe b { font-size: 15.5px; font-weight: 600 }
.pipe span { font-size: 14px; color: var(--ink-2) }
.pipe div::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--violet), transparent); background-size: 200% 100%; animation: flow 2.4s linear infinite; animation-delay: calc(var(--i, 0) * .35s); opacity: .8 }
@keyframes flow { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.stats6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.stats6 div { border: 1px solid var(--rule); border-radius: 14px; padding: 20px; background: var(--sheet); display: grid; gap: 6px; align-content: start }
.stats6 b { font-family: var(--f-display); font-weight: 500; font-size: 34px; letter-spacing: -0.02em; line-height: 1; color: var(--violet) }
.stats6 strong { font-weight: 600; font-size: 15.5px }
.stats6 span { color: var(--ink-2); font-size: 14.5px }
.outcome-line { padding: 16px 18px; border-left: 3px solid var(--violet); background: var(--sheet); border-radius: 0 10px 10px 0; color: var(--ink) }
@media (max-width: 960px) { .pd { grid-template-columns: 1fr; gap: 26px; padding-block: 56px } .pd .lhs { position: static } .tri, .stats6 { grid-template-columns: 1fr } .duo { grid-template-columns: 1fr } }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px }
.toc a { padding: 9px 14px; border: 1px solid var(--night-rule); border-radius: 999px; color: var(--night-ink-2); font-size: 14px }
.toc a:hover { color: var(--night-ink); border-color: #C59BFF; text-decoration: none }

/* ---------- small fixes ---------- */
.steps li { cursor: pointer }
.steps li > span:not(.n):not(.out) { grid-column: 2; font-size: 14.5px }
.skip:focus { left: 16px !important; top: 12px; z-index: 100; background: var(--sheet); color: var(--ink); padding: 10px 14px; border-radius: 8px }
.timeline li b { font-weight: 600 }

/* ---------- follow-the-sun clocks ---------- */
.sun { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-family: var(--f-mono); font-size: 12.5px; color: var(--night-ink-2) }
.sun span { display: inline-flex; align-items: center; gap: 7px }
.sun b { color: var(--night-ink); font-weight: 500 }
.sun em { font-style: normal; opacity: .75 }
.sun i { width: 7px; height: 7px; border-radius: 50%; background: #6B66A0 }
.sun [data-on="true"] i { background: #3CE6A0; box-shadow: 0 0 0 3px rgba(60, 230, 160, 0.18) }
.foot .legal .sun { margin-top: 0 }
.console { cursor: crosshair }
.console a, .console button { cursor: pointer }

/* ---------- articles ---------- */
.article { max-width: 760px; margin: 0 auto; padding-block: 72px 96px; display: grid; gap: 22px; font-size: 18px; line-height: 1.7 }
.article h2 { font-size: 28px; line-height: 1.2; margin-top: 18px }
.article h3 { font-size: 21px; margin-top: 6px }
.article p, .article li { color: var(--ink-2) }
.article ul, .article ol { margin: 0; padding-left: 22px; display: grid; gap: 8px }
.article strong { color: var(--ink) }
.article .pull { font-family: var(--f-display); font-size: 26px; line-height: 1.3; color: var(--ink); border-left: 3px solid var(--violet); padding: 4px 0 4px 22px; margin: 10px 0 }
.article table { border-collapse: collapse; width: 100%; font-size: 16px }
.article .tw { overflow-x: auto }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top }
.article th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500 }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-mono); font-size: 12.5px; color: var(--night-ink-2); margin-top: 22px }
.article-end { border-top: 1px solid var(--rule); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center }

/* ---------- headline KPIs in hero ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin-top: 46px; border-top: 1px solid var(--night-rule) }
.kpis div { padding: 18px 18px 0 0; display: grid; gap: 6px }
.kpis b { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1; color: var(--night-ink) }
.kpis span { font-size: 14.5px; color: var(--night-ink-2) }

/* ---------- 3-up grid of capability cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.grid3 > div { border: 1px solid var(--rule); border-radius: 14px; padding: 24px; background: var(--sheet); display: grid; gap: 10px; align-content: start; min-width: 0 }
.grid3 .mono { color: var(--violet) }
.grid3 p { color: var(--ink-2); font-size: 15.5px }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr 1fr } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr } }
.band .grid3 > div { background: var(--paper) }
.tbl { border-collapse: collapse; width: 100%; font-size: 15.5px; margin-top: 12px }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule) }
.tbl th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500 }
.tw { overflow-x: auto }
.method { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2) }
.method b { color: var(--ink) }
.model.dark { background: var(--night-2); border-color: var(--night-rule); color: var(--night-ink) }
.model.dark p { color: var(--night-ink-2) }
.model.dark:hover { text-decoration: none; border-color: #8B4BF5 }

/* ---------- AI for SIEM demo ---------- */
.siem { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; align-items: start }
.siem-q { display: grid; gap: 8px }
.siem-q button { text-align: left; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--rule); background: var(--sheet); cursor: pointer; font-size: 15.5px; color: var(--ink-2); line-height: 1.45 }
.siem-q button:hover { border-color: var(--violet); color: var(--ink) }
.siem-q button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink) }
.siem-run { background: var(--night); color: var(--night-ink); border-radius: 18px; padding: 26px; display: grid; gap: 18px; min-width: 0; border: 1px solid var(--night-rule) }
.siem-ask { display: grid; gap: 6px }
.siem-ask .mono { color: #C59BFF }
.siem-ask p { font-family: var(--f-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.3 }
.siem-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.siem-steps li { border: 1px solid var(--night-rule); border-radius: 10px; padding: 12px; display: grid; gap: 4px; align-content: start; font-size: 13px; color: var(--night-ink-2); transition: border-color .3s, background .3s; position: relative }
.siem-steps li b { color: var(--night-ink); font-size: 14px; font-weight: 600 }
.siem-steps .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--night-rule) }
.siem-steps li[data-on="true"] { border-color: #8B4BF5; background: rgba(139, 75, 245, 0.14) }
.siem-steps li[data-on="true"] .dot { background: #3CE6A0 }
.siem-code { margin: 0; background: #07061A; border: 1px solid var(--night-rule); border-radius: 10px; padding: 16px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.6; color: #CFE9FF; overflow-x: auto; white-space: pre; min-height: 120px }
.siem-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--f-mono); font-size: 12.5px; color: #8FE8C2 }
.siem-checks li::before { content: "✓ " }
.siem-answer { font-size: 16px; color: var(--night-ink); display: grid; gap: 12px }
.siem-answer table { border-collapse: collapse; width: 100%; font-size: 14px }
.siem-answer th, .siem-answer td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--night-rule) }
.siem-answer th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-2); font-weight: 500 }
.siem-foot { font-family: var(--f-mono); font-size: 12px; color: var(--night-ink-2) }
@media (max-width: 960px) { .siem { grid-template-columns: 1fr } .siem-steps { grid-template-columns: 1fr 1fr } }

/* ---------- flagship band (home) ---------- */
.flag { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: center }
.flag .term { background: #07061A; border: 1px solid var(--night-rule); border-radius: 16px; padding: 20px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7; color: #CFE9FF; min-width: 0; overflow-x: auto }
.flag .term .q { color: #C59BFF }
.flag .term .ok { color: #8FE8C2 }
.flag .term .dim { color: var(--night-ink-2) }
@media (max-width: 900px) { .flag { grid-template-columns: 1fr } }
.nav a.hot { color: #D8C2FF }
.nav a.hot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3CE6A0; margin-right: 7px; vertical-align: 2px }
.practices .prac.wide { grid-column: span 4 }
.manifesto > *, .facts dd { min-width: 0 }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 4px } }

/* ---------- system rail: the logo assembles as you scroll (home, wide screens) ---------- */
.rail { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 30; width: 96px; display: grid; gap: 8px; justify-items: center; padding: 14px 10px 12px; border-radius: 18px; background: color-mix(in srgb, var(--night) 88%, transparent); border: 1px solid var(--night-rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); transition: opacity .4s }
.rail svg { width: 68px; height: 72px; overflow: visible }
.rail .e { stroke: #2D2862; stroke-width: .07; stroke-linecap: round; fill: none; transition: stroke .6s ease }
.rail .e.on { stroke: url(#rail-grad) }
.rail .e.low.on { stroke: rgba(200, 190, 255, .55) }
.rail .n { fill: #0C0A1D; stroke: #2D2862; stroke-width: .055; transition: stroke .5s ease, r .4s ease }
.rail .n.on { stroke: #B98BFF }
.rail .n.now { stroke: #3CE6A0 }
.rail .halo { fill: none; stroke: #3CE6A0; stroke-width: .03; opacity: 0 }
.rail .halo.go { animation: halo 1.2s ease-out }
@keyframes halo { from { opacity: .9; r: .1 } to { opacity: 0; r: .42 } }
.rail.done { border-color: #8B4BF5; box-shadow: 0 0 0 1px #8B4BF5, 0 0 40px -6px rgba(139, 75, 245, .7) }
.rail-label { margin: 0; display: grid; gap: 2px; text-align: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--night-ink-2); line-height: 1.3 }
.rail-label #rail-name { color: var(--night-ink); font-size: 11px }
@media (max-width: 1499px) { .rail { display: none } }

/* ---------- readiness check ---------- */
.ready { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: var(--sheet); box-shadow: var(--shadow); min-height: 460px }
.band .ready { background: var(--paper) }
.rq { padding: 34px 36px; display: grid; gap: 20px; align-content: start; min-width: 0 }
.rq .prog { display: flex; gap: 6px }
.rq .prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--rule); transition: background .3s }
.rq .prog i.on { background: var(--violet) }
.rq .area { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet) }
.rq h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2 }
.rq .opts { display: grid; gap: 8px }
.rq .opts button { text-align: left; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--rule); background: var(--sheet); cursor: pointer; font-size: 16px; color: var(--ink); display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; transition: border-color .15s, transform .15s }
.band .rq .opts button { background: var(--sheet) }
.rq .opts button:hover { border-color: var(--violet); transform: translateX(3px) }
.rq .opts button[aria-pressed="true"] { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--sheet)) }
.rq .opts button span:first-child { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3) }
.rq .nav2 { display: flex; gap: 10px; align-items: center; justify-content: space-between }
.rq .linkbtn { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 6px 0; font-size: 15px }
.rq .linkbtn:hover { color: var(--violet) }
.rv { background: var(--night); color: var(--night-ink); padding: 30px; display: grid; gap: 14px; align-content: start; justify-items: center; min-width: 0 }
.rv svg { width: 100%; max-width: 340px; height: auto; overflow: visible }
.rv .grid { fill: none; stroke: #2D2862; stroke-width: 1 }
.rv .axis { stroke: #2D2862; stroke-width: 1 }
.rv .lbl { fill: var(--night-ink-2); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em }
.rv .shape { fill: rgba(139, 75, 245, .28); stroke: #B98BFF; stroke-width: 2; stroke-linejoin: round }
.rv .bench { fill: none; stroke: #3CC6E6; stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .7 }
.rv .pt { fill: #B98BFF }
.rv .score { font-family: var(--f-display); font-size: 46px; line-height: 1; letter-spacing: -.02em }
.rv .band-l { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #3CE6A0 }
.rv .legend2 { display: flex; gap: 16px; font-family: var(--f-mono); font-size: 11px; color: var(--night-ink-2) }
.rv .legend2 i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px }
.recs { display: grid; gap: 10px }
.recs a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); color: var(--ink) }
.recs a:hover { text-decoration: none; border-color: var(--violet) }
.recs a b { font-family: var(--f-display); font-weight: 500; font-size: 18px }
.recs a span { color: var(--ink-2); font-size: 15px }
.recs .mono { color: var(--violet) }
.rsend { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--rule) }
.rsend .row2 { display: flex; flex-wrap: wrap; gap: 8px }
.rsend input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px }
.rsend .msg { font-size: 14px; color: var(--ink-2) }
@media (max-width: 900px) { .ready { grid-template-columns: 1fr } .rv { order: -1 } .rq { padding: 24px 20px } }

/* ---------- phones and tablets ---------- */
@media (max-width: 759px) {
  .console:not(.page-hero) .wrap { padding-top: 176px }
  .console.page-hero .wrap { padding-top: 132px }
  .console::after { background: linear-gradient(180deg, rgba(12,10,29,0) 0px, rgba(12,10,29,0.35) 150px, rgba(12,10,29,0.82) 260px, rgba(12,10,29,0.9) 100%) }
}
@media (max-width: 1499px) {
  .rail { display: grid; top: auto; bottom: max(14px, env(safe-area-inset-bottom, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); transform: translateY(12px); width: auto; grid-template-columns: auto auto; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s }
  .rail.show { opacity: 1; transform: none }
  .rail svg { width: 34px; height: 36px }
  .rail-label { text-align: left; font-size: 10px }
  .rail-label #rail-name { font-size: 11px }
}
/* content arrives as it scrolls into view (only when motion is allowed and JS is running) */
html.anim .up { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s) }
html.anim .up.in { opacity: 1; transform: none }
@media (max-width: 759px) { .rail { padding: 6px 12px 6px 6px; gap: 6px } .rail svg { width: 28px; height: 30px } .rail-label #rail-name { display: none } }

/* ---------- smooth, light scrolling on phones ---------- */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation }
html.anim .up { will-change: opacity, transform }
html.anim .up.in { will-change: auto }
@media (max-width: 759px) {
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 10, 29, 0.97) }
  .rail { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 10, 29, 0.94) }
  body { background-image: none }
}
