@charset "UTF-8";

/* ==========================================================================
   OROKAMONO PORTAL — DRAFT v2
   Mobile-first: the phone screen is the primary canvas; wider layouts are
   layered on with min-width breakpoints. Palette and interaction styling
   follow the current live site (Cherenkov cyan x synchrotron magenta).
   ========================================================================== */

/* SECTOR: TOKENS & BASE */
:root {
    --bg-void: #020308;
    --bg-deep: #050812;
    --bg-panel: rgba(7, 12, 24, 0.74);
    --bg-panel-strong: rgba(10, 17, 34, 0.9);
    --bg-panel-hover: rgba(14, 24, 46, 0.88);

    --text-primary: #eef4ff;
    --text-secondary: #a8b7d0;
    --text-muted: #6f809c;

    --accent: #a3e3ff;
    --accent-bright: #d4f2ff;
    --accent-soft: rgba(163, 227, 255, 0.12);
    --accent-glow: rgba(163, 227, 255, 0.28);
    --accent-hairline: rgba(163, 227, 255, 0.16);
    --accent-border: rgba(163, 227, 255, 0.34);
    --accent-border-strong: rgba(163, 227, 255, 0.68);
    --magenta: #ff0333;
    --violet: #b829ff;
    --rule-faint: rgba(238, 244, 255, 0.08);

    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-display: 'Fraunces', 'Shippori Mincho', Georgia, serif;
    --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Shippori Mincho', Georgia, serif;

    --container-max: 1220px;
    --gutter: 1.25rem;
    --header-height: 76px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-size: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-void);
    background-image:
        radial-gradient(ellipse 70% 50% at 78% 12%, rgba(163, 227, 255, 0.065), transparent 62%),
        radial-gradient(ellipse 60% 45% at 15% 68%, rgba(163, 227, 255, 0.035), transparent 65%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Horizontal lock: clip (stronger than hidden) keeps the phone viewport
   from drifting sideways and staying offset after a touch drag. */
@supports (overflow: clip) {
    html, body {
        overflow-x: clip;
    }
}

::selection {
    background-color: rgba(163, 227, 255, 0.28);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 0.7rem 1.1rem;
    background-color: var(--accent);
    color: var(--bg-void);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.skip-link:focus {
    clip-path: none;
    width: auto;
    height: auto;
    overflow: visible;
    box-shadow: 0 0 24px var(--accent-glow);
}

/* SECTOR: BACKGROUND ENGINE LAYERS (transplanted) */
#webgl-singularity {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#tesseract-synapse {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Telemetry HUD frame — wide screens only (the phone keeps the header chips) */
.hud-frame {
    display: none;
    position: fixed;
    inset: 14px;
    pointer-events: none;
    z-index: 20;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
}

.hud-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    background: rgba(2, 4, 12, 0.65);
    border: 1px solid var(--accent-hairline);
}
.hud-corner.tl { top: 0; left: 0; border-left: 2px solid var(--accent); }
.hud-corner.tr { top: 0; right: 0; text-align: right; border-right: 2px solid var(--magenta); }
.hud-corner.bl { bottom: 0; left: 0; border-left: 2px solid var(--violet); }
.hud-corner.br { bottom: 0; right: 0; text-align: right; border-right: 2px solid var(--accent); }

.hud-tag { color: var(--text-secondary); font-size: 0.58rem; }
.hud-val { color: var(--accent); font-weight: 500; }

/* SECTOR: HUD HEADER */
.hud-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(2, 3, 8, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--accent-hairline);
}

.hud-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    pointer-events: none;
}

.hud-header-inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 0.7rem var(--gutter) 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-primary);
    min-height: 44px;
}

.brand-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 12px var(--accent), 0 0 22px rgba(163, 227, 255, 0.45);
    animation: brandPulse 3.6s ease-in-out infinite;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}

.brand-house {
    font-family: var(--font-serif);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    margin-top: 2px;
}

.hud-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.hud-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border: 1px solid var(--accent-hairline);
    border-left: 2px solid var(--accent);
    background-color: rgba(5, 9, 20, 0.72);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.hud-chip--global {
    display: none;
}

.hud-nav {
    order: 3;
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--rule-faint);
}

.hud-nav-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.45rem 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.24s var(--ease-out), border-color 0.24s var(--ease-out), background-color 0.24s var(--ease-out);
}

.hud-nav-link--support {
    color: var(--bg-void);
    background-color: var(--accent);
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 0 18px rgba(163, 227, 255, 0.24);
}

.deck-clock {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--magenta);
}

