/* Korthveil website themes (owner 2026-11-24, choosing from four concepts:
   "can we have all three themes?" and, for what visitors see first, "I like 2").

   Overdrive (data-theme="overdrive", the default; the page is served with it):
     a start-up log, a glitching headline and code rain in the home hero, a
     holographic frame with a scan line, an example attack ticker, hard-cut
     panels with meters, Orbitron for the display headings, magenta and cyan.
   Neon (data-theme="neon", one click away): the neon command deck of site.css
     plus a chromatic headline, circuit traces, HUD corner brackets, a sheen on
     the screenshot, glowing readouts and an angled section edge.

   /static/theme.js applies a stored choice before the first paint. Motion only
   in the home hero and the decorative ticker, never behind running text,
   tables or forms; none with prefers-reduced-motion. Loaded after site.css and
   every neon/*.css, so these rules win. No inline styles (CSP). */

/* ---------- 1. The theme switch (family bar on wide screens, the menu when it folds) ---------- */
.theme-switch { display: none; }
html[data-theme-switch] .theme-fam { display: inline-flex; }
.theme-switch { align-items: center; gap: 2px; flex: none; }
.theme-k { margin-right: 0.5rem; font: 500 0.62rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.theme-k::before { content: "// "; content: "// " / ""; }
.theme-switch button { --cut: 0.3125rem; display: inline-flex; align-items: center; justify-content: center; min-height: 1.5rem; padding: 0 0.625rem; cursor: pointer;
  font: 500 0.62rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); background: var(--deck); border: 1px solid var(--line-strong);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.theme-switch button:hover { color: var(--cyan); border-color: var(--line-hot); }
.theme-switch button:focus-visible { outline: 2px solid var(--text); outline-offset: -0.25rem; }
[data-theme=overdrive] .theme-switch [data-theme-set=overdrive], [data-theme=neon] .theme-switch [data-theme-set=neon] {
  color: var(--void); background: var(--cyan); border-color: var(--cyan); }
[data-theme=overdrive] .theme-switch [data-theme-set=overdrive] { background: linear-gradient(90deg, var(--cyan), #6ff6ff); }
/* In the family bar: at the right edge, beside the centred family links. */
.famnav .wrap { position: relative; }
.famnav .theme-fam { position: absolute; top: 50%; right: max(var(--gutter), env(safe-area-inset-right, 0px)); transform: translateY(-50%); }
/* In the folded menu: a row of two big buttons at the end. */
.topbar .nav .theme-menu { display: none; }
@media (max-width: 1360px) {
  html[data-theme-switch] .famnav .theme-fam { display: none; }
  html[data-theme-switch] .topbar .nav .theme-menu { display: flex; }
}
@media (max-width: 1439px) {
  html[data-theme-switch] .famnav.signed-in .theme-fam { display: none; }
  html[data-theme-switch] .topbar.signed-in .nav .theme-menu { display: flex; }
}
.topbar .nav .theme-menu { gap: 0.5rem; margin-top: 0.5rem; padding: 0.625rem 0.75rem 0.25rem; border-top: 1px solid var(--line); }
.topbar .nav .theme-menu .theme-k { flex: 0 0 auto; margin-right: 0.25rem; font-size: 0.7rem; }
.topbar .nav .theme-menu button { --cut: 0.4375rem; flex: 1 1 0; min-height: 2.75rem; font-size: 0.74rem; }
@media (pointer: coarse) {
  .famnav .theme-switch button { min-height: 2.5rem; }
}

/* ---------- 2. Both themes: HUD corner brackets on the home screenshot ---------- */
.nx-hud::before, .nx-hud::after { content: ""; position: absolute; z-index: 3; width: 1.125rem; height: 1.125rem; border: 2px solid var(--cyan); pointer-events: none; }
.nx-hud::before { top: -0.375rem; left: -0.375rem; border-right: 0; border-bottom: 0; }
.nx-hud::after { bottom: -0.375rem; right: -0.375rem; border-left: 0; border-top: 0; }

/* Overdrive-only and Neon-only pieces of the home hero. */
.nx-traces, .od-rain, .od-boot, .od-ticker { display: none; }

/* ---------- 3. Neon+ ---------- */
/* Circuit traces behind the hero (still). */
[data-theme=neon] .nx-traces { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; fill: none; stroke-width: 1.2; }
.nx-traces path { fill: none; vector-effect: non-scaling-stroke; }
.nx-traces .tr-c { stroke: rgba(24, 224, 255, 0.55); }
.nx-traces .tr-m { stroke: rgba(255, 47, 180, 0.5); }
.nx-traces .tr-v { stroke: rgba(139, 92, 255, 0.5); }
.nx-traces .dot-c { fill: #18e0ff; }
.nx-traces .dot-m { fill: #ff2fb4; }
.nx-traces .dot-v { fill: #8b5cff; }
/* The chromatic headline: solid cyan with a magenta and cyan split. */
[data-theme=neon] .nx-hero h1 .kg { color: var(--cyan); background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; filter: none;
  text-shadow: -2px 0 rgba(255, 47, 180, 0.75), 2px 0 rgba(24, 224, 255, 0.6), 0 0 1.625rem rgba(24, 224, 255, 0.35); }
/* A light sheen across the screenshot. */
[data-theme=neon] .nx-hud-frame::after { content: ""; position: absolute; inset: 0.625rem; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(24, 224, 255, 0.14) 45%, transparent 60%); background-size: 250% 100%; background-position: 120% 0;
  animation: nx-sheen 6s ease-in-out infinite; }
@keyframes nx-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
/* Glowing readouts. */
[data-theme=neon] .nx-cell b, [data-theme=neon] .kpi b, [data-theme=neon] .summary .total b { text-shadow: 0 0 1.125rem rgba(24, 224, 255, 0.35); }
/* The angled edge: the readout strip's deck cuts into the next section at a slant. */
[data-theme=neon] .nx-readout + .ax::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2.875rem; pointer-events: none;
  background: linear-gradient(176deg, var(--deck) 49.5%, transparent 50%); }

/* ---------- 4. Overdrive ---------- */
/* Tokens: magenta and cyan, a violet glow, Orbitron for display. */
:root[data-theme=overdrive] {
  --cyan: #00f0ff;
  --cyan-soft: #8ff8ff;
  --magenta: #ff2a8a;
  --od-violet: #8b5cff;
  --line: rgba(0, 240, 255, 0.17);
  --line-soft: rgba(0, 240, 255, 0.09);
  --line-strong: rgba(0, 240, 255, 0.3);
  --line-hot: rgba(0, 240, 255, 0.55);
  --line-mag: rgba(255, 42, 138, 0.5);
  --neon: linear-gradient(90deg, var(--cyan), #9d7bff 55%, var(--magenta));
  --over: "Orbitron", "Orbitron Fallback", "Chakra Petch", "Chakra Petch Fallback", ui-sans-serif, system-ui, sans-serif;
  /* Panels cut at the top right and bottom left (the buttons keep the deck's top-left cut). */
  --chamfer: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
[data-theme=overdrive] ::selection { background: rgba(255, 42, 138, 0.35); }

/* Display headings in Orbitron: every page title, the section titles. Running text, cards,
   guides and the legal pages keep Chakra Petch below their titles. Orbitron is about a fifth
   wider, so the sizes are a step smaller and the longest titles' words fit a 360 px phone. */
[data-theme=overdrive] h1,
[data-theme=overdrive] .ax-h, [data-theme=overdrive] .section-head h2, [data-theme=overdrive] .cta-band h2, [data-theme=overdrive] .compare-why-h, [data-theme=overdrive] main section > .wrap > h2:not([class]), [data-theme=overdrive] main .split h2 {
  font-family: var(--over); font-weight: 800; letter-spacing: 0.03em; }
[data-theme=overdrive] h1 { font-size: clamp(1.75rem, 4.2vw, 3.1rem); line-height: 1.12; }
[data-theme=overdrive] .ax-h, [data-theme=overdrive] .section-head h2, [data-theme=overdrive] .cta-band h2, [data-theme=overdrive] .compare-why-h, [data-theme=overdrive] main section > .wrap > h2:not([class]), [data-theme=overdrive] main .split h2 {
  font-size: clamp(1.35rem, 3vw, 2.15rem); line-height: 1.28; }
[data-theme=overdrive] .nx-band .wrap .ax-h { font-size: clamp(1.35rem, 2.9vw, 2rem); }
[data-theme=overdrive] .auth h1, [data-theme=overdrive] .done-card h1 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); }
[data-theme=overdrive] .admin h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
/* A page title's chromatic split (the gradient words keep their own colours). 20em, not 22: no title
   ends within a hair of the line's end in Orbitron or its fallback, so none re-wraps when the font arrives. */
[data-theme=overdrive] .page-head h1 { max-width: 20em; text-shadow: -2px 0 rgba(0, 240, 255, 0.4), 2px 0 rgba(255, 42, 138, 0.45); }
[data-theme=overdrive] .page-head h1 .grad, [data-theme=overdrive] h1 .kg { text-shadow: none; }

/* Chrome: a magenta edge under the bars, magenta marks. */
[data-theme=overdrive] .famnav { border-bottom-color: rgba(255, 42, 138, 0.22); }
[data-theme=overdrive] .topbar { border-bottom-color: rgba(255, 42, 138, 0.42); box-shadow: 0 1px 0 rgba(255, 42, 138, 0.12), 0 0.5rem 1.5rem rgba(255, 42, 138, 0.05); }
[data-theme=overdrive] .brand img { filter: drop-shadow(0 0 0.625rem rgba(255, 42, 138, 0.3)); }
[data-theme=overdrive] .brand span small { color: var(--magenta); }
[data-theme=overdrive] .nav a.on { box-shadow: inset 0 -2px 0 var(--magenta); }
@media (max-width: 1360px) { [data-theme=overdrive] .topbar .nav a.on { box-shadow: inset 0.1875rem 0 0 var(--magenta); } }
@media (max-width: 1439px) { [data-theme=overdrive] .topbar.signed-in .nav a.on { box-shadow: inset 0.1875rem 0 0 var(--magenta); } }
[data-theme=overdrive] footer { border-top: 2px solid rgba(255, 42, 138, 0.5); background: linear-gradient(180deg, #0b0f22, var(--void)); }
[data-theme=overdrive] .ax-light { border-top-color: rgba(255, 42, 138, 0.25); }
[data-theme=overdrive] input:focus, [data-theme=overdrive] select:focus, [data-theme=overdrive] textarea:focus { border-color: var(--magenta); box-shadow: 0 0 0 0.1875rem rgba(255, 42, 138, 0.22); }

/* Hard-cut panels: the top-right and bottom-left corners cut, the ticks moved with them,
   a hairline from magenta to cyan; magenta when a linked panel is pointed at. */
[data-theme=overdrive] .card, [data-theme=overdrive] .cta-band, [data-theme=overdrive] .ax-tile, [data-theme=overdrive] .icn-points > div, [data-theme=overdrive] .feat-list > div, [data-theme=overdrive] .live-demo, [data-theme=overdrive] .abc-box, [data-theme=overdrive] .hw-fig, [data-theme=overdrive] .hw-steps li, [data-theme=overdrive] .md-videos .video-card, [data-theme=overdrive] .md-shot, [data-theme=overdrive] .admin details.edit {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
/* Lists drawn flat on purpose (license rules, the managed-service steps) stay flat. */
[data-theme=overdrive] .lic-doc .feat-list > div, [data-theme=overdrive] .md-steps > div { clip-path: none; }
[data-theme=overdrive] .card::before, [data-theme=overdrive] .cta-band::before, [data-theme=overdrive] .ax-tile::before, [data-theme=overdrive] .icn-points > div::before, [data-theme=overdrive] .live-demo::before, [data-theme=overdrive] .md-videos .video-card::before {
  background: linear-gradient(45deg, var(--line-mag), rgba(0, 240, 255, 0.08) 38%, rgba(0, 240, 255, 0.08) 62%, var(--line-hot)); }
[data-theme=overdrive] .card::after, [data-theme=overdrive] .cta-band::after, [data-theme=overdrive] .ax-tile::after, [data-theme=overdrive] .icn-points > div::after, [data-theme=overdrive] .live-demo::after, [data-theme=overdrive] .md-videos .video-card::after {
  background:
    linear-gradient(45deg, transparent calc(50% - 0.8px), var(--line-hot) calc(50% - 0.8px), var(--line-hot) calc(50% + 0.8px), transparent calc(50% + 0.8px)) top right / var(--cut) var(--cut) no-repeat,
    linear-gradient(45deg, transparent calc(50% - 0.8px), var(--line-mag) calc(50% - 0.8px), var(--line-mag) calc(50% + 0.8px), transparent calc(50% + 0.8px)) bottom left / var(--cut) var(--cut) no-repeat; }
[data-theme=overdrive] a.card:hover::before, [data-theme=overdrive] .ax-tile:hover::before, [data-theme=overdrive] .md-videos .video-card:hover::before { background: linear-gradient(45deg, var(--magenta), rgba(255, 42, 138, 0.2) 40%, rgba(0, 240, 255, 0.2) 60%, var(--cyan)); }
/* The pages' own panels with corner ticks. */
[data-theme=overdrive] .acct .acct-card::after { background: linear-gradient(45deg, transparent calc(50% - 0.8px), var(--line-hot) calc(50% - 0.8px), var(--line-hot) calc(50% + 0.8px), transparent calc(50% + 0.8px)) top right / var(--cut) var(--cut) no-repeat; }
[data-theme=overdrive] .acct .acct-card::before { background: linear-gradient(225deg, rgba(0, 240, 255, 0.34), rgba(0, 240, 255, 0.1) 40%, rgba(0, 240, 255, 0.1)); }
[data-theme=overdrive] .admin .card::before { background: linear-gradient(225deg, rgba(0, 240, 255, 0.3), rgba(0, 240, 255, 0.08) 40%, rgba(0, 240, 255, 0.08)); }
[data-theme=overdrive] .admin .card::after { background: none; }
[data-theme=overdrive] .pricing-page .plan.best::before { background: linear-gradient(225deg, var(--ember), rgba(255, 122, 47, 0.18) 34%, rgba(0, 240, 255, 0.12) 64%, var(--line-mag)); }
[data-theme=overdrive] .pricing-page .plan.best::after { background:
  linear-gradient(45deg, transparent calc(50% - 0.8px), var(--ember) calc(50% - 0.8px), var(--ember) calc(50% + 0.8px), transparent calc(50% + 0.8px)) top right / var(--cut) var(--cut) no-repeat,
  linear-gradient(45deg, transparent calc(50% - 0.8px), var(--line-mag) calc(50% - 0.8px), var(--line-mag) calc(50% + 0.8px), transparent calc(50% + 0.8px)) bottom left / var(--cut) var(--cut) no-repeat; }
[data-theme=overdrive] .admin details.edit { background:
  linear-gradient(45deg, transparent calc(50% - 0.8px), var(--line-hot) calc(50% - 0.8px), var(--line-hot) calc(50% + 0.8px), transparent calc(50% + 0.8px)) top right / var(--cut) var(--cut) no-repeat,
  linear-gradient(45deg, transparent calc(50% - 0.8px), var(--line-mag) calc(50% - 0.8px), var(--line-mag) calc(50% + 0.8px), transparent calc(50% + 0.8px)) bottom left / var(--cut) var(--cut) no-repeat,
  var(--deck); }
[data-theme=overdrive] .guide figure { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
[data-theme=overdrive] .guide figure::after { background:
  linear-gradient(45deg, transparent calc(50% - 0.8px), var(--line-strong) calc(50% - 0.8px), var(--line-strong) calc(50% + 0.8px), transparent calc(50% + 0.8px)) top right / var(--cut) var(--cut) no-repeat,
  linear-gradient(45deg, transparent calc(50% - 0.8px), rgba(255, 42, 138, 0.35) calc(50% - 0.8px), rgba(255, 42, 138, 0.35) calc(50% + 0.8px), transparent calc(50% + 0.8px)) bottom left / var(--cut) var(--cut) no-repeat; }

/* Meters: a cyan-to-magenta bar at the foot of the home page's panels (decoration only). */
[data-theme=overdrive] .icn-points > div, [data-theme=overdrive] .ax-tile { --m: 0.86; --od-panel: var(--deck); padding-bottom: 2.625rem;
  background:
    linear-gradient(90deg, var(--cyan), var(--magenta)) 1.375rem calc(100% - 1.125rem) / calc((100% - 2.75rem) * var(--m)) 0.25rem no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 1.375rem calc(100% - 1.125rem) / calc(100% - 2.75rem) 0.25rem no-repeat,
    var(--od-panel); }
[data-theme=overdrive] .ax-light .icn-points > div, [data-theme=overdrive] .ax-light .ax-tile { --od-panel: var(--deck-2); }
[data-theme=overdrive] .ax-tile:hover, [data-theme=overdrive] .ax-light .ax-tile:hover { --od-panel: var(--deck-3);
  background:
    linear-gradient(90deg, var(--cyan), var(--magenta)) 1.375rem calc(100% - 1.125rem) / calc((100% - 2.75rem) * var(--m)) 0.25rem no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 1.375rem calc(100% - 1.125rem) / calc(100% - 2.75rem) 0.25rem no-repeat,
    var(--od-panel); }
[data-theme=overdrive] .icn-points > div:nth-child(3n+1) { --m: 0.92; }
[data-theme=overdrive] .icn-points > div:nth-child(3n+2) { --m: 0.78; }
[data-theme=overdrive] .icn-points + .icn-points > div:nth-child(3n+1) { --m: 0.7; }
[data-theme=overdrive] .icn-points + .icn-points > div:nth-child(3n) { --m: 0.95; }
[data-theme=overdrive] .ax-tile:nth-child(4n+1) { --m: 0.9; }
[data-theme=overdrive] .ax-tile:nth-child(4n+2) { --m: 0.74; }
[data-theme=overdrive] .ax-tile:nth-child(4n+3) { --m: 0.82; }
[data-theme=overdrive] .ax-tile:nth-child(4n) { --m: 0.66; }
[data-theme=overdrive] .ax-tile-k { color: var(--magenta); }
[data-theme=overdrive] .icn-points b::before { background: var(--magenta); }

/* Inner page heads: no moving floor (only the home hero moves); still scanlines,
   violet and magenta glows, and a magenta-to-cyan edge. */
[data-theme=overdrive] .page-head::before { display: none; animation: none; }
[data-theme=overdrive] .page-head::after { border-bottom: 0;
  background:
    linear-gradient(90deg, var(--magenta), var(--od-violet) 50%, var(--cyan)) left bottom / 100% 2px no-repeat,
    repeating-linear-gradient(to bottom, rgba(0, 240, 255, 0.035) 0 1px, transparent 1px 0.25rem),
    radial-gradient(55% 90% at 88% 0%, rgba(255, 42, 138, 0.14), transparent 62%),
    radial-gradient(50% 90% at 6% 10%, rgba(139, 92, 255, 0.16), transparent 62%); }

/* The home hero: code rain behind it, scanlines and glows over the rain, a magenta edge. */
[data-theme=overdrive] .nx-hero { border-bottom: 2px solid var(--magenta); background: var(--void); }
[data-theme=overdrive] .nx-floor { display: none; animation: none; }
[data-theme=overdrive] .od-rain { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0, rgba(0, 0, 0, 0.28) 38%, #000 68%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0, rgba(0, 0, 0, 0.28) 38%, #000 68%); }
[data-theme=overdrive] .nx-hero::after { background:
  repeating-linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 0 1px, transparent 1px 0.25rem),
  radial-gradient(70% 90% at 75% 30%, rgba(139, 92, 255, 0.22), transparent 60%),
  radial-gradient(60% 80% at 10% 90%, rgba(255, 42, 138, 0.18), transparent 60%); }
[data-theme=overdrive] .nx-hero-in { padding-top: 4rem; padding-bottom: 5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; }
/* The start-up log. */
[data-theme=overdrive] .od-boot { display: block; max-width: 34rem; margin: 0 0 1.5rem; padding: 0.875rem 1rem; color: var(--ok);
  font: 400 0.82rem/1.7 var(--mono); background: rgba(4, 5, 11, 0.9); border: 1px solid rgba(61, 242, 154, 0.35); }
.od-boot div { display: flex; align-items: baseline; gap: 0.625rem; min-width: 0; }
.od-boot span { flex: none; color: var(--faint); }
.od-boot b { min-width: 0; font-weight: 400; }
.od-boot u { text-decoration: none; white-space: nowrap; }
.od-boot i { flex: 1 1 1rem; min-width: 0.75rem; height: 0; border-bottom: 1px dotted rgba(61, 242, 154, 0.5); }
.od-boot em { flex: none; font-style: normal; }
.od-boot .od-cursor b::after { content: "\258B"; content: "\258B" / ""; margin-left: 0.25rem; color: var(--cyan); animation: od-blink 1.1s steps(1) infinite; }
@keyframes od-blink { 50% { opacity: 0; } }
/* The glitching headline: two copies of each word (data-text, not read aloud), cyan above and
   magenta below, shifted apart, jumping now and then. */
[data-theme=overdrive] .nx-hero h1 { font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.04; letter-spacing: 0.02em; }
[data-theme=overdrive] .nx-hero h1 .kg { color: var(--cyan); background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; filter: none;
  text-shadow: 0 0 1.5rem rgba(0, 240, 255, 0.35); }
[data-theme=overdrive] .od-glitch { position: relative; display: inline-block; }
[data-theme=overdrive] .od-glitch::before, [data-theme=overdrive] .od-glitch::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; mix-blend-mode: screen; text-shadow: none; }
[data-theme=overdrive] .od-glitch::before { color: var(--cyan); transform: translate(-3px, 0); clip-path: inset(0 0 55% 0); animation: od-gl1 3.2s steps(1) infinite; }
[data-theme=overdrive] .od-glitch::after { color: var(--magenta); transform: translate(3px, 0); clip-path: inset(55% 0 0 0); animation: od-gl2 3.2s steps(1) infinite; }
@keyframes od-gl1 { 0%, 86%, 100% { clip-path: inset(0 0 55% 0); transform: translate(-3px, 0); } 88% { clip-path: inset(10% 0 70% 0); transform: translate(-8px, -2px); } 92% { clip-path: inset(40% 0 30% 0); transform: translate(6px, 1px); } }
@keyframes od-gl2 { 0%, 86%, 100% { clip-path: inset(55% 0 0 0); transform: translate(3px, 0); } 89% { clip-path: inset(70% 0 5% 0); transform: translate(9px, 2px); } 93% { clip-path: inset(20% 0 55% 0); transform: translate(-6px, -1px); } }
[data-theme=overdrive] .nx-kicker { color: var(--cyan); }
[data-theme=overdrive] .nx-hero .ax-sub-h { color: #9fb2d2; }
/* The holographic frame: header row (the two tags), the screenshot, a scan line. */
[data-theme=overdrive] .nx-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.625rem 1rem; padding: 0.875rem;
  background: rgba(10, 15, 31, 0.78); border: 1px solid rgba(0, 240, 255, 0.4); box-shadow: 0 0 2.5rem rgba(0, 240, 255, 0.15), inset 0 0 1.875rem rgba(139, 92, 255, 0.12); }
[data-theme=overdrive] .nx-tag { position: static; padding: 0; border: 0; background: none; font-size: 0.72rem; color: var(--cyan); }
[data-theme=overdrive] .nx-tag.t1 { grid-area: 1 / 1; justify-self: start; }
[data-theme=overdrive] .nx-tag.t2 { grid-area: 1 / 2; color: var(--ok); }
[data-theme=overdrive] .nx-tag.t2::before { content: "\25CF  "; content: "\25CF  " / ""; white-space: pre; }
[data-theme=overdrive] .nx-hud-frame { grid-area: 2 / 1 / 3 / 3; padding: 0; background: none; clip-path: none; }
[data-theme=overdrive] .nx-hud-frame img { clip-path: none; filter: saturate(1.15) contrast(1.05); }
[data-theme=overdrive] .nx-scan { left: 0; right: 0; top: 0; opacity: 1; animation: od-scan 4s ease-in-out infinite; }
@keyframes od-scan { 0% { top: 0; } 50% { top: calc(100% - 2px); } 100% { top: 0; } }
[data-theme=overdrive] .nx-hud::before, [data-theme=overdrive] .nx-hud::after { border-color: var(--magenta); }

/* The example attack ticker under the hero: an illustration with documentation addresses
   (198.51.100.0/24, 203.0.113.0/24, 192.0.2.0/24, 2001:db8::/32), labelled as such. */
[data-theme=overdrive] .od-ticker { display: flex; align-items: stretch; overflow: hidden; white-space: nowrap; color: #12000a; background: var(--magenta);
  font: 700 0.8rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.od-ticker-k { flex: none; display: block; padding: 0.5625rem 1rem; color: var(--magenta); background: #12000a; border-right: 2px solid var(--magenta); }
.od-ticker-run { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.od-ticker-in { display: inline-block; padding: 0.5625rem 0 0.5625rem 1.5rem; animation: od-tick 38s linear infinite; }
.od-ticker-in span { margin-right: 3rem; }
@keyframes od-tick { to { transform: translateX(-50%); } }

/* The readout strip: Orbitron numbers with a glow, magenta seams. */
[data-theme=overdrive] .nx-readout { border-bottom-color: rgba(255, 42, 138, 0.35); }
[data-theme=overdrive] .nx-cell { border-left-color: rgba(255, 42, 138, 0.28); }
[data-theme=overdrive] .nx-cell b { font: 800 clamp(1.05rem, 1.9vw, 1.45rem)/1.9 var(--over); letter-spacing: 0.03em; text-shadow: 0 0 0.875rem rgba(0, 240, 255, 0.45); }
[data-theme=overdrive] .kpi b, [data-theme=overdrive] .summary .total b { text-shadow: 0 0 0.875rem rgba(0, 240, 255, 0.4); }

/* The final band. */
[data-theme=overdrive] .nx-band { border-top: 2px solid rgba(255, 42, 138, 0.5);
  background: radial-gradient(60% 120% at 80% 0%, rgba(255, 42, 138, 0.16), transparent 60%), radial-gradient(50% 120% at 10% 100%, rgba(139, 92, 255, 0.16), transparent 60%), var(--deck); }

@media (max-width: 960px) {
  [data-theme=overdrive] .nx-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; padding-bottom: 3.5rem; }
  [data-theme=overdrive] .od-rain { -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0.25) 50%, #000 75%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0.25) 50%, #000 75%); }
}
@media (max-width: 600px) {
  .od-ticker-k2 { display: none; }
  [data-theme=overdrive] .od-ticker { font-size: 0.74rem; }
  [data-theme=overdrive] .od-boot { font-size: 0.74rem; padding: 0.75rem 0.875rem; }
}

/* ---------- 5. Print: plain for both ---------- */
@media print {
  .theme-switch, .nx-traces, .od-rain, .od-boot, .od-ticker { display: none !important; }
  .od-glitch::before, .od-glitch::after, .nx-hud::before, .nx-hud::after, .nx-hud-frame::after { display: none !important; }
  [data-theme=overdrive] .nx-hud { border: 0; padding: 0; }
  [data-theme] .page-head h1 { text-shadow: none; }
}

/* ---------- 6. Motion: none when the reader asks for less ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-theme] .od-glitch::before, html[data-theme] .od-glitch::after, html[data-theme] .od-boot .od-cursor b::after, html[data-theme] .od-ticker-in,
  html[data-theme] .nx-scan, html[data-theme] .nx-hud-frame::after { animation: none; }
}
