/* ================================================================
   SATORBITAL — CRT TACTICAL TERMINAL LANDING
   ================================================================
   Aesthetic: Military CRT phosphor monitor, tactical terminal
   Font: VT323 (primary), JetBrains Mono (data labels)
   Palette: #050505 black, #00ff41 green phosphor, #ff9d00 amber, #ff3333 red
   ================================================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
    --bg:          #050505;
    --bg-panel:    rgba(0, 12, 0, 0.65);
    --phosphor:    #00ff41;
    --phosphor-rgb: 0, 255, 65;
    --phosphor-dim: rgba(0, 255, 65, 0.30);
    --phosphor-lo:  rgba(0, 255, 65, 0.12);
    --phosphor-xlo: rgba(0, 255, 65, 0.06);
    --amber:       #ff9d00;
    --amber-dim:   rgba(255, 157, 0, 0.35);
    --red:         #ff3333;
    --red-dim:     rgba(255, 51, 51, 0.30);
    --cyan:        #00e5ff;
    --cyan-dim:    rgba(0, 229, 255, 0.30);
    --text:        #c8ffc8;
    --text-dim:    rgba(0, 255, 65, 0.55);
    --border:      rgba(0, 255, 65, 0.25);
    --border-hi:   rgba(0, 255, 65, 0.50);
    --font-term:   'VT323', monospace;
    --font-data:   'JetBrains Mono', 'Courier New', monospace;
    --glow-sm:     0 0 4px  rgba(0,255,65,0.4);
    --glow-md:     0 0 10px rgba(0,255,65,0.25);
    --glow-lg:     0 0 25px rgba(0,255,65,0.15);
    --glow-text:   0 0 8px rgba(0,255,65,0.6);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-term);
    background: var(--bg);
    color: var(--phosphor);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='21'%3E%3Cpath d='M0 0L0 17L4 12L7 20L10 18L7 11L13 11Z' fill='%2300ff41' stroke='%23001a00' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0, auto;
    animation: crt-flicker 8s infinite;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* --- SCROLLBARS --- */
::-webkit-scrollbar { width: 6px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--phosphor-dim); }
* { scrollbar-width: thin; scrollbar-color: var(--phosphor-dim) var(--bg); }

/* ================================================================
   3D BACKGROUND GLOBE (Three.js)
   ================================================================ */
#bg-globe-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(1.5px) brightness(0.7);
    opacity: 0;
    transition: opacity 2s ease 0.2s;
    pointer-events: none;
}

body.booted #bg-globe-canvas { opacity: 1; }

/* Dark gradient overlay to ensure text readability */
#bg-globe-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, transparent 25%, rgba(5,5,5,0.45) 75%),
        linear-gradient(180deg, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.08) 30%, rgba(5,5,5,0.08) 70%, rgba(5,5,5,0.4) 100%);
}

/* --- TEXT UTILITIES --- */
.text-green  { color: var(--phosphor); text-shadow: var(--glow-text); }
.text-amber  { color: var(--amber); text-shadow: 0 0 8px var(--amber-dim); }
.text-red    { color: var(--red); text-shadow: 0 0 8px var(--red-dim); }
.text-cyan   { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-dim); }
.lp          { color: var(--text-dim); }          /* line prefix "> " */
.bb          { color: var(--text-dim); }          /* bracket "[ ]" */

/* ================================================================
   CRT OVERLAY LAYERS
   ================================================================ */

/* Scanlines */
.crt-scanlines {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    opacity: 0.50;
}

/* Vignette */
.crt-vignette {
    position: fixed;
    inset: 0;
    z-index: 8999;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.55) 100%);
}

/* Subtle global flicker */
@keyframes crt-flicker {
    0%,100% { opacity: 1; }
    4%      { opacity: 0.97; }
    8%      { opacity: 1; }
    12%     { opacity: 0.985; }
    50%     { opacity: 0.995; }
    54%     { opacity: 0.97; }
    58%     { opacity: 1; }
    92%     { opacity: 0.99; }
}

/* ================================================================
   HERO ASCII EARTH (decorative, right side of hero)
   ================================================================ */
.hero-ascii-earth {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-data);
    font-size: clamp(6px, 0.85vw, 10px);
    line-height: 1.1;
    letter-spacing: 0.3px;
    color: var(--phosphor);
    opacity: 0.12;
    text-shadow: 0 0 8px rgba(0,255,65,0.3);
    white-space: pre;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    transition: opacity 1.5s ease 0.8s;
}

body.booted .hero-ascii-earth {
    opacity: 0.12;
}

@media (max-width: 900px) {
    .hero-ascii-earth { display: none; }
}

.blink {
    animation: cursor-blink 1s steps(2) infinite;
}

@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ================================================================
   COORDINATE HUD (top & bottom bars)
   ================================================================ */
.coord-hud {
    position: fixed;
    left: 0; right: 0;
    z-index: 8998;
    display: flex;
    justify-content: space-between;
    padding: 6px 20px;
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-dim);
    pointer-events: none;
    border-color: var(--border);
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
}

body.booted .coord-hud { opacity: 1; }

/* ================================================================
   SKIP LINK (a11y)
   ================================================================ */
.skip-link {
    position: fixed;
    left: 12px; top: 32px;
    z-index: 9999;
    padding: 8px 14px;
    background: var(--phosphor);
    color: var(--bg);
    font-family: var(--font-term);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s;
}
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--phosphor); }

/* ================================================================
   HEADER — System Status Bar
   ================================================================ */
.sys-header {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: rgba(0, 8, 0, 0.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.6s ease 0.5s;
}

body.booted .sys-header { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .crt-scanlines,
    .crt-vignette {
        opacity: 0.15;
    }
}

.sys-header-left { display: flex; align-items: center; gap: 10px; }

.sys-led {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--phosphor);
    box-shadow: 0 0 6px var(--phosphor), 0 0 14px var(--phosphor-dim);
    animation: led-pulse 2s ease-in-out infinite;
}

@keyframes led-pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 6px var(--phosphor), 0 0 14px var(--phosphor-dim); }
    50%     { opacity: 0.6; box-shadow: 0 0 3px var(--phosphor-dim); }
}

.sys-brand {
    font-size: 22px;
    letter-spacing: 2px;
    text-shadow: var(--glow-text);
}

.sys-nav { display: flex; align-items: center; gap: 12px; }

.sys-nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.2s, text-shadow 0.2s;
}
.sys-nav-link:hover,
.sys-nav-link[aria-current='location'] {
    color: var(--phosphor);
    text-shadow: var(--glow-text);
}

.sys-nav-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--phosphor);
    color: var(--phosphor);
    text-decoration: none;
    font-family: var(--font-term);
    font-size: 16px;
    letter-spacing: 1px;
    text-shadow: var(--glow-text);
    box-shadow: var(--glow-sm), inset 0 0 12px var(--phosphor-xlo);
    transition: background 0.2s, box-shadow 0.2s;
}
.sys-nav-btn:hover {
    background: rgba(0,255,65,0.08);
    box-shadow: var(--glow-md), inset 0 0 20px var(--phosphor-lo);
}

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
main {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 32px));
    margin: 24px auto 60px;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

body.booted main { opacity: 1; }

.section { margin-top: 72px; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-hdr {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(20px, 3vw, 30px);
    letter-spacing: 3px;
    text-shadow: var(--glow-text);
    margin-bottom: 28px;
    font-weight: normal;
}

.hdr-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}
.section-hdr .hdr-rule:last-child {
    background: linear-gradient(270deg, var(--border), transparent);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero { margin-top: 36px; }

.minimal-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0 !important;
}

.hero-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 0;
}

.hero-minimal-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.4vh, 30px);
}

.hero-title-minimal {
    font-size: clamp(36px, 7vw, 72px) !important;
    letter-spacing: 10px;
    text-shadow: 0 0 30px rgba(0,255,65,0.4), 0 0 80px rgba(0,255,65,0.1);
    margin: 0 !important;
    line-height: 1 !important;
}

.hero-tagline {
    font-family: var(--font-data);
    font-size: clamp(11px, 1.5vw, 18px);
    letter-spacing: 3px;
    color: var(--text-dim);
    min-height: 1.5em;
    text-transform: uppercase;
}

.hero-signal-line {
    /* las dos lineas enmarcan el titular: crecen con el */
    width: min(640px, 76vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--phosphor-dim), transparent);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* Scroll hint arrow */
.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: opacity 0.3s;
    animation: scroll-hint-fade 3s ease-in-out infinite;
}

.hero-scroll-hint:hover { opacity: 0.8; }

.scroll-hint-text {
    font-family: var(--font-data);
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--phosphor);
}

.scroll-hint-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.scroll-hint-arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--phosphor);
    border-bottom: 1px solid var(--phosphor);
    transform: rotate(45deg);
    animation: scroll-arrow-bounce 1.8s ease-in-out infinite;
}

.scroll-hint-arrow span:nth-child(2) {
    animation-delay: 0.15s;
    opacity: 0.5;
}

@keyframes scroll-arrow-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
    50% { transform: rotate(45deg) translateY(4px); opacity: 1; }
}

@keyframes scroll-hint-fade {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.55; }
}

/* ================================================================
   TERMINAL WINDOW — HARDWARE-BEZEL CRT MONITOR
   ================================================================
   The terminal is rendered as a chunky retro CRT screen:
   thick bezel with corner screws, model plate, status LEDs,
   scanlines + screen curvature on the inner body.
   ================================================================ */
.terminal-window {
    position: relative;
    border: 2px solid var(--border-hi);
    background:
        linear-gradient(180deg, rgba(8, 14, 8, 0.96), rgba(2, 8, 4, 0.98));
    box-shadow:
        var(--glow-md),
        inset 0 0 40px rgba(0, 255, 65, 0.02),
        inset 0 0 0 1px rgba(0, 0, 0, 0.65),
        inset 0 0 0 5px rgba(20, 30, 22, 0.55),
        inset 0 0 0 6px rgba(0, 255, 65, 0.06),
        0 8px 28px rgba(0, 0, 0, 0.55);
    border-radius: 6px;
    padding: 10px 10px 14px;
}

/* Corner screws */
.terminal-window::before,
.terminal-window::after,
.about-terminal::before,
.about-terminal::after,
.donate-terminal::before,
.donate-terminal::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #2a4a32 0%, #0c1a0e 60%, #050a06 100%);
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 65, 0.18),
        inset 0 -1px 2px rgba(0, 0, 0, 0.7),
        0 1px 1px rgba(0, 0, 0, 0.6);
    z-index: 3;
    pointer-events: none;
}
.terminal-window::before { top: 6px;    left: 6px; }
.terminal-window::after  { top: 6px;    right: 6px; }

/* Phillips-head slot via inline SVG-like cross using background */
.terminal-window > .screw-br,
.terminal-window > .screw-bl {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #2a4a32 0%, #0c1a0e 60%, #050a06 100%);
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 65, 0.18),
        inset 0 -1px 2px rgba(0, 0, 0, 0.7),
        0 1px 1px rgba(0, 0, 0, 0.6);
    z-index: 3;
    pointer-events: none;
}
.terminal-window > .screw-br { bottom: 6px; right: 6px; }
.terminal-window > .screw-bl { bottom: 6px; left: 6px; }

.terminal-chrome {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 8px 28px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(0, 30, 8, 0.6), rgba(0, 14, 4, 0.6));
    border-radius: 4px 4px 0 0;
}
.terminal-chrome::before {
    /* hairline groove */
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--phosphor-dim), transparent);
    opacity: 0.5;
}

.terminal-dots { display: flex; gap: 7px; }
.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    position: relative;
}
.dot::after {
    /* glass cap highlight */
    content: "";
    position: absolute;
    inset: 1px 4px 5px 1px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}
.dot-red    { background: var(--red);      box-shadow: 0 0 6px var(--red-dim),    inset 0 0 0 1px rgba(0,0,0,0.4); }
.dot-yellow { background: var(--amber);    box-shadow: 0 0 6px var(--amber-dim),  inset 0 0 0 1px rgba(0,0,0,0.4); }
.dot-green  { background: var(--phosphor); box-shadow: 0 0 6px var(--phosphor-dim), inset 0 0 0 1px rgba(0,0,0,0.4); }

.terminal-title {
    font-family: var(--font-data);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.terminal-title::before {
    content: "■";
    color: var(--phosphor);
    text-shadow: var(--glow-text);
    font-size: 8px;
    opacity: 0.7;
    flex-shrink: 0;
}

.terminal-body {
    position: relative;
    padding: 28px 28px 32px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 24, 6, 0.55) 0%, rgba(0, 8, 2, 0.85) 80%);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}
.terminal-body::before {
    /* CRT scanlines inside the screen */
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 3px,
        rgba(0, 0, 0, 0.18) 3px,
        rgba(0, 0, 0, 0.18) 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}
.terminal-body::after {
    /* subtle screen vignette + edge curvature glow */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 255, 65, 0.05), transparent 40%);
    z-index: 1;
}
.terminal-body > * { position: relative; z-index: 2; }

/* Model plate (bottom-right of bezel) */
.terminal-window > .term-plate,
.about-terminal > .term-plate,
.donate-terminal > .term-plate {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-data);
    font-size: 8px;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    opacity: 0.55;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 3;
}
.terminal-window > .term-plate .led,
.about-terminal > .term-plate .led,
.donate-terminal > .term-plate .led {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--phosphor);
    box-shadow: 0 0 4px var(--phosphor);
    animation: term-led 2.4s ease-in-out infinite;
}
.terminal-window > .term-plate .led.led-amber,
.about-terminal > .term-plate .led.led-amber,
.donate-terminal > .term-plate .led.led-amber {
    background: var(--amber);
    box-shadow: 0 0 4px var(--amber);
    animation-delay: 0.4s;
}
.terminal-window > .term-plate .led.led-off,
.about-terminal > .term-plate .led.led-off,
.donate-terminal > .term-plate .led.led-off {
    background: rgba(0, 255, 65, 0.15);
    box-shadow: none;
    animation: none;
}
@keyframes term-led {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* ================================================================
   TERMINAL DECORATIONS — restrained retro accents
   ================================================================
   Knobs removed (too prominent). Kept: small reels, status LEDs,
   and a slim frequency scale. Channel chip + rocker dropped.
   ================================================================ */

/* Hide the original knob nodes from earlier markup */
.term-knob { display: none !important; }

/* --- TAPE REELS (in the chrome header) — smaller, quieter --- */
.terminal-chrome { padding-left: 56px !important; padding-right: 10px !important; position: relative; }
.term-reels {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
    pointer-events: none;
    z-index: 2;
}
.term-reels .reel {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1a2820 0%, #0a140c 60%, #050a06 100%);
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 65, 0.3),
        inset 0 0 3px rgba(0, 0, 0, 0.7);
    position: relative;
    animation: reel-spin 5s linear infinite;
}
.term-reels .reel:nth-child(2) { animation-duration: 6s; animation-direction: reverse; }
.term-reels .reel::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 47%, rgba(0, 255, 65, 0.3) 47%, rgba(0, 255, 65, 0.3) 53%, transparent 53%),
        linear-gradient(0deg,  transparent 47%, rgba(0, 255, 65, 0.3) 47%, rgba(0, 255, 65, 0.3) 53%, transparent 53%);
}
.term-reels .reel::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.55);
}
@keyframes reel-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- POWER PANEL — only the two LEDs, no chip, no rocker --- */
.term-power {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 1.8px;
    color: rgba(0, 255, 65, 0.5);
    pointer-events: none;
    z-index: 2;
}
.term-power .channel,
.term-power .rocker { display: none; }
.term-power .led-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.term-power .led-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.term-power .led-tag .led-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.term-power .led-tag.pwr .led-dot { background: var(--phosphor); box-shadow: 0 0 4px var(--phosphor); animation: pwr-led 2.2s ease-in-out infinite; }
.term-power .led-tag.rec .led-dot { background: var(--red);      box-shadow: 0 0 4px var(--red-dim);  animation: rec-led 1.4s ease-in-out infinite; }
@keyframes pwr-led { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes rec-led { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

/* --- FREQUENCY SCALE — slim, subtle --- */
.term-freq {
    position: relative;
    height: 12px;
    margin: 0 0 -1px 0;
    background: linear-gradient(180deg, rgba(0, 12, 4, 0.85), rgba(0, 6, 2, 0.95));
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    overflow: hidden;
    z-index: 2;
}
.term-freq::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 19px,
        rgba(0, 255, 65, 0.22) 19px,
        rgba(0, 255, 65, 0.22) 20px
    );
    opacity: 0.6;
}
.term-freq::after {
    content: "FREQ · 137.500 MHz";
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    letter-spacing: 1.8px;
    color: rgba(0, 255, 65, 0.5);
    z-index: 2;
    pointer-events: none;
}
.term-freq .freq-needle {
    position: absolute;
    top: -1px;
    bottom: -1px;
    width: 1px;
    background: var(--amber);
    box-shadow: 0 0 6px var(--amber);
    animation: freq-sweep 7s ease-in-out infinite alternate;
    z-index: 1;
}
@keyframes freq-sweep {
    0%   { left: 32%; }
    50%  { left: 68%; }
    100% { left: 40%; }
}