/* SECTOR: MAIN & SHARED SECTION ARCHITECTURE */
#main-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.exhibition,
.music,
.films,
.support,
.nodes {
    position: relative;
    padding-block: 4rem;
    border-top: 1px solid var(--accent-hairline);
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.exhibition::before,
.music::before,
.films::before,
.support::before,
.nodes::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 72px;
    height: 1px;
    background-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.section-heading {
    margin-bottom: 2.25rem;
    max-width: 68ch;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.section-label::before {
    content: "";
    width: 18px;
    height: 1px;
    background-color: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: clamp(2rem, 9vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.section-intro {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.section-motto {
    margin-top: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* SECTOR: BUTTONS & INTERACTION PRIMITIVES */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.82rem 1.55rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background-color 0.24s var(--ease-out),
        border-color 0.24s var(--ease-out),
        color 0.24s var(--ease-out),
        box-shadow 0.24s var(--ease-out);
}

.button--primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-void);
    box-shadow:
        0 0 28px rgba(163, 227, 255, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.button--ghost {
    background-color: rgba(6, 11, 24, 0.56);
    border-color: var(--accent-border);
    color: var(--text-primary);
    font-weight: 500;
}

.hyper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.6rem 1.1rem;
    background: rgba(163, 227, 255, 0.08);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.interact-target {
    -webkit-tap-highlight-color: transparent;
}

.scramble-txt {
    font-kerning: none;
}

/* SECTOR: HERO */
.hero {
    display: flex;
    flex-direction: column;
    padding-block: 2.5rem 4.25rem;
}

.hero-kicker {
    margin-top: 2.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    margin-top: 1.3rem;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: clamp(2.05rem, 8.8vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    text-wrap: balance;
}

.hero-japanese {
    margin-top: 1.6rem;
    padding-left: 1.1rem;
    border-left: 1px solid var(--accent-border);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-feature-settings: "palt" 1;
}

.hero-intro {
    margin-top: 1.5rem;
    max-width: 56ch;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.hero-actions {
    margin-top: 2.1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
}

/* Hero signboard: v1 framed panel fused with the live site's holo containment */
.hero-media {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    padding: 12px;
    background: linear-gradient(155deg, rgba(11, 19, 38, 0.85) 0%, rgba(4, 7, 16, 0.94) 100%);
    border: 1px solid var(--accent-border);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.72),
        0 0 42px rgba(163, 227, 255, 0.08);
    transform-style: preserve-3d;
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-media::before,
.hero-media::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 3;
}

.hero-media::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.hero-media::after {
    right: 0;
    bottom: 0;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.orbital-svg {
    position: absolute;
    inset: -12%;
    width: 124%;
    height: 124%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.45;
}

.orb-ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.8;
    stroke-dasharray: 8 14;
    transform-origin: center;
}
.orb-ring.r-outer { animation: spinCW 32s linear infinite; }
.orb-ring.r-mid { stroke: var(--magenta); stroke-dasharray: 24 12; animation: spinCCW 22s linear infinite; }

.orb-poly {
    fill: none;
    stroke: rgba(163, 227, 255, 0.3);
    stroke-width: 1;
    transform-origin: center;
    animation: spinCW 45s linear infinite;
}

.artifact-header,
.artifact-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    color: var(--accent);
}
.artifact-header { margin-bottom: 10px; }
.artifact-footer { margin-top: 10px; color: var(--text-muted); }
.freq-tag { color: var(--magenta); }

.octagon-clip {
    position: relative;
    overflow: hidden;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}

.scan-laser {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), #fff, var(--magenta), transparent);
    box-shadow: 0 0 16px var(--accent);
    z-index: 3;
    pointer-events: none;
    animation: laserScan 5s ease-in-out infinite alternate;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    background-color: var(--bg-deep);
}

.artifact-img {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

/* SECTOR: EXHIBITION */
.artifact-list {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.artifact {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-hairline);
    padding: 1rem;
    transition:
        border-color 0.26s var(--ease-out),
        background-color 0.26s var(--ease-out),
        box-shadow 0.26s var(--ease-out);
}

.artifact::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 28px;
    height: 2px;
    background-color: var(--accent);
    opacity: 0.65;
    transition: width 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
    z-index: 2;
}

.artifact-glow {
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(163, 227, 255, 0.22) 45%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 3, 51, 0.25) 55%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.artifact-figure {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.artifact-media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rule-faint);
    background-color: var(--bg-deep);
}

.artifact-image {
    display: block;
    width: 100%;
    height: auto;
    background-color: var(--bg-deep);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.artifact-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0.85rem;
    border-bottom: 1px solid var(--rule-faint);
}

.artifact-number {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    white-space: nowrap;
    transition: color 0.24s ease, text-shadow 0.24s ease;
}

.artifact-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    white-space: nowrap;
}

.artifact-note {
    position: relative;
    z-index: 1;
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* MUSIC section frame (spec 25): a hairline frame around the whole sector.
   It lights on hover and, while any preview plays, glows and breathes. */
.music .section-heading {
    position: relative;
    z-index: 1;
}

.music-frame {
    position: absolute;
    inset: 0.6rem;
    border: 1px solid var(--accent-hairline);
    pointer-events: none;
    z-index: 0;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.music-frame::before,
.music-frame::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.music-frame::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.music-frame::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.music.is-playing .music-frame {
    border-color: var(--accent);
    box-shadow: 0 0 34px rgba(163, 227, 255, 0.18);
    animation: musicFramePulse 2.4s ease-in-out infinite;
}

/* SECTOR: MUSIC */
.release {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent-hairline);
    transition:
        background-color 0.26s var(--ease-out),
        border-color 0.26s var(--ease-out),
        box-shadow 0.26s var(--ease-out);
}

.release + .release {
    margin-top: 2rem;
}

.release-glow {
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(163, 227, 255, 0.22) 45%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 3, 51, 0.25) 55%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.release-figure {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-width: 320px;
}

.release-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--accent-border);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
    background-color: var(--bg-deep);
}

.release-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg-deep);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.release-caption {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: color 0.24s ease;
}

