/* ==========================================================================
   simulai.tech — Sunken VHS arcade on a bioluminescent reef
   Seapunk + dopamine-neon + bebas-bold + watercolor + sharp-angles
   ========================================================================== */

:root {
    --abyss: #0A0A1A;
    --trench: #12103A;
    --aqua: #00FFD4;
    --magenta: #FF2D95;
    --acid: #FFE500;
    --pale-cyan: #E0F7FA;
    --violet: #B24BF3;
    --coral: #FF6B4A;
    --void: #1A0A2E;

    --font-display: "Bebas Neue", "Inter", sans-serif;
    --font-secondary: "Dela Gothic One", "Space Grotesk", sans-serif;
    --font-body: "Space Grotesk", "Inter", sans-serif;

    --nav-width: 64px;
}

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

html, body {
    width: 100%;
    height: 100%;
    background: var(--abyss);
    color: var(--pale-cyan);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(178, 75, 243, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 255, 212, 0.06) 0%, transparent 65%),
        linear-gradient(135deg, #0A0A1A 0%, #12103A 40%, #1A0A2E 70%, #0A0A1A 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* --------------------------------------------------------------------------
   Persistent VHS / scan-line overlay
   -------------------------------------------------------------------------- */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 255, 212, 0.045) 2px,
            rgba(0, 255, 212, 0.045) 4px
        );
    opacity: 0;
    transition: opacity 600ms ease-out 300ms;
    mix-blend-mode: screen;
}

.scanlines.active {
    opacity: 0.55;
}

.scanlines.glitch {
    mix-blend-mode: difference;
    filter: hue-rotate(40deg);
}

.tracking-bar {
    position: fixed;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(255, 45, 149, 0) 0%,
        rgba(255, 45, 149, 0.45) 30%,
        rgba(255, 45, 149, 0.6) 50%,
        rgba(255, 45, 149, 0.45) 70%,
        rgba(255, 45, 149, 0) 100%
    );
    box-shadow: 0 0 16px rgba(255, 45, 149, 0.4);
    pointer-events: none;
    z-index: 8500;
    bottom: -10px;
    animation: tracking-bar 12s linear infinite;
}

@keyframes tracking-bar {
    0%   { bottom: -10px; opacity: 0; }
    8%   { opacity: 0.7; }
    92%  { opacity: 0.7; }
    100% { bottom: 110vh; opacity: 0; }
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8800;
    background:
        radial-gradient(ellipse at center, transparent 60%, rgba(10, 10, 26, 0.55) 100%);
}

/* --------------------------------------------------------------------------
   Drifting particle layer (diamonds / chevrons floating upward)
   -------------------------------------------------------------------------- */
.drift-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.drift-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--acid);
    transform: rotate(45deg);
    opacity: 0.18;
    will-change: transform, opacity;
}

.drift-particle.aqua {
    border-color: var(--aqua);
    width: 10px;
    height: 10px;
    opacity: 0.22;
}

.drift-particle.magenta {
    border-color: var(--magenta);
    width: 14px;
    height: 14px;
    opacity: 0.16;
}

.drift-particle.violet {
    border-color: var(--violet);
    width: 8px;
    height: 8px;
    opacity: 0.25;
}

.drift-particle.chevron {
    width: 18px;
    height: 18px;
    transform: rotate(0deg);
    border: none;
    background:
        linear-gradient(45deg, transparent 47%, var(--aqua) 47%, var(--aqua) 53%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, var(--aqua) 47%, var(--aqua) 53%, transparent 53%);
    opacity: 0.2;
}

/* --------------------------------------------------------------------------
   Angular Nav strip
   -------------------------------------------------------------------------- */
.nav-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-width);
    height: 100vh;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.7) 0%, rgba(18, 16, 58, 0.55) 100%);
    border-right: 1px solid rgba(0, 255, 212, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    padding: 2rem 0;
}

.nav-item {
    position: relative;
    color: var(--pale-cyan);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0;
    cursor: pointer;
    transition: color 240ms ease;
}

.nav-chevron {
    display: block;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid rgba(224, 247, 250, 0.5);
    transition: border-left-color 240ms ease, filter 240ms ease, transform 240ms ease;
}