/* Smaller screens: hide reels, leave LEDs + freq */
@media (max-width: 540px) {
    .term-reels { display: none; }
    .terminal-chrome { padding-left: 14px !important; }
    .term-freq::after { content: "FREQ"; }
}

.kicker {
    font-family: var(--font-data);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--amber);
    text-shadow: 0 0 6px var(--amber-dim);
    margin-bottom: 16px;
    min-height: 1.5em;
}

.hero-title {
    font-family: var(--font-term);
    font-size: clamp(26px, 5vw, 48px);
    font-weight: normal;
    line-height: 1.15;
    letter-spacing: 2px;
    text-shadow: var(--glow-text);
    margin-bottom: 16px;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
    text-shadow: 0 0 4px rgba(0,255,65,0.15);
}

/* ================================================================
   COMMAND BUTTONS
   ================================================================ */
.cmd-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    font-family: var(--font-term);
    font-size: 18px;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='23'%3E%3Cpath d='M1 1L1 18L5 13L8 21L11 19L8 12L14 12Z' fill='%2366ff88' stroke='%2300ff41' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 1 1, pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cmd-primary {
    background: transparent;
    color: var(--phosphor);
    border: 2px solid var(--phosphor);
    text-shadow: var(--glow-text);
    box-shadow: var(--glow-sm), inset 0 0 20px var(--phosphor-xlo);
}
.cmd-primary:hover {
    background: rgba(0,255,65,0.10);
    box-shadow: var(--glow-lg), inset 0 0 30px var(--phosphor-lo);
    transform: translateY(-1px);
}

.cmd-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    box-shadow: inset 0 0 15px var(--phosphor-xlo);
}
.cmd-ghost:hover {
    color: var(--phosphor);
    border-color: var(--border-hi);
    text-shadow: var(--glow-text);
    box-shadow: var(--glow-sm), inset 0 0 20px var(--phosphor-xlo);
    transform: translateY(-1px);
}

/* ================================================================
   WIREFRAME GLOBE DISPLAY
   ================================================================ */
.globe-display {
    margin-top: 28px;
}

.globe-frame {
    position: relative;
    border: 1px solid var(--border);
    outline: 1px solid rgba(0,255,65,0.08);
    outline-offset: 4px;
    background: var(--bg);
    padding: 2px;
    box-shadow: inset 0 0 40px rgba(0,255,65,0.03), var(--glow-md);
}

/* Corner brackets */
.gc {
    position: absolute;
    width: 16px; height: 16px;
    border-color: var(--phosphor);
    border-style: solid;
    z-index: 2;
}
.gc-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.gc-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.gc-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.gc-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

#hero-globe-canvas {
    display: block;
    width: 100%;
    height: 320px;
    background: var(--bg);
}

.globe-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 12px;
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-dim);
    background: linear-gradient(transparent, rgba(5,5,5,0.85) 40%);
    text-align: right;
    z-index: 3;
    pointer-events: none;
}

/* ================================================================
   METRICS CONSOLE
   ================================================================ */
.metrics-console {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric-mod {
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    box-shadow: inset 0 0 20px rgba(0,255,65,0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-led {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 4px;
}
.m-led-green { background: var(--phosphor); box-shadow: 0 0 6px var(--phosphor); }
.m-led-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.m-led-cyan  { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.metric-label {
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.metrics-console strong {
    font-family: var(--font-term);
    font-size: 26px;
    text-shadow: var(--glow-text);
    font-weight: normal;
}

/* ================================================================
   HARDWARE MODULES (Feature / Tier cards)
   ================================================================ */
.feature-grid,
.tier-grid {
    display: grid;
    gap: 14px;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.tier-grid    { grid-template-columns: repeat(3, 1fr); }

.hw-mod {
    padding: 18px;
    border: 1px solid var(--border);
    outline: 1px solid rgba(0,255,65,0.06);
    outline-offset: 3px;
    background: var(--bg-panel);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), inset 0 0 20px var(--phosphor-xlo);
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.hw-mod:hover {
    border-color: var(--border-hi);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), inset 0 0 30px var(--phosphor-lo), var(--glow-sm);
    animation: card-glitch 0.18s linear;
}

@keyframes card-glitch {
    0%   { transform: translate(0); }
    25%  { transform: translate(-1px, 1px); }
    50%  { transform: translate(1px, -1px); }
    75%  { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

.mod-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.mod-led {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.mod-led-on    { background: var(--phosphor); box-shadow: 0 0 8px var(--phosphor); animation: led-pulse 2.5s ease-in-out infinite; }
.mod-led-green { background: var(--phosphor); box-shadow: 0 0 6px var(--phosphor); }
.mod-led-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.mod-led-red   { background: var(--red); box-shadow: 0 0 6px var(--red); }

.mod-id {
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

.mod-title {
    font-family: var(--font-term);
    font-size: 22px;
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: var(--glow-text);
    margin-bottom: 10px;
}

.mod-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 14px;
    text-shadow: 0 0 3px rgba(0,255,65,0.1);
}

.mod-status {
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-dim);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* === Tier-specific === */
.tier-name {
    font-family: var(--font-term);
    font-size: 24px;
    letter-spacing: 2px;
    text-shadow: var(--glow-text);
    margin-bottom: 4px;
}

.tier-price {
    font-family: var(--font-data);
    font-size: 14px;
    color: var(--amber);
    text-shadow: 0 0 6px var(--amber-dim);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.tier-hl {
    border-color: var(--phosphor-dim);
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.4),
        inset 0 0 30px var(--phosphor-lo),
        0 0 20px var(--phosphor-lo);
    outline-color: var(--phosphor-dim);
}

/* Signal processing bar */
.tier-bar {
    height: 4px;
    background: rgba(0,255,65,0.08);
    border: 1px solid var(--border);
    margin-top: 12px;
    overflow: hidden;
}

.tier-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--phosphor), rgba(0,255,65,0.5));
    box-shadow: 0 0 8px var(--phosphor-dim);
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible .tier-bar-fill {
    width: var(--tw, 0%);
}

.tiers-cta {
    color: var(--text);
    font-size: 16px;
    margin: 24px 0 14px;
    line-height: 1.5;
}

/* ================================================================
   ABOUT — Operator Transmission (CRT Bezel)
   ================================================================ */
.about-terminal {
    position: relative;
    border: 2px solid var(--border-hi);
    background:
        linear-gradient(180deg, rgba(8, 14, 8, 0.96), rgba(2, 8, 4, 0.98));
    max-width: 740px;
    margin: 0 auto;
    padding: 10px 10px 14px;
    border-radius: 6px;
    box-shadow:
        var(--glow-md),
        inset 0 0 40px rgba(0, 255, 65, 0.02),
        inset 0 0 0 1px rgba(0, 0, 0, 0.65),
        inset 0 0 0 5px rgba(20, 30, 22, 0.55),
        inset 0 0 0 6px rgba(0, 255, 65, 0.06),
        0 8px 28px rgba(0, 0, 0, 0.55);
}
.about-terminal::before { top: 6px; left: 6px; }
.about-terminal::after  { top: 6px; right: 6px; }
.about-terminal > .screw-bl,
.about-terminal > .screw-br {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a4a32 0%, #0c1a0e 60%, #050a06 100%);
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 65, 0.18),
        inset 0 -1px 2px rgba(0, 0, 0, 0.7),
        0 1px 1px rgba(0, 0, 0, 0.6);
    z-index: 3;
    pointer-events: none;
}
.about-terminal > .screw-bl { bottom: 6px; left: 6px; }
.about-terminal > .screw-br { bottom: 6px; right: 6px; }

.about-terminal > .terminal-chrome {
    border-radius: 4px 4px 0 0;
}

.about-body {
    position: relative;
    padding: 28px 30px 30px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 24, 6, 0.55) 0%, rgba(0, 8, 2, 0.85) 80%);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}
.about-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 3px,
        rgba(0, 0, 0, 0.18) 3px,
        rgba(0, 0, 0, 0.18) 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}
.about-body::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 255, 65, 0.05), transparent 40%);
    z-index: 1;
}
.about-body > * { position: relative; z-index: 2; }

.about-line {
    font-family: var(--font-term);
    font-size: 17px;
    color: var(--phosphor);
    line-height: 1.6;
    margin-bottom: 4px;
}

.about-accent {
    color: var(--phosphor);
    text-shadow: var(--glow-text);
}

.about-text {
    font-family: var(--font-term);
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 14px;
}

.about-text:last-of-type {
    margin-bottom: 0;
}

.about-dim {
    color: var(--text-dim);
    font-style: italic;
}

.about-divider {
    border: none;
    border-top: 1px dashed var(--phosphor-lo);
    margin: 16px 0;
}

/* ================================================================
   MURAL — Crew Manifest
   ================================================================ */
.mural-subtitle {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 18px;
}

.mural-controls {
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    box-shadow: inset 0 0 15px var(--phosphor-xlo);
}

.mural-filter-group,
.mural-sort-group {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mural-filter-btn,
.mural-sort-btn {
    font-family: var(--font-term);
    font-size: 16px;
    letter-spacing: 1px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='23'%3E%3Cpath d='M1 1L1 18L5 13L8 21L11 19L8 12L14 12Z' fill='%2366ff88' stroke='%2300ff41' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 1 1, pointer;
    transition: all 0.2s;
}

.mural-filter-btn:hover,
.mural-sort-btn:hover {
    border-color: var(--border-hi);
    color: var(--phosphor);
}

.mural-filter-btn.active,
.mural-sort-btn.active {
    color: var(--bg);
    background: var(--phosphor);
    border-color: var(--phosphor);
    text-shadow: none;
    box-shadow: 0 0 8px var(--phosphor-dim);
}

.mural-filter-btn:focus-visible,
.mural-sort-btn:focus-visible {
    outline: 2px solid var(--phosphor);
    outline-offset: 2px;
}

.mural-count {
    font-family: var(--font-data);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.mural-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}
.mural-actions .cmd-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.mural-actions .cmd-btn.is-loading {
    gap: 10px;
}
.mural-actions .cmd-btn.is-loading::after {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid var(--phosphor-dim);
    border-top-color: var(--phosphor);
    animation: spin 0.7s linear infinite;
}

/* ================================================================
   FOUNDERS GRID (crew cards)
   ================================================================ */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    transition: opacity 0.2s;
}

.founders-grid.is-crossfading-out { opacity: 0.3; }

/* Crew card (generated by JS) */
.crew-card {
    padding: 16px;
    border: 1px solid var(--border);
    outline: 1px solid rgba(0,255,65,0.05);
    outline-offset: 3px;
    background: var(--bg-panel);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 0 20px var(--phosphor-xlo);
    position: relative;
    transition: border-color 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.crew-card:hover {
    border-color: var(--border-hi);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 0 30px var(--phosphor-lo), var(--glow-sm);
    animation: card-glitch 0.15s linear;
}

.crew-card:focus-visible {
    outline: 2px solid var(--phosphor);
    outline-offset: 2px;
}

/* Sweep line animation on cards */
.crew-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, transparent 40%, rgba(0,255,65,0.08) 50%, transparent 60%);
    transform: translateX(-150%);
    animation: sweep 6s linear infinite;
}

@keyframes sweep {
    0%   { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}

.crew-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.crew-rank {
    font-family: var(--font-data);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    background: var(--phosphor);
    color: var(--bg);
}

.crew-rank.rank-1 { background: var(--phosphor); animation: rank-pulse 2s ease-in-out infinite; }
.crew-rank.rank-2 { background: var(--cyan); }
.crew-rank.rank-3 { background: var(--amber); color: #1a0f00; }

@keyframes rank-pulse {
    0%,100% { box-shadow: 0 0 4px var(--phosphor); }
    50%     { box-shadow: 0 0 14px var(--phosphor), 0 0 28px var(--phosphor-dim); }
}

.crew-id {
    font-family: var(--font-data);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.crew-name {
    font-family: var(--font-term);
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 1px;
    text-shadow: var(--glow-text);
    margin-bottom: 4px;
}

.crew-tier {
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--amber);
    text-shadow: 0 0 4px var(--amber-dim);
    margin-bottom: 12px;
}

.crew-data {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.crew-data-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-data);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.data-label { color: var(--text-dim); }
.data-value { color: var(--phosphor); text-shadow: var(--glow-text); }

/* Top rank glow effects */
.crew-card.rank-1 {
    border-color: var(--phosphor-dim);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 0 30px var(--phosphor-lo), 0 0 20px var(--phosphor-lo);
}
.crew-card.rank-2 {
    border-color: var(--cyan-dim);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 0 25px rgba(0,229,255,0.04), 0 0 15px rgba(0,229,255,0.08);
}
.crew-card.rank-3 {
    border-color: var(--amber-dim);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), inset 0 0 25px rgba(255,157,0,0.04), 0 0 15px rgba(255,157,0,0.08);
}

/* Empty state card */
.crew-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
}
.crew-empty-tag {
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--amber);
    text-shadow: 0 0 6px var(--amber-dim);
    margin-bottom: 10px;
}
.crew-empty-desc {
    color: var(--text);
    font-size: 16px;
    margin: 10px 0 18px;
}

/* Skeleton card */
.skeleton-card { pointer-events: none; }
.skeleton-card .skel-line {
    height: 10px;
    background: rgba(0,255,65,0.06);
    position: relative;
    overflow: hidden;
}
.skeleton-card .skel-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.12), transparent);
    transform: translateX(-100%);
    animation: skel-shimmer 1.4s linear infinite;
}
.skel-title { width: 60%; height: 14px !important; margin-bottom: 10px; }
.skel-tier  { width: 35%; margin-bottom: 14px; }
.skel-meta  { display: grid; gap: 6px; }
.skel-meta .skel-line:nth-child(1) { width: 80%; }
.skel-meta .skel-line:nth-child(2) { width: 65%; }
.skel-meta .skel-line:nth-child(3) { width: 70%; }

@keyframes skel-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(150%); }
}

/* ================================================================
   FEATURES TERMINAL ANIMATION
   ================================================================ */