.mark-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--accent-border);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
    background: radial-gradient(circle at 50% 42%, rgba(163, 227, 255, 0.07), var(--bg-deep) 72%);
}

.youtube-mark {
    width: 62%;
    height: auto;
    filter: drop-shadow(0 10px 28px rgba(255, 0, 0, 0.35));
}

/* YouTube premiere screen (spec 21): the mark panel is a screen. Idling it
   breathes scanlines and an occasional glow; on demand it closes its
   letterbox, runs a film-leader countdown, and decodes PREMIERE PENDING. */
.yt-screen {
    position: relative;
    overflow: hidden;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.yt-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.028) 0,
        rgba(255, 255, 255, 0.028) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
    animation: ytScanDrift 9s linear infinite;
}

.yt-screen .youtube-mark {
    position: relative;
    z-index: 2;
    transition: opacity 0.4s ease;
    animation: ytMarkGlow 7s ease-in-out infinite;
}

.yt-screen.is-running .youtube-mark {
    opacity: 0.32;
    animation: none;
}

.yt-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    background-color: #000;
    z-index: 3;
    pointer-events: none;
    transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.yt-bar--top { top: 0; }
.yt-bar--bottom { bottom: 0; }

.yt-screen.is-running .yt-bar {
    height: 12.5%;
}

.yt-count {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
    text-shadow: 0 0 34px rgba(163, 227, 255, 0.55);
    opacity: 0;
    pointer-events: none;
}

.yt-count::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8.75rem;
    height: 8.75rem;
    border: 1px solid rgba(163, 227, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.yt-count.pop {
    animation: ytCountPop 0.68s ease-out;
}

.yt-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16%;
    z-index: 4;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-shadow: 0 0 18px rgba(163, 227, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.yt-status.is-on {
    opacity: 1;
}

.release-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.release-artist {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.release-title {
    margin-top: 0.65rem;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: clamp(1.8rem, 7.5vw, 2.65rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.release-note {
    margin-top: 1.05rem;
    max-width: 50ch;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* In-page preview player (self-hosted excerpt, no external embeds) */
.preview-audio {
    display: none;
}

.preview-player {
    margin-top: 1.6rem;
    width: 100%;
    max-width: 430px;
}

.preview-button {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 56px;
    padding: 0.8rem 1.15rem;
    background-color: rgba(6, 11, 24, 0.66);
    border: 1px solid var(--accent-border);
    color: var(--text-primary);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: background-color 0.24s var(--ease-out), border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), color 0.24s var(--ease-out);
}

.preview-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--accent);
    transition: color 0.24s var(--ease-out);
}

.preview-icon--pause {
    display: none;
}

.preview-button.is-playing .preview-icon--play {
    display: none;
}

.preview-button.is-playing .preview-icon--pause {
    display: block;
}

.preview-button.is-playing {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-void);
    box-shadow: 0 0 30px rgba(163, 227, 255, 0.35);
}

.preview-button.is-playing .preview-icon {
    color: var(--bg-void);
}

.preview-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: left;
    min-width: 0;
}

.preview-state {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    white-space: nowrap;
}

.preview-button.is-playing .preview-state {
    color: var(--bg-void);
}

.preview-meter {
    margin-top: 0.55rem;
    height: 2px;
    background-color: var(--rule-faint);
    overflow: hidden;
}

.preview-meter-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--magenta));
    transition: width 0.3s linear;
}