.nav-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: rgba(224, 247, 250, 0.55);
    transition: color 240ms ease;
}

.nav-item:hover .nav-chevron,
.nav-item.active .nav-chevron {
    border-left-color: var(--aqua);
    filter: drop-shadow(0 0 8px rgba(0, 255, 212, 0.85));
    transform: translateX(2px);
}

.nav-item:hover .nav-label,
.nav-item.active .nav-label {
    color: var(--aqua);
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--aqua);
    box-shadow: 0 0 10px rgba(0, 255, 212, 0.8);
    transform: translateX(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* --------------------------------------------------------------------------
   Snap container & zones
   -------------------------------------------------------------------------- */
.snap-container {
    margin-left: var(--nav-width);
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    scrollbar-width: none;
}

.snap-container::-webkit-scrollbar {
    display: none;
}

.zone {
    position: relative;
    width: 100%;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
}

/* --------------------------------------------------------------------------
   Watercolor washes (CSS-only)
   -------------------------------------------------------------------------- */
.watercolor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
    will-change: transform;
}

.wash-a {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 45, 149, 0.18) 0%, transparent 65%);
    top: -10%; left: -8%;
    animation: drift-a 28s ease-in-out infinite alternate;
}
.wash-b {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(178, 75, 243, 0.14) 0%, transparent 65%);
    bottom: -15%; right: -10%;
    animation: drift-b 32s ease-in-out infinite alternate;
}
.wash-c {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.12) 0%, transparent 60%);
    top: 40%; right: 20%;
    animation: drift-c 25s ease-in-out infinite alternate;
}
.wash-d {
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(0, 255, 212, 0.13) 0%, transparent 60%);
    top: 20%; left: 30%;
    animation: drift-a 30s ease-in-out infinite alternate;
}
.wash-e {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(178, 75, 243, 0.16) 0%, transparent 65%);
    bottom: 5%; left: -5%;
    animation: drift-b 26s ease-in-out infinite alternate;
}
.wash-f {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255, 45, 149, 0.10) 0%, transparent 60%);
    top: -15%; right: -10%;
    animation: drift-c 33s ease-in-out infinite alternate;
}
.wash-g {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 45, 149, 0.16) 0%, transparent 65%);
    top: 5%; left: 10%;
    animation: drift-a 24s ease-in-out infinite alternate;
}
.wash-h {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 212, 0.14) 0%, transparent 65%);
    top: 40%; right: 5%;
    animation: drift-b 28s ease-in-out infinite alternate;
}
.wash-i {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(255, 229, 0, 0.10) 0%, transparent 60%);
    bottom: 10%; left: 25%;
    animation: drift-c 30s ease-in-out infinite alternate;
}
.wash-j {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(178, 75, 243, 0.18) 0%, transparent 65%);
    bottom: -10%; right: 30%;
    animation: drift-a 26s ease-in-out infinite alternate;
}
.wash-k {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.14) 0%, transparent 60%);
    top: 60%; left: 50%;
    animation: drift-b 32s ease-in-out infinite alternate;
}
.wash-l {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(178, 75, 243, 0.10) 0%, transparent 60%);
    bottom: 8%; right: 8%;
    animation: drift-c 35s ease-in-out infinite alternate;
}

@keyframes drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.1); }
}
@keyframes drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(1.05); }
}
@keyframes drift-c {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 20px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   Slash dividers (animated scan-line bands at angle)
   -------------------------------------------------------------------------- */
.slash-divider {
    position: relative;
    width: 100%;
    height: 10vh;
    overflow: hidden;
    margin-left: var(--nav-width);
    width: calc(100% - var(--nav-width));
    background: var(--abyss);
    scroll-snap-align: none;
}

.slash-band {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 130%;
    height: 200%;
    transform: rotate(-15deg);
    background:
        repeating-linear-gradient(
            90deg,
            var(--magenta) 0px,
            var(--magenta) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 212, 0.4) 0px,
            rgba(0, 255, 212, 0.4) 1px,
            transparent 1px,
            transparent 7px
        );
    background-size: 60px 100%, 100px 100%;
    animation: scan-slide 4s linear infinite;
    opacity: 0.5;
}

.slash-divider.reverse .slash-band {
    transform: rotate(15deg);
    animation-direction: reverse;
}

