/* Copilot EFB page — cyberpunk mode.
 *
 * Asked for by the owner on 2026-10-16: a switch on the Copilot EFB page, and only there,
 * that turns the professional page into a cyberpunk one — night sky into a sunset, a neon
 * airfield on wet tarmac, holographic lettering, HUD frames — with the content untouched.
 * Redrawn the same day as abstract light rather than illustration: the sky is a shader
 * (cyber-gl.js), the frames frosted glass with hairline edges. Later the same day the
 * glass ribbon and the route mini-map went (the owner: they made no sense), red neon
 * joined cyan and magenta, the ground got a retro grid, and the switch got a real
 * transition (cyber.js) — its classes are at the end of this file.
 *
 * Rules this file keeps:
 *   · Everything visual is scoped under html[data-efb-mode="cyberpunk"]. The only rules
 *     that apply in the professional mode hide the decoration (.cy-only) and draw the
 *     switch itself. Switched off, the page is exactly the page it was.
 *   · Decoration only moves by transform and opacity, and never takes a tap
 *     (pointer-events: none). cyber.js moves the layers; nothing here depends on it.
 *   · prefers-reduced-motion: reduce stops every animation at the bottom of the file.
 *   · Text sits on dark fills or on a scrim that darkens as the page scrolls; the
 *     holographic gradients use only light stops, so headings stay above 4.5:1.
 */

/* ── Always: the decoration is hidden, the switch is drawn ───────────────────── */
.cy-only { display: none; }

