/* ==================================================================
   NYX // PROJECT — Cyberpunk Landing Page
   Design Concept : NEO-NOIR GLITCHWAVE
   Palette        : Deep Black #05050a / Cyan #00f0ff / Magenta #ff2da8
   Type           : Orbitron (display) / Rajdhani + Noto Sans JP (body)
                    / Share Tech Mono (terminal)
   ================================================================== */

/* ------------------------------------------------------------------
   0. Tokens & Reset
------------------------------------------------------------------ */
:root {
    --bg: #05050a;
    --bg-2: #0a0a14;
    --bg-3: #110b1e;
    --cyan: #00f0ff;
    --magenta: #ff2da8;
    --green: #39ff14;
    --yellow: #f5e000;
    --white: #f2f5f7;
    --text: #b8c0cc;
    --grey: #8a94a6;
    --line: rgba(0, 240, 255, 0.18);
    --line-soft: rgba(0, 240, 255, 0.1);

    --font-display: 'Orbitron', 'Noto Sans JP', sans-serif;
    --font-body: 'Rajdhani', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    --font-mono: 'Share Tech Mono', 'Noto Sans JP', 'Osaka-Mono', 'MS Gothic', monospace;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --nav-h: 64px;
    --chamfer: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
    scrollbar-color: rgba(0, 240, 255, .3) var(--bg);
    scrollbar-width: thin;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, .25); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--white);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}
body.is-booting, body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
input { font: inherit; }
a { color: inherit; }
p { margin: 0 0 1em; }

::selection { background: var(--magenta); color: var(--white); }
:focus-visible {
    outline: 1px solid var(--cyan);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 240, 255, .15);
}

.has-cursor, .has-cursor * { cursor: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: -100px; left: 1rem; z-index: 4000;
    padding: .75rem 1.25rem; background: var(--cyan); color: var(--bg);
    font-family: var(--font-mono); font-size: .75rem; letter-spacing: .2em; text-decoration: none;
    transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------
   1. Global background & overlays
------------------------------------------------------------------ */
.bg {
    position: fixed; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.overlay {
    position: fixed; inset: 0; z-index: 1000;
    pointer-events: none;
}
.overlay--scanlines {
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
    box-shadow: inset 0 0 25vmax rgba(0, 0, 0, .55);
}
.overlay--scanlines::after {
    content: ''; position: absolute; left: 0; right: 0; height: 18%;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, .045), transparent);
    animation: sweep 9s linear infinite;
}
.overlay--noise {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 240px 240px;
    opacity: .05;
    animation: noise-shift .5s steps(5) infinite;
}

/* ------------------------------------------------------------------
   2. Boot sequence
------------------------------------------------------------------ */
.boot {
    position: fixed; inset: 0; z-index: 2000;
    display: grid; place-items: center;
    background: var(--bg);
    transition: opacity .7s var(--ease), visibility 0s .7s;
}
.boot::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(57, 255, 20, .03) 0 1px, transparent 1px 4px);
}
.boot--done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__inner {
    position: relative; width: min(560px, 86vw);
    font-family: var(--font-mono); color: var(--green);
    transition: transform .5s var(--ease), opacity .4s;
}
.boot--done .boot__inner { transform: translateY(-12px); opacity: 0; }
.boot__logo {
    font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: .3em;
    color: var(--cyan); margin-bottom: 1.5rem; text-shadow: 0 0 16px rgba(0, 240, 255, .5);
}
.boot__logo span { color: var(--grey); font-family: var(--font-mono); font-weight: 400; font-size: .7rem; letter-spacing: .25em; margin-left: .75em; }
.boot__log {
    margin: 0; min-height: 9.8em; font-size: .8rem; line-height: 1.7; white-space: pre-wrap;
    text-shadow: 0 0 8px rgba(57, 255, 20, .55);
}
.boot__progress { height: 3px; background: rgba(57, 255, 20, .15); margin: 1.2rem 0 .6rem; overflow: hidden; }
.boot__bar { height: 100%; width: 0; background: var(--green); box-shadow: 0 0 12px var(--green); transition: width .18s linear; }
.boot__meta { display: flex; justify-content: space-between; font-size: .65rem; letter-spacing: .2em; color: var(--grey); }
.boot__hint { animation: blink 1.2s steps(2) infinite; }