@keyframes scan-slide {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 240px 0, -300px 0; }
}

/* --------------------------------------------------------------------------
   Common typography
   -------------------------------------------------------------------------- */
.big-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 8rem);
    letter-spacing: 0.08em;
    line-height: 0.95;
    color: var(--aqua);
    text-shadow:
        0 0 20px rgba(0, 255, 212, 0.6),
        0 0 60px rgba(0, 255, 212, 0.2);
    text-transform: uppercase;
    margin: 0.6rem 0 1.4rem;
}

.big-title.chromatic {
    text-shadow:
        2px 0 0 rgba(255, 45, 149, 0.8),
        -2px 0 0 rgba(0, 255, 212, 0.6),
        0 0 24px rgba(0, 255, 212, 0.4),
        0 0 60px rgba(0, 255, 212, 0.15);
}

.big-title.bioluminescent {
    animation: bioluminescence 4s ease-in-out infinite alternate;
}

@keyframes bioluminescence {
    0% {
        text-shadow:
            0 0 18px rgba(0, 255, 212, 0.5),
            0 0 40px rgba(0, 255, 212, 0.2);
    }
    100% {
        text-shadow:
            0 0 30px rgba(0, 255, 212, 0.95),
            0 0 80px rgba(0, 255, 212, 0.45),
            0 0 120px rgba(178, 75, 243, 0.3);
    }
}

.zone-tag {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: var(--magenta);
    text-transform: uppercase;
    display: inline-block;
    padding-left: 1px;
    border-left: 2px solid var(--magenta);
    padding: 0.1rem 0 0.1rem 0.6rem;
}

.zone-tag.right {
    border-left: none;
    border-right: 2px solid var(--acid);
    padding: 0.1rem 0.6rem 0.1rem 0;
    color: var(--acid);
}

.body-copy {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: rgba(224, 247, 250, 0.9);
    margin: 0.7rem 0;
    max-width: 56ch;
}

.callout {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: var(--acid);
    margin-top: 1.6rem;
    text-shadow: 0 0 12px rgba(255, 229, 0, 0.4);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   ZONE 1 — Boot
   -------------------------------------------------------------------------- */
.zone-1 {
    flex-direction: column;
    text-align: center;
}

.zone-1-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

.boot-meta {
    position: absolute;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    color: var(--magenta);
    z-index: 3;
}

.boot-meta .bracket {
    color: var(--aqua);
    font-size: 1.1rem;
    font-weight: 500;
}

.meta-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 0 12px var(--magenta);
    animation: pulse-meta 1.4s ease-in-out infinite;
}

@keyframes pulse-meta {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50%      { opacity: 1; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 16vw, 14rem);
    letter-spacing: 0.05em;
    line-height: 0.9;
    color: var(--aqua);
    text-shadow:
        0 0 30px rgba(0, 255, 212, 0.7),
        0 0 80px rgba(0, 255, 212, 0.3),
        2px 0 0 rgba(255, 45, 149, 0.8);
    text-transform: uppercase;
    display: inline-flex;
    justify-content: center;
    margin: 0;
}

.hero-title .char {
    display: inline-block;
    transform: scale(2);
    opacity: 0;
    transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 320ms ease-out;
}

.hero-title .char.in {
    transform: scale(1);
    opacity: 1;
}

.hero-underline {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--aqua) 20%, var(--magenta) 80%, transparent);
    margin: 1.4rem auto;
    box-shadow: 0 0 14px rgba(0, 255, 212, 0.7);
    transition: width 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 600ms;
    max-width: min(70vw, 600px);
}

.hero-underline.drawn {
    width: min(70vw, 600px);
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: rgba(224, 247, 250, 0.85);
    margin: 0.8rem auto 1.4rem;
    max-width: 60ch;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 600ms ease-out 800ms, transform 600ms ease-out 800ms;
}

.hero-tagline.in {
    opacity: 1;
    transform: translateY(0);
}

.hero-domain {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: var(--magenta);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 600ms ease-out 1100ms;
}

.hero-domain.in {
    opacity: 0.85;
}

.boot-corner {
    position: absolute;
    z-index: 2;
}