.platforms {
    margin-top: 1.55rem;
    padding: 0.85rem 0;
    width: 100%;
    border-top: 1px solid var(--rule-faint);
    border-bottom: 1px solid var(--rule-faint);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    line-height: 1.8;
}

.platform-separator {
    color: var(--accent);
    margin-inline: 0.45rem;
}

/* Track list (spec 27): songs are not for showing images — the page's
   three standing images already carry the visual role. MUSIC is a list
   of slim rows: a small jacket thumb, the words, the preview, the status. */
.track-list {
    position: relative;
    z-index: 1;
    list-style: none;
    border-top: 1px solid var(--accent-hairline);
    background-color: rgba(4, 7, 16, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.track {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--accent-hairline);
    border-left: 2px solid transparent;
    transform: translate3d(0, 0, 0);
    transition:
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}

.track-glow {
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(163, 227, 255, 0.22) 45%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 3, 51, 0.25) 55%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.track-media {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    overflow: hidden;
    border: 1px solid var(--accent-border);
    background-color: var(--bg-deep);
}

.track-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg-deep);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.track-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.track-artist {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.track-title {
    margin-top: 0.4rem;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    transition: color 0.22s var(--ease-out), text-shadow 0.22s ease;
}

.track-note {
    margin-top: 0.45rem;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.track .preview-player {
    margin-top: 0.9rem;
}

.track .platforms {
    margin-top: 0.65rem;
    padding: 0.5rem 0;
    font-size: 0.72rem;
}

/* On phones the track body column is too narrow for the preview button:
   the nowrap time state spilled past the button's right edge. Let the
   player span the full row width (over the thumb column) instead of
   shrinking the text. 100px = 84px thumb + 1rem gap. */
@media (max-width: 899px) {
    .track .preview-player {
        width: calc(100% + 100px);
        max-width: none;
        margin-left: -100px;
    }
}

/* Mobile reward (Smoke, 2026-11-27): on phones, two exhibition
   artifacts in a row are dead scroll — ARTIFACT_02 leaves the
   exhibition and waits at the very bottom as a reward for reaching
   the end. The PC layout is untouched. */
.artifact-reward {
    display: none;
}

@media (max-width: 899px) {
    .artifact-list > .artifact:nth-child(2) {
        display: none;
    }

    .artifact-reward {
        display: block;
        position: relative;
        padding-block: 3.5rem 4rem;
        border-top: 1px solid var(--accent-hairline);
    }

    .artifact-reward::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 0;
        width: 72px;
        height: 1px;
        background-color: var(--accent);
        box-shadow: 0 0 12px var(--accent-glow);
    }

    .artifact-reward-label {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.22em;
        color: var(--accent);
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 900px) {
    .track {
        gap: 1.25rem;
        padding: 1.25rem 1.35rem;
    }

    .track-media {
        width: 96px;
        height: 96px;
    }
}

/* Mobile support bar (spec 27): on phones SUPPORT sits a long scroll
   away, so the route to it stays pinned to the bottom of the screen —
   and steps aside while the support section itself is on screen. */
.support-bar {
    display: none;
}

@media (max-width: 899px) {
    .support-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.85rem 1.1rem;
        min-height: 52px;
        background: rgba(4, 7, 16, 0.82);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--accent-border);
        box-shadow: 0 -10px 30px rgba(163, 227, 255, 0.14);
        color: var(--text-primary);
        font-family: var(--font-mono);
        font-size: 0.8rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        text-decoration: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .support-bar-label {
        color: var(--accent-bright);
        font-weight: 700;
    }

    .support-bar-arrow {
        color: var(--accent);
        font-size: 1rem;
    }

    .support-bar.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(100%);
    }

    .site-footer {
        padding-bottom: calc(4rem + 64px);
    }
}

/* SECTOR: HORIZON GATE (scroll-revealed, from the live site's phase shift) */
.horizon-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-block: 0.5rem;
}

.gate-beam {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--magenta));
    transform: scaleX(0);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.gate-beam.left { transform-origin: right center; }
.gate-beam.right {
    background: linear-gradient(90deg, var(--magenta), var(--accent), transparent);
    transform-origin: left center;
}

.gate-core {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--magenta);
    background: rgba(255, 3, 51, 0.1);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 3, 51, 0.25);
    opacity: 0.3;
    transform: scale(0.85);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.7s ease;
}

.gate-symbol { color: var(--accent); font-size: 0.95rem; }
.gate-text { white-space: nowrap; }