.features-terminal .terminal-body {
    font-family: var(--font-data);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.feat-line {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible .feat-line {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for each line */
.reveal.visible .feat-line:nth-child(1) { transition-delay: 0.2s; }
.reveal.visible .feat-line:nth-child(2) { transition-delay: 0.35s; }
.reveal.visible .feat-line:nth-child(3) { transition-delay: 0.6s; }
.reveal.visible .feat-line:nth-child(4) { transition-delay: 0.8s; }
.reveal.visible .feat-line:nth-child(5) { transition-delay: 1.0s; }
.reveal.visible .feat-line:nth-child(6) { transition-delay: 1.3s; }
.reveal.visible .feat-line:nth-child(7) { transition-delay: 1.5s; }
.reveal.visible .feat-line:nth-child(8) { transition-delay: 1.7s; }
.reveal.visible .feat-line:nth-child(9) { transition-delay: 2.0s; }
.reveal.visible .feat-line:nth-child(10) { transition-delay: 2.2s; }
.reveal.visible .feat-line:nth-child(11) { transition-delay: 2.5s; }
.reveal.visible .feat-line:nth-child(12) { transition-delay: 2.8s; }

.feat-cmd { color: var(--phosphor); text-shadow: var(--glow-text); }
.feat-ok  { color: var(--phosphor); font-weight: 700; }
.feat-detail { color: var(--text-dim); font-size: 13px; }
.feat-result { color: var(--amber); text-shadow: 0 0 6px var(--amber-dim); font-weight: 700; }

.blink-cursor {
    animation: cursor-blink 1s steps(2) infinite;
    color: var(--amber);
}

/* ================================================================
   TIER PERKS LIST
   ================================================================ */
.tier-perks {
    list-style: none;
    padding: 0;
    margin: 10px 0 14px;
    display: grid;
    gap: 6px;
}

.tier-perks li {
    font-family: var(--font-data);
    font-size: 13px;
    letter-spacing: 0.3px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.perk-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.perk-icon.dim {
    color: var(--text-dim);
    opacity: 0.4;
}

/* ================================================================
   TIER RECOMMENDED BADGE
   ================================================================ */
.tier-badge {
    display: inline-block;
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    background: var(--amber);
    color: #1a0f00;
    font-weight: 700;
    margin-bottom: 8px;
    animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 6px var(--amber-dim); }
    50%      { box-shadow: 0 0 16px var(--amber), 0 0 30px var(--amber-dim); }
}

/* ================================================================
   LARGE BUTTONS
   ================================================================ */
.cmd-lg {
    padding: 14px 28px;
    font-size: 22px;
    letter-spacing: 2px;
    animation: btn-glow-pulse 3s ease-in-out infinite;
}

@keyframes btn-glow-pulse {
    0%, 100% { box-shadow: var(--glow-sm), inset 0 0 20px var(--phosphor-xlo); }
    50%      { box-shadow: var(--glow-lg), inset 0 0 30px var(--phosphor-lo), 0 0 20px var(--phosphor-lo); }
}

/* ================================================================
   FOOTER
   ================================================================ */
.sys-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 16px;
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.6s ease 0.5s;
}

body.booted .sys-footer { opacity: 1; }

.f-sep { margin: 0 10px; color: var(--border); }
.sys-footer-link { color: var(--text-dim); text-decoration: none; transition: color 0.18s, text-shadow 0.18s; }
.sys-footer-link:hover { color: var(--phosphor); text-shadow: var(--glow-sm); }

/* ================================================================
   REVEAL ANIMATION
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   GLITCH EFFECT (applied temporarily by JS)
   ================================================================ */
.glitch-active {
    animation: glitch-distort 0.25s linear !important;
}

@keyframes glitch-distort {
    0%   { transform: translate(0);          filter: none; }
    20%  { transform: translate(-2px,  1px); filter: hue-rotate(15deg); }
    40%  { transform: translate( 2px, -1px); filter: hue-rotate(-10deg); }
    60%  { transform: translate(-1px, -2px); filter: hue-rotate(8deg); }
    80%  { transform: translate( 1px,  2px); filter: hue-rotate(-5deg); }
    100% { transform: translate(0);          filter: none; }
}

/* Static noise burst (applied to body briefly) */
body.static-burst .crt-scanlines {
    opacity: 1;
    background-size: 100% 2px;
}

/* ================================================================
   MISC KEYFRAMES
   ================================================================ */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
    .feature-grid, .tier-grid { grid-template-columns: 1fr; }
    .metrics-console { grid-template-columns: 1fr; }
    #hero-globe-canvas { height: 260px; }
    .sys-nav-link { display: none; }
}

@media (max-width: 720px) {
    .sys-header { padding: 8px 12px; }
    .sys-brand { font-size: 18px; }
    .hero-title { font-size: 22px; }
    .coord-hud { font-size: 9px; padding: 4px 10px; }
    .mural-controls { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    body { animation: none !important; }
    .crt-scanlines { opacity: 0.3; }
    .sys-led, .mod-led-on, .crew-rank.rank-1,
    .crew-card::before, .skeleton-card .skel-line::after,
    .mural-actions .cmd-btn.is-loading::after { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none !important; }
    .hw-mod:hover, .crew-card:hover { animation: none !important; }
    .tier-bar-fill { transition: none !important; width: var(--tw, 0%) !important; }
}
.split-layout { display: flex; gap: 2rem; align-items: stretch; max-width: 1200px; margin: 0 auto; } @media (max-width: 900px) { .split-layout { flex-direction: column; } } .split-layout .section { flex: 1; margin-bottom: 0; }
/* --- DONATION MODAL (LANDING) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* --- DONATE TERMINAL MODAL (CRT bezel) --- */
.donate-terminal {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-height: min(90vh, 780px);
    overflow-y: auto;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(8, 14, 8, 0.97), rgba(2, 8, 4, 0.99));
    border: 2px solid rgba(var(--phosphor-rgb), 0.55);
    border-radius: 8px;
    padding: 10px 10px 18px;
    box-shadow:
        0 0 0 1px rgba(0, 255, 65, 0.12),
        0 0 40px rgba(0, 255, 65, 0.18),
        inset 0 0 60px rgba(0, 255, 65, 0.04),
        inset 0 0 0 1px rgba(0, 0, 0, 0.65),
        inset 0 0 0 5px rgba(20, 30, 22, 0.55),
        inset 0 0 0 6px rgba(0, 255, 65, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.6);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.donate-terminal::before { top: 6px; left: 6px; }
.donate-terminal::after  { top: 6px; right: 6px; }
.donate-terminal > .screw-bl,
.donate-terminal > .screw-br {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a4a32 0%, #0c1a0e 60%, #050a06 100%);
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 65, 0.18),
        inset 0 -1px 2px rgba(0, 0, 0, 0.7),
        0 1px 1px rgba(0, 0, 0, 0.6);
    z-index: 3;
    pointer-events: none;
}
.donate-terminal > .screw-bl { bottom: 6px; left: 6px; }
.donate-terminal > .screw-br { bottom: 6px; right: 6px; }

.donate-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 8px 26px;
    background:
        linear-gradient(180deg, rgba(0, 30, 8, 0.65), rgba(0, 14, 4, 0.65));
    border-bottom: 1px solid rgba(var(--phosphor-rgb), 0.35);
    border-radius: 4px 4px 0 0;
    position: relative;
}
.donate-titlebar::before {
    content: "■";
    color: var(--phosphor);
    text-shadow: var(--glow-text);
    font-size: 8px;
    opacity: 0.7;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}
.donate-titlebar-text {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: rgba(var(--phosphor-rgb), 0.6);
}
.donate-close {
    background: none;
    border: 1px solid rgba(var(--phosphor-rgb), 0.35);
    color: var(--phosphor);
    font-family: inherit;
    font-size: 12px;
    padding: 2px 8px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.donate-close:hover {
    background: rgba(255, 0, 60, 0.2);
    border-color: rgba(255, 0, 60, 0.6);
    color: #ff4466;
}
.donate-body {
    position: relative;
    padding: 24px 26px 22px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 24, 6, 0.55) 0%, rgba(0, 8, 2, 0.85) 80%);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}
.donate-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 3px,
        rgba(0, 0, 0, 0.18) 3px,
        rgba(0, 0, 0, 0.18) 4px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}
.donate-body::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}
.donate-body > * { position: relative; z-index: 2; }
.donate-header {
    margin-bottom: 18px;
}
.donate-prompt {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(var(--phosphor-rgb), 0.6);
}
.donate-title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--phosphor);
    text-shadow: 0 0 12px rgba(var(--phosphor-rgb), 0.3);
    letter-spacing: 2px;
    line-height: 1.1;
}
.donate-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(180, 255, 190, 0.75);
    line-height: 1.45;
}
.donate-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.donate-col {
    border: 1px solid rgba(var(--phosphor-rgb), 0.2);
    background: rgba(0, 255, 65, 0.03);
    padding: 12px 14px;
}
.donate-col-accent {
    border-color: rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.03);
}
.donate-col-label {
    margin: 0 0 10px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(var(--phosphor-rgb), 0.55);
}
.donate-col-accent .donate-col-label {
    color: rgba(0, 229, 255, 0.6);
}
.donate-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: rgba(200, 255, 210, 0.85);
}
.donate-list-accent {
    color: rgba(180, 230, 255, 0.85);
}
.donate-bullet {
    color: rgba(var(--phosphor-rgb), 0.4);
    margin-right: 4px;
}
.donate-col-accent .donate-bullet {
    color: rgba(0, 229, 255, 0.4);
}
.donate-actions {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.donate-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.donate-btn-icon {
    font-size: 18px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-color: inherit;
    opacity: 0.6;
    flex-shrink: 0;
}
.donate-btn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.donate-btn-name {
    font-size: 15px;
    letter-spacing: 2px;
}
.donate-btn-sub {
    font-size: 11px;
    opacity: 0.7;
}
.donate-stripe {
    color: #b0b8ff;
    border-color: rgba(120, 132, 255, 0.45);
    background: rgba(100, 112, 230, 0.08);
}
.donate-stripe:hover {
    background: rgba(100, 112, 230, 0.18);
    box-shadow: 0 0 18px rgba(100, 112, 230, 0.2);
}
.donate-bizum {
    color: #90e8ff;
    border-color: rgba(0, 200, 240, 0.4);
    background: rgba(0, 160, 210, 0.08);
}
.donate-bizum:hover {
    background: rgba(0, 160, 210, 0.18);
    box-shadow: 0 0 18px rgba(0, 200, 240, 0.2);
}
.donate-paypal {
    color: #80ccff;
    border-color: rgba(0, 160, 255, 0.4);
    background: rgba(0, 112, 186, 0.08);
}
.donate-paypal:hover {
    background: rgba(0, 112, 186, 0.18);
    box-shadow: 0 0 18px rgba(0, 160, 255, 0.2);
}
.donate-kofi {
    color: #ffb0a8;
    border-color: rgba(255, 100, 95, 0.45);
    background: rgba(255, 80, 75, 0.08);
}
.donate-kofi:hover {
    background: rgba(255, 80, 75, 0.18);
    box-shadow: 0 0 18px rgba(255, 100, 95, 0.2);
}
.donate-founder {
    margin-top: 14px;
    border-top: 1px solid rgba(var(--phosphor-rgb), 0.15);
    padding-top: 14px;
}
.donate-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(180, 255, 190, 0.8);
    cursor: pointer;
    margin-bottom: 8px;
}
.donate-checkbox input[type="checkbox"] {
    accent-color: var(--phosphor);
    width: 14px;
    height: 14px;
}
.donate-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 15, 0, 0.6);
    border: 1px solid rgba(var(--phosphor-rgb), 0.25);
    color: var(--phosphor);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    margin-bottom: 6px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.donate-input::placeholder {
    color: rgba(var(--phosphor-rgb), 0.3);
}
.donate-input:focus {
    border-color: rgba(var(--phosphor-rgb), 0.5);
}
.donate-status {
    font-size: 11px;
    color: rgba(var(--phosphor-rgb), 0.7);
    margin: 0;
}
.donate-footer {
    margin: 0;
    font-size: 11px;
    color: rgba(var(--phosphor-rgb), 0.45);
    border-top: 1px solid rgba(var(--phosphor-rgb), 0.1);
    padding-top: 12px;
    line-height: 1.4;
}
@media (max-width: 600px) {
    .donate-columns {
        grid-template-columns: 1fr;
    }
    .donate-body {
        padding: 16px 18px 16px;
    }
}

.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(var(--phosphor-rgb), 0.35);
    color: var(--phosphor);
    font-family: monospace;
    font-size: 15px;
    padding: 3px 9px;
    cursor: pointer;
}
.modal-close:hover { background: rgba(0, 255, 65, 0.18); }

.split-layout .section { display: flex; flex-direction: column; }
.split-layout .about-terminal, .split-layout .features-terminal { flex: 1; display: flex; flex-direction: column; }
.split-layout .about-body, .split-layout .terminal-body { flex: 1; }

/* --- AUTH TERMINAL MODAL (LANDING) --- */
.auth-terminal {
    width: min(480px, calc(100vw - 32px));
    background: rgba(2, 10, 5, 0.98);
    border: 1px solid rgba(var(--phosphor-rgb), 0.5);
    box-shadow: 0 0 0 1px rgba(0, 255, 65, 0.12), 0 0 40px rgba(0, 255, 65, 0.15), inset 0 0 60px rgba(0, 255, 65, 0.04);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.auth-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(0, 255, 65, 0.08);
    border-bottom: 1px solid rgba(var(--phosphor-rgb), 0.3);
}
.auth-titlebar-text {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: rgba(var(--phosphor-rgb), 0.6);
}
.auth-close {
    background: none;
    border: 1px solid rgba(var(--phosphor-rgb), 0.35);
    color: var(--phosphor);
    font-family: inherit;
    font-size: 12px;
    padding: 2px 8px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.auth-close:hover {
    background: rgba(255, 0, 60, 0.2);
    border-color: rgba(255, 0, 60, 0.6);
    color: #ff4466;
}
.auth-body {
    padding: 24px 26px 22px;
}

.auth-modal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    color: var(--phosphor);
    margin: 0 0 18px 0;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(var(--phosphor-rgb), 0.3);
}

.auth-tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(var(--phosphor-rgb), 0.2);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(var(--phosphor-rgb), 0.4);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    padding: 10px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.auth-tab:hover { color: rgba(var(--phosphor-rgb), 0.7); }
.auth-tab.active {
    color: var(--phosphor);
    border-bottom-color: var(--phosphor);
    text-shadow: 0 0 8px rgba(var(--phosphor-rgb), 0.3);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    background-color: rgba(0, 15, 0, 0.6);
    border: 1px solid rgba(var(--phosphor-rgb), 0.25);
    color: var(--phosphor);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    outline: none;
    letter-spacing: 0.5px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.auth-input::placeholder { color: var(--text-dim); }
.auth-input:focus {
    border-color: rgba(var(--phosphor-rgb), 0.6);
    box-shadow: 0 0 12px rgba(var(--phosphor-rgb), 0.15);
}

.auth-submit-btn {
    padding: 12px;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(var(--phosphor-rgb), 0.5);
    color: var(--phosphor);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.2s;
}
.auth-submit-btn:hover {
    background: rgba(0, 255, 65, 0.18);
    box-shadow: 0 0 14px rgba(var(--phosphor-rgb), 0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: rgba(var(--phosphor-rgb), 0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(var(--phosphor-rgb), 0.15);
}

.auth-social-row {
    display: flex;
    gap: 10px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 10px 12px;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(var(--phosphor-rgb), 0.2);
    color: rgba(var(--phosphor-rgb), 0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.2s;
}
.auth-social-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    color: var(--phosphor);
    border-color: rgba(var(--phosphor-rgb), 0.5);
}

.auth-social-logo {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-social-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-social-logo.github-logo {
    color: rgba(200, 255, 200, 0.8);
}

.auth-error {
    color: #ff6b6b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin: 10px 0 0;
    min-height: 1.2em;
}

.auth-success {
    color: var(--phosphor);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin: 10px 0 0;
    min-height: 1.2em;
}

#account-btn {
    background: transparent;
    cursor: pointer;
}

#account-btn.account-login {
    min-width: 116px;
}

#account-btn.logged-in {
    min-width: 46px;
    text-align: center;
}

.account-popup {
    position: fixed;
    top: 62px;
    right: 24px;
    background: linear-gradient(135deg, rgba(0, 20, 0, 0.97), rgba(0, 10, 0, 0.95));
    border: 1px solid var(--phosphor);
    padding: 12px 14px;
    z-index: 10001;
    min-width: 220px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    font-family: var(--font-data);
}

.account-popup-email {
    color: var(--text);
    font-size: 12px;
    margin-bottom: 8px;
    word-break: break-all;
}

.account-popup-logout {
    display: block;
    width: 100%;
    padding: 8px;
    background: rgba(255, 65, 65, 0.07);
    border: 1px solid rgba(255, 65, 65, 0.35);
    color: var(--red);
    font-family: var(--font-data);
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.account-popup-logout:hover {
    background: rgba(255, 65, 65, 0.18);
    border-color: var(--red);
}

.landing-tier-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* (boot overlay styles removed — no longer used) */

main {
    width: min(1180px, calc(100% - 30px));
}

/* Overrides merged into main hero styles above */

.donation-cta-btn {
    border-color: rgba(255, 165, 0, 0.75) !important;
    color: #ffb347 !important;
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.2), rgba(180, 85, 0, 0.18)) !important;
    box-shadow: 0 0 0 1px rgba(255, 165, 0, 0.2), 0 0 20px rgba(255, 165, 0, 0.26), inset 0 0 24px rgba(255, 165, 0, 0.14) !important;
}

.donation-cta-btn::before {
    border: 1px solid rgba(255, 165, 0, 0.24) !important;
}

.donation-cta-btn:hover {
    background: linear-gradient(180deg, rgba(255, 176, 38, 0.3), rgba(188, 94, 0, 0.24)) !important;
    box-shadow: 0 0 0 1px rgba(255, 176, 38, 0.3), 0 0 26px rgba(255, 165, 0, 0.38), inset 0 0 30px rgba(255, 165, 0, 0.2) !important;
}

#auth-modal.is-open .auth-terminal {
    animation: authTerminalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-input.typing {
    box-shadow: 0 0 14px rgba(var(--phosphor-rgb), 0.2);
}