/* ------------------------------------------------------------------
   3. Custom cursor
------------------------------------------------------------------ */
.cursor { position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__ring {
    position: fixed; top: 0; left: 0; width: 36px; height: 36px;
    border: 1px solid var(--cyan); border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 240, 255, .35), inset 0 0 8px rgba(0, 240, 255, .12);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.cursor__dot {
    position: fixed; top: 0; left: 0; width: 5px; height: 5px;
    background: var(--white); border-radius: 50%;
}
.cursor.is-hover .cursor__ring {
    width: 64px; height: 64px; border-color: var(--magenta);
    background: rgba(255, 45, 168, .08);
    box-shadow: 0 0 20px rgba(255, 45, 168, .4);
}
.cursor.is-down .cursor__ring { width: 26px; height: 26px; }

/* ------------------------------------------------------------------
   4. Toast
------------------------------------------------------------------ */
.toast {
    position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + 1rem); margin: 0 auto; width: max-content; max-width: 90vw;
    z-index: 150; padding: .75rem 1.25rem; text-align: center;
    border: 1px solid var(--yellow); background: rgba(20, 15, 0, .92); color: var(--yellow);
    font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
    opacity: 0; transform: translateY(-12px); transition: .4s var(--ease); pointer-events: none;
}
.toast.is-show { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
   5. Navigation
------------------------------------------------------------------ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid transparent;
    transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav--scrolled {
    background: rgba(5, 5, 10, .72);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom-color: var(--line);
}
.nav__progress {
    position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
    background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.nav__logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--cyan); }
.nav__logo svg { width: 32px; height: 32px; filter: drop-shadow(0 0 6px rgba(0, 240, 255, .5)); transition: transform .8s var(--ease); }
.nav__logo:hover svg { transform: rotate(120deg); }
.nav__logo-text { font-family: var(--font-display); font-weight: 900; letter-spacing: .3em; font-size: 1rem; color: var(--white); line-height: 1; }
.nav__logo-text small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .55rem; letter-spacing: .35em; color: var(--cyan); margin-top: .3rem; }

.nav__links { display: flex; gap: 2rem; }
.nav__link {
    position: relative; padding: .5rem 0;
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .25em; text-decoration: none;
    color: var(--text); transition: color .3s, text-shadow .3s;
}
.nav__link::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
    background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, .6); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__tools { display: flex; align-items: center; gap: .75rem; }
.sound {
    display: inline-flex; align-items: center; gap: .5em; padding: .5rem .8rem;
    background: transparent; border: 1px solid var(--line); color: var(--grey);
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em;
    transition: .3s;
}
.sound:hover { color: var(--cyan); border-color: var(--cyan); }
.sound[aria-pressed="true"] { color: var(--green); border-color: var(--green); text-shadow: 0 0 8px rgba(57, 255, 20, .6); }
.sound svg { width: 14px; height: 14px; }
.sound .icon-on { display: none; }
.sound[aria-pressed="true"] .icon-on { display: block; }
.sound[aria-pressed="true"] .icon-off { display: none; }