.cy-toggle {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.8);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cy-toggle[hidden] { display: none; }
.cy-toggle:hover { border-color: var(--atc); transform: translateY(-1px); }
.cy-toggle-track {
  position: relative;
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: #0b1220;
  border: 1px solid var(--line);
  flex: none;
}
.cy-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}
.cy-toggle[aria-pressed="true"] .cy-toggle-knob {
  transform: translateX(14px);
  background: linear-gradient(135deg, #3ef0ff, #ff3ea5);
}

/* ── Fonts and tokens ────────────────────────────────────────────────────────── */
html[data-efb-mode="cyberpunk"] {
  --ground: #070a22;
  --ground-2: #0b0c2c;
  --panel: rgba(14, 11, 44, 0.9);
  --panel-2: rgba(22, 14, 60, 0.92);
  --line: rgba(139, 92, 246, 0.5);
  --line-soft: rgba(139, 92, 246, 0.3);
  --ink: #f4f1ff;
  --ink-2: #d6cff6;
  --ink-3: #a59ccf;
  --atc: #3ef0ff;
  --pilot: #5dffb1;
  --amber: #ffd166;
  --glow-atc: rgba(62, 240, 255, 0.4);
  --glow-pilot: rgba(93, 255, 177, 0.3);
  --cy-cyan: #3ef0ff;
  --cy-violet: #8b5cf6;
  --cy-pink: #ff3ea5;
  --cy-red: #ff2a3d;
  --cy-orange: #ff8a4c;
  --cy-display: "Chakra Petch", "Inter", -apple-system, "Segoe UI", sans-serif;
  --cy-holo: linear-gradient(100deg, #7ff6ff 0%, #c7b6ff 20%, #ffa3d8 38%, #b2ecff 56%, #f1c9ff 74%, #7ff6ff 100%);
  --cy-edge: linear-gradient(135deg, var(--cy-cyan), var(--cy-violet) 48%, var(--cy-pink));
  background: var(--ground);
}
html[data-efb-mode="cyberpunk"] .cy-only { display: block; }
html[data-efb-mode="cyberpunk"] body { background: transparent; }
html[data-efb-mode="cyberpunk"] .mesh { display: none; }
html[data-efb-mode="cyberpunk"] ::selection { background: var(--cy-pink); color: #fff; }

/* ── The scene: fixed behind everything ──────────────────────────────────────
   The sky is a shader on .cy-gl (cyber-gl.js). Without WebGL, cyber.js sets cy-nogl and
   the scene shows a still of the same shader, rendered once at 2560×1600 and 1290×2796. */
html[data-efb-mode="cyberpunk"] .cy-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background: #070a1f;
}
.cy-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.cy-nogl[data-efb-mode="cyberpunk"] .cy-gl { display: none; }
html.cy-nogl[data-efb-mode="cyberpunk"] .cy-scene {
  background: #070a1f url("../img/cy-sky-wide.webp") center 62% / cover no-repeat;
}
@media (max-aspect-ratio: 4/5) {
  html.cy-nogl[data-efb-mode="cyberpunk"] .cy-scene { background-image: url("../img/cy-sky-tall.webp"); }
}
/* A whisper of darkness over the light, so nothing on top ever competes with it. */
.cy-scrim {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 2px, rgba(2, 2, 14, 0.16) 2px 3px),
    linear-gradient(180deg, rgba(4, 5, 22, 0.35), transparent 22%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(4, 5, 22, 0.35));
}

/* ── Type ────────────────────────────────────────────────────────────────────── */
html[data-efb-mode="cyberpunk"] h1,
html[data-efb-mode="cyberpunk"] h2,
html[data-efb-mode="cyberpunk"] h3 { font-family: var(--cy-display); letter-spacing: -0.005em; }
html[data-efb-mode="cyberpunk"] h1,
html[data-efb-mode="cyberpunk"] h2 {
  font-weight: 700;
  background: var(--cy-holo);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cy-holo 12s linear infinite;
  filter: drop-shadow(0 2px 14px rgba(5, 3, 30, 0.9));
}
html[data-efb-mode="cyberpunk"] .efbp-hero h1 em {
  background: linear-gradient(100deg, #3ef0ff, #ff7cc8 55%, #ffc27a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes cy-holo { from { background-position: 0% 50%; } to { background-position: 260% 50%; } }
html[data-efb-mode="cyberpunk"] h3 { color: #fff; font-weight: 600; }
html[data-efb-mode="cyberpunk"] .lede,
html[data-efb-mode="cyberpunk"] .hero-note,
html[data-efb-mode="cyberpunk"] .caption,
html[data-efb-mode="cyberpunk"] main p,
html[data-efb-mode="cyberpunk"] main li { text-shadow: 0 1px 14px rgba(4, 3, 26, 0.95), 0 0 2px rgba(4, 3, 26, 0.9); }
html[data-efb-mode="cyberpunk"] .eyebrow { color: var(--cy-cyan); text-shadow: 0 0 10px rgba(62, 240, 255, 0.5); }
html[data-efb-mode="cyberpunk"] .eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--cy-red);
  box-shadow: 0 0 10px var(--cy-red);
  transform: rotate(45deg);
}
html[data-efb-mode="cyberpunk"] .t-n { font-family: var(--cy-display); color: var(--cy-cyan); text-shadow: 0 0 12px rgba(62, 240, 255, 0.6); }
html[data-efb-mode="cyberpunk"] a:not(.btn):not(.card):hover { color: var(--cy-cyan); }

/* ── Header and ribbon ───────────────────────────────────────────────────────── */
html[data-efb-mode="cyberpunk"] .site-header.is-stuck {
  background: rgba(6, 5, 28, 0.8);
  border-bottom-color: rgba(255, 62, 165, 0.35);
  box-shadow: 0 1px 0 rgba(62, 240, 255, 0.25), 0 10px 30px -18px rgba(255, 62, 165, 0.6);
}
html[data-efb-mode="cyberpunk"] .efbp-ribbon {
  background: rgba(8, 6, 32, 0.72);
  border-top: 1px solid rgba(62, 240, 255, 0.4);
  border-bottom: 1px solid rgba(255, 62, 165, 0.4);
}
html[data-efb-mode="cyberpunk"] .rb-ico { color: var(--cy-cyan); filter: drop-shadow(0 0 6px rgba(62, 240, 255, 0.6)); }

/* ── Chamfered frames: cards, panels, the FAQ, the band ─────────────────────────
   Frosted glass: a translucent fill over a blurred sky, a 1 px gradient edge drawn by
   ::before through a mask, and a faint inner light at the top. The two cut corners get
   their own diagonal stroke from a small gradient layer each. Without backdrop-filter the
   fill is nearly opaque, so the text keeps its contrast either way. */
html[data-efb-mode="cyberpunk"] .card,
html[data-efb-mode="cyberpunk"] .panel,
html[data-efb-mode="cyberpunk"] details.qa,
html[data-efb-mode="cyberpunk"] .band {
  --cut: 16px;
  --fill: linear-gradient(180deg, rgba(20, 16, 58, 0.92), rgba(8, 7, 30, 0.94));
  position: relative;
  border: 1px solid transparent;
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent calc(50% - 0.8px), rgba(62, 240, 255, 0.8) calc(50% - 0.8px) calc(50% + 0.4px), transparent calc(50% + 0.4px)) top left / var(--cut) var(--cut) no-repeat border-box,
    linear-gradient(315deg, transparent calc(50% - 0.8px), rgba(255, 62, 165, 0.8) calc(50% - 0.8px) calc(50% + 0.4px), transparent calc(50% + 0.4px)) bottom right / var(--cut) var(--cut) no-repeat border-box,
    radial-gradient(120% 60% at 30% 0%, rgba(160, 140, 255, 0.10), transparent 60%) padding-box,
    var(--fill) padding-box;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html[data-efb-mode="cyberpunk"] .card,
  html[data-efb-mode="cyberpunk"] .panel,
  html[data-efb-mode="cyberpunk"] details.qa,
  html[data-efb-mode="cyberpunk"] .band {
    --fill: linear-gradient(180deg, rgba(22, 17, 62, 0.62), rgba(8, 7, 30, 0.74));
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
  }
}
html[data-efb-mode="cyberpunk"] .card::before,
html[data-efb-mode="cyberpunk"] .panel::before,
html[data-efb-mode="cyberpunk"] details.qa::before,
html[data-efb-mode="cyberpunk"] .band::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(62, 240, 255, 0.75), rgba(139, 92, 246, 0.35) 45%, rgba(255, 62, 165, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
html[data-efb-mode="cyberpunk"] details.qa,
html[data-efb-mode="cyberpunk"] .card { --cut: 14px; }
html[data-efb-mode="cyberpunk"] .band {
  --cut: 26px;
  --fill:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 62, 165, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(26, 14, 70, 0.94), rgba(8, 6, 32, 0.96));
}
html[data-efb-mode="cyberpunk"] .card:hover { transform: translateY(-3px); }
html[data-efb-mode="cyberpunk"] .card .ico {
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: rgba(62, 240, 255, 0.14);
  color: var(--cy-cyan);
}
html[data-efb-mode="cyberpunk"] .card.accent-green .ico { background: rgba(255, 62, 165, 0.16); color: #ff7cc8; }
html[data-efb-mode="cyberpunk"] .card.accent-amber .ico { background: rgba(255, 209, 102, 0.14); color: var(--amber); }
html[data-efb-mode="cyberpunk"] .nw-tag { border-radius: 0; color: #ff7cc8; border-color: rgba(255, 62, 165, 0.55); background: rgba(255, 62, 165, 0.12); }

/* The holographic sheen. cyber.js sets --sx/--sy (−1…1) on the frames that are on
   screen; with no tilt it rests a little to the left, like light from a window. */
html[data-efb-mode="cyberpunk"] .card::after,
html[data-efb-mode="cyberpunk"] .panel::after,
html[data-efb-mode="cyberpunk"] .band::after,
html[data-efb-mode="cyberpunk"] .tablet-screen::after,
html[data-efb-mode="cyberpunk"] .phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 32%, rgba(127, 246, 255, 0.10) 42%, rgba(255, 255, 255, 0.16) 48%,
    rgba(255, 124, 200, 0.12) 54%, rgba(199, 182, 255, 0.08) 60%, transparent 70%);
  background-size: 280% 100%;
  background-position: calc(50% + var(--sx, -0.35) * 55%) calc(50% + var(--sy, 0) * 40%);
  mix-blend-mode: screen;
}
html[data-efb-mode="cyberpunk"] .tablet-screen,
html[data-efb-mode="cyberpunk"] .phone-screen { position: relative; overflow: hidden; }

/* ── Buttons: a chamfered hexagon with a neon edge ─────────────────────────── */
html[data-efb-mode="cyberpunk"] .btn {
  --h: 12px;
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  padding: 15px 30px;
  background: none;
  color: #fff;
  font-family: var(--cy-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
  clip-path: polygon(var(--h) 0, calc(100% - var(--h)) 0, 100% 50%, calc(100% - var(--h)) 100%, var(--h) 100%, 0 50%);
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
html[data-efb-mode="cyberpunk"] .btn::before,
html[data-efb-mode="cyberpunk"] .btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--h) 0, calc(100% - var(--h)) 0, 100% 50%, calc(100% - var(--h)) 100%, var(--h) 100%, 0 50%);
}
html[data-efb-mode="cyberpunk"] .btn::before {
  inset: 0;
  background: linear-gradient(90deg, var(--cy-cyan), var(--cy-violet) 50%, var(--cy-pink));
  background-size: 200% 100%;
  animation: cy-edge 5s ease-in-out infinite alternate;
}
html[data-efb-mode="cyberpunk"] .btn::after {
  inset: 2px;
  background: linear-gradient(180deg, #120c3c, #07051f);
}
html[data-efb-mode="cyberpunk"] .btn-primary::after {
  background:
    linear-gradient(90deg, rgba(62, 240, 255, 0.24), rgba(139, 92, 246, 0.3), rgba(255, 62, 165, 0.28)),
    linear-gradient(180deg, #160e46, #0a0626);
}
html[data-efb-mode="cyberpunk"] .btn-ghost::after { inset: 1.5px; }
html[data-efb-mode="cyberpunk"] .btn-ghost::before { opacity: 0.75; }
html[data-efb-mode="cyberpunk"] .btn:hover { transform: translateY(-2px); background: none; }
html[data-efb-mode="cyberpunk"] .btn:hover::after { background: linear-gradient(90deg, rgba(62, 240, 255, 0.3), rgba(255, 62, 165, 0.34)), #0d0834; }
@keyframes cy-edge { to { background-position: 100% 0; } }
html[data-efb-mode="cyberpunk"] .hero-cta {
  filter: drop-shadow(0 0 10px rgba(255, 62, 165, 0.35)) drop-shadow(0 0 16px rgba(62, 240, 255, 0.22));
}

/* ── Chips and the mocks ─────────────────────────────────────────────────────── */
html[data-efb-mode="cyberpunk"] .chip { border-radius: 2px; }
html[data-efb-mode="cyberpunk"] .efbp-stage { transform-style: preserve-3d; }
html[data-efb-mode="cyberpunk"] .efbp-stage::before {
  background:
    radial-gradient(closest-side, rgba(255, 62, 165, 0.3), transparent),
    radial-gradient(closest-side at 80% 80%, rgba(62, 240, 255, 0.24), transparent);
}
html[data-efb-mode="cyberpunk"] .tablet,
html[data-efb-mode="cyberpunk"] .phone {
  position: relative;
  z-index: 1;
  background: #05041a;
  border-color: rgba(62, 240, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 62, 165, 0.3),
    0 0 36px -4px rgba(139, 92, 246, 0.55),
    0 30px 80px -20px rgba(255, 62, 165, 0.45);
}
html[data-efb-mode="cyberpunk"] .phone { position: absolute; z-index: 2; }
@media (max-width: 560px) { html[data-efb-mode="cyberpunk"] .phone { position: relative; } }
html[data-efb-mode="cyberpunk"] .tablet-screen,
html[data-efb-mode="cyberpunk"] .phone-screen { background: linear-gradient(170deg, #140f42, #080626); }

/* ── The hero: poster title and HUD ──────────────────────────────────────────── */
html[data-efb-mode="cyberpunk"] .efbp-hero { position: relative; padding-top: clamp(84px, 9vw, 120px); }
html[data-efb-mode="cyberpunk"] .efbp-hero-grid { position: relative; z-index: 1; }
/* A soft shade behind the hero copy, so the lede stays readable where it crosses the
   sunset and the aircraft; no box, just darker air. */
html[data-efb-mode="cyberpunk"] .efbp-hero-copy { position: relative; }
html[data-efb-mode="cyberpunk"] .efbp-hero-copy::before {
  content: "";
  position: absolute;
  inset: -60px -80px -60px -100px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 4, 26, 0.86), rgba(5, 4, 26, 0.6) 62%, transparent);
  pointer-events: none;
}

.cy-poster { position: relative; margin: 0 0 30px; }
/* The title in holographic foil: a thin-film rainbow that slides with the tilt (--fx/--fy
   from cyber.js), a fine foil grain, and a specular bar sweeping the other way. All of it
   is background clipped to the text, so it stays vector-sharp at any pixel ratio. */
.cy-brand {
  --fx: -0.35;
  --fy: 0;
  position: relative;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  font-family: "Michroma", "Chakra Petch", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 8vw, 50px);
  line-height: 1.12;
  letter-spacing: 0.04em;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.95) 48.5%, rgba(255, 255, 255, 0.2) 51%, transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(100deg, #6ff7ff 0%, #9fb4ff 12%, #e7b8ff 22%, #ff8fd0 32%, #ffd3a8 42%, #c8fff4 52%, #7fd8ff 62%, #c9a6ff 72%, #ff9bd6 84%, #6ff7ff 100%);
  background-size: 260% 100%, 160px 160px, 300% 100%;
  background-position:
    calc(50% - var(--fx) * 70%) 0,
    0 0,
    calc(50% + var(--fx) * 45%) calc(50% + var(--fy) * 30%);
  background-blend-mode: screen, overlay, normal;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 62, 165, 0.22)) drop-shadow(0 1px 0 rgba(10, 6, 40, 0.9));
}
/* The glitch: an offset, split copy, shown for under 200 ms by cyber.js. */
.cy-brand::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  opacity: 0;
}
.cy-brand.is-glitch { animation: cy-jolt 0.18s steps(3, end) 1; }
.cy-brand.is-glitch::before {
  opacity: 1;
  color: rgba(62, 240, 255, 0.85);
  text-shadow: 3px 0 rgba(255, 62, 165, 0.9);
  clip-path: inset(22% 0 50% 0);
  transform: translateX(-5px);
}
@keyframes cy-jolt { 33% { transform: translateX(2px) skewX(-4deg); } 66% { transform: translateX(-1px); } }