@keyframes authTerminalPop {
    0% { opacity: 0; transform: translateY(16px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 740px) {
    .hero-title-minimal {
        letter-spacing: 4px;
    }
}

/* ================================================================
   DONATION MODAL — "Transmission Packet" (rebuilt)
   Matches the .donate-card markup in landing.html / app.html
   ================================================================ */
.donate-card {
    position: relative;
    width: min(540px, calc(100vw - 28px));
    max-height: min(92vh, 860px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 18px 16px;
    font-family: var(--font-data);
    color: var(--text);
    background:
        repeating-linear-gradient(180deg, rgba(0,255,65,0.025) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, rgba(6, 16, 8, 0.98), rgba(2, 9, 4, 0.99));
    border: 1px solid rgba(var(--phosphor-rgb), 0.55);
    border-radius: 6px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 0 44px rgba(0, 255, 65, 0.16),
        inset 0 0 70px rgba(0, 255, 65, 0.045),
        0 24px 60px rgba(0, 0, 0, 0.65);
    animation: donateCardPop 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes donateCardPop {
    0% { opacity: 0; transform: translateY(18px) scale(0.965); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.donate-card::-webkit-scrollbar { width: 5px; }

.donate-card-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid rgba(var(--phosphor-rgb), 0.4);
    border-radius: 4px;
    color: var(--phosphor);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 6;
    transition: all 0.18s;
}
.donate-card-close:hover {
    color: var(--red);
    border-color: var(--red-dim);
    box-shadow: 0 0 12px var(--red-dim);
}

/* Classified bands top/bottom */
.donate-class-stripe {
    display: flex;
    justify-content: center;
    padding: 4px 8px;
    border: 1px dashed rgba(255, 157, 0, 0.4);
    background: rgba(255, 157, 0, 0.05);
    border-radius: 3px;
}
.donate-class-stripe-top { margin: 2px 30px 12px 0; }
.donate-class-stripe-bot { margin: 14px 0 2px; }
.donate-class-text {
    font-size: 9px;
    letter-spacing: 2.5px;
    color: var(--amber);
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header */
.donate-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.donate-head-meta { display: flex; flex-direction: column; gap: 5px; }
.donate-packet-id {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
}
.donate-timestamp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}
.donate-ts-led {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--phosphor);
    box-shadow: 0 0 6px var(--phosphor);
    animation: donateLedBlink 1.8s ease-in-out infinite;
}
@keyframes donateLedBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.donate-insignia {
    color: rgba(var(--phosphor-rgb), 0.6);
    flex-shrink: 0;
    animation: donateInsigniaSpin 32s linear infinite;
}
.donate-insignia svg { display: block; width: 52px; height: 52px; }
@keyframes donateInsigniaSpin { to { transform: rotate(360deg); } }

/* Title */
.donate-title-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "mark title" "mark sub";
    column-gap: 10px;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(var(--phosphor-rgb), 0.18);
}
.donate-prompt-mark {
    grid-area: mark;
    align-self: center;
    font-size: 26px;
    color: var(--amber);
    text-shadow: 0 0 8px var(--amber-dim);
}
.donate-card-title {
    grid-area: title;
    font-family: var(--font-term);
    font-size: 30px;
    line-height: 1;
    letter-spacing: 3px;
    color: var(--phosphor);
    text-shadow: var(--glow-text);
}
.donate-card-subtitle {
    grid-area: sub;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Data grid */
.donate-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.donate-data-section {
    padding: 11px 12px;
    border: 1px solid rgba(var(--phosphor-rgb), 0.22);
    border-radius: 4px;
    background: rgba(0, 255, 65, 0.03);
}
.donate-data-section--accent {
    border-color: rgba(255, 157, 0, 0.35);
    background: rgba(255, 157, 0, 0.05);
}
.donate-data-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(var(--phosphor-rgb), 0.15);
}
.donate-data-tag {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 2px 5px;
    color: var(--bg);
    background: var(--phosphor);
    border-radius: 2px;
    font-weight: 700;
}
.donate-data-section--accent .donate-data-tag { background: var(--amber); }
.donate-data-title {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}
.donate-data-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.donate-data-list li {
    display: flex;
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--text);
}
.donate-data-bullet { color: var(--phosphor); flex-shrink: 0; }
.donate-data-section--accent .donate-data-bullet { color: var(--amber); }

/* Amount hint — "1€ a lo que quieras" model */
.donate-amount-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 157, 0, 0.35);
    border-radius: 4px;
    background: rgba(255, 157, 0, 0.06);
}
.donate-amount-figure {
    font-family: var(--font-term);
    font-size: 22px;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--amber);
    text-shadow: 0 0 8px var(--amber-dim);
    flex-shrink: 0;
}
.donate-amount-text { font-size: 11px; line-height: 1.45; color: var(--text); }

/* Channels */
.donate-channels { margin-bottom: 4px; }
.donate-channels-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 9px;
}
.donate-channels-grid { display: grid; gap: 9px; }

/* Channel button — overrides legacy .donate-btn cascade */
.donate-card .donate-ch {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    text-decoration: none;
    border: 1px solid rgba(var(--phosphor-rgb), 0.4);
    border-radius: 4px;
    background: rgba(0, 255, 65, 0.04);
    color: var(--phosphor);
    transition: background 0.18s, box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.donate-card .donate-ch:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: rgba(var(--phosphor-rgb), 0.7);
    box-shadow: 0 0 22px rgba(0, 255, 65, 0.2), inset 0 0 18px rgba(0, 255, 65, 0.06);
    transform: translateY(-1px);
}
.donate-ch-num {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-dim);
    padding-right: 12px;
    border-right: 1px solid rgba(var(--phosphor-rgb), 0.2);
    flex-shrink: 0;
}
.donate-ch-body { display: flex; flex-direction: column; gap: 2px; }
.donate-ch-name {
    font-family: var(--font-term);
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--phosphor);
    text-shadow: var(--glow-sm);
}
.donate-ch-sub { font-size: 9px; letter-spacing: 1.5px; color: var(--text-dim); }
.donate-ch-arrow {
    margin-left: auto;
    font-size: 18px;
    color: var(--phosphor);
    transition: transform 0.2s;
}
.donate-card .donate-ch:hover .donate-ch-arrow { transform: translateX(4px); }
/* Bizum channel — cyan accent for differentiation, still on-brand */
.donate-card .donate-ch-bizum { border-color: rgba(0, 229, 255, 0.4); }
.donate-card .donate-ch-bizum .donate-ch-name,
.donate-card .donate-ch-bizum .donate-ch-arrow { color: var(--cyan); text-shadow: 0 0 6px var(--cyan-dim); }
.donate-card .donate-ch-bizum:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.7);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.18);
}

/* Footer */
.donate-card-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(var(--phosphor-rgb), 0.15);
}
.donate-foot-tag { font-size: 10px; letter-spacing: 2px; color: var(--amber); opacity: 0.8; }
.donate-foot-text { font-size: 11px; color: var(--text-dim); }

@media (max-width: 560px) {
    .donate-card { padding: 12px 13px 14px; }
    .donate-card-title { font-size: 25px; }
    .donate-data-grid { grid-template-columns: 1fr; }
    .donate-class-text { font-size: 8px; letter-spacing: 1.5px; }
}

/* ================================================================
   LEGAL DOCUMENTS (privacy.html / terms.html)
   ================================================================ */
.legal-page { min-height: 100vh; padding: 0 0 80px; }
/* Legal pages don't run the landing boot script — force the reveal */
.legal-page .sys-header,
.legal-page .legal-doc,
.legal-page main { opacity: 1 !important; transform: none !important; }
.legal-doc {
    max-width: 820px;
    margin: 0 auto;
    padding: 96px 24px 0;
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-data);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.18s;
}
.legal-back:hover { color: var(--phosphor); }
.legal-head {
    border: 1px solid rgba(var(--phosphor-rgb), 0.3);
    border-radius: 6px;
    padding: 20px 22px;
    margin-bottom: 28px;
    background: linear-gradient(180deg, rgba(0,255,65,0.04), rgba(0,0,0,0.2));
}
.legal-doc-tag {
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--amber);
    opacity: 0.85;
}
.legal-title {
    font-family: var(--font-term);
    font-size: 38px;
    letter-spacing: 3px;
    color: var(--phosphor);
    text-shadow: var(--glow-text);
    margin: 6px 0 4px;
}
.legal-updated { font-family: var(--font-data); font-size: 11px; color: var(--text-dim); }
.legal-notice {
    border-left: 2px solid var(--amber);
    background: rgba(255, 157, 0, 0.06);
    padding: 12px 16px;
    margin-bottom: 28px;
    font-family: var(--font-data);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
}
.legal-doc section { margin-bottom: 26px; }
.legal-doc h2 {
    font-family: var(--font-term);
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--phosphor);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(var(--phosphor-rgb), 0.18);
}
.legal-doc h2 .legal-num { color: var(--amber); margin-right: 8px; }
.legal-doc h3 {
    font-family: var(--font-data);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--cyan);
    margin: 14px 0 6px;
}
.legal-doc p, .legal-doc li {
    font-family: var(--font-data);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text);
}
.legal-doc p { margin-bottom: 10px; }
.legal-doc ul { list-style: none; padding-left: 4px; margin-bottom: 10px; }
.legal-doc li { display: flex; gap: 10px; margin-bottom: 6px; }
.legal-doc li::before { content: '▸'; color: var(--phosphor); flex-shrink: 0; }
.legal-doc strong { color: var(--phosphor); }
.legal-doc a { color: var(--cyan); }
.legal-doc .legal-ph {
    color: var(--amber);
    background: rgba(255, 157, 0, 0.1);
    padding: 0 4px;
    border-radius: 2px;
}
.legal-foot {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--phosphor-rgb), 0.15);
    font-family: var(--font-data);
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.legal-foot a { color: var(--text-dim); text-decoration: none; }
.legal-foot a:hover { color: var(--phosphor); }
@media (max-width: 560px) {
    .legal-title { font-size: 30px; }
    .legal-doc { padding-top: 72px; }
}

/* ================================================================
   DONATION MODAL v3 — "Mission Support" (minimal, modern)
   ================================================================ */
.dn-card {
    position: relative;
    width: min(412px, calc(100vw - 28px));
    padding: 30px 28px 22px;
    text-align: center;
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(0,255,65,0.12), transparent 55%),
        linear-gradient(180deg, rgba(9,18,11,0.96), rgba(3,8,5,0.985));
    border: 1px solid rgba(var(--phosphor-rgb), 0.32);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.5),
        0 0 60px rgba(0,255,65,0.14),
        inset 0 1px 0 rgba(0,255,65,0.12),
        0 30px 70px rgba(0,0,0,0.7);
    overflow: hidden;
    animation: dnPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
@keyframes dnPop {
    0% { opacity: 0; transform: translateY(22px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.dn-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(var(--phosphor-rgb), 0.2);
    border-radius: 50%;
    color: var(--text-dim);
    font-size: 19px; line-height: 1;
    cursor: pointer;
    transition: all 0.18s;
    z-index: 4;
}
.dn-close:hover { color: var(--phosphor); border-color: rgba(var(--phosphor-rgb),0.55); transform: rotate(90deg); }

/* Orbital hero */
.dn-orbit {
    position: relative;
    width: 100%; height: 138px;
    margin: 2px auto 12px;
}
.dn-ascii-canvas {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--phosphor);
    filter: drop-shadow(0 0 6px rgba(0,255,65,0.4));
    pointer-events: none;
}
.dn-tier-name.dn-scrambling { color: var(--phosphor); text-shadow: 0 0 10px rgba(0,255,65,0.7); }

.dn-title {
    font-family: var(--font-term);
    font-size: 30px;
    letter-spacing: 2px;
    color: var(--phosphor);
    text-shadow: var(--glow-text);
    margin-bottom: 18px;
}

/* Amount chips */
.dn-amounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.dn-chip {
    min-width: 56px;
    padding: 10px 0;
    flex: 1 1 0;
    font-family: var(--font-data);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(var(--phosphor-rgb), 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.16s;
}
.dn-chip:hover { border-color: rgba(var(--phosphor-rgb), 0.6); color: var(--phosphor); }
.dn-chip--on {
    color: #021c10;
    background: linear-gradient(180deg, #46ff86, #00e457);
    border-color: transparent;
    box-shadow: 0 0 18px rgba(0,255,65,0.45);
}
.dn-chip-custom { font-size: 13px; }
.dn-custom-wrap {
    position: relative;
    width: 160px;
    margin: 0 auto 14px;
}
.dn-custom-cur {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-dim); font-family: var(--font-data); font-size: 15px;
}
.dn-custom-input {
    width: 100%;
    padding: 10px 12px 10px 26px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(var(--phosphor-rgb), 0.35);
    border-radius: 10px;
    color: var(--phosphor);
    font-family: var(--font-data);
    font-size: 15px;
    text-align: center;
    outline: none;
}
.dn-custom-input:focus { border-color: rgba(var(--phosphor-rgb), 0.65); box-shadow: 0 0 14px rgba(0,255,65,0.18); }
.dn-custom-input::-webkit-outer-spin-button,
.dn-custom-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Tier indicator */
.dn-tier {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    font-family: var(--font-data);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.dn-tier-dot { width: 8px; height: 8px; border-radius: 50%; transition: all 0.2s; }
.dn-tier-dot[data-tier="supporter"] { background: #00ff41; box-shadow: 0 0 8px #00ff41; }
.dn-tier-dot[data-tier="patron"]    { background: #00e5ff; box-shadow: 0 0 8px #00e5ff; }
.dn-tier-dot[data-tier="pioneer"]   { background: #ffcc00; box-shadow: 0 0 8px #ffcc00; }
.dn-tier-name { color: var(--text); }

/* Primary CTA */
.dn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 18px;
    font-family: var(--font-term);
    font-size: 21px;
    letter-spacing: 2px;
    color: #021c10;
    background: linear-gradient(180deg, #5bff92, #00e457);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 26px rgba(0,255,65,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}
.dn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 34px rgba(0,255,65,0.55), inset 0 1px 0 rgba(255,255,255,0.5); }
.dn-cta:active { transform: translateY(0); }
.dn-cta[disabled] { filter: grayscale(0.6) brightness(0.7); cursor: wait; transform: none; }
.dn-cta-arrow { transition: transform 0.18s; }
.dn-cta:hover .dn-cta-arrow { transform: translateX(4px); }

.dn-status { min-height: 14px; margin-top: 10px; font-family: var(--font-data); font-size: 11px; color: var(--amber); }
.dn-trust {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 12px;
    font-family: var(--font-data);
    font-size: 10.5px; letter-spacing: 1px;
    color: var(--text-dim);
}
.dn-lock { opacity: 0.8; }

@media (prefers-reduced-motion: reduce) {
    .dn-card { animation: none; }
    .dn-radar .dn-sweep animateTransform { display: none; }
}
@media (max-width: 440px) {
    .dn-card { padding: 26px 18px 18px; }
    .dn-title { font-size: 26px; }
    .dn-chip { font-size: 14px; min-width: 48px; }
}

/* ================================================================
   SCROLL PARALLAX & FISHEYE DISTORTION EFFECTS
   ================================================================ */

/* Sections get a subtle depth transform as they scroll into view */
.section.reveal {
    will-change: transform, opacity;
}

.section.reveal.visible {
    animation: section-depth-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes section-depth-in {
    from {
        opacity: 0;
        transform: perspective(1200px) translateZ(-80px) rotateX(3deg) translateY(40px);
        filter: blur(2px);
    }
    60% {
        filter: blur(0.5px);
    }
    to {
        opacity: 1;
        transform: perspective(1200px) translateZ(0) rotateX(0) translateY(0);
        filter: blur(0);
    }
}

/* Terminal windows get a slight tilt on hover for depth */
.terminal-window,
.about-terminal {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-window:hover,
.about-terminal:hover {
    transform: perspective(1000px) rotateX(-1deg) rotateY(1deg) translateY(-4px);
}

/* Tier cards float with more pronounced effect */
.tier-mod {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s ease;
}

.tier-mod:hover {
    transform: perspective(800px) rotateX(-2deg) translateY(-8px) scale(1.02);
}

/* The split-layout sections get staggered depth reveal */
.split-layout > .section:nth-child(1).reveal.visible {
    animation-delay: 0.1s;
}
.split-layout > .section:nth-child(2).reveal.visible {
    animation-delay: 0.25s;
}

/* Hero section subtle parallax depth container */
.hero.minimal-hero {
    perspective: 1400px;
    perspective-origin: 50% 50%;
}

.hero-minimal-inner {
    transform-style: preserve-3d;
}

/* Globe canvas interaction — subtle CRT barrel on scroll */
#bg-globe-canvas {
    transition: filter 1.5s ease;
}

/* Section headers get a scan-line entrance */
.section-hdr {
    will-change: transform;
}

.reveal.visible .section-hdr {
    animation: hdr-scan-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hdr-scan-in {
    0% {
        opacity: 0;
        transform: scaleX(0.3);
        filter: blur(4px) brightness(2);
    }
    40% {
        opacity: 1;
        filter: blur(1px) brightness(1.3);
    }
    100% {
        transform: scaleX(1);
        filter: blur(0) brightness(1);
    }
}

/* Feature lines typewriter-in effect when section is visible */
.feat-line {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.visible .feat-line {
    opacity: 1;
    transform: translateX(0);
}

.reveal.visible .feat-line:nth-child(1)  { transition-delay: 0.1s; }
.reveal.visible .feat-line:nth-child(2)  { transition-delay: 0.15s; }
.reveal.visible .feat-line:nth-child(3)  { transition-delay: 0.25s; }
.reveal.visible .feat-line:nth-child(4)  { transition-delay: 0.35s; }
.reveal.visible .feat-line:nth-child(5)  { transition-delay: 0.45s; }
.reveal.visible .feat-line:nth-child(6)  { transition-delay: 0.55s; }
.reveal.visible .feat-line:nth-child(7)  { transition-delay: 0.65s; }
.reveal.visible .feat-line:nth-child(8)  { transition-delay: 0.75s; }
.reveal.visible .feat-line:nth-child(9)  { transition-delay: 0.85s; }
.reveal.visible .feat-line:nth-child(10) { transition-delay: 0.95s; }
.reveal.visible .feat-line:nth-child(11) { transition-delay: 1.05s; }

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
    .section.reveal.visible {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
    .reveal.visible .section-hdr {
        animation: none;
    }
    .terminal-window:hover,
    .about-terminal:hover,
    .tier-mod:hover {
        transform: none;
    }
}

/* ================================================================
   ================================================================
   AWWWARDS OVERHAUL LAYER — v19
   ================================================================
   Additive enhancement layer: mixed typography (Chakra Petch),
   glass depth, film grain, theme showcase, premium tier cards and
   micro-interactions. Nothing above is removed — only refined.
   ================================================================ */

:root {
    /* Typography system v2 */
    --font-display: 'Chakra Petch', 'JetBrains Mono', sans-serif;

    /* Expanded accents */
    --accent-cyan:     #00e5ff;
    --accent-amber:    #ffb45e;
    --accent-pink:     #ff3b9d;
    --accent-violet:   #b388ff;

    /* Glass system */
    --glass-bg:     rgba(4, 14, 6, 0.55);
    --glass-border: rgba(0, 255, 65, 0.14);
    --glass-blur:   14px;

    /* Layered shadows */
    --shadow-float: 0 18px 40px -18px rgba(0, 0, 0, 0.85), 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------------------------------
   FILM GRAIN — analog texture over everything (very subtle)
   ---------------------------------------------------------------- */
html::after {
    content: '';
    position: fixed;
    inset: -50%;
    z-index: 9002;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-1.2%, 0.8%); }
    50%  { transform: translate(0.9%, -1.1%); }
    75%  { transform: translate(-0.7%, -0.6%); }
    100% { transform: translate(0, 0); }
}

/* ----------------------------------------------------------------
   HERO — gradient mesh atmosphere + mixed typography + live counter
   ---------------------------------------------------------------- */

/* Full-bleed: the hero (and its atmosphere glow) must span the whole
   viewport, not the 1100px main column */
.minimal-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.minimal-hero::before {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 45% at 28% 32%, rgba(0, 70, 40, 0.32), transparent 70%),
        radial-gradient(42% 50% at 74% 62%, rgba(0, 45, 70, 0.28), transparent 70%),
        radial-gradient(30% 34% at 55% 20%, rgba(0, 255, 65, 0.05), transparent 70%);
    /* Fade out toward every edge so the tint never ends in a hard seam
       against the page background */
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 92%);
    mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 92%);
    animation: hero-mesh-drift 26s ease-in-out infinite alternate;
}

@keyframes hero-mesh-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(2.5%, -2%) scale(1.06); }
    100% { transform: translate(-2%, 2.5%) scale(1.02); }
}

.hero-title-minimal {
    display: inline-flex;
    align-items: baseline;
    gap: clamp(10px, 2vw, 22px);
    letter-spacing: 0 !important;
}

.ht-light {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.92em;
    letter-spacing: clamp(6px, 1.6vw, 16px);
    color: rgba(220, 255, 230, 0.88);
    text-shadow: 0 0 24px rgba(160, 255, 200, 0.25);
}

.ht-sep {
    width: 1px;
    align-self: stretch;
    margin: 0.12em 0;
    background: linear-gradient(180deg, transparent, var(--phosphor-dim), transparent);
}

.ht-heavy {
    font-family: var(--font-term);
    letter-spacing: clamp(4px, 1.2vw, 12px);
    color: var(--phosphor);
    text-shadow: 0 0 30px rgba(0,255,65,0.45), 0 0 90px rgba(0,255,65,0.12);
}

/* ----------------------------------------------------------------
   COMMAND BUTTONS — micro-interactions (sweep shine, press, pulse)
   ---------------------------------------------------------------- */
.cmd-btn {
    overflow: hidden;
    isolation: isolate;
}

.cmd-btn::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -80%;
    width: 55%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(200, 255, 220, 0.14), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.cmd-btn:hover::before { left: 125%; }

.cmd-btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
}

/* Primary hero CTA gets a slow beacon pulse */
.cmd-hero {
    animation: cta-beacon 3.6s ease-in-out infinite;
    /* el boton acompana al titular grande sin competir con el */
    padding: clamp(14px, 1.6vw, 20px) clamp(28px, 3.4vw, 48px);
    font-size: clamp(18px, 1.7vw, 27px);
}

@keyframes cta-beacon {
    0%, 100% { box-shadow: var(--glow-sm), inset 0 0 20px var(--phosphor-xlo); }
    50%      { box-shadow: var(--glow-lg), 0 0 34px rgba(0, 255, 65, 0.14), inset 0 0 26px var(--phosphor-lo); }
}

.reveal .reveal-child {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible .reveal-child { opacity: 1; transform: translateY(0); }
.reveal.visible .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal.visible .reveal-child:nth-child(2) { transition-delay: 0.15s; }
.reveal.visible .reveal-child:nth-child(3) { transition-delay: 0.25s; }
.reveal.visible .reveal-child:nth-child(4) { transition-delay: 0.35s; }
.reveal.visible .reveal-child:nth-child(5) { transition-delay: 0.45s; }
.reveal.visible .reveal-child:nth-child(6) { transition-delay: 0.55s; }

/* ----------------------------------------------------------------
   TIER CARDS — premium glass upgrade with per-tier luminous accents
   ---------------------------------------------------------------- */
.tier-mod {
    --tier-accent: var(--phosphor);
    --tier-glow: rgba(0, 255, 65, 0.12);
    background:
        linear-gradient(160deg, rgba(10, 24, 12, 0.5), rgba(2, 8, 4, 0.72));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s, box-shadow 0.35s;
}

.tier-mod:nth-child(2) { --tier-accent: var(--amber); --tier-glow: rgba(255, 157, 0, 0.14); }
.tier-mod:nth-child(3) { --tier-accent: var(--red);   --tier-glow: rgba(255, 51, 51, 0.12); }

.tier-mod::after {
    content: '';
    position: absolute;
    top: -1px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tier-accent), transparent);
    opacity: 0.45;
    transition: opacity 0.3s;
}

.tier-mod:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--tier-glow), var(--shadow-float),
                inset 0 0 30px var(--phosphor-xlo);
    animation: none;
}