.burger {
    display: none; width: 44px; height: 44px; position: relative; z-index: 95;
    background: transparent; border: 1px solid var(--line);
}
.burger span { display: block; width: 20px; height: 1px; background: var(--cyan); margin: 4px auto; transition: .35s var(--ease); box-shadow: 0 0 6px rgba(0, 240, 255, .6); }
.burger:hover { border-color: var(--cyan); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu */
.menu {
    position: fixed; inset: 0; z-index: 90;
    display: flex; flex-direction: column; justify-content: center; padding: 0 2rem;
    background: rgba(5, 5, 10, .96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s 0s; }
.menu__link {
    display: block; padding: .75rem 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 7vw, 2.4rem); letter-spacing: .2em;
    color: var(--white); text-decoration: none;
    transform: translateX(-30px); opacity: 0; transition: .5s var(--ease), color .3s;
}
.menu__link span { color: var(--cyan); font-family: var(--font-mono); font-weight: 400; font-size: .5em; margin-right: 1em; letter-spacing: .3em; }
.menu__link:hover { color: var(--cyan); }
.menu.is-open .menu__link { transform: none; opacity: 1; transition-delay: calc(.15s + var(--i) * .07s); }
.menu__foot { margin-top: 2rem; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .25em; color: var(--grey); line-height: 1.9; }

/* ------------------------------------------------------------------
   6. Shared : sections / headings / reveal
------------------------------------------------------------------ */
main { position: relative; z-index: 1; }
.container { width: min(1200px, 100%); margin: 0 auto; position: relative; }

.section {
    position: relative;
    padding: clamp(5rem, 10vw, 9rem) 1.5rem;
    background: linear-gradient(180deg, rgba(5, 5, 10, .55), rgba(5, 5, 10, .86) 18%, rgba(5, 5, 10, .86) 82%, rgba(5, 5, 10, .55));
}
.section__head { position: relative; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__index {
    position: absolute; top: -1.1em; left: -.06em; z-index: -1;
    font-family: var(--font-display); font-weight: 900; font-size: clamp(6rem, 16vw, 13rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(0, 240, 255, .13);
    pointer-events: none; user-select: none;
}
.section__label {
    display: inline-flex; align-items: center; gap: .75em; margin-bottom: 1rem;
    font-family: var(--font-mono); font-size: .72rem; letter-spacing: .3em; color: var(--cyan);
}
.section__label::before { content: ''; width: 32px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.section__title {
    margin: 0 0 1rem; font-family: var(--font-body); font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3.4rem); letter-spacing: .12em; line-height: 1.25; color: var(--white);
}
.section__title .en {
    display: block; margin-top: .6em;
    font-family: var(--font-display); font-weight: 700; font-size: .38em; letter-spacing: .3em; color: var(--magenta);
}
.section__lead { max-width: 640px; font-size: 1.05rem; line-height: 1.95; color: var(--text); letter-spacing: .05em; margin: 0; }
.section__lead strong { color: var(--white); font-weight: 700; text-shadow: 0 0 12px rgba(0, 240, 255, .4); }

/* Intro (hero, after boot) */
.intro { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
body.is-loaded .intro { opacity: 1; transform: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-44px); }
.reveal--right { transform: translateX(44px); }
.reveal--scale { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
   7. Glitch text
------------------------------------------------------------------ */
.glitch { position: relative; display: inline-block; animation: glitch-skew 11s infinite; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; inset: 0;
    opacity: 0; pointer-events: none; will-change: clip-path, transform;
}
.glitch::before { color: var(--white); text-shadow: -2px 0 var(--magenta); animation: glitch-a 7s infinite; }
.glitch::after { color: var(--white); text-shadow: 2px 0 var(--cyan); animation: glitch-b 7s infinite -3s; }
.glitch--burst::before { animation: glitch-a .3s infinite; opacity: 1; }
.glitch--burst::after { animation: glitch-b .3s infinite; opacity: 1; }

/* ------------------------------------------------------------------
   8. Buttons
------------------------------------------------------------------ */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: 1.05rem 2.1rem; border: 0; text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--cyan); text-align: center; white-space: nowrap;
    background: linear-gradient(120deg, rgba(0, 240, 255, .95), rgba(0, 240, 255, .35));
    clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
    transition: color .3s, transform .4s var(--ease), filter .3s;
}
.btn::before {
    content: ''; position: absolute; inset: 1px; z-index: -1;
    background: var(--bg-2);
    clip-path: inherit;
    transform-origin: left; transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(0); }
.btn:hover, .btn:focus-visible { color: var(--bg); filter: drop-shadow(0 0 16px rgba(0, 240, 255, .45)); }
.btn:active { transform: scale(.97); }
.btn > * { position: relative; }
.btn:disabled, .btn.is-busy { opacity: .6; pointer-events: none; }

.btn--ghost { background: linear-gradient(120deg, rgba(0, 240, 255, .5), rgba(0, 240, 255, .15)); }
.btn--ghost:hover { filter: drop-shadow(0 0 16px rgba(0, 240, 255, .35)); }
.btn--magenta { background: linear-gradient(120deg, var(--magenta), rgba(255, 45, 168, .4)); color: var(--magenta); }

/* ------------------------------------------------------------------
   9. Hero
------------------------------------------------------------------ */
.hero {
    position: relative; overflow: hidden;
    min-height: 100vh; min-height: 100svh;
    display: grid; place-items: center;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 6rem;
}
.hero__horizon {
    position: absolute; left: 0; right: 0; bottom: 14%; height: 46vh; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 55% 55% at 50% 100%, rgba(255, 45, 168, .22), rgba(0, 240, 255, .07) 42%, transparent 72%);
}
.hero__city { position: absolute; left: 0; right: 0; bottom: 16%; width: 100%; height: 30vh; z-index: 1; pointer-events: none; }
.hero__beacons circle { animation: blink 2.4s steps(2) infinite; }
.hero__beacons circle:nth-child(2) { animation-delay: .8s; }
.hero__beacons circle:nth-child(3) { animation-delay: 1.6s; }

.hero__grid-wrap { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__grid {
    position: absolute; left: -50%; right: -50%; top: 58%; height: 70vh;
    background-image: linear-gradient(rgba(0, 240, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, .22) 1px, transparent 1px);
    background-size: 64px 64px;
    transform-origin: top center;
    transform: perspective(600px) rotateX(58deg);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
    animation: grid-flow 2.4s linear infinite;
}

.hero__content { position: relative; z-index: 2; text-align: center; max-width: 960px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .75em; margin-bottom: 2rem; padding: .55em 1.2em;
    border: 1px solid var(--line); background: rgba(0, 240, 255, .04);
    font-family: var(--font-mono); font-size: .7rem; letter-spacing: .25em; color: var(--cyan);
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.5s steps(2) infinite; }
.hero__eyebrow-ver { color: var(--grey); margin-left: .5em; }
.hero__title-wrap { margin: 0 0 1rem; }
.hero__title {
    display: inline-block; margin: 0;
    font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 21vw, 16rem); line-height: .9; letter-spacing: .06em;
    color: var(--white);
    text-shadow: 0 0 30px rgba(0, 240, 255, .4), 0 0 90px rgba(0, 240, 255, .18), 0 0 2px rgba(255, 255, 255, .8);
}
.hero__subtitle {
    margin: 0 0 1.5rem; font-family: var(--font-body); font-weight: 700;
    font-size: clamp(1.25rem, 3.2vw, 2.3rem); letter-spacing: .25em; color: var(--white);
}
.hero__subtitle em { font-style: normal; color: var(--cyan); text-shadow: 0 0 16px rgba(0, 240, 255, .6); }
.hero__lead { margin: 0 0 2.5rem; min-height: 1.8em; font-family: var(--font-mono); font-size: clamp(.85rem, 1.2vw, 1rem); letter-spacing: .08em; color: var(--text); }
.hero__caret { color: var(--cyan); animation: blink 1s steps(2) infinite; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem; }

.hero__stats { display: inline-flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero__stat { padding: 1rem 2rem; border-left: 1px solid var(--line); }
.hero__stat:last-child { border-right: 1px solid var(--line); }
.hero__stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--cyan); text-shadow: 0 0 14px rgba(0, 240, 255, .4); }
.hero__stat-num .unit { font-family: var(--font-mono); font-size: .55em; letter-spacing: .1em; color: var(--grey); margin-left: .15em; }
.hero__stat-label { display: block; margin-top: .3rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; color: var(--grey); }

