:root {
    --bg-primary: #08080f;
    --bg-secondary: #0d0d1a;
    --text-headline: #e0e0e0;
    --text-body: #8a8a9e;
    --accent: #00e5ff;
    --accent-dim: rgba(0, 229, 255, 0.15);
    --accent-ghost: rgba(0, 229, 255, 0.02);
    --accent-faint: rgba(0, 229, 255, 0.08);
    --alert: #ff3d5a;
    --divider: #1a1a2e;
    --clinical-white-reference: #fff;
    --scroll-y: 0px;
}

/* Compliance vocabulary: 300/400 pairing creates headline/body differentiation entirely with generous light Inter Light Inter-Chamber Transitions:** Inter's humanist proportions apertures maintain legibility extreme thinness (Google IntersectionObserver. IntersectionObserver` `threshold: [0 thresholds only annotations that opened experience now sweeps upward (bottom */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    background: #08080f;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-body);
    font-family: "Inter", Arial, sans-serif;
    background-color: var(--bg-primary);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, var(--accent-ghost) 0, var(--accent-ghost) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(90deg, var(--accent-ghost) 0, var(--accent-ghost) 1px, transparent 1px, transparent 60px);
}

.descent {
    position: relative;
    z-index: 1;
}

.chamber {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
    background:
        radial-gradient(circle at 75% 12%, rgba(0, 229, 255, 0.025), transparent 30vw),
        linear-gradient(180deg, var(--bg-primary), var(--bg-primary));
}

.chamber-two {
    background:
        radial-gradient(circle at 10% 70%, rgba(0, 229, 255, 0.026), transparent 34vw),
        linear-gradient(180deg, var(--bg-secondary), var(--bg-secondary));
}

.chamber-five {
    background:
        radial-gradient(circle at 50% 110%, rgba(0, 229, 255, 0.035), transparent 34vw),
        linear-gradient(180deg, #0d0d1a 0%, #08080f 58%, #050508 100%);
}

.global-hud {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 50;
    opacity: 0;
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.global-hud.visible {
    opacity: 1;
}

.chamber-counter,
.timestamp,
.data-fragments {
    font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
}

.chamber-counter {
    color: rgba(0, 229, 255, 0.6);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.void-mark,
.record-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}

.domain-name,
.headline {
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-headline);
}

.domain-name {
    letter-spacing: 0.12em;
    opacity: 0;
    animation: fade-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.final-name {
    font-size: clamp(1.8rem, 3.7vw, 3.2rem);
    opacity: 0;
}

.timestamp {
    position: absolute;
    top: calc(50% + 4.4rem);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 229, 255, 0.6);
    font-size: 11px;
    letter-spacing: 0.12em;
    opacity: 0;
}

.chamber-content {
    position: absolute;
    max-width: 540px;
    z-index: 5;
}

.content-left-high {
    left: 8vw;
    top: 30vh;
}

.content-right-high {
    right: 8vw;
    top: 25vh;
    text-align: right;
}

.content-center {
    top: 35vh;
    left: 50%;
    width: min(540px, 84vw);
    transform: translateX(-50%);
    text-align: center;
}

.content-left-low {
    left: 8vw;
    bottom: 15vh;
}

.headline,
.body-text,
.data-fragments span {
    opacity: 0;
    transform: translateY(20px);
}

.body-text {
    max-width: 540px;
    margin-top: 40px;
    color: var(--text-body);
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: 0.01em;
}

.content-right-high .body-text {
    margin-left: auto;
}

.red-word {
    color: var(--text-headline);
}

.active .headline,
.active .final-name {
    animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.active .body-text {
    animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) 150ms forwards;
}

.active .timestamp {
    animation: record-time 800ms cubic-bezier(0.16, 1, 0.3, 1) 150ms forwards;
}

.active .data-fragments span:nth-child(1) {
    animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) 300ms forwards;
}

.active .data-fragments span:nth-child(2) {
    animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) 450ms forwards;
}

.active .data-fragments span:nth-child(3) {
    animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) 600ms forwards;
}

.inter-rule {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0.3;
    box-shadow: 0 0 0 rgba(0, 229, 255, 0);
    transition: opacity 420ms ease, box-shadow 420ms ease;
}

.inter-rule.triggered {
    opacity: 0.9;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.34);
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0;
}

.opening-scan {
    animation: opening-scan 1.2s ease-out 2.8s forwards;
}

.closing-scan {
    animation: closing-scan 1.2s ease-out forwards;
    animation-play-state: paused;
}

.active .closing-scan {
    animation-play-state: running;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-50%);
    animation: chevron-reveal 500ms ease 4s forwards, chevron-pulse 4s ease-in-out 4.5s infinite;
}