.tier-mod:hover::after { opacity: 1; }

/* Recommended tier: breathing halo */
.tier-hl {
    animation: tier-halo 3.4s ease-in-out infinite;
}

@keyframes tier-halo {
    0%, 100% { box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), inset 0 0 30px var(--phosphor-lo), 0 0 18px rgba(255, 157, 0, 0.08); }
    50%      { box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), inset 0 0 30px var(--phosphor-lo), 0 0 34px rgba(255, 157, 0, 0.2); }
}

.tier-price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
}

.tier-perks li {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 13.5px;
    letter-spacing: 0.3px;
}

/* ----------------------------------------------------------------
   SECTION HEADERS — display-font kicker
   ---------------------------------------------------------------- */
.section-hdr > span:not(.hdr-rule) {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 6px;
    font-size: 0.78em;
}

/* ----------------------------------------------------------------
   ABOUT — body copy switches to readable display font
   ---------------------------------------------------------------- */
.about-text {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.2px;
}

/* ----------------------------------------------------------------
   MURAL — filter pills polish
   ---------------------------------------------------------------- */
.mural-filter-btn,
.mural-sort-btn {
    transition: color 0.2s, text-shadow 0.2s, transform 0.15s;
}

.mural-filter-btn:hover,
.mural-sort-btn:hover { transform: translateY(-1px); }

.mural-filter-btn:active,
.mural-sort-btn:active { transform: translateY(0) scale(0.96); }

/* ----------------------------------------------------------------
   DONATION MODAL — chip levitation + CTA energy
   ---------------------------------------------------------------- */
.dn-chip {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.2s, background 0.2s, box-shadow 0.25s;
}

.dn-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px -6px rgba(0, 255, 65, 0.25);
}

.dn-chip:active { transform: translateY(-1px) scale(0.96); }

.dn-cta {
    position: relative;
    overflow: hidden;
}

.dn-cta::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -70%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: skewX(-18deg);
    animation: dn-cta-sheen 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    pointer-events: none;
}

@keyframes dn-cta-sheen {
    0%, 55%  { left: -70%; }
    100%     { left: 130%; }
}

.dn-cta:hover .dn-cta-arrow { transform: translateX(4px); }
.dn-cta-arrow { display: inline-block; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }

/* ----------------------------------------------------------------
   FOOTER — tagline
   ---------------------------------------------------------------- */
.f-tagline { color: var(--text-dim); }

/* ----------------------------------------------------------------
   REDUCED MOTION — this layer degrades cleanly
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html::after { animation: none; }
    .minimal-hero::before { animation: none; }
    .cmd-hero,
    .tier-hl,
    .dn-cta::after { animation: none; }
    .reveal .reveal-child { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   HERO WORDMARK v2 — "SATORBITAL"
   ================================================================
   Bigger, thinner, wider. Exo 2 at 100/200 gives a hairline
   futurist stroke; the two words are separated by weight and
   phosphor intensity instead of by two different typefaces.
   ================================================================ */
:root {
    --font-thin: 'Exo 2', 'Chakra Petch', system-ui, sans-serif;
}

.hero-title-minimal {
    font-family: var(--font-thin);
    /* el titular manda en la portada: ocupa dos tercios del ancho en
       escritorio y no baja del tamano que ya funcionaba en movil */
    font-size: clamp(54px, 13.5vw, 220px) !important;
    font-weight: 100;
    display: inline-flex;
    align-items: center;
    gap: clamp(14px, 2.6vw, 34px);
    letter-spacing: 0 !important;
    line-height: 0.94 !important;
    text-shadow: none;
    margin: 0 !important;
}

.ht-light,
.ht-heavy {
    font-family: var(--font-thin);
    font-size: 1em;
    display: inline-block;
}

.ht-light {
    font-weight: 100;
    letter-spacing: clamp(8px, 2vw, 26px);
    /* optical: tracking adds trailing space, pull it back */
    margin-right: calc(-1 * clamp(8px, 2vw, 26px));
    color: rgba(225, 255, 235, 0.72);
    text-shadow: 0 0 40px rgba(190, 255, 215, 0.18);
}

.ht-heavy {
    font-weight: 200;
    letter-spacing: clamp(8px, 2vw, 26px);
    margin-right: calc(-1 * clamp(8px, 2vw, 26px));
    color: #eafff0;
    text-shadow:
        0 0 18px rgba(0, 255, 65, 0.55),
        0 0 60px rgba(0, 255, 65, 0.28),
        0 0 140px rgba(0, 255, 65, 0.12);
}

.ht-sep {
    width: 1px;
    height: 0.62em;
    align-self: center;
    margin: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 65, 0.55), transparent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.35);
}

@media (max-width: 740px) {
    .hero-title-minimal { gap: 10px; }
    .ht-light, .ht-heavy {
        letter-spacing: 6px;
        margin-right: -6px;
    }
}

/* Single-CTA hero: give the button room to breathe */
.hero-actions { margin-top: 14px; }

/* ================================================================
   CONSOLE HANDOFF — la landing se apaga a negro antes de que la app
   arranque su pantalla de carga (ver orbital-loader.js)
   ================================================================ */
.console-handoff {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease-in;
}

.console-handoff.on { opacity: 1; }

/* ================================================================
   ACCESSIBILITY FLOOR — keyboard focus must always be visible,
   even where component rules zero the outline with higher
   specificity than the base :focus-visible rule.
   ================================================================ */
:is(a, button, input, select, textarea, summary,
    [tabindex]:not([tabindex="-1"]), [role="button"], [role="tab"]):focus-visible {
    outline: 2px solid var(--cyan) !important;
    outline-offset: 2px !important;
}

/* Touch targets: 44px minimum on coarse pointers */
@media (pointer: coarse) {
    .sys-nav-btn,
    .skip-link,
    .cmd-btn,
    .mural-filter-btn,
    .mural-sort-btn,
    .sys-footer-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* ================================================================
   LANDING v3 — slim header, bottom HUD, altimeter, living skins
   ================================================================ */

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------------------------------
   HEADER — fixed, slim, and faded into the page instead of a slab
   ---------------------------------------------------------------- */
.sys-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 46px;
    padding: 0 clamp(16px, 2.6vw, 34px);
    background: linear-gradient(180deg, rgba(1, 6, 3, 0.78) 0%, rgba(1, 6, 3, 0.42) 58%, rgba(1, 6, 3, 0) 100%);
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 0.6s ease 0.5s, background 0.35s ease;
}
/* The blur fades out toward the bottom edge so there is no visible seam */
.sys-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
    pointer-events: none;
}
.sys-header.is-scrolled {
    background: linear-gradient(180deg, rgba(1, 6, 3, 0.92) 0%, rgba(1, 6, 3, 0.6) 62%, rgba(1, 6, 3, 0) 100%);
}

.sys-header-left {
    gap: 10px;
    color: var(--phosphor);
    text-decoration: none;
}
.sys-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--phosphor);
    filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.45));
}
.sys-logo-sat { animation: sys-logo-blink 3.2s ease-in-out infinite; }
@keyframes sys-logo-blink {
    0%, 70%, 100% { opacity: 1; }
    80% { opacity: 0.25; }
}
/* Entrada del logo: se traza el anillo, luego la orbita, se enciende el
   nucleo y el satelite da una vuelta hasta su sitio (lo mueve landing.js) */
.sys-logo-core { transform-box: fill-box; transform-origin: center; }
.sys-logo.is-intro .sys-logo-ring { stroke-dasharray: 1.05 1; animation: sys-logo-draw 0.7s cubic-bezier(0.6, 0, 0.2, 1) both; }
.sys-logo.is-intro .sys-logo-orbit { stroke-dasharray: 1.05 1; animation: sys-logo-draw 0.7s 0.35s cubic-bezier(0.6, 0, 0.2, 1) both; }
.sys-logo.is-intro .sys-logo-core { animation: sys-logo-pop 0.45s 0.8s cubic-bezier(0.3, 1.8, 0.5, 1) both; }
.sys-logo.is-intro .sys-logo-sat { animation: none; }
/* el trazo mide un poco mas que el circulo: con 1 justo quedaba una rendija a las 3 en punto */
@keyframes sys-logo-draw { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes sys-logo-pop { from { transform: scale(0); } to { transform: scale(1); } }
.sys-logo.is-flare { animation: sys-logo-flare 0.6s ease-out; }
@keyframes sys-logo-flare {
    0% { filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.45)); }
    30% { filter: drop-shadow(0 0 14px rgba(0, 255, 65, 1)) brightness(1.6); }
    100% { filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.45)); }
}
.sys-brand { font-size: 19px; letter-spacing: 4px; }