.horizon-gate.is-unlocked .gate-beam { transform: scaleX(1); }
.horizon-gate.is-unlocked .gate-core {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 30px rgba(163, 227, 255, 0.45);
}

/* SECTOR: SUPPORT */
.support-copy {
    max-width: 64ch;
    font-size: 1.06rem;
    line-height: 1.9;
    color: var(--text-primary);
}

/* Data shard: the live site's link card, ported whole */
.data-shard {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent-border);
    border-left: 3px solid var(--accent);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition:
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
    will-change: transform;
}

.support-shard {
    margin-top: 2rem;
    max-width: 720px;
}

.shard-glow {
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(163, 227, 255, 0.22) 45%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 3, 51, 0.25) 55%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.shard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    border-bottom: 1px solid var(--rule-faint);
    padding-bottom: 6px;
}

.shard-id { color: var(--accent); font-weight: 700; }
.shard-status { color: var(--text-muted); }

.shard-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 10px;
}
.shard-wave i {
    width: 2px;
    height: 4px;
    background: var(--accent);
    transition: height 0.2s ease, background-color 0.2s ease;
}
.shard-wave i:nth-child(2) { height: 9px; }
.shard-wave i:nth-child(3) { height: 6px; }
.shard-wave i:nth-child(4) { height: 10px; }

.shard-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shard-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.shard-title {
    display: block;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.45;
    color: var(--text-primary);
    transition: color 0.24s ease, transform 0.24s ease;
}