.chevron {
    display: block;
}

.scan-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scan-field span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 229, 255, 0.12);
}

.dense-scans span {
    animation: drift-up 120s linear infinite;
}

.dense-scans span:nth-child(1) { top: 11%; animation-delay: -4s; }
.dense-scans span:nth-child(2) { top: 24%; animation-delay: -28s; opacity: 0.8; }
.dense-scans span:nth-child(3) { top: 37%; animation-delay: -51s; }
.dense-scans span:nth-child(4) { top: 53%; animation-delay: -76s; opacity: 0.65; }
.dense-scans span:nth-child(5) { top: 69%; animation-delay: -96s; }
.dense-scans span:nth-child(6) { top: 83%; animation-delay: -112s; opacity: 0.75; }

.frozen-scans span {
    background: rgba(0, 229, 255, 0.15);
}

.frozen-scans span:nth-child(1) { top: 20%; }
.frozen-scans span:nth-child(2) { top: 50%; }
.frozen-scans span:nth-child(3) { top: 80%; }

.verdict-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(0, 229, 255, 0.03);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 90s linear infinite reverse;
    pointer-events: none;
}

.verdict-rings::before,
.verdict-rings::after,
.verdict-rings span {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.verdict-rings::before {
    width: 240px;
    height: 240px;
    opacity: 0.05;
    animation: ring-rotate-inner 90s linear infinite;
}

.verdict-rings::after {
    width: 360px;
    height: 360px;
    opacity: 0.10;
    animation: ring-rotate-inner 90s linear infinite reverse;
}

.verdict-rings span {
    width: 520px;
    height: 520px;
    opacity: 0.03;
}

.verdict-rings-large {
    width: 840px;
    height: 840px;
    border-color: rgba(0, 229, 255, 0.02);
}

.verdict-rings-large::before {
    width: 400px;
    height: 400px;
    opacity: 0.02;
}

.verdict-rings-large::after {
    width: 600px;
    height: 600px;
    opacity: 0.02;
}

.verdict-rings-large span {
    width: 840px;
    height: 840px;
    opacity: 0.02;
}

.data-fragments {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 1.5rem;
    color: rgba(0, 229, 255, 0.25);
    font-size: 9px;
    letter-spacing: 0.12em;
    transform: translateY(calc(var(--scroll-y) * -0.4));
    will-change: transform;
}

.data-fragments span {
    display: block;
}

.right-margin {
    right: 4vw;
    top: 45vh;
    text-align: right;
}

.left-margin {
    left: 4vw;
    top: 45vh;
}

.low-fragments {
    top: auto;
    bottom: 23vh;
}

.red-dot {
    position: fixed;
    bottom: 20vh;
    left: 50%;
    z-index: 30;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--alert);
    opacity: 0;
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 18px rgba(255, 61, 90, 0.35);
    transition: opacity 500ms ease;
    animation: pulse 3s ease-in-out infinite;
}

.chamber-three.active .red-dot {
    opacity: 1;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes record-time {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes opening-scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    100% { top: 100%; opacity: 1; }
}

@keyframes closing-scan {
    0% { top: 100%; opacity: 0; }
    10% { opacity: 1; }
    100% { top: 0; opacity: 1; }
}

@keyframes chevron-reveal {
    to { opacity: 0.15; }
}

@keyframes chevron-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.6; }
}

@keyframes drift-up {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.15); }
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ring-rotate-inner {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@media (max-width: 760px) {
    .global-hud {
        top: 1.25rem;
        right: 1.25rem;
    }

    .content-left-high,
    .content-left-low {
        left: 6vw;
        right: 6vw;
    }

    .content-right-high {
        right: 6vw;
        left: 6vw;
    }

    .data-fragments {
        opacity: 0.75;
    }

    .right-margin,
    .left-margin {
        left: 6vw;
        right: 6vw;
        top: 70vh;
        text-align: left;
    }

    .verdict-rings {
        width: 320px;
        height: 320px;
    }

    .verdict-rings::before {
        width: 150px;
        height: 150px;
    }

    .verdict-rings::after {
        width: 220px;
        height: 220px;
    }

    .verdict-rings span {
        width: 320px;
        height: 320px;
    }

    .verdict-rings-large {
        width: 560px;
        height: 560px;
    }

    .verdict-rings-large::before {
        width: 250px;
        height: 250px;
    }

    .verdict-rings-large::after {
        width: 390px;
        height: 390px;
    }

    .verdict-rings-large span {
        width: 560px;
        height: 560px;
    }
}