/* El logo en el titular: va dentro del h1, asi escala con la letra */
.hero-title-minimal { font-size: clamp(46px, 11.5vw, 190px) !important; }
.hero-title-minimal .hero-logo {
    width: 0.8em;
    height: 0.8em;
    flex-shrink: 0;
    margin-right: 0.04em;
    color: var(--phosphor);
    filter: drop-shadow(0 0 0.08em rgba(0, 255, 65, 0.55));
}
.hero-title-minimal .hero-logo .sys-logo-ring,
.hero-title-minimal .hero-logo .sys-logo-orbit { stroke-width: 2; }
.hero-title-minimal .hero-logo .sys-logo-sat { animation: none; }
@media (max-width: 640px) {
    /* en movil el logo va encima del nombre */
    .hero-title-minimal { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
    .hero-title-minimal .hero-logo { flex-basis: 100%; height: 0.9em; margin: 0; }
}

.sys-nav { gap: 18px; }
.sys-nav-link { font-size: 15px; letter-spacing: 1.5px; }
.sys-nav-btn {
    padding: 3px 12px;
    font-size: 15px;
    border-color: rgba(0, 255, 65, 0.45);
    box-shadow: none;
    text-shadow: none;
}
.sys-nav-btn:hover { box-shadow: 0 0 14px rgba(0, 255, 65, 0.25); }

/* Anchored sections clear the fixed header */
main section[id] { scroll-margin-top: 70px; }

/* ----------------------------------------------------------------
   COORDINATE HUD — a quiet pill in the bottom-left corner
   ---------------------------------------------------------------- */
.coord-hud {
    top: auto;
    right: auto;
    left: clamp(14px, 2vw, 26px);
    bottom: clamp(12px, 2vh, 22px);
    z-index: 400;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 6px 14px;
    font-size: 10px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 255, 65, 0.14);
    border-radius: 999px;
    background: rgba(1, 6, 3, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.coord-hud-cell { display: inline-flex; align-items: baseline; gap: 6px; }
.coord-hud-cell i { font-style: normal; color: var(--text-dim); }
.coord-hud-cell b {
    font-weight: 400;
    color: var(--phosphor);
    font-variant-numeric: tabular-nums;
    min-width: 7ch;
}
.coord-hud-cell--utc b { min-width: 8ch; }
.coord-hud-rule { width: 1px; height: 12px; background: rgba(0, 255, 65, 0.2); }

/* Pointer azimuth/elevation mean nothing on touch: keep only the clock */
@media (hover: none), (pointer: coarse) {
    .coord-hud-cell:not(.coord-hud-cell--utc),
    .coord-hud-rule { display: none; }
}

/* ----------------------------------------------------------------
   HERO — the live catalogue figure inside the tagline
   ---------------------------------------------------------------- */
.hero-count {
    display: inline-block;
    min-width: 6.2ch;
    color: var(--phosphor);
    text-align: center;
    font-variant-numeric: tabular-nums;
    text-shadow: var(--glow-text);
}
.hero-count.is-counting { text-shadow: 0 0 16px rgba(0, 255, 65, 0.7); }
.hero-count.is-final { animation: hero-count-lock 0.9s ease-out both; }
@keyframes hero-count-lock {
    0%   { text-shadow: 0 0 26px rgba(0, 255, 65, 1); transform: scale(1.08); }
    100% { text-shadow: var(--glow-text); transform: scale(1); }
}

/* On narrow screens the fixed pill would sit on top of the content */
@media (max-width: 720px) { .coord-hud { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .sys-logo-sat { animation: none; }
}

/* ----------------------------------------------------------------
   TIERS v2 — the story behind the donations + community link
   ---------------------------------------------------------------- */
.tiers-story {
    position: relative;
    margin: 0 0 22px;
    padding: 20px 24px 18px 26px;
    border-left: 2px solid var(--amber);
    background: linear-gradient(90deg, rgba(255, 157, 0, 0.07), rgba(1, 8, 4, 0.55) 60%);
    font-family: var(--font-display);
    color: var(--text);
}
.tiers-story p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; max-width: 76ch; }
.tiers-story strong { color: var(--amber); font-weight: 600; }
.tiers-story-kicker {
    margin: 0 0 8px !important;
    font-family: var(--font-data);
    font-size: 10px !important;
    letter-spacing: 2.5px;
    color: var(--amber);
}
.tiers-story-lead { font-size: 17px !important; color: #e6fff0; }
.tiers-story-sign { margin-bottom: 0 !important; font-size: 13px !important; color: var(--text-dim); font-style: italic; }

/* La historia como transmision: un monitor ambar con su barra de canal,
   las lineas entran una a una al verse y un cursor que parpadea al final */
.tiers-story.tx {
    --tx: #ffb347;
    --tx-dim: rgba(255, 179, 71, 0.55);
    margin: 0 0 26px;
    padding: 0;
    border: 1px solid rgba(255, 179, 71, 0.35);
    border-left: 1px solid rgba(255, 179, 71, 0.35);
    border-radius: 6px;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at 30% 0%, rgba(255, 157, 0, 0.1), transparent 60%),
        rgba(12, 7, 0, 0.82);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset, 0 0 40px rgba(255, 140, 0, 0.08), inset 0 0 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.tx-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border-bottom: 1px solid rgba(255, 179, 71, 0.25);
    background: linear-gradient(90deg, rgba(255, 157, 0, 0.14), rgba(255, 157, 0, 0.03));
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--tx);
}
.tx-bar-title { margin: 0; font-weight: 600; }
.tx-bar-meta { margin-left: auto; color: var(--tx-dim); }
.tx-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.tx-signal i { width: 3px; background: var(--tx); opacity: 0.25; animation: tx-signal 1.6s steps(1) infinite; }
.tx-signal i:nth-child(1) { height: 4px; }
.tx-signal i:nth-child(2) { height: 7px; animation-delay: 0.2s; }
.tx-signal i:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.tx-signal i:nth-child(4) { height: 12px; animation-delay: 0.6s; }
@keyframes tx-signal { 0%, 40% { opacity: 0.25; } 50%, 100% { opacity: 1; } }
.tx-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 28px;
    padding: 22px 24px 20px;
}
.tx-text p { margin: 0 0 12px; font-family: var(--font-display); font-size: 15px; line-height: 1.75; color: #f3e6cf; max-width: 70ch; }
.tx-text .tiers-story-lead { font-size: 18px !important; color: #fff4e0; text-shadow: 0 0 18px rgba(255, 170, 60, 0.18); }
.tx-text strong { color: var(--tx); font-weight: 600; box-shadow: inset 0 -1px 0 rgba(255, 179, 71, 0.45); }
.tx-sign { font-style: normal !important; color: var(--tx) !important; font-family: var(--font-data) !important; font-size: 13px !important; letter-spacing: 1px; }
.tx-prompt { color: var(--tx-dim); }
.tx-cursor { display: inline-block; width: 8px; height: 14px; margin-left: 6px; vertical-align: -2px; background: var(--tx); animation: tx-blink 1s steps(1) infinite; }
@keyframes tx-blink { 50% { opacity: 0; } }
.tx-end { margin: 6px 0 0 !important; font-family: var(--font-data) !important; font-size: 10px !important; letter-spacing: 3px; color: var(--tx-dim) !important; }
.tx-stats { margin: 0; display: flex; flex-direction: column; gap: 10px; border-left: 1px dashed rgba(255, 179, 71, 0.25); padding-left: 22px; }
.tx-stat { padding: 10px 12px; border: 1px solid rgba(255, 179, 71, 0.2); background: rgba(255, 157, 0, 0.05); }
.tx-stat dt { font-family: var(--font-data); font-size: 9px; letter-spacing: 2px; color: var(--tx-dim); }
.tx-stat dd { margin: 4px 0 0; font-family: var(--font-data); font-size: 22px; letter-spacing: 2px; color: var(--tx); text-shadow: 0 0 12px rgba(255, 170, 60, 0.35); }
/* entrada: cada linea aparece tras la anterior, como si llegara por radio */
.tx .tx-line { opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease; }
.tx.is-on .tx-line { opacity: 1; transform: none; }
.tx.is-on .tx-line:nth-child(2) { transition-delay: 0.35s; }
.tx.is-on .tx-line:nth-child(3) { transition-delay: 0.8s; }
.tx.is-on .tx-line:nth-child(4) { transition-delay: 1.1s; }
.tx.is-on .tx-stat:nth-child(1) { transition-delay: 0.2s; }
.tx.is-on .tx-stat:nth-child(2) { transition-delay: 0.45s; }
.tx.is-on .tx-stat:nth-child(3) { transition-delay: 0.7s; }
@media (max-width: 760px) {
    .tx-body { grid-template-columns: 1fr; gap: 18px; padding: 18px 16px; }
    .tx-stats { flex-direction: row; flex-wrap: wrap; border-left: 0; padding-left: 0; border-top: 1px dashed rgba(255, 179, 71, 0.25); padding-top: 16px; }
    .tx-stat { flex: 1 1 140px; }
    .tx-bar-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tx .tx-line { opacity: 1; transform: none; transition: none; }
    .tx-signal i, .tx-cursor { animation: none; opacity: 1; }
}

.tiers-community {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin: 22px 0 18px;
    padding: 16px 20px;
    border: 1px dashed rgba(0, 255, 65, 0.25);
    background: rgba(1, 8, 4, 0.5);
}
.tiers-community .tiers-story-kicker { color: var(--phosphor); }
.tiers-community-copy { margin: 0; font-family: var(--font-display); font-size: 15px; color: var(--text); max-width: 60ch; }

/* Mural: extended profile fields unlocked by tier */
.crew-card.has-accent { border-left: 2px solid var(--crew-accent); }
.crew-card.has-accent .crew-name { color: var(--crew-accent); text-shadow: 0 0 10px color-mix(in srgb, var(--crew-accent) 45%, transparent); }
.crew-bio {
    margin: 6px 0 4px;
    font-family: var(--font-display);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(200, 255, 220, 0.78);
    overflow-wrap: anywhere;
}
.crew-link {
    display: inline-block;
    margin: 0 0 8px;
    font-family: var(--font-data);
    font-size: 11px;
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 229, 255, 0.35);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crew-link:hover { border-color: var(--cyan); }

/* ----------------------------------------------------------------
   CREADOR DE SATÉLITES — demo + top 5 de la tripulación
   ---------------------------------------------------------------- */
.forge-intro { margin: -8px 0 20px; font-size: 18px; color: var(--text); }
.forge-rig {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
    gap: clamp(16px, 2.4vw, 28px);
    align-items: start;
}
.forge-stage { display: grid; gap: 10px; min-width: 0; }
.forge-screen {
    position: relative;
    padding: 10px;
    background: #010603;
    border: 1px solid rgba(0, 255, 65, 0.5);
    box-shadow: inset 0 0 40px rgba(0, 255, 65, 0.08), 0 0 0 3px #03140a, 6px 6px 0 rgba(0, 0, 0, 0.55);
}
.forge-show {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    image-rendering: pixelated;
}
.forge-screen::after {
    content: '';
    position: absolute;
    inset: 10px;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
}
.forge-hud {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 16px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-term);
    font-size: 18px;
    line-height: 1;
    color: var(--phosphor);
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.6), 1px 1px 0 #000;
    pointer-events: none;
}
.forge-screen.is-trying .forge-show,
.forge-screen.is-trying .forge-hud { display: none; }
.forge-screen.is-trying::after { display: none; }
.forge-demo { position: relative; z-index: 2; }
.forge-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.forge-controls .cmd-btn { font-size: 15px; padding: 8px 12px; }
.forge-note { font-size: 16px; color: #ffb000; min-height: 1.2em; }
.forge-muted { color: var(--text-dim); }
.forge-error { font-size: 18px; color: #ff5a6e; }
.forge-side { display: grid; gap: 14px; }
.forge-pitch,
.forge-top {
    padding: 12px 14px;
    background: rgba(3, 10, 6, 0.82);
    border: 1px solid var(--border);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}
.forge-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
    cursor: pointer;
}
.forge-summary::-webkit-details-marker { display: none; }
.forge-summary:focus-visible { outline: 2px solid #ffb000; outline-offset: 4px; }
.forge-summary .forge-kicker { margin: 0; }
.forge-caret { color: var(--phosphor); transition: transform 0.15s steps(3); }
.forge-pitch[open] .forge-caret { transform: rotate(90deg); }
.forge-pitch[open] .forge-perks { animation: forge-slide 0.22s steps(5) both; }
@keyframes forge-slide { from { opacity: 0; transform: translateY(-6px); } }
.forge-kicker { font-family: 'Silkscreen', var(--font-term); font-size: 10px; letter-spacing: 1px; color: var(--phosphor); margin-bottom: 8px; }
.forge-perks { list-style: none; display: grid; gap: 6px; margin: 12px 0; font-size: 17px; color: var(--text); }
.forge-perks li { display: flex; gap: 8px; align-items: center; }
.forge-donate { font-size: 15px; padding: 8px 12px; }
.forge-top-list { list-style: none; display: grid; gap: 8px; margin-bottom: 12px; }
.forge-top-empty { font-size: 17px; color: var(--text); }
.forge-top-cta { font-size: 15px; padding: 8px 12px; }
@media (max-width: 980px) { .forge-rig { grid-template-columns: 1fr; } }

/* Tier cards: the whole card opens the payment, plus explicit actions */
.tier-mod[data-donate-tier] { cursor: pointer; }
.tier-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}
.tier-pick {
    padding: 7px 10px;
    font-family: var(--font-term);
    font-size: 17px;
    letter-spacing: 1px;
    color: #020a04;
    background: var(--tier-accent, var(--phosphor));
    border: 0;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.tier-pick:hover { filter: brightness(1.15); }
.tier-pick:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55); }
.tier-more {
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}
.tier-more:hover { color: var(--tier-accent, var(--phosphor)); }
.tier-pick:focus-visible,
.tier-more:focus-visible { outline: 2px solid #ffec27; outline-offset: 3px; }

/* Crew registry with pixel cards */
.founders-grid .xcard.reveal { opacity: 0; transform: translateY(8px); }
.founders-grid .xcard.reveal.visible { opacity: 1; transform: none; transition: opacity 0.3s steps(4), transform 0.3s steps(4); }

.account-popup-profile {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid var(--border-hi);
    color: var(--phosphor);
    font-family: var(--font-data);
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
}
.account-popup-profile:hover { background: rgba(0, 255, 65, 0.18); }

/* ================================================================
   HERO WORDMARK — la retro del logo, encendiéndose como un CRT
   ================================================================
   The hero wears the same VT323 face as the header brand next to the
   orbit mark. How it arrives is in HERO RASTER, at the end of the file.
   ================================================================ */
.hero-title-minimal .ht-light,
.hero-title-minimal .ht-heavy {
    font-family: var(--font-term);
    font-weight: 400;
    letter-spacing: clamp(6px, 1.4vw, 18px);
    margin-right: calc(-1 * clamp(6px, 1.4vw, 18px));
}
.hero-title-minimal .ht-light {
    color: rgba(200, 255, 210, 0.85);
    text-shadow: 0 0 16px rgba(0, 255, 65, 0.35);
}
.hero-title-minimal .ht-heavy {
    color: var(--phosphor);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.75), 0 0 34px rgba(0, 255, 65, 0.35), 0 0 90px rgba(0, 255, 65, 0.15);
}
.hero-title-minimal .ht-sep {
    height: 0.52em;
    background: linear-gradient(180deg, transparent, var(--phosphor), transparent);
}

/* ================================================================
   FORGE DECK — dos cartas: el pixel art delante, el volumen detrás
   ================================================================
   The 2D demo and the 3D model are the same satellite seen two ways.
   The one behind peeks out from under the other; click its tab (or
   the card itself) and they swap with a shuffle.
   ================================================================ */
.forge-deck {
    position: relative;
    padding: 40px 34px 0 0;   /* room for the card peeking out behind */
    margin-bottom: 26px;
}
.forge-card {
    position: absolute;
    left: 0;
    right: 34px;
    top: 40px;
    bottom: 0;
    transform-origin: 50% 100%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
/* keeps the deck's height: the front card is the one in the flow */
.forge-deck::before {
    content: '';
    display: block;
    aspect-ratio: 16 / 9;
}
/* the card at the back sticks out up and to the right, dimmed and tilted */
.forge-deck[data-front="2d"] .forge-card--3d,
.forge-deck[data-front="3d"] .forge-card--2d {
    transform: translate(34px, -34px) rotate(1.4deg);
    filter: brightness(0.62) saturate(0.75);
    z-index: 1;
    cursor: pointer;
}
.forge-deck[data-front="2d"] .forge-card--2d,
.forge-deck[data-front="3d"] .forge-card--3d {
    transform: none;
    z-index: 2;
}
.forge-deck[data-front="2d"] .forge-card--3d:hover,
.forge-deck[data-front="3d"] .forge-card--2d:hover {
    transform: translate(34px, -44px) rotate(1.4deg);
    filter: brightness(0.92) saturate(1);
}
.forge-card .forge-screen { height: 100%; }
.forge-card-tab {
    position: absolute;
    top: -15px;
    left: 18px;
    padding: 2px 12px 3px;
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
    background: #02120a;
    border: 1px solid rgba(0, 255, 65, 0.35);
    border-bottom: none;
    cursor: pointer;
}
.forge-deck[data-front="2d"] .forge-card--2d .forge-card-tab,
.forge-deck[data-front="3d"] .forge-card--3d .forge-card-tab {
    color: #01120a;
    background: var(--phosphor);
    border-color: var(--phosphor);
}
.forge-card-tab:focus-visible { outline: 2px solid #ffb000; outline-offset: 2px; }

/* the card behind keeps its picture but drops its readouts, so the text
   sticking out over the front card does not read as a double exposure */
.forge-deck[data-front="2d"] .forge-card--3d .forge-hud,
.forge-deck[data-front="2d"] .forge-card--3d .forge-3d-hint,
.forge-deck[data-front="3d"] .forge-card--2d .forge-hud { opacity: 0; }

.forge-screen--3d {
    display: grid;
    place-items: stretch;
    background:
        radial-gradient(circle at 18% 24%, rgba(200, 255, 220, 0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 16%, rgba(180, 255, 210, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 38% 74%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 86% 62%, rgba(180, 230, 255, 0.6) 0 1px, transparent 2px),
        radial-gradient(circle at 54% 42%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
        radial-gradient(120% 90% at 50% 120%, rgba(0, 255, 65, 0.12), transparent 60%),
        #010603;
}
.forge-3d {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}
.forge-3d:active { cursor: grabbing; }
.forge-3d-tier .tier-chip { min-width: 22px; height: 18px; font-size: 10px; }
.forge-3d-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 1;
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.forge-3d-hint.is-hidden { opacity: 0; }

@media (max-width: 720px) {
    .forge-deck { padding: 32px 18px 0 0; }
    .forge-card { right: 18px; top: 32px; }
    .forge-deck[data-front="2d"] .forge-card--3d,
    .forge-deck[data-front="3d"] .forge-card--2d { transform: translate(18px, -26px) rotate(1.2deg); }
    .forge-card-tab { font-size: 9px; left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .forge-card { transition: none; }
}

/* ================================================================
   LA CONSOLA
   Cinco canales, cada uno una grabación de la app real. El vídeo del
   canal activo se reproduce en bucle y sin sonido; los demás ni se
   descargan. Sin JavaScript se ve el póster del primero, que ya
   cuenta lo que hay.
   ================================================================ */
.console-intro {
    max-width: 68ch;
    margin: 0 auto 30px;
    font-family: var(--font-data);
    font-size: clamp(13px, 1.25vw, 16px);
    line-height: 1.85;
    color: var(--text-dim);
    text-align: center;
}

.console-rig {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 28px;
    align-items: start;
}

.console-deck { min-width: 0; }

/* --- la pantalla --- */
.console-screen {
    position: relative;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: #000;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.07), inset 0 0 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* El hueco lo fija la proporción del vídeo, así que al cambiar de canal
   la página no da un salto. */
.console-channel {
    margin: 0;
    display: block;
}

.console-channel[hidden] { display: none; }

.console-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

/* La línea de barrido que tiene el resto del sitio, también aquí. */
.console-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0 2px,
        rgba(0, 0, 0, 0.12) 2px 3px
    );
    mix-blend-mode: multiply;
}

/* --- las flechas: grandes, sobre la pantalla, a media altura --- */
.console-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    margin-top: -40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(0, 255, 65, 0.45);
    border-radius: 50%;
    background: rgba(0, 12, 4, 0.55);
    color: var(--phosphor);
    cursor: pointer;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.12);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}
.console-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.console-arrow--prev { left: 14px; }
.console-arrow--next { right: 14px; }
.console-arrow:hover,
.console-arrow:focus-visible {
    background: var(--phosphor);
    color: #031006;
    box-shadow: 0 0 28px rgba(0, 255, 65, 0.55);
    outline: none;
}
.console-arrow--prev:hover { transform: translateX(-3px); }
.console-arrow--next:hover { transform: translateX(3px); }
.console-arrow:active { transform: scale(0.94); }

/* --- el cambio de canal: un golpe de nieve de televisor --- */
.console-static {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
        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='1.3' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 1 0 0 0 0 0.7 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-color: rgba(0, 30, 10, 0.55);
    mix-blend-mode: screen;
}
.console-screen.is-switching .console-static { animation: console-static 0.42s steps(6) both; }
@keyframes console-static {
    0% { opacity: 1; background-position: 0 0, 0 0; }
    50% { opacity: 0.9; background-position: 0 2px, 37px 81px; }
    100% { opacity: 0; background-position: 0 4px, 91px 13px; }
}
.console-screen.is-switching .console-channel:not([hidden]) { animation: console-roll 0.42s ease-out both; }
@keyframes console-roll {
    0% { transform: scaleY(0.02) scaleX(1.04); filter: brightness(3); }
    35% { transform: scaleY(1) scaleX(1); filter: brightness(1.6); }
    100% { transform: none; filter: none; }
}

/* --- la barra del canal, bajo la pantalla --- */
.console-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-top: 0;
    background: rgba(0, 14, 5, 0.75);
    font-family: var(--font-data);
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-dim);
}
.console-bar-ch b { color: var(--phosphor); font-weight: 600; }
.console-bar-name { color: var(--phosphor); text-shadow: 0 0 10px rgba(0, 255, 65, 0.45); min-width: 9ch; }
.console-bar-dots { display: inline-flex; gap: 6px; margin-left: auto; }
.console-bar-dots i { width: 7px; height: 7px; background: rgba(0, 255, 65, 0.2); transition: background 0.2s ease, box-shadow 0.2s ease; }
.console-bar-dots i.is-on { background: var(--phosphor); box-shadow: 0 0 8px rgba(0, 255, 65, 0.7); }
.console-bar-timer { width: 80px; height: 2px; background: rgba(0, 255, 65, 0.15); overflow: hidden; }
.console-bar-timer i { display: block; height: 100%; width: 100%; background: var(--phosphor); transform-origin: left; transform: scaleX(0); }
.console-bar-timer.is-stopped { visibility: hidden; }

.console-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 30px 20px 14px;
    font-family: var(--font-data);
    font-size: clamp(11px, 1.05vw, 13px);
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(to top, rgba(0, 8, 2, 0.92) 30%, rgba(0, 8, 2, 0));
}