.shard-sub {
    display: block;
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.shard-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding: 8px 12px;
    min-height: 44px;
    border: 1px solid var(--accent-border);
    background: rgba(163, 227, 255, 0.05);
    flex-shrink: 0;
    transition: background-color 0.24s cubic-bezier(0.16, 1, 0.3, 1), color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.portal-label {
    font-weight: 700;
}

.portal-arrow {
    font-family: sans-serif;
    font-size: 0.85rem;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.subscriptions {
    margin-top: 2.75rem;
    padding: 1.5rem;
    background-color: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-hairline);
    border-left: 2px solid var(--accent);
}

.subscriptions-title {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.subscription-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.subscription-item {
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule-faint);
}

.subscription-name {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.subscription-detail {
    margin-top: 0.45rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* SECTOR: NODES */
.node-list {
    list-style: none;
    border-top: 1px solid var(--accent-hairline);
    background-color: rgba(4, 7, 16, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.node-item {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--accent-hairline);
    border-left: 2px solid transparent;
    transform: translate3d(0, 0, 0);
    transition:
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}

.node-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(163, 227, 255, 0.22) 45%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 3, 51, 0.25) 55%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 0;
}

.node-link {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    row-gap: 0.25rem;
    column-gap: 1rem;
    padding: 1.1rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

a.node-link::after {
    content: "↗";
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.node-id {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    white-space: nowrap;
}

.node-name {
    grid-column: 1;
    grid-row: 2;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--text-primary);
    transition: color 0.22s var(--ease-out), text-shadow 0.22s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-note {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0.35rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.node-link--standby {
    cursor: default;
    opacity: 0.68;
}

.node-link--standby::after {
    content: "STANDBY";
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--rule-faint);
}

.node-link--standby .node-id {
    color: var(--text-muted);
}

/* SECTOR: FOOTER */
.site-footer {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 2.75rem var(--gutter) 4rem;
    border-top: 1px solid var(--rule-faint);
}

.footer-line {
    display: flex;
    justify-content: flex-start;
}

.footer-mail {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.78;
    transition: color 0.24s var(--ease-out), opacity 0.24s var(--ease-out);
}

/* ==========================================================================
   ACTIVATION STATES
   Mouse: :hover fires instantly. Touch: only the single-exclusive
   .is-active class from the decoder engine (never two lit at once).
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    .hud-nav-link:hover {
        color: var(--text-primary);
        border-color: var(--accent-hairline);
        background-color: rgba(163, 227, 255, 0.05);
    }

    .hud-nav-link--support:hover {
        color: var(--bg-void);
        background-color: var(--accent-bright);
        border-color: var(--accent-bright);
        box-shadow: 0 0 26px rgba(163, 227, 255, 0.42);
    }

    .button--primary:hover {
        background-color: var(--accent-bright);
        border-color: var(--accent-bright);
        color: var(--bg-void);
        box-shadow:
            0 0 38px rgba(163, 227, 255, 0.44),
            inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    .button--ghost:hover {
        background-color: rgba(163, 227, 255, 0.08);
        border-color: var(--accent-border-strong);
        color: #ffffff;
    }

    .hyper-btn:hover {
        background: var(--accent);
        color: var(--bg-void);
        box-shadow: 0 0 20px var(--accent);
    }

    .holo-containment:hover {
        border-color: var(--accent);
        box-shadow: 0 0 35px rgba(163, 227, 255, 0.22), inset 0 0 20px rgba(255, 3, 51, 0.15);
    }
    .holo-containment:hover .artifact-img {
        transform: scale(1.03);
        filter: contrast(1.08) brightness(1.05);
    }

    .artifact:hover {
        background-color: var(--bg-panel-hover);
        border-color: var(--accent);
        box-shadow: 0 0 35px rgba(163, 227, 255, 0.22), inset 0 0 20px rgba(255, 3, 51, 0.15);
    }
    .artifact:hover::before { width: 72px; opacity: 1; }
    .artifact:hover .artifact-glow { left: 155%; }
    .artifact:hover .artifact-image {
        transform: scale(1.03);
        filter: contrast(1.08) brightness(1.05);
    }
    .artifact:hover .artifact-number {
        color: var(--accent-bright);
        text-shadow: 2px 0 0 rgba(255, 3, 51, 0.6);
    }

    .release:hover {
        background-color: var(--bg-panel-hover);
        border-color: var(--accent-border-strong);
        box-shadow: 0 0 30px rgba(163, 227, 255, 0.16), 0 24px 56px rgba(0, 0, 0, 0.5);
    }
    .release:hover .release-glow { left: 155%; }
    .release:hover .release-image {
        transform: scale(1.03);
        filter: contrast(1.08) brightness(1.05);
    }
    .release:hover .release-caption { color: var(--accent); }

    .track:hover {
        transform: translate3d(10px, -2px, 0);
        background: var(--bg-panel-hover);
        border-bottom-color: var(--accent);
        border-left-color: var(--magenta);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(163, 227, 255, 0.2);
    }
    .track:hover .track-glow { left: 155%; }
    .track:hover .track-image {
        transform: scale(1.04);
        filter: contrast(1.08) brightness(1.05);
    }
    .track:hover .track-title {
        color: var(--accent-bright);
        text-shadow: 2px 0 0 rgba(255, 3, 51, 0.6);
    }

    .music:hover .music-frame {
        border-color: var(--accent-border);
        box-shadow: 0 0 24px rgba(163, 227, 255, 0.1);
    }

    .yt-screen:hover {
        border-color: var(--accent-border-strong);
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65), 0 0 30px rgba(163, 227, 255, 0.18);
    }

    .preview-button:hover {
        background-color: rgba(163, 227, 255, 0.08);
        border-color: var(--accent-border-strong);
        box-shadow: 0 0 22px rgba(163, 227, 255, 0.18);
    }

    .data-shard:hover {
        transform: translate3d(10px, -2px, 0);
        background: var(--bg-panel-hover);
        border-color: var(--accent);
        border-left-color: var(--magenta);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(163, 227, 255, 0.2);
    }
    .data-shard:hover .shard-glow { left: 155%; }
    .data-shard:hover .shard-title {
        color: var(--accent);
        transform: translate3d(4px, 0, 0);
        text-shadow: 2px 0 0 rgba(255, 3, 51, 0.6);
    }
    .data-shard:hover .shard-portal {
        background: var(--accent);
        color: var(--bg-void);
        border-color: #fff;
        box-shadow: 0 0 16px var(--accent);
    }
    .data-shard:hover .portal-arrow { transform: translate3d(3px, -3px, 0); }
    .data-shard:hover .shard-wave i { background: var(--magenta); height: 10px; }

    .node-item:hover {
        transform: translate3d(10px, -2px, 0);
        background: var(--bg-panel-hover);
        border-bottom-color: var(--accent);
        border-left-color: var(--magenta);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(163, 227, 255, 0.2);
    }
    .node-item:hover::before { left: 155%; }
    .node-item:hover .node-name {
        color: var(--accent);
        transform: translate3d(4px, 0, 0);
        text-shadow: 2px 0 0 rgba(255, 3, 51, 0.6);
    }
    .node-item:hover a.node-link::after {
        color: var(--accent);
        transform: translate3d(3px, -3px, 0);
    }
    .node-item:has(.node-link--standby):hover {
        transform: none;
        background-color: rgba(238, 244, 255, 0.025);
        border-left-color: var(--text-muted);
        border-bottom-color: var(--accent-hairline);
        box-shadow: none;
    }
    .node-item:has(.node-link--standby):hover::before { left: -120%; }
    .node-item:has(.node-link--standby):hover .node-name {
        color: var(--text-primary);
        transform: none;
        text-shadow: none;
    }

    .footer-mail:hover {
        color: var(--accent);
        opacity: 1;
    }
}

/* Touch / programmatic single-exclusive activation (mirrors of hover) */
.holo-containment.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 35px rgba(163, 227, 255, 0.25), inset 0 0 20px rgba(255, 3, 51, 0.18);
}
.holo-containment.is-active .artifact-img {
    transform: scale(1.03);
    filter: contrast(1.08) brightness(1.05);
}

.artifact.is-active {
    background-color: var(--bg-panel-hover);
    border-color: var(--accent);
    box-shadow: 0 0 35px rgba(163, 227, 255, 0.25), inset 0 0 20px rgba(255, 3, 51, 0.18);
}
.artifact.is-active::before { width: 72px; opacity: 1; }
.artifact.is-active .artifact-glow { left: 155%; }
.artifact.is-active .artifact-image {
    transform: scale(1.03);
    filter: contrast(1.08) brightness(1.05);
}
.artifact.is-active .artifact-number {
    color: var(--accent-bright);
    text-shadow: 2px 0 0 rgba(255, 3, 51, 0.6);
}

.release.is-active {
    background-color: var(--bg-panel-hover);
    border-color: var(--accent-border-strong);
    box-shadow: 0 0 30px rgba(163, 227, 255, 0.16), 0 24px 56px rgba(0, 0, 0, 0.5);
}
.release.is-active .release-glow { left: 155%; }
.release.is-active .release-image {
    transform: scale(1.03);
    filter: contrast(1.08) brightness(1.05);
}
.release.is-active .release-caption { color: var(--accent); }

.track.is-active {
    transform: translate3d(8px, -2px, 0);
    background: var(--bg-panel-hover);
    border-bottom-color: var(--accent);
    border-left-color: var(--magenta);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78), 0 0 24px rgba(163, 227, 255, 0.25);
}
.track.is-active .track-glow { left: 155%; }
.track.is-active .track-image {
    transform: scale(1.04);
    filter: contrast(1.08) brightness(1.05);
}
.track.is-active .track-title {
    color: var(--accent-bright);
    text-shadow: 2px 0 0 rgba(255, 3, 51, 0.6);
}

.yt-screen.is-active {
    border-color: var(--accent-border-strong);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65), 0 0 30px rgba(163, 227, 255, 0.18);
}

.data-shard.is-active {
    transform: translate3d(8px, -2px, 0);
    background: var(--bg-panel-hover);
    border-color: var(--accent);
    border-left-color: var(--magenta);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78), 0 0 24px rgba(163, 227, 255, 0.25);
}
.data-shard.is-active .shard-glow { left: 155%; }
.data-shard.is-active .shard-title {
    color: var(--accent);
    transform: translate3d(4px, 0, 0);
    text-shadow: 2px 0 0 rgba(255, 3, 51, 0.6);
}
.data-shard.is-active .shard-portal {
    background: var(--accent);
    color: var(--bg-void);
    border-color: #fff;
    box-shadow: 0 0 16px var(--accent);
}
.data-shard.is-active .portal-arrow { transform: translate3d(3px, -3px, 0); }
.data-shard.is-active .shard-wave i { background: var(--magenta); height: 10px; }