.hero__scroll {
    position: absolute; left: 0; right: 0; bottom: 1.5rem; width: max-content; margin: 0 auto; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .35em; color: var(--grey);
}
.hero__scroll-line { position: relative; width: 1px; height: 48px; background: var(--line); overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--cyan); animation: scroll-drip 1.8s var(--ease) infinite; }

.corner { position: absolute; width: 56px; height: 56px; border: 1px solid rgba(0, 240, 255, .4); z-index: 3; pointer-events: none; }
.corner--tl { top: calc(var(--nav-h) + 1rem); left: 1.25rem; border-right: 0; border-bottom: 0; }
.corner--tr { top: calc(var(--nav-h) + 1rem); right: 1.25rem; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: 1.25rem; left: 1.25rem; border-right: 0; border-top: 0; }
.corner--br { bottom: 1.25rem; right: 1.25rem; border-left: 0; border-top: 0; }

.hud {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .5em;
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; color: var(--grey); pointer-events: none;
}
.hud b { font-weight: 400; color: var(--cyan); }
.hud b.ok { color: var(--green); }
.hud--tl { top: calc(var(--nav-h) + 1.4rem); left: calc(1.25rem + 72px); }
.hud--tr { top: calc(var(--nav-h) + 1.4rem); right: calc(1.25rem + 72px); }
.hud--bl { bottom: 2.4rem; left: calc(1.25rem + 72px); }
.hud--br { bottom: 2.4rem; right: calc(1.25rem + 72px); }

.hero__side {
    position: absolute; left: 1.6rem; top: 50%; z-index: 3; transform: translateY(-50%);
    writing-mode: vertical-rl; max-height: 52vh; overflow: hidden; white-space: nowrap;
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .4em; color: rgba(138, 148, 166, .6); pointer-events: none;
}

/* Matrix mode (easter egg) */
.is-matrix .hero__title { text-shadow: 0 0 30px rgba(57, 255, 20, .45), 0 0 90px rgba(57, 255, 20, .2); }
.is-matrix .glitch::before { text-shadow: -2px 0 var(--green); }
.is-matrix .hero__eyebrow, .is-matrix .hero__subtitle em, .is-matrix .nav__logo { color: var(--green); }
.is-matrix .hero__eyebrow { border-color: rgba(57, 255, 20, .4); background: rgba(57, 255, 20, .05); }
.is-matrix .hero__grid {
    background-image: linear-gradient(rgba(57, 255, 20, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 255, 20, .22) 1px, transparent 1px);
}

