:root {
    --void-black: #0a0a0f;
    --panel-dark: #111118;
    --divider-pulse: #6f4fbf;
    --pale-ghost: #c8c0d8;
    --body-mist: #8a8494;
    --circuit-ember: #bf4f6f;
    --surface-slate: #1e1d28;
    --whisper-line: #2a2a3f;
    --code-dim: #3d3a4a;
    --metadata: #4a4558;
}

/* Typography source note: IBM Plex Mono for registry codes only; IBM Plex Mono" (Google Fonts). Content Transmission Reveal uses IntersectionObserver with `threshold: 0.3`. */

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #0a0a0f;
    color: #8a8494;
    font-family: "Commissioner", Inter, sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75;
    overflow: hidden;
    animation: voidPulse 8s ease-in-out infinite;
}

@keyframes voidPulse {
    0%, 100% { background-color: #0a0a0f; }
    50% { background-color: #0c0c12; }
}

.bureau-grid {
    display: grid;
    grid-template-columns: 40vw 1px calc(60vw - 1px);
    height: 100vh;
    width: 100%;
    background: #0a0a0f;
}

.registry-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0f;
    border-right: 0;
    isolation: isolate;
}

.registry-circuit {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.72;
    pointer-events: none;
}

.trace {
    fill: none;
    stroke: #2a2a3f;
    stroke-width: 1.5;
    opacity: 0.45;
}

.trace-b,
.trace-d { stroke: #1e1d28; }

.signal-dot {
    fill: #6f4fbf;
    opacity: 0;
}

.registry-codes {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 2rem clamp(1rem, 4vw, 3.2rem);
    list-style: none;
    will-change: transform;
}

.registry-codes li {
    position: relative;
    width: max-content;
    color: #3d3a4a;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1;
    white-space: nowrap;
}

.registry-codes li::before {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(100% + 0.8rem);
    width: 0.4rem;
    height: 1px;
    background: #2a2a3f;
    transform: translateY(-50%);
}

.hover-line {
    position: fixed;
    left: 40vw;
    top: 0;
    z-index: 9;
    width: 60vw;
    height: 2px;
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
}

.hover-line line {
    stroke: #6f4fbf;
    stroke-width: 1;
    opacity: 0.82;
}

.divider {
    position: relative;
    z-index: 3;
    display: block;
    width: 1px;
    height: 100vh;
    background: #2a2a3f;
    box-shadow: none;
}

.content-panel {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    background: #111118;
    padding: clamp(5rem, 8vw, 8rem) clamp(2rem, 6vw, 7rem);
}

.content-panel::-webkit-scrollbar { width: 6px; }
.content-panel::-webkit-scrollbar-track { background: #0a0a0f; }
.content-panel::-webkit-scrollbar-thumb { background: #2a2a3f; }

.transmission {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 38ch) minmax(150px, 220px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 5.5rem);
    min-height: 46vh;
    margin-bottom: clamp(200px, 28vh, 400px);
    padding: clamp(1.4rem, 3vw, 2.4rem);
    scroll-snap-align: start;
    background: rgba(30, 29, 40, 0.22);
}

.transmission::after {
    content: attr(data-seal);
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;
    color: #4a4558;
    font-family: "Commissioner", Inter, sans-serif;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 200;
    letter-spacing: 0.18em;
}

.transmission.final { margin-bottom: 10vh; }

.copy-block {
    max-width: 38ch;
    opacity: 0;
    letter-spacing: 0.3em;
    filter: blur(2px);
    will-change: opacity, letter-spacing, filter;
}

.copy-block.revealed {
    opacity: 1;
    letter-spacing: 0.08em;
    filter: blur(0);
}

.metadata {
    margin-bottom: 1.35rem;
    color: #4a4558;
    font-family: "Commissioner", Inter, sans-serif;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 200;
    letter-spacing: 0.14em;
    line-height: 1.6;
}

h1,
h2 {
    color: #c8c0d8;
    font-family: "Commissioner", Inter, sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

p {
    max-width: 38ch;
    margin-bottom: 2em;
    color: #8a8494;
    font-family: "Commissioner", Inter, sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75;
}

.seal-blob {
    width: min(220px, 26vw);
    min-width: 150px;
    justify-self: end;
    overflow: visible;
}

.seal-blob path {
    fill: none;
    stroke: #6f4fbf;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    opacity: 0.82;
    stroke-dasharray: 1;
    stroke-dashoffset: 0.18;
}

.seal-blob.slate path {
    stroke: #2a2a3f;
    opacity: 0.9;
}

.void-rule {
    width: 68%;
    height: 1px;
    margin: -14vh 0 32vh auto;
    background: #1e1d28;
}

.circuit-field {
    height: 220px;
    margin: -8vh 0 22vh;
    opacity: 0.52;
}

.circuit-field svg {
    width: 100%;
    height: 100%;
}

.circuit-field path {
    fill: none;
    stroke: #1e1d28;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

@media (max-width: 768px) {
    body { overflow: hidden; }

    .bureau-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 48px calc(100vh - 48px);
    }

    .registry-panel {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 20;
        height: 48px;
        border-bottom: 1px solid #2a2a3f;
    }

    .registry-circuit { display: none; }

    .registry-codes {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        min-width: max-content;
        min-height: 48px;
        height: 48px;
        padding: 0 1rem;
    }

    .registry-codes li { font-size: 0.65rem; }
    .registry-codes li::before { display: none; }

    .divider,
    .hover-line { display: none; }

    .content-panel {
        grid-row: 2;
        height: calc(100vh - 48px);
        margin-top: 48px;
        padding: 3rem 1.5rem 5rem;
    }

    .transmission {
        grid-template-columns: 1fr;
        min-height: 60vh;
        margin-bottom: 200px;
    }

    .seal-blob {
        width: 150px;
        justify-self: start;
    }
}