/* --- la columna de cifras --- */
.console-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.console-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.console-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
    border-left: 2px solid rgba(0, 255, 65, 0.3);
}

.console-n {
    font-family: var(--font-term, 'VT323', monospace);
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1;
    color: var(--phosphor);
    text-shadow: 0 0 14px rgba(0, 255, 65, 0.4);
    font-variant-numeric: tabular-nums;
}

.console-k {
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.console-src {
    margin: 0;
    font-family: var(--font-data);
    font-size: 12px;
    line-height: 1.75;
    color: var(--text-dim);
}

@media (max-width: 900px) {
    .console-rig { grid-template-columns: 1fr; }
    .console-arrow { width: 42px; height: 42px; margin-top: -34px; }
    .console-arrow--prev { left: 8px; }
    .console-arrow--next { right: 8px; }
    .console-bar-timer { display: none; }
    .console-stats { flex-direction: row; flex-wrap: wrap; gap: 18px 26px; }
    .console-caption { padding: 24px 14px 12px; }
}

/* ================================================================
   SELECTOR DE IDIOMA
   Dos enlaces, no un desplegable: son dos opciones y así se ve cuál
   está activa sin abrir nada. El servidor marca la activa con
   data-active, así que también es correcta sin JavaScript.
   ================================================================ */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 6px;
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 1.5px;
}

.lang-opt {
    color: var(--text-dim);
    text-decoration: none;
    padding: 2px 4px;
    border-bottom: 1px solid transparent;
}

.lang-opt:hover,
.lang-opt:focus-visible {
    color: var(--phosphor);
}

.lang-switch[data-active="es"] .lang-opt[data-lang="es"],
.lang-switch[data-active="en"] .lang-opt[data-lang="en"] {
    color: var(--phosphor);
    border-bottom-color: var(--phosphor);
}

.lang-sep { color: rgba(0, 255, 65, 0.3); }

/* En movil la navegacion de cabecera no se muestra: alli el selector vive en
   el pie, que si se ve. */
@media (max-width: 900px) {
    .sys-nav .lang-switch { display: none; }
}

/* ----------------------------------------------------------------
   CREADOR EN LA PORTADA — piel de videojuego
   Marcos con bisel de pixel y esquinas de mira, pestanas de cartucho y
   una tira de inventario con todas las piezas pasando sola.
   ---------------------------------------------------------------- */