.boot-corner.top-right {
    top: 4vh;
    right: 4vh;
}

.boot-corner.bottom-left {
    bottom: 4vh;
    left: 4vh;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--aqua);
    text-transform: uppercase;
    opacity: 0.65;
}

.signal-readout {
    border-left: 2px solid var(--aqua);
    padding-left: 0.6rem;
}

/* --------------------------------------------------------------------------
   ZONE 2 — Signal
   -------------------------------------------------------------------------- */
.zone-2-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
}

.zone-2-text {
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    padding-right: 4rem;
    padding-left: 0.6rem;
}

.zone-2-text .body-copy {
    margin-top: 1rem;
}

.zone-2-deco {
    position: relative;
    aspect-ratio: 2/3;
    background:
        linear-gradient(135deg, rgba(18, 16, 58, 0.6) 0%, rgba(26, 10, 46, 0.4) 100%);
    border: 1px solid rgba(0, 255, 212, 0.2);
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 8%);
    padding: 1.4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chevron-chain {
    width: 100%;
    height: auto;
    flex: 1;
}

.chevron-group polyline {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-chevron 6s linear infinite;
}

.chevron-group polyline:nth-child(2) { animation-delay: 0.2s; }
.chevron-group polyline:nth-child(3) { animation-delay: 0.4s; }
.chevron-group polyline:nth-child(4) { animation-delay: 0.6s; }
.chevron-group polyline:nth-child(5) { animation-delay: 0.8s; }
.chevron-group polyline:nth-child(6) { animation-delay: 1.0s; }

@keyframes draw-chevron {
    0%   { stroke-dashoffset: 100; }
    50%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

.diamond-group polygon {
    animation: diamond-pulse 3s ease-in-out infinite alternate;
}

.diamond-group polygon:nth-child(1) { animation-delay: 0s; }
.diamond-group polygon:nth-child(2) { animation-delay: 0.7s; }
.diamond-group polygon:nth-child(3) { animation-delay: 1.4s; }
.diamond-group polygon:nth-child(4) { animation-delay: 2.1s; }

@keyframes diamond-pulse {
    0%   { opacity: 0.3; transform: translate(0, 0); }
    100% { opacity: 0.8; transform: translate(0, -8px); }
}

.signal-readout-block {
    margin-top: 1rem;
    border-top: 1px dashed rgba(0, 255, 212, 0.3);
    padding-top: 0.8rem;
    display: grid;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(224, 247, 250, 0.75);
}

.readout-row {
    display: grid;
    grid-template-columns: 60px 16px 1fr;
    align-items: center;
    gap: 0.5rem;
}

.readout-row span:first-child {
    color: var(--magenta);
}

.readout-row .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aqua);
    box-shadow: 0 0 6px var(--aqua);
}

/* --------------------------------------------------------------------------
   ZONE 3 — Archive (parallelogram cards)
   -------------------------------------------------------------------------- */
.zone-3 {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: clamp(3rem, 8vh, 6rem);
    padding-bottom: clamp(3rem, 8vh, 6rem);
}

.zone-3-header {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 2rem;
}

.zone-3-header .big-title {
    text-shadow:
        0 0 20px rgba(0, 255, 212, 0.6),
        0 0 60px rgba(0, 255, 212, 0.2),
        2px 2px 0 rgba(255, 45, 149, 0.6);
}

.sub-copy {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: rgba(224, 247, 250, 0.85);
    line-height: 1.6;
    max-width: 60ch;
}

.card-cascade {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    width: 100%;
    margin-top: 1.5rem;
}

.archive-card {
    transform: skewX(-5deg) translateX(60px);
    opacity: 0;
    background: rgba(18, 16, 58, 0.85);
    border: 1px solid rgba(0, 255, 212, 0.3);
    padding: 1.6rem 1.4rem;
    cursor: pointer;
    position: relative;
    transition:
        transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 600ms ease-out,
        border-color 320ms ease,
        box-shadow 320ms ease,
        background-color 320ms ease;
    overflow: hidden;
}

.archive-card.in {
    transform: skewX(-5deg) translateX(0);
    opacity: 1;
}