.cy-edition {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #d9d3ff;
}
.cy-edition::before {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--cy-cyan), var(--cy-red));
  box-shadow: 0 0 8px rgba(255, 42, 61, 0.6);
  transform-origin: left;
}
html[data-efb-mode="cyberpunk"] .crumbs { color: var(--ink-3); }

.cy-hud { position: absolute; inset: 12px; z-index: 0; pointer-events: none; color: var(--cy-cyan); }
.cy-hud > * { position: absolute; }
/* Hairline corners, drawn as paths so they can draw themselves (stroke-dashoffset) when
   the mode comes on. */
.cy-corner { width: 28px; height: 28px; overflow: visible; }
.cy-corner path { fill: none; stroke: rgba(62, 240, 255, 0.7); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cy-corner.bl path, .cy-corner.br path { stroke: rgba(255, 42, 61, 0.75); }
.cy-corner.tl { top: 0; left: 0; }
.cy-corner.tr { top: 0; right: 0; }
.cy-corner.bl { bottom: 0; left: 0; }
.cy-corner.br { bottom: 0; right: 0; }
.cy-words {
  top: 8px;
  right: 48px;
  display: grid;
  justify-items: end;
  gap: 2px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(236, 232, 255, 0.72);
}
.cy-words i {
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--cy-cyan), var(--cy-red));
  box-shadow: 0 0 6px rgba(255, 42, 61, 0.8);
  transform-origin: right;
}
.cy-hatch {
  bottom: 12px;
  left: 48px;
  width: 120px;
  height: 7px;
  background:
    linear-gradient(rgba(255, 42, 61, 0.55), rgba(255, 42, 61, 0.55)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 42, 61, 0.6) 0 1px, transparent 1px 8px) 0 100% / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, rgba(62, 240, 255, 0.7) 0 1px, transparent 1px 40px);
  opacity: 0.75;
  transform-origin: left;
}