/* ------------------------------------------------------------------
   10. Prologue
------------------------------------------------------------------ */
.prologue__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.prologue__text p { font-size: 1.05rem; line-height: 2.05; letter-spacing: .05em; color: var(--text); margin-bottom: 1.5rem; }
.prologue__text strong { color: var(--white); font-weight: 700; }
.prologue__text em { font-style: normal; color: var(--magenta); text-shadow: 0 0 12px rgba(255, 45, 168, .5); }
.prologue__quote {
    margin: 2rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--cyan);
    font-weight: 700; font-size: 1.2rem; letter-spacing: .12em; line-height: 1.7; color: var(--white);
}
.prologue__quote cite { display: block; margin-top: .75rem; font-family: var(--font-mono); font-style: normal; font-weight: 400; font-size: .7rem; letter-spacing: .2em; color: var(--grey); }

.hud-panel {
    position: relative; border: 1px solid var(--line); background: rgba(10, 10, 20, .72);
    font-family: var(--font-mono);
}
.hud-panel::before, .hud-panel::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--cyan); }
.hud-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud-panel__head {
    display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem;
    border-bottom: 1px solid var(--line); font-size: .68rem; letter-spacing: .2em; color: var(--cyan);
}
.hud-panel__live { display: inline-flex; align-items: center; gap: .5em; color: var(--green); }
.hud-panel__live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1s steps(2) infinite; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.eq span {
    flex: 1; height: 100%; transform-origin: bottom; transform: scaleY(.3);
    background: linear-gradient(to top, rgba(0, 240, 255, .05), var(--cyan));
    box-shadow: 0 0 8px rgba(0, 240, 255, .3);
    animation: eq var(--t, 1s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s);
}
.readout { margin: 0; padding: .75rem 1rem; font-size: .72rem; }
.readout__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line-soft); color: var(--text); letter-spacing: .1em; }
.readout__row:last-child { border-bottom: 0; }
.readout__val { margin: 0; color: var(--white); }
.readout__val.bad { color: var(--magenta); }
.marquee { overflow: hidden; padding: .6rem 0; border-top: 1px solid var(--line); white-space: nowrap; }
.marquee__inner { display: inline-block; padding-left: 100%; color: var(--yellow); font-size: .65rem; letter-spacing: .2em; animation: marquee 20s linear infinite; }

.stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); margin-top: clamp(3rem, 6vw, 5rem);
}
.stat { background: var(--bg-2); padding: 2rem 1.5rem; text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--white); text-shadow: 0 0 20px rgba(0, 240, 255, .45); font-variant-numeric: tabular-nums; }
.stat__num::before { content: attr(data-prefix); color: var(--cyan); font-size: .6em; margin-right: .1em; }
.stat__num::after { content: attr(data-suffix); color: var(--cyan); font-size: .6em; margin-left: .1em; }
.stat__label { display: block; margin-top: .75rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; color: var(--grey); }