.node-item.is-active {
    transform: translate3d(8px, -2px, 0);
    background: var(--bg-panel-hover);
    border-bottom-color: var(--accent);
    border-left-color: var(--magenta);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.78), 0 0 24px rgba(163, 227, 255, 0.25);
}
.node-item.is-active::before { left: 155%; }
.node-item.is-active .node-name {
    color: var(--accent);
    transform: translate3d(4px, 0, 0);
    text-shadow: 2px 0 0 rgba(255, 3, 51, 0.6);
}
.node-item.is-active a.node-link::after {
    color: var(--accent);
    transform: translate3d(3px, -3px, 0);
}
.node-item:has(.node-link--standby).is-active {
    transform: none;
    background-color: rgba(238, 244, 255, 0.025);
    border-left-color: var(--text-muted);
    border-bottom-color: var(--accent-hairline);
    box-shadow: none;
}
.node-item:has(.node-link--standby).is-active::before { left: -120%; }
.node-item:has(.node-link--standby).is-active .node-name {
    color: var(--text-primary);
    transform: none;
    text-shadow: none;
}

.preview-button.is-active {
    border-color: var(--accent-border-strong);
    box-shadow: 0 0 22px rgba(163, 227, 255, 0.18);
}

/* SECTOR: MOTION */
@keyframes brandPulse {
    0%, 100% {
        opacity: 0.48;
        box-shadow: 0 0 8px rgba(163, 227, 255, 0.45);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px var(--accent), 0 0 28px rgba(163, 227, 255, 0.42);
    }
}