.forge-screen {
    border: 2px solid #0b2a15;
    background: radial-gradient(ellipse at 50% 40%, #07182a, #010409 75%);
    box-shadow:
        inset 2px 2px 0 rgba(120, 255, 170, 0.35),
        inset -2px -2px 0 rgba(0, 0, 0, 0.75),
        0 0 0 2px #020805,
        6px 6px 0 2px rgba(0, 0, 0, 0.55);
}
.forge-screen::before {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: 2;
    pointer-events: none;
    --c: #00ff41;
    background:
        linear-gradient(var(--c), var(--c)) top left / 22px 3px,
        linear-gradient(var(--c), var(--c)) top left / 3px 22px,
        linear-gradient(var(--c), var(--c)) top right / 22px 3px,
        linear-gradient(var(--c), var(--c)) top right / 3px 22px,
        linear-gradient(var(--c), var(--c)) bottom left / 22px 3px,
        linear-gradient(var(--c), var(--c)) bottom left / 3px 22px,
        linear-gradient(var(--c), var(--c)) bottom right / 22px 3px,
        linear-gradient(var(--c), var(--c)) bottom right / 3px 22px;
    background-repeat: no-repeat;
    opacity: 0.85;
}
.forge-card-tab {
    font-family: 'Silkscreen', var(--font-data);
    font-size: 10px;
    padding: 4px 12px 5px;
    border: 2px solid #0b2a15;
    border-bottom: none;
    box-shadow: inset 1px 1px 0 rgba(120, 255, 170, 0.35);
}
.forge-deck[data-front="2d"] .forge-card--2d .forge-card-tab,
.forge-deck[data-front="3d"] .forge-card--3d .forge-card-tab {
    background: linear-gradient(180deg, #3dff7a, #00c43a);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 0 14px rgba(0, 255, 65, 0.35);
}

.forge-inventory {
    margin-top: 26px;
    border: 2px solid #0b2a15;
    background: linear-gradient(180deg, #06200f, #03120a);
    box-shadow: inset 2px 2px 0 rgba(120, 255, 170, 0.3), inset -2px -2px 0 rgba(0, 0, 0, 0.7), 4px 4px 0 1px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.forge-inventory-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 6px 12px 7px;
    font-family: 'Silkscreen', var(--font-data);
    font-size: 10px;
    letter-spacing: 2px;
    color: #031006;
    background: linear-gradient(180deg, #3dff7a, #00c43a);
}
.forge-inventory-head b { font-weight: 400; margin-right: auto; opacity: 0.75; }
.forge-inv-key { font-style: normal; padding: 1px 6px; color: #031006; }
.forge-inv-key--rare { background: #29adff; }
.forge-inv-key--common { background: #7dff9f; }
.forge-inv-key--epic { background: #c86bff; }
.forge-inv-key--legendary { background: linear-gradient(90deg, #ffb000, #fff1a8); }
.forge-inv-key--mythic { background: linear-gradient(90deg, #ff3b6b, #ffec27, #29adff); }
.forge-inventory-track {
    display: flex;
    width: max-content;
    padding: 12px 0;
    animation: forge-inv-scroll 70s linear infinite;
}
.forge-inventory:hover .forge-inventory-track { animation-play-state: paused; }
@keyframes forge-inv-scroll { to { transform: translateX(-50%); } }
.forge-inventory-row { display: flex; gap: 10px; padding-right: 10px; }
.forge-inv-slot {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    background: radial-gradient(circle at 50% 40%, #0b2014, #020a05 75%);
    border: 2px solid rgba(41, 173, 255, 0.55);
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease;
}
.forge-inv-slot canvas { width: 56px; height: 56px; image-rendering: pixelated; }
.forge-inv-slot--common { border-color: rgba(125, 255, 159, 0.4); }
.forge-inv-slot--epic { border-color: rgba(200, 107, 255, 0.7); background: radial-gradient(circle at 50% 40%, #1c0f2a, #07040c 75%); }
.forge-inv-slot--legendary { border-color: rgba(255, 176, 0, 0.85); background: radial-gradient(circle at 50% 40%, #2a1c05, #0c0802 75%); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 176, 0, 0.35); }
.forge-inv-slot--mythic { border-color: #ff3b6b; background: radial-gradient(circle at 50% 40%, #2a0712, #0a0205 75%); box-shadow: 0 0 12px rgba(255, 59, 107, 0.5); }
.forge-inv-slot--mythic canvas { filter: drop-shadow(0 0 2px #ff3b6b) drop-shadow(0 0 5px rgba(255, 59, 107, 0.6)); }
.forge-inv-slot:hover { transform: translateY(-3px) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
    .forge-inventory-track { animation: none; overflow-x: auto; width: auto; }
}

/* ----------------------------------------------------------------
   PASO A LA CONSOLA — la pantalla se apaga como un tubo: la imagen se
   aplasta en una linea, la linea en un punto, y el punto se apaga
   ---------------------------------------------------------------- */
.console-handoff { background: transparent; opacity: 1; transition: none; visibility: hidden; }
.console-handoff::before,
.console-handoff::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    background: #000;
}
.console-handoff::before { top: 0; }
.console-handoff::after { bottom: 0; }
.console-handoff i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 3px;
    margin-top: -1px;
    background: #eafff0;
    box-shadow: 0 0 18px 4px rgba(0, 255, 65, 0.8), 0 0 60px 10px rgba(0, 255, 65, 0.35);
    transform: translateX(-50%) scaleX(1);
    opacity: 0;
}
.console-handoff.on { visibility: visible; }
.console-handoff.on::before,
.console-handoff.on::after { animation: handoff-close 0.26s cubic-bezier(0.7, 0, 0.9, 0.5) forwards; }
.console-handoff.on i { animation: handoff-line 0.5s linear forwards; }
@keyframes handoff-close { to { height: calc(50% - 1px); } }
@keyframes handoff-line {
    0%, 48% { opacity: 0; transform: translateX(-50%) scaleX(1); }
    52% { opacity: 1; transform: translateX(-50%) scaleX(1); }
    80% { opacity: 1; transform: translateX(-50%) scaleX(0.004) scaleY(2); }
    100% { opacity: 0; transform: translateX(-50%) scaleX(0.004) scaleY(2); }
}

/* ----------------------------------------------------------------
   NIVELES DE APOYO PLEGADOS — una barra; al abrirla, todo lo demas
   ---------------------------------------------------------------- */
.tiers-fold { margin: 26px 0 22px; }
.tiers-fold-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    font: inherit;
    text-align: left;
    color: var(--text);
    background: linear-gradient(90deg, rgba(255, 157, 0, 0.08), rgba(1, 8, 4, 0.6) 70%);
    border: 1px solid rgba(255, 179, 71, 0.35);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.tiers-fold-bar:hover { border-color: #ffb347; background: linear-gradient(90deg, rgba(255, 157, 0, 0.14), rgba(1, 8, 4, 0.6) 70%); }
.tiers-fold-led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 10px #ffb347; }
.tiers-fold-text { flex: 1 1 auto; font-family: var(--font-data); font-size: 13px; letter-spacing: 3px; line-height: 1.6; color: #ffb347; }
.tiers-fold-cta { flex: none; font-family: var(--font-data); font-size: 12px; letter-spacing: 2px; color: #ffb347; white-space: nowrap; }
.tiers-fold-cta i { display: inline-block; font-style: normal; transition: transform 0.25s ease; }
.tiers-fold.is-open .tiers-fold-cta i { transform: rotate(180deg); }
.tiers-body { padding-top: 18px; opacity: 0; transform: translateY(-6px); transition: opacity 0.35s ease, transform 0.35s ease; }
.tiers-body.is-in { opacity: 1; transform: none; }
@media (max-width: 640px) { .tiers-fold-bar { flex-wrap: wrap; } }

/* ----------------------------------------------------------------
   LA CONSOLA — sin marco: el vídeo se funde con el fondo de la página
   y todo el texto va en la letra de terminal
   ---------------------------------------------------------------- */
.console-tally {
    margin: -8px 0 10px;
    text-align: center;
    font-family: var(--font-term);
    font-size: clamp(22px, 2.3vw, 30px);
    letter-spacing: 1px;
    color: var(--text-dim);
}
.console-tally-n { color: var(--phosphor); text-shadow: 0 0 14px rgba(0, 255, 65, 0.5); font-variant-numeric: tabular-nums; }
.console-cursor { color: var(--phosphor); animation: console-blink 1.05s steps(1) infinite; }
@keyframes console-blink { 50% { opacity: 0; } }

.console-screen {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    outline: none;
}
/* los bordes del vídeo se deshacen en negro: sin recuadro */
.console-video,
.console-screen::after {
    -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 47%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 66% at 50% 47%, #000 55%, transparent 100%);
}
.console-video { background: transparent; }
.console-static {
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 47%, #000 40%, transparent 90%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 47%, #000 40%, transparent 90%);
}

.console-caption,
.console-caption.is-in {
    left: 12%;
    right: 12%;
    bottom: 5%;
    padding: 0;
    text-align: center;
    font-family: var(--font-term);
    font-size: clamp(19px, 1.9vw, 26px);
    line-height: 1.25;
    letter-spacing: 0.5px;
    color: #d6ffe0;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.55), 0 0 3px #000, 0 1px 12px #000;
    background: none;
}
.console-caption.is-in { animation: console-cap 0.45s ease-out; }
@keyframes console-cap { from { opacity: 0; transform: translateY(6px); } }

/* flechas: solo el chevrón, en el borde donde el vídeo ya es negro */
.console-arrow {
    width: 56px;
    height: 72px;
    margin-top: -36px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    color: rgba(0, 255, 65, 0.6);
}
.console-arrow svg { width: 34px; height: 34px; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.6)); }
.console-arrow--prev { left: 0; }
.console-arrow--next { right: 0; }
.console-arrow:hover,
.console-arrow:focus-visible { background: none; color: var(--phosphor); box-shadow: none; }

/* la barra: nombre del bloque, un tramo de progreso por bloque y abrir */
.console-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
    padding: 0 6%;
    border: 0;
    background: none;
    font-family: var(--font-term);
    font-size: 20px;
    letter-spacing: 1px;
}
.console-bar-name { color: var(--phosphor); text-shadow: 0 0 10px rgba(0, 255, 65, 0.45); white-space: nowrap; }
.console-bar-name b { font-weight: normal; color: var(--text-dim); margin-right: 6px; }
.console-prog { display: flex; flex: 1 1 auto; gap: 6px; }
.console-prog button {
    flex: 1 1 0;
    height: 14px;
    padding: 6px 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.console-prog button::before { content: ''; display: block; height: 2px; background: rgba(0, 255, 65, 0.18); }
.console-prog button b {
    display: block;
    height: 2px;
    margin-top: -2px;
    background: var(--phosphor);
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.7);
    transform-origin: left;
    transform: scaleX(0);
}
.console-prog button:hover::before { background: rgba(0, 255, 65, 0.45); }
.console-bar-open {
    margin: 0;
    font-family: var(--font-term);
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--phosphor);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, text-shadow 0.2s ease;
}
.console-bar-open:hover,
.console-bar-open:focus-visible { border-bottom-color: var(--phosphor); text-shadow: 0 0 10px rgba(0, 255, 65, 0.6); }

@media (max-width: 700px) {
    .console-video,
    .console-screen::after {
        -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 60%, transparent 100%);
        mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 60%, transparent 100%);
    }
    .console-caption,
    .console-caption.is-in { position: static; min-height: 2.6em; margin-top: 2px; font-size: 20px; }
    .console-arrow { top: calc((100vw - 32px) * 0.28125); width: 40px; height: 56px; margin-top: -28px; }
    .console-arrow svg { width: 26px; height: 26px; }
    .console-bar { flex-wrap: wrap; gap: 8px 14px; padding: 0; font-size: 18px; }
    .console-prog { order: 3; flex-basis: 100%; }
    .console-bar-open { margin-left: auto; font-size: 18px; }
}

/* ----------------------------------------------------------------
   SKINS — cada nombre se anima como su tema
   ---------------------------------------------------------------- */
.theme-name { position: relative; font-size: 19px; line-height: 1.1; }

/* TERMINAL: se teclea, con el cursor de bloque */
.theme-card--terminal .theme-name {
    font-family: var(--font-term);
    font-weight: normal;
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--phosphor);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
    display: inline-block;
    padding-right: 0.7em;
    white-space: nowrap;
    /* se destapa letra a letra con un recorte: no depende del ancho de la letra */
    animation: skin-type 6s steps(8, jump-none) infinite;
}
.theme-card--terminal .theme-name::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 0.5em;
    background: var(--phosphor);
    animation: skin-caret 0.9s steps(1) infinite;
}
@keyframes skin-type {
    0% { clip-path: inset(0 100% 0 0); }
    30%, 88% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 100% 0 0); }
}
@keyframes skin-caret { 50% { opacity: 0; } }

/* NEURAL LINK: interferencia cian y magenta de vez en cuando */
.theme-card--neural .theme-name { font-family: 'Chakra Petch', var(--font-display); font-weight: 700; letter-spacing: 3px; }
.theme-card--neural .theme-name::before,
.theme-card--neural .theme-name::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}
.theme-card--neural .theme-name::before { color: #ff2bd6; animation: skin-glitch-a 3.6s steps(1) infinite; }
.theme-card--neural .theme-name::after { color: #00ffe1; animation: skin-glitch-b 3.6s steps(1) infinite; }
@keyframes skin-glitch-a {
    0%, 71%, 79%, 100% { opacity: 0; transform: none; clip-path: none; }
    72% { opacity: 0.9; transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); }
    75% { opacity: 0.9; transform: translate(2px, 0); clip-path: inset(60% 0 8% 0); }
    77% { opacity: 0.8; transform: translate(-1px, 0); clip-path: inset(35% 0 40% 0); }
}
@keyframes skin-glitch-b {
    0%, 71%, 79%, 100% { opacity: 0; transform: none; clip-path: none; }
    73% { opacity: 0.9; transform: translate(3px, 0); clip-path: inset(50% 0 20% 0); }
    76% { opacity: 0.9; transform: translate(-2px, 0); clip-path: inset(5% 0 70% 0); }
}

/* APOLLO ARCHIVE: película vieja, parpadeo ámbar y un temblor de proyector */
.theme-card--apollo .theme-name {
    font-family: 'Courier New', var(--font-data);
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffc36e;
    text-shadow: 0 0 8px rgba(255, 150, 40, 0.55), 1px 1px 0 rgba(90, 40, 0, 0.8);
    animation: skin-film 2.4s linear infinite;
}
@keyframes skin-film {
    0%, 100% { opacity: 1; transform: translate(0, 0); }
    8% { opacity: 0.82; transform: translate(0, 1px); }
    9% { opacity: 1; }
    37% { transform: translate(0.5px, 0); }
    52% { opacity: 0.9; transform: translate(0, -1px); }
    53% { opacity: 1; }
    81% { opacity: 0.7; }
    82% { opacity: 1; transform: translate(-0.5px, 0); }
}

/* SYNTHWAVE: cromo neón en cursiva con el brillo pasando */
.theme-card--synthwave .theme-name {
    font-family: 'Exo 2', var(--font-display);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 4px;
    color: transparent;
    background: linear-gradient(100deg, #ff3b9d 0%, #ffd6f0 22%, #ff3b9d 34%, #8a3dff 70%, #ff3b9d 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(255, 59, 157, 0.6));
    animation: skin-chrome 4s linear infinite, skin-neon 2.2s ease-in-out infinite;
}
@keyframes skin-chrome { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes skin-neon { 50% { filter: drop-shadow(0 0 12px rgba(255, 59, 157, 0.95)); } }

/* POCKET LCD: letras de píxel sobre la pantallita, que refresca a saltos */
.theme-card--pocket .theme-name {
    font-family: 'Silkscreen', var(--font-term);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 3px 8px 2px;
    color: #0f380f;
    background: #9bbc0f;
    box-shadow: inset 0 0 0 2px #306230;
    text-shadow: 2px 0 rgba(15, 56, 15, 0.25);
    animation: skin-lcd 3.2s steps(1) infinite;
}
@keyframes skin-lcd {
    0%, 100% { color: #0f380f; text-shadow: 2px 0 rgba(15, 56, 15, 0.25); }
    46% { color: #306230; text-shadow: -2px 0 rgba(15, 56, 15, 0.35); }
    50% { color: #0f380f; text-shadow: 2px 0 rgba(15, 56, 15, 0.25); }
    52% { color: #8bac0f; }
    54% { color: #0f380f; }
}

/* BLUEPRINT: se delinea y luego se entinta, con su cota debajo */
.theme-card--blueprint .theme-name {
    font-family: var(--font-data);
    font-weight: 700;
    letter-spacing: 3px;
    color: transparent;
    -webkit-text-stroke: 1px #cfe0ff;
    background: linear-gradient(90deg, #eaf2ff 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    padding-bottom: 7px;
    animation: skin-ink 5s ease-in-out infinite;
}
.theme-card--blueprint .theme-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    border-left: 1px solid #ffd84a;
    border-right: 1px solid #ffd84a;
    background: linear-gradient(#ffd84a, #ffd84a) left center / 100% 1px no-repeat;
    transform-origin: left;
    animation: skin-dim 5s ease-in-out infinite;
}
@keyframes skin-ink { 0%, 15% { background-position: 100% 0; } 55%, 85% { background-position: 0 0; } 100% { background-position: 100% 0; } }
@keyframes skin-dim { 0% { transform: scaleX(0); } 30%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
    .theme-card .theme-name,
    .theme-card .theme-name::before,
    .theme-card .theme-name::after { animation: none !important; }
    .theme-card--terminal .theme-name { clip-path: none; }
    .theme-card--blueprint .theme-name { background-position: 0 0; }
}
@media (max-width: 700px) {
    .console-tally { font-size: 21px; }
}

/* ----------------------------------------------------------------
   TITULOS DE SECCION — letra de pixel, numero de seccion, cursor y
   entrada descifrando letra a letra; mas aire entre secciones
   ---------------------------------------------------------------- */
.section { margin-top: 150px; }
.section-hdr { gap: 18px; margin-bottom: 48px; }
.section-hdr > span:not(.hdr-rule):not(.hdr-idx) {
    position: relative;
    padding-right: 0.9em;
    font-family: 'Silkscreen', var(--font-term);
    font-weight: 400;
    font-size: clamp(17px, 2.2vw, 27px);
    letter-spacing: 4px;
    color: var(--phosphor);
    text-shadow: 0 0 14px rgba(0, 255, 65, 0.45), 3px 3px 0 #02140a;
    white-space: nowrap;
}
/* el cursor de bloque tras el titulo */
.section-hdr > span:not(.hdr-rule):not(.hdr-idx)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0.18em;
    width: 0.55em;
    height: 0.85em;
    background: var(--phosphor);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
    animation: hdr-caret 1.05s steps(1) infinite;
}
@keyframes hdr-caret { 50% { opacity: 0; } }
.hdr-idx {
    font-family: var(--font-term);
    font-size: clamp(16px, 1.6vw, 20px);
    letter-spacing: 2px;
    color: var(--text-dim);
    order: -1;
}
.hdr-idx::before { content: '§'; margin-right: 4px; color: var(--phosphor); }
/* las lineas crecen desde el titulo al entrar */
.section-hdr.is-decoding .hdr-rule { transform: scaleX(0); }
.section-hdr .hdr-rule { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: right; }
.section-hdr .hdr-rule:last-child { transform-origin: left; }
@media (max-width: 700px) {
    .section { margin-top: 110px; }
    .section-hdr > span:not(.hdr-rule):not(.hdr-idx) { white-space: normal; letter-spacing: 2px; }
    .hdr-idx { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .section-hdr > span:not(.hdr-rule):not(.hdr-idx)::after { animation: none; }
}
/* entrada suave del titulo: fundido y letras que se asientan */
.section-hdr.is-decoding > span:not(.hdr-rule):not(.hdr-idx),
.section-hdr.is-decoding .hdr-idx { opacity: 0; }
.section-hdr.is-in > span:not(.hdr-rule):not(.hdr-idx) { animation: hdr-settle 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.section-hdr.is-in .hdr-idx { animation: hdr-fade 0.9s 0.15s ease-out both; }
@keyframes hdr-settle { from { opacity: 0; letter-spacing: 9px; filter: blur(2px); } to { opacity: 1; letter-spacing: 4px; filter: none; } }
@keyframes hdr-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 700px) { @keyframes hdr-settle { from { opacity: 0; letter-spacing: 5px; } to { opacity: 1; letter-spacing: 2px; } } }


/* ================================================================
   SKINS — un planeta cortado en seis franjas
   ================================================================
   Los seis vídeos comparten encuadre, así que apilados y recortados
   cada uno a su franja componen UNA Tierra en seis pieles. Elegir
   una franja la abre casi a pantalla entera; las demás se recogen a
   los lados como lomos de libro. --l y --r son los bordes de cada
   franja y los fija setupSkinWall().
   ================================================================ */
@property --l { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
@property --r { syntax: '<percentage>'; inherits: true; initial-value: 100%; }

.skin-wall {
    --wall-accent: var(--phosphor);
    --sliver: 5;
    display: grid;
    gap: 20px;
}

.skin-wall-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(58vh, 560px);
    overflow: hidden;
    isolation: isolate;
    background: #020503;
    border: 1px solid color-mix(in srgb, var(--wall-accent) 38%, transparent);
    border-radius: 6px;
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.95), 0 0 0 6px rgba(0, 0, 0, 0.55);
    transition: border-color 0.5s ease;
}

.skin-band {
    --band: var(--phosphor);
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--band);
    cursor: pointer;
    clip-path: inset(0 calc(100% - var(--r)) 0 var(--l));
    transition: --l 0.75s cubic-bezier(0.16, 1, 0.3, 1), --r 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}
.skin-band--neural    { --band: #00cfff; }
.skin-band--apollo    { --band: #ffb45e; }
.skin-band--synthwave { --band: #ff3b9d; }
.skin-band--pocket    { --band: #9bbc0f; }
.skin-band--blueprint { --band: #8fb8ff; }

.skin-band-media,
.skin-band-media img,
.skin-band-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.skin-band-media { filter: brightness(0.82) saturate(0.92); transition: filter 0.35s ease; }
.skin-band-media video { opacity: 0; transition: opacity 0.45s ease; }
.skin-band.is-live .skin-band-media video { opacity: 1; }
.skin-band:hover .skin-band-media,
.skin-band:focus-visible .skin-band-media,
.skin-band[aria-selected="true"] .skin-band-media { filter: none; }

/* la costura entre dos pieles */
.skin-band-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--l);
    width: 1px;
    background: currentColor;
    opacity: 0.7;
    box-shadow: 0 0 14px currentColor;
}
.skin-band:first-child .skin-band-edge { display: none; }

.skin-band-label {
    position: absolute;
    left: calc((var(--l) + var(--r)) / 2);
    bottom: 16px;
    transform: translateX(-50%);
    padding: 6px 10px 5px;
    font-family: var(--font-data);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
    white-space: nowrap;
    color: currentColor;
    background: rgba(2, 5, 3, 0.82);
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
    transition: background 0.25s ease, color 0.25s ease;
}
.skin-band:hover .skin-band-label,
.skin-band[aria-selected="true"] .skin-band-label { background: currentColor; }
.skin-band:hover .skin-band-label,
.skin-band[aria-selected="true"] .skin-band-label { -webkit-text-fill-color: #020503; }
.skin-band:focus-visible { outline: none; }
.skin-band:focus-visible .skin-band-label { outline: 2px solid #fff; outline-offset: 3px; }

/* recogidas a un lado: el rótulo se pone de canto, como un lomo */
.skin-wall.has-selection .skin-band:not([aria-selected="true"]) .skin-band-label {
    bottom: 50%;
    transform: translate(-50%, 50%);
    writing-mode: vertical-rl;
    padding: 10px 5px;
}

/* el vidrio del tubo, por encima de todas las franjas */
.skin-wall-glass {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.6) 100%);
}

.skin-wall-info {
    display: grid;
    align-content: start;
    min-height: 78px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--wall-accent) 30%, transparent);
    transition: border-color 0.5s ease;
}
.skin-wall-hint {
    margin: 0;
    font-family: var(--font-data);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.8;
}
.skin-wall.has-selection .skin-wall-hint { display: none; }

.skin-panel {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: baseline;
    gap: 10px 36px;
}
.skin-panel[hidden] { display: none; }
.skin-panel .theme-meta { display: flex; align-items: center; gap: 16px; }
.skin-panel .theme-name { margin: 0; font-size: 26px; }
.theme-tag {
    flex: none;
    padding: 4px 8px 3px;
    font-family: var(--font-data);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    border: 1px solid;
}
.theme-tag--free    { color: var(--phosphor); border-color: var(--phosphor-dim); background: var(--phosphor-xlo); }
.theme-tag--premium { color: var(--amber); border-color: var(--amber-dim); background: rgba(255, 157, 0, 0.08); }
.skin-panel .theme-desc {
    margin: 0;
    max-width: 62ch;
    font-family: var(--font-data);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* selector por nombre: en móvil las franjas recogidas no dan para el dedo */
.skin-wall-picks { display: none; }

@media (max-width: 760px) {
    .skin-wall { --sliver: 0; gap: 14px; }
    .skin-wall-screen {
        aspect-ratio: 1 / 1;
        max-height: none;
        width: calc(100% + 2 * var(--skin-bleed, 0px));
        margin-inline: calc(-1 * var(--skin-bleed, 0px));
    }
    .skin-band-label {
        bottom: 50%;
        transform: translate(-50%, 50%);
        writing-mode: vertical-rl;
        padding: 9px 4px;
        font-size: 10px;
    }
    .skin-wall.has-selection .skin-band:not([aria-selected="true"]) .skin-band-label { display: none; }
    .skin-wall.has-selection .skin-band[aria-selected="true"] .skin-band-label { display: none; }

    .skin-wall-picks {
        display: flex;
        gap: 8px;
        max-width: 100%;
        padding: 2px 0 6px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .skin-wall-picks::-webkit-scrollbar { display: none; }
    .skin-pick {
        --band: var(--phosphor);
        flex: none;
        min-height: 44px;
        padding: 0 14px;
        scroll-snap-align: start;
        font-family: var(--font-data);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        color: var(--band);
        background: rgba(2, 5, 3, 0.7);
        border: 1px solid color-mix(in srgb, var(--band) 45%, transparent);
        cursor: pointer;
    }
    .skin-pick[aria-pressed="true"] { color: #020503; background: var(--band); border-color: var(--band); }

    .skin-wall-info { min-height: 132px; padding-top: 14px; }
    .skin-panel { grid-template-columns: 1fr; gap: 10px; }
    .skin-panel .theme-name { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .skin-band { transition: none; }
}


/* ================================================================
   HERO RASTER — el título lo pinta el haz, fila a fila
   ================================================================
   Un tubo de rayos catódicos no hace aparecer una imagen: la barre de
   arriba abajo. El rótulo llega así, una fila de píxeles del tipo por
   paso (VT323 tiene 15 por línea), con el haz por delante y el
   fósforo recién excitado enfriándose de blanco a verde. Es la única
   animación de entrada de la portada: el resto ya está en pantalla.
   Solo CSS, para que no dependa de que cargue el script.
   ================================================================ */
.hero-raster {
    --rows: 15;
    --paint: 1.15s;
    --wait: 0.3s;
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.hero-raster .hero-title-minimal {
    animation:
        hero-raster var(--paint) steps(var(--rows), end) var(--wait) both,
        hero-phosphor 2.6s cubic-bezier(0.16, 1, 0.3, 1) var(--wait) both;
}
.hero-beam {
    position: absolute;
    top: 0;
    left: -5%;
    right: -5%;
    height: calc(100% / var(--rows));
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(170, 255, 195, 0.9) 10%, #f4fff6 50%, rgba(170, 255, 195, 0.9) 90%, transparent);
    box-shadow: 0 0 22px 3px rgba(0, 255, 65, 0.55), 0 0 70px 10px rgba(0, 255, 65, 0.22);
    animation: hero-beam var(--paint) steps(var(--rows), end) var(--wait) both;
}
@keyframes hero-raster {
    from { clip-path: inset(0 -6% 100% -6%); }
    to   { clip-path: inset(0 -6% -12% -6%); }
}
@keyframes hero-beam {
    0%   { transform: translateY(0); opacity: 1; }
    99%  { opacity: 1; }
    100% { transform: translateY(calc(var(--rows) * 100%)); opacity: 0; }
}
@keyframes hero-phosphor {
    0%, 35% { filter: brightness(2.1) saturate(0.55); }
    100%    { filter: none; }
}

/* En el móvil el rótulo va en dos líneas y ocupa el ancho: la marca
   es lo primero que se lee, no una línea más entre otras. */
@media (max-width: 740px) {
    .hero-title-minimal {
        display: inline-grid !important;
        grid-template-columns: auto 1fr;
        align-items: center;
        justify-items: start;
        gap: 0 0.16em !important;
        font-size: clamp(60px, 25.5vw, 128px) !important;
        line-height: 0.86 !important;
    }
    .hero-title-minimal .hero-logo {
        grid-area: 1 / 1;
        width: 0.6em;
        height: 0.6em;
        margin: 0;
    }
    .hero-title-minimal .ht-light { grid-area: 1 / 2; }
    .hero-title-minimal .ht-heavy { grid-area: 2 / 1 / 3 / 3; }
    .hero-title-minimal .ht-sep { display: none; }
    .hero-title-minimal .ht-light,
    .hero-title-minimal .ht-heavy { letter-spacing: 0.04em; margin-right: -0.04em; }
    .hero-raster { --rows: 26; --paint: 1.3s; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-raster .hero-title-minimal,
    .hero-beam { animation: none; }
}