/* ------------------------------------------------------------------
   11. Solution / features
------------------------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding-bottom: 3rem; }
.feature {
    position: relative; overflow: hidden; padding: 2.5rem 2rem 2.25rem;
    border: 1px solid var(--line-soft); background: linear-gradient(160deg, rgba(10, 10, 20, .88), rgba(16, 11, 30, .88));
    transition: transform .5s var(--ease), border-color .3s, box-shadow .5s;
}
.feature:nth-child(even) { margin-top: 3rem; }
.feature::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan)); transition: left .8s var(--ease);
}
.feature::after {
    content: ''; position: absolute; right: 10px; bottom: 10px; width: 18px; height: 18px;
    border-right: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan); opacity: .5; transition: .3s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(0, 240, 255, .25), 0 24px 60px -24px rgba(0, 240, 255, .45), inset 0 0 60px rgba(0, 240, 255, .04); }
.feature:hover::before { left: 100%; }
.feature:hover::after { width: 36px; height: 36px; opacity: 1; }
.feature__icon { width: 56px; height: 56px; margin-bottom: 1.5rem; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(0, 240, 255, .5)); transition: transform .6s var(--ease), color .3s; }
.feature__icon svg { width: 100%; height: 100%; }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); color: var(--magenta); filter: drop-shadow(0 0 10px rgba(255, 45, 168, .6)); }
.feature__code { display: block; margin-bottom: .75rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .3em; color: var(--magenta); }
.feature__title { margin: 0 0 .35rem; font-size: 1.3rem; font-weight: 700; letter-spacing: .1em; color: var(--white); }
.feature__title span { display: block; margin-top: .4rem; font-family: var(--font-display); font-weight: 500; font-size: .62rem; letter-spacing: .25em; color: var(--cyan); }
.feature__desc { margin: 1rem 0 0; font-size: .97rem; line-height: 1.85; letter-spacing: .04em; color: var(--text); }

/* ------------------------------------------------------------------
   12. Architecture
------------------------------------------------------------------ */
.arch { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.arch__diagram {
    position: relative; padding: 1rem; border: 1px solid var(--line); background: rgba(8, 8, 16, .6);
    background-image: linear-gradient(rgba(0, 240, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, .05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.circuit { width: 100%; height: auto; }
.circuit__base path { stroke: rgba(0, 240, 255, .25); }
.circuit__flow .flow { stroke: var(--cyan); stroke-dasharray: 14 10; animation: trace-flow 1.4s linear infinite; filter: drop-shadow(0 0 4px rgba(0, 240, 255, .6)); }
.circuit__vias rect { opacity: .8; animation: via-pulse 2s ease-in-out infinite; }
.circuit__vias rect:nth-child(2) { animation-delay: .5s; }
.circuit__vias rect:nth-child(3) { animation-delay: 1s; }
.circuit__vias rect:nth-child(4) { animation-delay: 1.5s; }
.core-hex { fill: rgba(0, 240, 255, .08); stroke: var(--cyan); stroke-width: 1.5; }
.core-circle { fill: var(--cyan); transform-box: fill-box; transform-origin: center; animation: core-pulse 2s ease-in-out infinite; }
.circuit__core-label { fill: var(--cyan); font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; }
.circuit__fig { fill: var(--grey); font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; }
.node rect { fill: rgba(5, 5, 10, .92); stroke: rgba(0, 240, 255, .4); stroke-width: 1; transition: .3s; }
.node text { fill: var(--text); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-anchor: middle; dominant-baseline: middle; transition: .3s; }
.node[data-node] { pointer-events: none; }
.node--active rect { fill: var(--cyan); stroke: var(--cyan); filter: drop-shadow(0 0 8px rgba(0, 240, 255, .7)); }
.node--active text { fill: var(--bg); }

.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab {
    flex: 1; padding: .95rem .5rem; background: transparent; border: 0; border-bottom: 2px solid transparent;
    font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .2em; color: var(--grey);
    transition: .3s; position: relative;
}
.tab:hover { color: var(--white); background: rgba(0, 240, 255, .04); }
.tab[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, .6); }
.tabpane { padding: 1.5rem 0 0; }
.tabpane.is-active { animation: pane-in .5s var(--ease); }
.tabpane__title { margin: 0 0 .75rem; font-family: var(--font-display); font-size: .95rem; letter-spacing: .25em; color: var(--white); }
.tabpane__desc { margin: 0 0 1.25rem; font-size: .97rem; line-height: 1.85; letter-spacing: .04em; color: var(--text); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.spec > div { background: var(--bg-2); padding: .9rem 1rem; }
.spec dt { margin-bottom: .3rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; color: var(--grey); }
.spec dd { margin: 0; font-family: var(--font-display); font-size: .9rem; letter-spacing: .08em; color: var(--cyan); }

/* ------------------------------------------------------------------
   13. Protocol / timeline
------------------------------------------------------------------ */
.timeline { position: relative; max-width: 960px; margin: 0 auto; padding: 1rem 0; list-style: none; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--cyan) 8%, var(--cyan) 92%, transparent); opacity: .45;
}
.tl-item { position: relative; width: 50%; padding: 0 3.5rem 3.5rem 0; text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 3.5rem 3.5rem; text-align: left; }
.tl-item__marker {
    position: absolute; top: .5rem; right: -7px; width: 14px; height: 14px;
    background: var(--bg); border: 1px solid var(--cyan); transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 240, 255, .5); transition: .3s;
}
.tl-item:nth-child(even) .tl-item__marker { right: auto; left: -7px; }
.tl-item__marker::after { content: ''; position: absolute; inset: 3px; background: var(--cyan); opacity: 0; transition: .3s; }
.tl-item__marker--done::after { opacity: 1; }
.tl-item:hover .tl-item__marker { box-shadow: 0 0 18px rgba(0, 240, 255, .9); }
.tl-item__phase { display: block; margin-bottom: .5rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .3em; color: var(--magenta); }
.tl-item__date { display: block; margin-bottom: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .15em; color: var(--cyan); }
.tl-item__title { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 700; letter-spacing: .1em; color: var(--white); }
.tl-item__desc { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.8; color: var(--text); }
.tag { display: inline-block; padding: .35em .8em; border: 1px solid currentColor; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .25em; }
.tag--complete { color: var(--green); }
.tag--active { color: var(--cyan); animation: blink-soft 1.6s ease-in-out infinite; }
.tag--locked { color: var(--grey); }
.tag--classified { color: var(--yellow); }

/* ------------------------------------------------------------------
   14. Connect / CTA
------------------------------------------------------------------ */
.connect { text-align: center; }
.connect__frame {
    position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    border: 1px solid var(--line); background: radial-gradient(ellipse at center, rgba(0, 240, 255, .06), transparent 65%), rgba(8, 8, 16, .7);
}
.connect__frame::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: repeating-linear-gradient(135deg, var(--yellow) 0 10px, transparent 10px 20px); opacity: .55;
}
.connect__frame .corner { width: 40px; height: 40px; }
.connect__frame .corner--tl { top: 10px; left: 10px; }
.connect__frame .corner--tr { top: 10px; right: 10px; }
.connect__frame .corner--bl { bottom: 10px; left: 10px; }
.connect__frame .corner--br { bottom: 10px; right: 10px; }
.connect .section__label { justify-content: center; }
.connect .section__label::before { display: none; }
.connect__title { font-size: clamp(2.2rem, 6.5vw, 4.6rem); }
.connect__lead { margin: 0 auto 2.5rem; max-width: 560px; font-size: 1.05rem; line-height: 2; letter-spacing: .06em; color: var(--text); }

