
  :root {
    --bg: #0a0a0a;
    --bg-raised: #111111;
    --bg-card: #111111;
    --line: rgba(255, 198, 126, 0.14);
    --line-soft: #2e2e2e;
    --gold: #ffc67e;
    --gold-bright: #ffd9a3;
    --gold-dim: rgba(255, 198, 126, 0.55);
    --accent2: #be5cd8;
    --red: #d9604f;
    --text: #e8e8e8;
    --text-dim: #b8b8b8;
    --text-faint: #8a8a8a;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --max-w: 1120px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
  /* anchor targets must clear the 56px fixed nav */
  section[id] { scroll-margin-top: 72px; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 15.5px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: rgba(255, 198, 126, 0.25); color: #fff; }

  a { color: inherit; }

  /* ---------- Background layers ---------- */
  #starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  #orrery-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  #orrery {
    width: min(88vmin, 780px);
    height: min(88vmin, 780px);
    opacity: 0.42;
    filter: drop-shadow(0 0 24px rgba(255, 198, 126, 0.12));
  }
  @media (max-width: 768px) {
    #orrery { width: 120vmin; height: 120vmin; opacity: 0.22; }
  }


  /* ---------- Page chrome ---------- */
  .page { position: relative; z-index: 1; }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 44px);
    height: 56px;
    background: var(--bg);
    border-bottom: 2px solid var(--line-soft);
    transition: border-color 0.3s;
  }
  nav.nav-scrolled { border-bottom-color: var(--gold); }
  .nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }
  .home-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    font-variant: small-caps;
    text-decoration: none;
    color: var(--text-faint);
    white-space: nowrap;
    transition: color 0.2s;
  }
  .home-link:hover { color: var(--accent2); }
  .crumb-sep { color: var(--line-soft); font-family: var(--font-mono); }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 18px;
    text-transform: uppercase;
    color: #ffffff;
  }
  .brand .mark {
    width: 26px; height: 26px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
  }
  .brand .mark::after {
    content: "";
    position: absolute;
    top: 2px; left: 50%;
    width: 5px; height: 5px;
    margin-left: -2.5px;
    background: var(--gold);
    border-radius: 50%;
  }
  .nav-cta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-decoration: none;
    color: var(--gold);
    border: 1px solid rgba(255, 198, 126, 0.4);
    border-radius: 0;
    padding: 8px 16px;
    transition: background 0.25s, color 0.25s;
  }
  .nav-cta:hover { background: var(--gold); color: #12100a; }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
  }
  @media (max-width: 480px) {
    .brand .brand-name { display: none; }
    .nav-cta { font-size: 11px; padding: 7px 12px; }
    .nav-right { gap: 12px; }
  }

  /* ---------- Shared section layout ---------- */
  section { position: relative; }
  .inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
  }
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  .eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: var(--gold-dim);
  }
  h2 {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.4vw, 62px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 18em;
  }
  .lede {
    color: var(--text-dim);
    max-width: 40em;
    margin-top: 18px;
    font-size: clamp(16px, 1.6vw, 18px);
  }

  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
  }
  .reveal.visible { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* ---------- Hero ---------- */
  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 90px;
    padding-bottom: 110px;
    overflow: hidden;
  }
  .hero .orbits {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .hero .orbits span {
    position: absolute;
    border: 1px solid rgba(255, 198, 126, 0.07);
    border-radius: 50%;
  }
  .hero .orbits span:nth-child(1) { width: 62vmin; height: 62vmin; }
  .hero .orbits span:nth-child(2) { width: 92vmin; height: 92vmin; border-color: rgba(190, 92, 216, 0.05); }
  .hero .orbits span:nth-child(3) { width: 128vmin; height: 128vmin; }
  .hero-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 26px;
  }
  h1 {
    font-family: var(--font-display);
    font-size: clamp(68px, 12vw, 150px);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 0.9;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 20%, var(--gold-bright) 75%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero .tagline {
    margin-top: 26px;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    color: var(--text);
    max-width: 30em;
    line-height: 1.5;
  }
  .hero .tagline em {
    font-style: normal;
    color: var(--gold);
  }
  .hero .sub {
    margin-top: 16px;
    color: var(--text-dim);
    max-width: 36em;
  }
  .hero-ctas { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
  .btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 14px 26px;
    border-radius: 0;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  }
  .btn-primary {
    background: var(--gold);
    color: #0a0a0a;
    font-weight: 500;
    box-shadow: 0 0 32px rgba(255, 198, 126, 0.22);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 44px rgba(255, 198, 126, 0.38); }
  .btn-ghost {
    color: var(--text);
    border: 2px solid var(--line-soft);
  }
  .btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); }
  .scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--text-faint);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }
  .scroll-hint::after {
    content: "";
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, var(--gold-dim), transparent);
    animation: drip 2.2s ease-in-out infinite;
  }
  @keyframes drip {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }
  @media (prefers-reduced-motion: reduce) { .scroll-hint::after { animation: none; } }

  /* ---------- Proof band ---------- */
  .proof {
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.65), rgba(13, 13, 13, 0.85));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 56px 0;
  }
  .proof .claim { max-width: 46em; }
  .proof .claim {
    font-size: clamp(16px, 1.9vw, 20px);
    font-weight: 500;
    line-height: 1.55;
  }
  .proof .claim strong { color: var(--gold); font-weight: 600; }
  .proof .claim .live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent2);
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .proof .claim .live::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 10px var(--accent2);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse { 50% { opacity: 0.35; } }

  /* ---------- Feature surfaces ---------- */
  .features-head { padding: clamp(90px, 12vh, 150px) 0 30px; }

  .surface {
    padding: clamp(70px, 10vh, 120px) 0;
  }
  .surface .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
  }
  .surface:nth-of-type(even) .inner .s-visual { order: -1; }
  .s-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.26em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 14px;
  }
  .s-label .num {
    font-size: 26px;
    color: rgba(255, 198, 126, 0.32);
    font-weight: 500;
    letter-spacing: 0;
  }
  .surface h3 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #ffffff;
  }
  .surface .s-desc { color: var(--text-dim); margin-top: 14px; }
  .surface ul {
    list-style: none;
    margin-top: 26px;
    display: grid;
    gap: 13px;
  }
  .surface li {
    position: relative;
    padding-left: 26px;
    color: var(--text-dim);
    font-size: 15.5px;
  }
  .surface li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 8px; height: 8px;
    border: 1.5px solid var(--gold-dim);
    border-radius: 50%;
  }
  .surface li b { color: var(--text); font-weight: 600; }

  /* Visual mock panels */
  .panel {
    background: linear-gradient(160deg, var(--bg-card), var(--bg-raised));
    border: 2px solid var(--line-soft);
    border-radius: 0;
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
  }
  .panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
  }
  .panel-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .panel-title .ok { color: var(--accent2); }

  .chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 5px 11px;
    border-radius: 0;
    border: 2px solid var(--line-soft);
    color: var(--text-dim);
    margin: 0 6px 6px 0;
  }
  .chip.on { border-color: rgba(255, 198, 126, 0.5); color: var(--gold); background: rgba(255, 198, 126, 0.07); }
  .chip.teal { border-color: rgba(190, 92, 216, 0.4); color: var(--accent2); }

  .qr-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
  .qr-box {
    background: #fdf6ec;
    border-radius: 0;
    padding: 10px;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
  }
  .balance-line { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); margin-top: 8px; }
  .balance-line b { color: var(--gold); font-size: 20px; font-weight: 500; }
  .meter {
    height: 5px;
    background: rgba(160, 160, 160, 0.15);
    border-radius: 0;
    margin-top: 10px;
    overflow: hidden;
    min-width: 160px;
  }
  .meter i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--gold), var(--accent2)); border-radius: 0; }

  .big-counter {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-weight: 700;
    margin: 6px 0 14px;
  }
  .big-counter b { font-family: var(--font-display); font-size: 64px; font-weight: 900; color: var(--accent2); letter-spacing: 0; }
  .big-counter span { font-size: 20px; color: var(--text-faint); font-weight: 400; }
  .scan-feed { font-family: var(--font-mono); font-size: 12px; display: grid; gap: 8px; color: var(--text-dim); }
  .scan-feed div { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(160, 160, 160, 0.12); padding-bottom: 7px; }
  .scan-feed .t { color: var(--text-faint); }
  .scan-feed .new { color: var(--accent2); }

  .keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
  .keypad button {
    font-family: var(--font-mono);
    font-size: 15px;
    padding: 14px 0;
    background: rgba(160, 160, 160, 0.07);
    color: var(--text);
    border: 2px solid var(--line-soft);
    border-radius: 0;
    cursor: default;
  }
  .keypad button.gold { background: rgba(255, 198, 126, 0.1); border-color: rgba(255, 198, 126, 0.4); color: var(--gold); }
  .pos-total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .pos-total b { color: var(--gold); }

  .table-mock { font-family: var(--font-mono); font-size: 12px; width: 100%; border-collapse: collapse; }
  .table-mock th {
    text-align: left;
    color: var(--text-faint);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 10px;
    padding: 0 8px 10px 0;
  }
  .table-mock td { padding: 9px 8px 9px 0; border-top: 1px solid rgba(160, 160, 160, 0.1); color: var(--text-dim); }
  .pill { font-size: 10px; padding: 3px 9px; border-radius: 0; }
  .pill.a { background: rgba(190, 92, 216, 0.14); color: var(--accent2); }
  .pill.i { background: rgba(160, 160, 160, 0.1); color: var(--text-faint); }

  .bars { display: flex; align-items: flex-end; gap: 7px; height: 120px; margin-top: 10px; }
  .bars i {
    flex: 1;
    background: linear-gradient(180deg, rgba(190, 92, 216, 0.85), rgba(190, 92, 216, 0.25));
    border-radius: 0;
    min-width: 8px;
  }
  .bars i.peak { background: linear-gradient(180deg, var(--gold), rgba(255, 198, 126, 0.3)); }
  .bars-x { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-top: 8px; }
  .low-list { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; display: grid; gap: 7px; }
  .low-list div { display: flex; justify-content: space-between; color: var(--text-dim); }
  .low-list .warn { color: var(--gold); }
  .low-list .dep { color: var(--red); }

  @media (max-width: 860px) {
    .surface .inner { grid-template-columns: 1fr; }
    .surface:nth-of-type(even) .inner .s-visual { order: 0; }
  }

  /* ---------- Security ---------- */
  .security {
    padding: clamp(90px, 12vh, 150px) 0;
    background: linear-gradient(180deg, transparent, rgba(13, 13, 13, 0.6) 20%, rgba(13, 13, 13, 0.6) 80%, transparent);
  }
  .sec-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
  .sec-card {
    border: 2px solid var(--line-soft);
    border-radius: 0;
    padding: 28px 24px;
    background: rgba(17, 17, 17, 0.6);
    transition: border-color 0.3s, transform 0.3s;
  }
  .sec-card:hover { border-color: rgba(255, 198, 126, 0.35); transform: translateY(-3px); }
  .sec-card .ico {
    width: 40px; height: 40px;
    border: 1.5px solid var(--gold-dim);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--gold);
  }
  .sec-card h4 { font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: #ffffff; margin-bottom: 8px; }
  .sec-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

  /* ---------- Planned & upcoming ---------- */
  .roadmap { padding: clamp(90px, 12vh, 150px) 0; }
  .roadmap .sec-card {
    border-style: dashed;
    background: rgba(17, 17, 17, 0.35);
  }
  .roadmap .sec-card .tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 14px;
  }

  /* ---------- In the field (kept deliberately quiet) ---------- */
  .impact { padding: clamp(90px, 12vh, 150px) 0; }
  .field-notes {
    margin-top: 44px;
    max-width: 640px;
    border: 2px solid var(--line-soft);
    border-left: 4px solid var(--gold-dim);
    background: var(--bg-raised);
    padding: 20px 24px;
  }
  .field-notes .fn-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-faint);
    margin-bottom: 12px;
  }
  .field-notes .fn-line {
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--text-dim);
  }
  .field-notes .fn-note {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-faint);
  }

  /* ---------- Footer / closing ---------- */
  .closing {
    padding: clamp(100px, 16vh, 190px) 0 60px;
    text-align: center;
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, transparent, rgba(14, 10, 16, 0.55));
  }
  .closing h2 { margin: 0 auto; max-width: 15em; }
  .closing .lede { margin-left: auto; margin-right: auto; text-align: center; }
  .closing .hero-ctas { justify-content: center; }
  .foot-links {
    margin-top: 90px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
  }
  .foot-links .links { display: flex; gap: 18px 26px; flex-wrap: wrap; justify-content: center; }
  @media (max-width: 640px) {
    .foot-links { justify-content: center; text-align: center; }
  }
  .foot-links a { color: var(--text-faint); text-decoration: none; transition: color 0.2s; }
  .foot-links a:hover { color: var(--gold); }

  /* ---------- Rikoukei texture layers ---------- */
  .grain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.06;
    mix-blend-mode: overlay;
  }
  .scan-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 198, 126, 0.015) 3px,
      rgba(255, 198, 126, 0.015) 4px
    );
  }

  /* ---------- Custom cursor (desktop) ---------- */
  @media (pointer: fine) {
    body.cursor-custom, body.cursor-custom a, body.cursor-custom button { cursor: none; }
    .cursor-reticle {
      position: fixed;
      top: 0; left: 0;
      width: 24px; height: 24px;
      pointer-events: none;
      z-index: 10000;
      transform: translate(-50%, -50%);
      will-change: transform;
    }
    .cursor-reticle::before,
    .cursor-reticle::after {
      content: "";
      position: absolute;
      background: var(--gold);
    }
    .cursor-reticle::before { top: 50%; left: 2px; right: 2px; height: 1px; transform: translateY(-50%); }
    .cursor-reticle::after { left: 50%; top: 2px; bottom: 2px; width: 1px; transform: translateX(-50%); }
    .cursor-ring {
      position: fixed;
      top: 0; left: 0;
      width: 24px; height: 24px;
      border: 1.5px solid var(--gold);
      pointer-events: none;
      z-index: 10000;
      transform: translate(-50%, -50%);
      opacity: 0.6;
      will-change: transform;
    }
  }
  @media (pointer: coarse) {
    .cursor-reticle, .cursor-ring { display: none; }
  }

  /* ---------- Section header glitch ---------- */
  .glitch-active { animation: glitch-text 0.4s steps(2) forwards; }
  @keyframes glitch-text {
    0% { opacity: 1; transform: translate(0); text-shadow: none; }
    10% { opacity: 0.7; transform: translate(-3px, 1px); text-shadow: 2px 0 var(--gold), -2px 0 var(--accent2); }
    20% { opacity: 1; transform: translate(2px, -1px); text-shadow: -1px 0 var(--accent2), 1px 0 var(--gold); }
    30% { opacity: 0.8; transform: translate(0, 2px); text-shadow: 2px 0 var(--gold); }
    40% { opacity: 1; transform: translate(-1px, 0); text-shadow: none; }
    50% { opacity: 0.6; transform: translate(3px, 1px); text-shadow: -2px 0 var(--accent2), 3px 0 var(--gold); }
    60% { opacity: 1; transform: translate(0); text-shadow: 1px 0 var(--gold); }
    70% { opacity: 0.9; transform: translate(-2px, -1px); text-shadow: -1px 0 var(--accent2); }
    80% { opacity: 1; transform: translate(1px, 0); text-shadow: none; }
    100% { opacity: 1; transform: translate(0); text-shadow: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .glitch-active { animation: none; }
  }

  /* ---------- Warp-out departure (to the apps page) ---------- */
  .warp-out { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
  .warp-out .wfill {
    position: absolute; inset: 0; background: var(--bg);
    clip-path: circle(0px at var(--cx) var(--cy));
    animation: warp-fill 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.1s;
  }
  .warp-out .wring {
    position: absolute; left: var(--cx); top: var(--cy);
    width: 16px; height: 16px; margin: -8px 0 0 -8px;
    border: 2px solid var(--gold); border-radius: 50%; opacity: 0;
    animation: warp-out-ring 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .warp-out .wring:nth-child(3) { animation-delay: 0.09s; border-width: 1px; }
  .warp-out .wring:nth-child(4) { animation-delay: 0.18s; border-width: 1px; border-color: var(--accent2); }
  .warp-out .wlabel {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
    color: var(--gold); opacity: 0;
    animation: warp-out-label 0.35s ease forwards 0.4s;
  }
  @keyframes warp-fill { to { clip-path: circle(150% at var(--cx) var(--cy)); } }
  @keyframes warp-out-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(70); opacity: 0; } }
  @keyframes warp-out-label { to { opacity: 1; } }

  /* ---------- Warp-in arrival (from the Rikoukei site) ---------- */
  #warp-in {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
  }
  #warp-in.done { opacity: 0; pointer-events: none; }
  #warp-in .wring {
    position: absolute;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
  }
  #warp-in .wring.r1 { width: 26vmin; height: 26vmin; }
  #warp-in .wring.r2 { width: 46vmin; height: 46vmin; border-color: var(--accent2); border-width: 1px; }
  #warp-in .wring.r3 { width: 68vmin; height: 68vmin; border-width: 1px; }
  #warp-in .wdot {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
  }
  #warp-in .wlabel {
    position: absolute;
    margin-top: 42vmin;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--gold-dim);
    opacity: 0;
  }
  #warp-in.play .wring { animation: warp-ring 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  #warp-in.play .wring.r2 { animation-delay: 0.1s; }
  #warp-in.play .wring.r3 { animation-delay: 0.2s; }
  #warp-in.play .wdot { animation: warp-dot 0.9s ease forwards 0.15s; }
  #warp-in.play .wlabel { animation: warp-label 0.8s ease forwards 0.25s; }
  @keyframes warp-ring {
    0% { transform: scale(2.8); opacity: 0; }
    30% { opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.15; }
  }
  @keyframes warp-dot {
    0% { transform: scale(0); opacity: 0; }
    40% { transform: scale(1.6); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
  }
  @keyframes warp-label {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* ---------- Mobile performance ----------
     Drop the GPU-heavy layers on small screens: blend-mode grain,
     scanlines, backdrop blur, and the big SVG drop-shadow. The starfield
     is drawn once (no parallax redraws) and the orrery is a simple fade. */
  @media (max-width: 768px) {
    .grain, .scan-layer { display: none; }
    .proof { backdrop-filter: none; -webkit-backdrop-filter: none; }
    #orrery { filter: none; }
    .reveal {
      transform: translateY(14px);
      transition-duration: 0.45s;
    }
  }