.archive-card:nth-child(2) { transform: skewX(-5deg) translateX(60px) translateY(20px); }
.archive-card:nth-child(2).in { transform: skewX(-5deg) translateX(0) translateY(20px); }
.archive-card:nth-child(3) { transform: skewX(-5deg) translateX(60px) translateY(40px); }
.archive-card:nth-child(3).in { transform: skewX(-5deg) translateX(0) translateY(40px); }
.archive-card:nth-child(4) { transform: skewX(-5deg) translateX(60px) translateY(8px); }
.archive-card:nth-child(4).in { transform: skewX(-5deg) translateX(0) translateY(8px); }
.archive-card:nth-child(5) { transform: skewX(-5deg) translateX(60px) translateY(28px); }
.archive-card:nth-child(5).in { transform: skewX(-5deg) translateX(0) translateY(28px); }
.archive-card:nth-child(6) { transform: skewX(-5deg) translateX(60px) translateY(48px); }
.archive-card:nth-child(6).in { transform: skewX(-5deg) translateX(0) translateY(48px); }

.archive-card .card-inner {
    transform: skewX(5deg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.card-num {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    color: var(--magenta);
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    letter-spacing: 0.06em;
    color: var(--aqua);
    text-transform: uppercase;
    line-height: 1;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 12px rgba(0, 255, 212, 0.5);
}

.card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--aqua);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 0 8px rgba(0, 255, 212, 0.7);
}

.archive-card:hover .card-title::after {
    transform: scaleX(1);
}

.card-meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--violet);
    text-transform: uppercase;
}

.card-body {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(224, 247, 250, 0.82);
    margin-top: 0.4rem;
}

.card-tag {
    margin-top: auto;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--acid);
    text-transform: uppercase;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 229, 0, 0.3);
}

.archive-card:hover {
    border-color: var(--magenta);
    background: rgba(26, 10, 46, 0.95);
    box-shadow:
        0 0 24px rgba(255, 45, 149, 0.25),
        inset 0 0 20px rgba(255, 45, 149, 0.06);
}

.archive-card:hover .card-num {
    color: var(--acid);
}

/* --------------------------------------------------------------------------
   ZONE 4 — Reef (dense floating statements)
   -------------------------------------------------------------------------- */
.zone-4 {
    overflow: hidden;
}

.reef-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 80vh;
}

.floating-statement {
    position: absolute;
    font-family: var(--font-secondary);
    font-size: clamp(1.4rem, 4vw, 4rem);
    text-transform: uppercase;
    line-height: 1;
    mix-blend-mode: screen;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.statement-a {
    top: 8%; left: 6%;
    color: var(--acid);
    transform: rotate(-5deg);
    text-shadow: 0 0 20px rgba(255, 229, 0, 0.4);
    animation: drift-statement-a 18s ease-in-out infinite alternate;
}

.statement-b {
    top: 22%; right: 4%;
    color: var(--magenta);
    transform: rotate(8deg);
    text-shadow: 0 0 20px rgba(255, 45, 149, 0.5);
    animation: drift-statement-b 20s ease-in-out infinite alternate;
}

.statement-c {
    top: 48%; left: 12%;
    color: var(--aqua);
    transform: rotate(-3deg);
    text-shadow: 0 0 24px rgba(0, 255, 212, 0.5);
    animation: drift-statement-c 16s ease-in-out infinite alternate;
}

.statement-d {
    top: 38%; right: 18%;
    color: var(--acid);
    transform: rotate(6deg);
    text-shadow: 0 0 20px rgba(255, 229, 0, 0.45);
    animation: drift-statement-a 22s ease-in-out infinite alternate-reverse;
}

.statement-e {
    bottom: 22%; left: 8%;
    color: var(--magenta);
    transform: rotate(-7deg);
    text-shadow: 0 0 22px rgba(255, 45, 149, 0.5);
    animation: drift-statement-b 17s ease-in-out infinite alternate-reverse;
}

.statement-f {
    bottom: 12%; right: 12%;
    color: var(--violet);
    transform: rotate(4deg);
    text-shadow: 0 0 24px rgba(178, 75, 243, 0.55);
    animation: drift-statement-c 21s ease-in-out infinite alternate;
}

.statement-g {
    top: 60%; left: 40%;
    color: var(--aqua);
    transform: rotate(-2deg);
    font-size: clamp(1.2rem, 2.5vw, 2.4rem);
    text-shadow: 0 0 18px rgba(0, 255, 212, 0.45);
    animation: drift-statement-a 19s ease-in-out infinite alternate;
}

@keyframes drift-statement-a {
    0%   { transform: rotate(-5deg) translate(0, 0); }
    100% { transform: rotate(-3deg) translate(20px, -10px); }
}
@keyframes drift-statement-b {
    0%   { transform: rotate(8deg) translate(0, 0); }
    100% { transform: rotate(6deg) translate(-15px, 8px); }
}
@keyframes drift-statement-c {
    0%   { transform: rotate(-3deg) translate(0, 0); }
    100% { transform: rotate(-1deg) translate(10px, -14px); }
}

.reef-tag {
    position: absolute;
    bottom: 4vh;
    right: 4vh;
    z-index: 3;
}

/* --------------------------------------------------------------------------
   ZONE 5 — Deep
   -------------------------------------------------------------------------- */
.zone-5 {
    flex-direction: column;
    text-align: center;
    background: var(--abyss);
}

.zone-5::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 3px,
            rgba(0, 255, 212, 0.025) 3px,
            rgba(0, 255, 212, 0.025) 5px
        );
    pointer-events: none;
    z-index: 1;
}