.countdown { display: flex; justify-content: center; gap: clamp(.6rem, 2vw, 1.25rem); margin: 0 auto 3rem; }
.cd {
    position: relative; min-width: clamp(68px, 12vw, 118px); padding: 1rem .5rem;
    border: 1px solid var(--line); background: rgba(10, 10, 20, .75);
}
.cd::before, .cd::after { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid var(--cyan); }
.cd::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cd::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.cd__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3.1rem); color: var(--white); text-shadow: 0 0 20px rgba(0, 240, 255, .5); font-variant-numeric: tabular-nums; line-height: 1; }
.cd__label { display: block; margin-top: .6rem; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .3em; color: var(--grey); }

.register { display: flex; gap: 1rem; max-width: 620px; margin: 0 auto; }
.register input {
    flex: 1; min-width: 0; padding: 1rem 1.25rem;
    background: rgba(10, 10, 20, .75); border: 1px solid var(--line); color: var(--white);
    font-family: var(--font-mono); font-size: .85rem; letter-spacing: .1em; outline: none;
    clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.register input::placeholder { color: rgba(138, 148, 166, .6); }
.register input:focus { border-color: var(--cyan); background: rgba(0, 240, 255, .05); box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(0, 240, 255, .25); }
.register input.is-error { border-color: var(--magenta); animation: shake .4s; }
.register__note { margin: 1.25rem 0 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .15em; color: var(--grey); }
.terminal { max-width: 620px; margin: 1.5rem auto 0; text-align: left; font-family: var(--font-mono); font-size: .75rem; line-height: 1.75; color: var(--green); text-shadow: 0 0 8px rgba(57, 255, 20, .5); white-space: pre-wrap; }
.terminal:empty { display: none; }

/* ------------------------------------------------------------------
   15. Footer
------------------------------------------------------------------ */
.footer {
    position: relative; z-index: 1;
    padding: 4rem 1.5rem 2rem; border-top: 1px solid var(--line); background: rgba(5, 5, 10, .95);
    font-family: var(--font-mono);
}
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px dashed rgba(0, 240, 255, .15); }
.footer__brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--cyan); font-family: var(--font-display); font-weight: 900; letter-spacing: .3em; font-size: 1.05rem; text-decoration: none; }
.footer__brand svg { width: 30px; height: 30px; }
.footer__brand:hover { text-shadow: 0 0 12px rgba(0, 240, 255, .6); }
.footer__tag { margin: 1rem 0 0; font-size: .68rem; letter-spacing: .2em; line-height: 1.9; color: var(--grey); }
.footer__head { margin: 0 0 1rem; font-family: var(--font-display); font-size: .68rem; letter-spacing: .3em; color: var(--magenta); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__link { display: inline-flex; align-items: center; gap: .5em; color: var(--text); text-decoration: none; font-size: .72rem; letter-spacing: .2em; transition: .3s; }
.footer__link::before { content: '>'; color: var(--cyan); opacity: .6; }
.footer__link:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, .6); transform: translateX(4px); }
.sns { display: flex; gap: .75rem; }
.sns a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--grey); transition: .3s; }
.sns a:hover { color: var(--bg); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px rgba(0, 240, 255, .5); }
.sns svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-top: 1.5rem; font-size: .62rem; letter-spacing: .2em; color: var(--grey); }
.barcode { width: 160px; height: 28px; color: var(--grey); opacity: .8; }