@keyframes spinCW { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinCCW { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

@keyframes laserScan {
    0% { top: 2%; opacity: 0.3; }
    50% { opacity: 0.95; }
    100% { top: 98%; opacity: 0.3; }
}

@keyframes musicFramePulse {
    0%, 100% { box-shadow: 0 0 34px rgba(163, 227, 255, 0.12); }
    50% { box-shadow: 0 0 34px rgba(163, 227, 255, 0.22); }
}

@keyframes ytScanDrift {
    from { background-position: 0 0; }
    to { background-position: 0 80px; }
}

@keyframes ytMarkGlow {
    0%, 86%, 100% { filter: drop-shadow(0 10px 28px rgba(255, 0, 0, 0.35)); }
    93% { filter: drop-shadow(0 10px 36px rgba(255, 0, 0, 0.62)) brightness(1.07); }
}

@keyframes ytCountPop {
    0% { opacity: 0; transform: scale(1.22); }
    16% { opacity: 1; }
    78% { opacity: 1; }
    100% { opacity: 0; transform: scale(0.96); }
}

/* ==========================================================================
   WIDER SCREENS (layered on top of the phone-first base)
   ========================================================================== */
@media (min-width: 640px) {
    .hud-chip--global {
        display: inline-flex;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .preview-button {
        width: auto;
        min-width: 340px;
    }
}

@media (min-width: 860px) {
    .artifact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }

    .subscription-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 3rem;
    }
}

@media (min-width: 900px) {
    .release {
        grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
        gap: clamp(2rem, 4.5vw, 4rem);
        padding: clamp(1.5rem, 3.2vw, 2.75rem);
    }

    .release-figure {
        max-width: none;
    }

    .node-link {
        grid-template-columns: 112px minmax(200px, 300px) minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: baseline;
        column-gap: 1.5rem;
        row-gap: 0;
        padding: 1.25rem 1.35rem;
    }

    .node-id { grid-column: 1; grid-row: auto; }
    .node-name { grid-column: 2; grid-row: auto; }
    .node-note { grid-column: 3; grid-row: auto; margin-top: 0; }

    a.node-link::after,
    .node-link--standby::after {
        grid-column: 4;
        grid-row: auto;
    }

    .footer-line {
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {
    :root {
        --gutter: clamp(1.25rem, 4vw, 3rem);
    }

    .hud-frame {
        display: block;
    }

    .hud-header-inner {
        flex-wrap: nowrap;
        min-height: var(--header-height);
        padding-block: 0.75rem;
    }

    .hud-tags {
        margin-left: 0;
    }

    .hud-nav {
        order: initial;
        width: auto;
        padding-top: 0;
        border-top: none;
        margin-left: auto;
    }

    .hud-nav-link {
        flex: initial;
    }

    .hud-nav-link--support {
        margin-left: 0.4rem;
        padding-inline: 0.96rem;
    }

    .exhibition,
    .music,
    .films,
    .support,
    .nodes {
        padding-block: clamp(4.75rem, 8.5vw, 7.75rem);
    }

    .section-title {
        font-size: clamp(2rem, 3.8vw, 3.1rem);
    }

    /* Hero becomes the two-column composition from the v1 draft */
    .hero {
        display: grid;
        grid-template-columns: minmax(0, 1.18fr) minmax(300px, 430px);
        grid-template-rows: 1fr auto auto auto auto auto 1fr;
        column-gap: clamp(2.5rem, 5.5vw, 5.25rem);
        align-items: start;
        padding-block: clamp(3.5rem, 7vw, 6.25rem) clamp(4.5rem, 8vw, 7.25rem);
    }

    .hero-media {
        grid-column: 2;
        grid-row: 1 / 8;
        align-self: center;
        margin-inline: 0;
    }

    .hero-kicker { grid-column: 1; grid-row: 2; margin-top: 0; }
    .hero-title {
        grid-column: 1;
        grid-row: 3;
        margin-top: 0;
        font-size: clamp(2.2rem, 4.4vw, 3.85rem);
    }
    .hero-japanese { grid-column: 1; grid-row: 4; margin-top: 1.7rem; }
    .hero-intro { grid-column: 1; grid-row: 5; margin-top: 1.65rem; }
    .hero-actions { grid-column: 1; grid-row: 6; margin-top: 2.25rem; }
}

@media (min-width: 1280px) {
    .deck-clock {
        display: inline-flex;
    }
}

/* SECTOR: REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .brand-pulse,
    .scan-laser,
    .orb-ring,
    .orb-poly,
    .yt-screen::before,
    .yt-screen .youtube-mark,
    .music-frame {
        animation: none;
    }

    .scan-laser {
        opacity: 0;
    }

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