.deep-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.zone-5 .zone-tag {
    color: var(--aqua);
    border-left-color: var(--aqua);
}

.deep-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(224, 247, 250, 0.7);
    margin: 1rem auto 2.4rem;
    max-width: 50ch;
    letter-spacing: 0.02em;
}

.deep-meta {
    display: grid;
    gap: 0.55rem;
    max-width: 480px;
    margin: 0 auto 2.4rem;
    text-align: left;
    border-top: 1px dashed rgba(0, 255, 212, 0.25);
    border-bottom: 1px dashed rgba(0, 255, 212, 0.25);
    padding: 1.2rem 0;
}

.meta-line {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.meta-key {
    color: var(--magenta);
}

.meta-val {
    color: rgba(224, 247, 250, 0.85);
}

.deep-rewind {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-body);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.rewind-label {
    color: var(--magenta);
}

.rewind-link {
    position: relative;
    color: var(--aqua);
    text-decoration: none;
    padding-bottom: 4px;
    transition: color 320ms ease;
}

.rewind-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--aqua);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 0 8px rgba(0, 255, 212, 0.7);
}

.rewind-link:hover {
    color: var(--acid);
}

.rewind-link:hover::after {
    transform: scaleX(1);
    background: var(--acid);
    box-shadow: 0 0 8px rgba(255, 229, 0, 0.7);
}

/* --------------------------------------------------------------------------
   Glitch-jitter
   -------------------------------------------------------------------------- */
.snap-container.glitch {
    animation: vhs-glitch 150ms steps(2, end);
}

@keyframes vhs-glitch {
    0%   { transform: translateX(0); filter: hue-rotate(0deg); }
    25%  { transform: translateX(-3px); filter: hue-rotate(20deg); }
    50%  { transform: translateX(2px); filter: hue-rotate(-15deg); }
    75%  { transform: translateX(-1px); filter: hue-rotate(10deg); }
    100% { transform: translateX(0); filter: hue-rotate(0deg); }
}

/* --------------------------------------------------------------------------
   In-view fade for body copy / sub elements
   -------------------------------------------------------------------------- */
.zone-2-text, .zone-3-header, .deep-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms ease-out, transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.zone-2-text.in, .zone-3-header.in, .deep-content.in {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .zone-2-grid {
        grid-template-columns: 1fr;
    }

    .zone-2-deco {
        aspect-ratio: 4/3;
    }

    .card-cascade {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    :root { --nav-width: 48px; }

    .nav-label { font-size: 0.55rem; }

    .card-cascade {
        grid-template-columns: 1fr;
    }

    .archive-card,
    .archive-card:nth-child(n) {
        transform: skewX(-3deg) translateX(40px);
    }
    .archive-card.in,
    .archive-card:nth-child(n).in {
        transform: skewX(-3deg) translateX(0);
    }

    .floating-statement {
        font-size: clamp(1.1rem, 6vw, 2.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