/* ------------------------------------------------------------------
   16. Keyframes
------------------------------------------------------------------ */
@keyframes blink { 50% { opacity: 0; } }
@keyframes blink-soft { 50% { opacity: .45; } }
@keyframes sweep { from { transform: translateY(-100%); } to { transform: translateY(100vh); } }
@keyframes noise-shift {
    0% { background-position: 0 0; } 20% { background-position: -60px 40px; } 40% { background-position: 40px -80px; }
    60% { background-position: -80px -40px; } 80% { background-position: 60px 80px; } 100% { background-position: 0 0; }
}
@keyframes grid-flow { to { background-position: 0 64px, 0 0; } }
@keyframes scroll-drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@keyframes eq { from { transform: scaleY(.12); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes trace-flow { to { stroke-dashoffset: -24; } }
@keyframes via-pulse { 50% { opacity: .25; } }
@keyframes core-pulse { 50% { transform: scale(1.6); opacity: .6; } }
@keyframes pane-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@keyframes glitch-skew {
    0%, 100% { transform: none; }
    31% { transform: none; }
    32% { transform: skewX(-2deg) translateX(2px); }
    33% { transform: none; }
    64% { transform: none; }
    65% { transform: skewX(1.5deg); }
    66% { transform: none; }
}
@keyframes glitch-a {
    0%, 100% { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
    2% { opacity: 1; clip-path: inset(20% 0 55% 0); transform: translate(-4px, -2px); }
    4% { clip-path: inset(60% 0 15% 0); transform: translate(4px, 1px); }
    6% { clip-path: inset(35% 0 40% 0); transform: translate(-3px, 0); }
    8% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
    42% { opacity: 0; }
    44% { opacity: 1; clip-path: inset(75% 0 5% 0); transform: translate(5px, 0); }
    46% { clip-path: inset(10% 0 80% 0); transform: translate(-5px, 2px); }
    48% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
    72% { opacity: 0; }
    73% { opacity: 1; clip-path: inset(45% 0 45% 0); transform: translate(2px, -1px); }
    75% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes glitch-b {
    0%, 100% { clip-path: inset(100% 0 0 0); transform: none; opacity: 0; }
    12% { opacity: 0; }
    13% { opacity: 1; clip-path: inset(50% 0 30% 0); transform: translate(4px, 1px); }
    15% { clip-path: inset(5% 0 85% 0); transform: translate(-4px, -1px); }
    17% { opacity: 0; clip-path: inset(100% 0 0 0); transform: none; }
    55% { opacity: 0; }
    56% { opacity: 1; clip-path: inset(30% 0 60% 0); transform: translate(-3px, 0); }
    58% { clip-path: inset(70% 0 10% 0); transform: translate(3px, 2px); }
    60% { opacity: 0; clip-path: inset(100% 0 0 0); transform: none; }
    88% { opacity: 0; }
    89% { opacity: 1; clip-path: inset(15% 0 70% 0); transform: translate(5px, 0); }
    91% { opacity: 0; clip-path: inset(100% 0 0 0); transform: none; }
}

/* ------------------------------------------------------------------
   17. Responsive
------------------------------------------------------------------ */
@media (max-width: 1200px) {
    .hero__side { display: none; }
}
@media (max-width: 1024px) {
    .nav__links { gap: 1.25rem; }
    .arch { grid-template-columns: 1fr; }
    .arch__diagram { max-width: 640px; margin: 0 auto; width: 100%; }
}
@media (max-width: 860px) {
    .nav__links { display: none; }
    .burger { display: block; }
    .prologue__grid { grid-template-columns: 1fr; }
    .prologue__visual { max-width: 520px; }
    .hud--bl, .hud--br { display: none; }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__brand-wrap { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .hud { display: none; }
    .corner { width: 36px; height: 36px; }
    .features { grid-template-columns: 1fr; padding-bottom: 0; }
    .feature:nth-child(even) { margin-top: 0; }
    .timeline::before { left: 7px; }
    .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2.5rem 2.25rem; text-align: left; }
    .tl-item__marker, .tl-item:nth-child(even) .tl-item__marker { left: 0; right: auto; top: .4rem; width: 15px; height: 15px; }
    .stats { grid-template-columns: 1fr; }
    .hero__stats { flex-direction: column; }
    .hero__stat { border-left: 0; border-bottom: 1px solid var(--line); }
    .hero__stat:last-child { border-right: 0; border-bottom: 0; }
    .hero__stat-num { font-size: 1.3rem; }
    .hero__stat-label { margin-top: .1rem; }
    .hero__city { bottom: 20%; height: 22vh; }
    .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nav { padding: 0 1rem; }
    .sound__label { display: none; }
    .sound { padding: .6rem .7rem; }
    .hero { padding-bottom: 5rem; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .register { flex-direction: column; }
    .register .btn { width: 100%; }
    .footer__bottom { justify-content: center; text-align: center; }
    .cd { min-width: 0; flex: 1; }
}

/* ------------------------------------------------------------------
   18. Reduced motion
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .intro, .reveal { opacity: 1 !important; transform: none !important; }
    .boot { display: none !important; }
    .cursor { display: none !important; }
    .overlay--noise, .overlay--scanlines::after { display: none; }
}