/* The scroll meter on the right edge: the poster's level rail. */
html[data-efb-mode="cyberpunk"] .cy-rail { display: none; }
@media (min-width: 900px) {
  html[data-efb-mode="cyberpunk"] .cy-rail {
    display: block;
    position: fixed;
    z-index: 50;
    right: 14px;
    top: 50%;
    width: 1px;
    height: 200px;
    margin-top: -100px;
    background: rgba(139, 92, 246, 0.3);
    pointer-events: none;
  }
}
.cy-rail i { position: absolute; left: -1px; width: 3px; height: 10px; box-shadow: 0 0 6px currentColor; }
.cy-rail .c { top: 0; background: #3ef0ff; color: #3ef0ff; }
.cy-rail .y { top: 14px; background: #ffd166; color: #ffd166; }
.cy-rail .m { top: 28px; background: #ff3ea5; color: #ff3ea5; }
.cy-rail-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  bottom: 0;
  background: linear-gradient(180deg, #3ef0ff, #ff3ea5);
  transform-origin: top;
  transform: scaleY(var(--cy-progress, 0));
}

/* Floating decoration moved by cyber.js. */
.cy-float { will-change: transform; }

/* ── Switch, in cyberpunk ────────────────────────────────────────────────────── */
html[data-efb-mode="cyberpunk"] .cy-toggle {
  border-color: rgba(255, 62, 165, 0.7);
  background: rgba(10, 6, 36, 0.86);
  box-shadow: 0 0 0 1px rgba(62, 240, 255, 0.35), 0 0 22px rgba(255, 62, 165, 0.45);
  color: #fff;
}
html[data-efb-mode="cyberpunk"] .cy-toggle-track { border-color: rgba(62, 240, 255, 0.6); background: #07051f; }

/* ── The switch's transition (cyber.js) ─────────────────────────────────────────
   On: a circle grows from the switch over a snapshot of the old page (View Transitions),
   with a neon ring (.cy-fx) riding its edge; under it the sky powers on and the HUD draws
   itself. Off: a glitch, then the snapshot collapses like a CRT to a line and a point,
   and the professional page fades up. Without View Transitions: cy-live-boot and
   cy-powerdown tell the same story on the live page. Only transform, opacity, filter and
   clip-path move. */
.cy-fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483000;
  pointer-events: none;
  overflow: visible;
}
.cy-fx circle { filter: none; }
html.cy-vt-on::view-transition-old(root),
html.cy-vt-on::view-transition-new(root),
html.cy-vt-off::view-transition-old(root),
html.cy-vt-off::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.cy-vt-on::view-transition-group(cy-fx),
html.cy-vt-on::view-transition-old(cy-fx),
html.cy-vt-on::view-transition-new(cy-fx) { animation: none; }
html.cy-vt-off::view-transition { background: #020109; }
html.cy-vt-off::view-transition-old(root) { z-index: 2; transform-origin: 50% 50%; }
html.cy-vt-fade::view-transition-old(root),
html.cy-vt-fade::view-transition-new(root) { animation-duration: 220ms; }

/* The HUD draws itself: corners by their stroke, the scales from one end. */
html.cy-booting .cy-corner path { animation: cy-draw 0.8s cubic-bezier(0.6, 0, 0.2, 1) 0.45s both; }
html.cy-booting .cy-corner.tr path { animation-delay: 0.56s; }
html.cy-booting .cy-corner.br path { animation-delay: 0.67s; }
html.cy-booting .cy-corner.bl path { animation-delay: 0.78s; }
html.cy-booting .cy-hatch { animation: cy-scale-x 0.6s cubic-bezier(0.6, 0, 0.2, 1) 0.8s both; }
html.cy-booting .cy-words i,
html.cy-booting .cy-edition::before { animation: cy-scale-x 0.5s cubic-bezier(0.6, 0, 0.2, 1) 0.7s both; }
html.cy-booting .cy-words span { animation: cy-fade-in 0.4s ease 0.9s both; }
html.cy-booting .cy-words span:nth-child(2) { animation-delay: 1s; }
html.cy-booting .cy-words span:nth-child(3) { animation-delay: 1.1s; }
@keyframes cy-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cy-scale-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cy-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Text resolving out of noise. The real text stays in the document, only hidden; ::after
   draws the scrambled copy from data-scr, so nothing is ever read out scrambled. */
.cy-scr { position: relative; }
.cy-scr,
.cy-scr * {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-image: none !important;
  text-shadow: none !important;
}
.cy-scr { filter: none !important; }
.cy-scr::after {
  content: attr(data-scr);
  position: absolute;
  top: 0;
  left: var(--scr-left, 0);
  right: 0;
  white-space: pre-line;
  pointer-events: none;
  color: #eafcff;
  -webkit-text-fill-color: #eafcff;
  text-shadow: 0 0 10px rgba(62, 240, 255, 0.65), 2px 0 rgba(255, 42, 61, 0.75), -2px 0 rgba(62, 240, 255, 0.5);
}
.cy-brand.cy-scr::after { white-space: nowrap; }
.eyebrow.cy-scr { --scr-left: 17px; }
.cy-edition.cy-scr { --scr-left: 56px; }

/* No snapshots: the content rises behind the ring while the sky powers on. */
html.cy-live-boot main,
html.cy-live-boot .site-header,
html.cy-powerup main,
html.cy-powerup .site-header { animation: cy-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
html.cy-powerup main,
html.cy-powerup .site-header { animation-duration: 0.46s; animation-delay: 0s; }
@keyframes cy-rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

/* The pre-roll before switching off: the page shivers for a fifth of a second. */
html.cy-glitching main { animation: cy-jitter 0.2s steps(4, end) both; }
html.cy-glitching .cy-brand::before { opacity: 1; color: rgba(62, 240, 255, 0.85); text-shadow: 3px 0 rgba(255, 42, 61, 0.9); clip-path: inset(18% 0 46% 0); transform: translateX(-6px); }
@keyframes cy-jitter {
  25% { transform: translate3d(-4px, 0, 0); }
  50% { transform: translate3d(3px, 1px, 0); }
  75% { transform: translate3d(-1px, 0, 0); }
  to { transform: none; }
}

/* No snapshots, switching off: the live scene collapses like a CRT. */
html.cy-powerdown { background: #020109; }
html.cy-powerdown .cy-scene { transform-origin: 50% 50%; animation: cy-crt 0.62s both; }
html.cy-powerdown main,
html.cy-powerdown .site-header,
html.cy-powerdown .cy-rail { animation: cy-out 0.26s ease both; }
@keyframes cy-crt {
  0% { transform: none; filter: none; animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35); }
  50% { transform: scale(1.03, 0.005); filter: brightness(3.4); animation-timing-function: cubic-bezier(0.6, 0, 0.75, 0.3); }
  82% { transform: scale(0.003, 0.004); filter: brightness(5); opacity: 1; }
  100% { transform: scale(0.003, 0.004); filter: brightness(5); opacity: 0; }
}
@keyframes cy-out { to { opacity: 0; } }

/* ── Motion off ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html[data-efb-mode="cyberpunk"] *,
  html[data-efb-mode="cyberpunk"] *::before,
  html[data-efb-mode="cyberpunk"] *::after { animation: none !important; }
}
