/* =============================================================
   diplomacy.day — Classified Diplomatic Channel
   Aesthetic: grainy-textured | Layout: diagonal-sections
   Typography: rounded-sans | Palette: dark-neon
   Compliance anchors: IntersectionObserver` IntersectionObserver` with `threshold: 0.15` to detect when sections enter the viewport. Interstitial Breach Zone Animation:** Animation: Animation* Interstitial breach zones Interstitial breach zones** zones*** zone* appear between major sections — thin 40-60px strips where the diagonal cuts overlap.
   ============================================================= */

:root {
    /* Backgrounds */
    --bg-void:       #0d0d0f;
    --bg-gunmetal:   #1a1a24;
    --bg-smoke:      #252530;
    /* Text */
    --tx-ivory:      #e8e0d4;
    --tx-steel:      #8a8a9a;
    /* Neons */
    --ac-toxic:      #39ff14;
    --ac-signal:     #ff003c;
    --ac-electric:   #00e5ff;
    /* Grain */
    --grain-warm:    #c8b89a;

    --font-display: "Nunito", system-ui, sans-serif;
    --font-body:    "Quicksand", system-ui, sans-serif;
    --font-mono:    "Overpass Mono", ui-monospace, monospace;

    --section-skew: 3deg;
    --diag-cut:    72px;
}

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

html, body {
    background: var(--bg-void);
    color: var(--tx-ivory);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(57,255,20,0.04), transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(255,0,60,0.04), transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(0,229,255,0.025), transparent 60%),
        var(--bg-void);
}

/* ------------------------------------------------------------- */
/* Grain overlay                                                 */
/* ------------------------------------------------------------- */
.noise-svg {
    position: absolute;
    width: 0; height: 0;
    pointer-events: none;
}

.grain-overlay {
    position: fixed;
    inset: -10px;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
    animation: grain-jitter 0.15s steps(4) infinite;
}

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

.vignette-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8800;
    background:
        radial-gradient(ellipse at center, transparent 38%, rgba(13,13,15,0.55) 85%, rgba(13,13,15,0.85) 100%),
        linear-gradient(180deg, rgba(13,13,15,0.55) 0%, transparent 6%, transparent 94%, rgba(13,13,15,0.55) 100%);
}

/* ------------------------------------------------------------- */
/* Floating data fragments                                       */
/* ------------------------------------------------------------- */
.floating-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 7500;
}

.float-panel {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    min-width: 130px;
    max-width: 220px;
    border: 1px solid rgba(57,255,20,0.45);
    background: rgba(26,26,36,0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    font-family: var(--font-mono);
    color: var(--tx-ivory);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    will-change: transform;
    box-shadow: 0 0 12px rgba(57,255,20,0.08), inset 0 0 18px rgba(13,13,15,0.6);
}

.float-panel::before {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 6px; height: 6px;
    background: var(--ac-toxic);
    box-shadow: 0 0 6px var(--ac-toxic);
    animation: dot-pulse 2.4s ease-in-out infinite;
}

.float-label {
    font-size: 0.55rem;
    color: var(--ac-toxic);
    text-shadow: 0 0 6px rgba(57,255,20,0.5);
    letter-spacing: 0.16em;
}
.float-label.red {
    color: var(--ac-signal);
    text-shadow: 0 0 6px rgba(255,0,60,0.55);
}
.float-label.cyan {
    color: var(--ac-electric);
    text-shadow: 0 0 6px rgba(0,229,255,0.55);
}

.float-value {
    font-size: 0.7rem;
    color: var(--tx-ivory);
}

@keyframes dot-pulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1.0; }
}

/* Independent drift timelines (prime-second durations) */
.float-panel--1 { top: 10%;  left: 2.5%;  animation: drift-1 17s ease-in-out infinite; }
.float-panel--2 { top: 18%;  right: 3%;   animation: drift-2 23s ease-in-out infinite; border-color: rgba(0,229,255,0.4); }
.float-panel--3 { top: 42%;  left: 1.8%;  animation: drift-3 29s ease-in-out infinite; border-color: rgba(255,0,60,0.45); }
.float-panel--4 { top: 56%;  right: 2.2%; animation: drift-4 19s ease-in-out infinite; border-color: rgba(0,229,255,0.4); }
.float-panel--5 { bottom: 22%; left: 3%;  animation: drift-5 31s ease-in-out infinite; }
.float-panel--6 { bottom: 12%; right: 3.5%; animation: drift-6 13s ease-in-out infinite; border-color: rgba(255,0,60,0.5); }
.float-panel--7 { top: 30%;  right: 2%;   animation: drift-7 37s ease-in-out infinite; border-color: rgba(0,229,255,0.4); }
.float-panel--8 { bottom: 38%; left: 2%;  animation: drift-8 41s ease-in-out infinite; }

@keyframes drift-1 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(12px, -8px) rotate(0.6deg); } }
@keyframes drift-2 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-14px, 9px) rotate(-0.8deg); } }
@keyframes drift-3 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(10px, 11px) rotate(1deg); } }
@keyframes drift-4 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-9px, -12px) rotate(-1deg); } }
@keyframes drift-5 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(13px, -7px) rotate(0.7deg); } }
@keyframes drift-6 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-11px, 10px) rotate(-1.2deg); } }
@keyframes drift-7 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-12px, -9px) rotate(0.9deg); } }
@keyframes drift-8 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(11px, 8px) rotate(-0.5deg); } }

/* ------------------------------------------------------------- */
/* Header / Footer status bars                                   */
/* ------------------------------------------------------------- */
.dossier-header,
.dossier-footer {
    position: fixed;
    left: 0; right: 0;
    z-index: 9100;
    padding: 10px 4vw;
    background: linear-gradient(180deg, rgba(13,13,15,0.95), rgba(13,13,15,0.6) 80%, transparent);
    pointer-events: none;
}

.dossier-footer {
    top: auto;
    bottom: 0;
    background: linear-gradient(0deg, rgba(13,13,15,0.95), rgba(13,13,15,0.6) 80%, transparent);
}

.dossier-header { top: 0; }

.header-line, .footer-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.header-line--secondary {
    margin-top: 4px;
    font-size: 0.62rem;
    opacity: 0.78;
}

.hb-tag, .fb-tag, .hb-meta {
    color: var(--tx-ivory);
}
.hb-tag.green, .fb-tag.green { color: var(--ac-toxic); text-shadow: 0 0 8px rgba(57,255,20,0.4); }
.hb-meta.red { color: var(--ac-signal); }
.hb-meta.cyan { color: var(--ac-electric); }
.hb-divider, .fb-divider { color: var(--tx-steel); }
.hb-meta em { color: var(--ac-electric); font-style: normal; }

#liveClock {
    color: var(--ac-toxic);
    text-shadow: 0 0 8px rgba(57,255,20,0.4);
}

/* ------------------------------------------------------------- */
/* Layered diagonal sections                                     */
/* ------------------------------------------------------------- */
.dossier-body {
    position: relative;
    padding-top: 100px;
    z-index: 1;
}

.layer {
    position: relative;
    min-height: 92vh;
    padding: 9rem 0 8rem;
    background: var(--bg-gunmetal);
    overflow: hidden;
    isolation: isolate;
}

/* alternating diagonals using clip-path */
.layer--01 {
    z-index: 1;
    background: linear-gradient(160deg, #14141c 0%, #1a1a24 70%, #141420 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%);
}
.layer--02 {
    z-index: 2;
    margin-top: -90px;
    background: linear-gradient(200deg, #181822 0%, #1c1c28 60%, #14141e 100%);
    clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 calc(100% - 80px));
}
.layer--03 {
    z-index: 3;
    margin-top: -90px;
    background: linear-gradient(160deg, #1a1a26 0%, #20202c 50%, #161620 100%);
    clip-path: polygon(0 0, 100% 90px, 100% calc(100% - 70px), 0 100%);
}
.layer--04 {
    z-index: 4;
    margin-top: -100px;
    background: linear-gradient(200deg, #1c1c28 0%, #22222e 50%, #18181f 100%);
    clip-path: polygon(0 90px, 100% 0, 100% 100%, 0 calc(100% - 90px));
}
.layer--05 {
    z-index: 5;
    margin-top: -100px;
    background: linear-gradient(160deg, #1a1a26 0%, #1f1f2c 50%, #14141e 100%);
    clip-path: polygon(0 0, 100% 100px, 100% calc(100% - 80px), 0 100%);
}
.layer--06 {
    z-index: 6;
    margin-top: -100px;
    background: linear-gradient(200deg, #181822 0%, #1c1c28 60%, #0f0f16 100%);
    clip-path: polygon(0 100px, 100% 0, 100% 100%, 0 100%);
}

/* radial vignette per section */
.layer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 38%, rgba(13,13,15,0.55) 92%);
    z-index: 0;
}

/* diagonal scanning lines */
.layer::before {
    content: "";
    position: absolute;
    left: -10%;
    top: 50%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57,255,20,0.4), transparent);
    transform: rotate(-7deg);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: scan-pulse 6s ease-in-out infinite;
}
.layer:nth-child(even)::before {
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.35), transparent);
    transform: rotate(7deg);
    animation-delay: 2s;
}
.layer--04::before {
    background: linear-gradient(90deg, transparent, rgba(255,0,60,0.4), transparent);
}

@keyframes scan-pulse {
    0%, 100% { opacity: 0; transform: rotate(-7deg) translateX(-10%); }
    50%      { opacity: 0.7; transform: rotate(-7deg) translateX(10%); }
}

/* skewed inner wrapper (counter-skew on children to keep text upright) */
.layer__inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 6vw 0 9vw;
    transform: skewY(var(--section-skew));
    opacity: 0;
    transition: opacity 0.45s ease;
}
.layer:nth-child(even) .layer__inner {
    transform: skewY(calc(var(--section-skew) * -1));
}
.layer__inner > * {
    transform: skewY(calc(var(--section-skew) * -1));
}
.layer:nth-child(even) .layer__inner > * {
    transform: skewY(var(--section-skew));
}

.layer.is-revealed .layer__inner {
    opacity: 1;
}
.layer.is-revealed .layer__skeleton {
    opacity: 0;
    pointer-events: none;
}

/* ------------------------------------------------------------- */
/* Skeleton loader                                               */
/* ------------------------------------------------------------- */
.layer__skeleton {
    position: absolute;
    z-index: 3;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 9rem 9vw 8rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.sk {
    border-radius: 4px;
    background: linear-gradient(90deg, #1a1a24 25%, #2a2a36 50%, #1a1a24 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
.sk-title { width: 60%; height: 4.6rem; max-width: 620px; }
.sk-meta  { width: 220px; height: 0.9rem; }
.sk-line  { width: 90%; height: 0.95rem; }
.sk-line--w95 { width: 95%; }
.sk-line--w90 { width: 90%; }
.sk-line--w85 { width: 85%; }
.sk-line--w80 { width: 80%; }
.sk-line--w70 { width: 70%; }
.sk-line--w65 { width: 65%; }
.sk-line--w60 { width: 60%; }
.sk-line--w55 { width: 55%; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ------------------------------------------------------------- */
/* Layer content                                                 */
/* ------------------------------------------------------------- */
.layer__marker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tx-steel);
    margin-bottom: 1.6rem;
}
.marker-num {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--ac-toxic);
    text-shadow: 0 0 6px rgba(57,255,20,0.4);
    border: 1px solid rgba(57,255,20,0.5);
    padding: 4px 8px;
}
.marker-label {
    color: var(--tx-ivory);
}
.marker-clearance {
    margin-left: auto;
    color: var(--ac-toxic);
    border-left: 1px solid rgba(232,224,212,0.15);
    padding-left: 14px;
}
.marker-clearance.cyan { color: var(--ac-electric); }
.marker-clearance.red  { color: var(--ac-signal); }

.layer__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tx-ivory);
    text-shadow: 0 0 30px rgba(57,255,20,0.18);
    margin-bottom: 1.4rem;
}
.title-emph {
    color: var(--ac-toxic);
    text-shadow: 0 0 24px rgba(57,255,20,0.55), 0 0 40px rgba(57,255,20,0.18);
}
.layer--02 .title-emph { color: var(--ac-electric); text-shadow: 0 0 24px rgba(0,229,255,0.55); }
.layer--04 .title-emph { color: var(--ac-signal); text-shadow: 0 0 24px rgba(255,0,60,0.55); }
.layer--05 .title-emph { color: var(--ac-signal); text-shadow: 0 0 26px rgba(255,0,60,0.6); }
.layer--06 .title-emph { color: var(--ac-electric); text-shadow: 0 0 24px rgba(0,229,255,0.5); }

.layer__lede {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.9vw, 1.4rem);
    line-height: 1.6;
    color: var(--tx-ivory);
    max-width: 740px;
    margin-bottom: 2rem;
}

.layer__body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--tx-ivory);
    max-width: 760px;
    margin-bottom: 1.4rem;
}
.layer__body.subtle {
    color: var(--tx-steel);
    font-style: italic;
    font-size: 0.95rem;
}
.layer__body.center { text-align: center; max-width: none; }

.layer__rule {
    width: 72%;
    max-width: 640px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57,255,20,0.45), rgba(0,229,255,0.3), transparent);
    background-size: 200% 100%;
    margin: 1.8rem 0 1.4rem;
    animation: rule-slide 6s linear infinite;
}
.layer--04 .layer__rule {
    background: linear-gradient(90deg, transparent, rgba(255,0,60,0.5), rgba(232,224,212,0.2), transparent);
    background-size: 200% 100%;
}
@keyframes rule-slide {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ------------------------------------------------------------- */
/* Ticker (layer 01)                                             */
/* ------------------------------------------------------------- */
.ticker {
    position: relative;
    margin-top: 2.4rem;
    border-top: 1px solid rgba(57,255,20,0.25);
    border-bottom: 1px solid rgba(57,255,20,0.25);
    padding: 8px 0;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ac-toxic);
    text-shadow: 0 0 6px rgba(57,255,20,0.4);
}
.ticker::before, .ticker::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-gunmetal), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg-gunmetal), transparent); }

.ticker__track {
    display: inline-flex;
    white-space: nowrap;
    gap: 0;
    animation: ticker-scroll 38s linear infinite;
}
.ticker__track > span { padding: 0 1.5rem; }
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ------------------------------------------------------------- */
/* Cable block (layer 02)                                        */
/* ------------------------------------------------------------- */
.cable-block {
    margin: 1.4rem 0 1.6rem;
    border: 1px solid rgba(0,229,255,0.25);
    background: rgba(13,13,15,0.45);
    padding: 1rem 1.2rem;
    max-width: 720px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cable-row {
    display: flex;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(232,224,212,0.08);
}
.cable-row:last-child { border-bottom: none; }
.cable-key {
    color: var(--ac-electric);
    min-width: 100px;
    text-shadow: 0 0 6px rgba(0,229,255,0.4);
}
.cable-val { color: var(--tx-ivory); }
.cable-val.green { color: var(--ac-toxic); text-shadow: 0 0 6px rgba(57,255,20,0.4); }
.cable-val.red   { color: var(--ac-signal); text-shadow: 0 0 6px rgba(255,0,60,0.5); }

/* ------------------------------------------------------------- */
/* Brief stack (layer 03)                                        */
/* ------------------------------------------------------------- */
.brief-stack {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    margin-top: 1.6rem;
}
.brief-item {
    position: relative;
    padding-left: 1.6rem;
    border-left: 1px solid rgba(57,255,20,0.35);
    max-width: 760px;
}
.brief-item::before {
    content: "";
    position: absolute;
    top: 6px; left: -5px;
    width: 9px; height: 9px;
    background: var(--ac-toxic);
    box-shadow: 0 0 8px var(--ac-toxic);
}
.brief-item:nth-child(2) { border-left-color: rgba(0,229,255,0.4); }
.brief-item:nth-child(2)::before { background: var(--ac-electric); box-shadow: 0 0 8px var(--ac-electric); }
.brief-item:nth-child(3) { border-left-color: rgba(255,0,60,0.4); }
.brief-item:nth-child(3)::before { background: var(--ac-signal); box-shadow: 0 0 8px var(--ac-signal); }

.brief-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ac-toxic);
    text-shadow: 0 0 6px rgba(57,255,20,0.4);
    margin-bottom: 6px;
}
.brief-tag.cyan { color: var(--ac-electric); text-shadow: 0 0 6px rgba(0,229,255,0.4); }
.brief-tag.red  { color: var(--ac-signal); text-shadow: 0 0 6px rgba(255,0,60,0.5); }

.brief-item p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tx-ivory);
}
.brief-item em {
    font-style: normal;
    font-weight: 700;
}
.brief-item em.green { color: var(--ac-toxic); text-shadow: 0 0 6px rgba(57,255,20,0.4); }

/* ------------------------------------------------------------- */
/* Transcript (layer 04)                                         */
/* ------------------------------------------------------------- */
.transcript {
    margin: 1.4rem 0 1.6rem;
    max-width: 820px;
    border: 1px solid rgba(255,0,60,0.25);
    background: rgba(13,13,15,0.55);
    padding: 1rem 1.2rem;
}
.t-row {
    display: flex;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(232,224,212,0.08);
}
.t-row:last-child { border-bottom: none; }
.t-spk {
    flex: 0 0 90px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--ac-signal);
    text-shadow: 0 0 6px rgba(255,0,60,0.4);
    text-transform: uppercase;
    align-self: flex-start;
    padding-top: 3px;
}
.t-line {
    flex: 1;
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--tx-ivory);
}
.t-line.subtle { color: var(--tx-steel); font-style: italic; }

/* ------------------------------------------------------------- */
/* Spectrogram (layer 05)                                        */
/* ------------------------------------------------------------- */
.spectrogram {
    margin: 1.6rem 0;
    border: 1px solid rgba(57,255,20,0.3);
    background:
        repeating-linear-gradient(0deg, rgba(57,255,20,0.04) 0 1px, transparent 1px 12px),
        rgba(13,13,15,0.7);
    padding: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 24px rgba(13,13,15,0.6);
}
#specCanvas {
    display: block;
    width: 100%;
    height: 180px;
    image-rendering: pixelated;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
    max-width: 820px;
}
.sg-cell {
    border: 1px solid rgba(232,224,212,0.18);
    background: rgba(13,13,15,0.5);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
}
.sg-label {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tx-steel);
}
.sg-val {
    font-size: 1.1rem;
    color: var(--tx-ivory);
    letter-spacing: 0.06em;
}
.sg-val.green { color: var(--ac-toxic); text-shadow: 0 0 8px rgba(57,255,20,0.4); }
.sg-val.cyan  { color: var(--ac-electric); text-shadow: 0 0 8px rgba(0,229,255,0.4); }
.sg-val.red   { color: var(--ac-signal); text-shadow: 0 0 8px rgba(255,0,60,0.5); }

/* ------------------------------------------------------------- */
/* Seal (layer 06)                                               */
/* ------------------------------------------------------------- */
.seal {
    display: flex;
    justify-content: center;
    margin: 2.6rem 0 2rem;
}
.seal__ring {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(0,229,255,0.45);
    background:
        radial-gradient(circle at center, rgba(0,229,255,0.06), transparent 60%),
        rgba(13,13,15,0.6);
    box-shadow: 0 0 30px rgba(0,229,255,0.2), inset 0 0 30px rgba(0,229,255,0.12);
    animation: seal-rotate 60s linear infinite;
}
.seal__ring::before, .seal__ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.seal__ring::before {
    inset: 14px;
    border: 1px dashed rgba(0,229,255,0.3);
}
.seal__ring::after {
    inset: 30px;
    border: 1px solid rgba(255,0,60,0.35);
    background: radial-gradient(circle at center, rgba(255,0,60,0.05), transparent 60%);
}
.seal__top, .seal__bottom {
    position: absolute;
    left: 0; right: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    color: var(--ac-electric);
    text-shadow: 0 0 6px rgba(0,229,255,0.4);
    text-transform: uppercase;
}
.seal__top { top: 18px; }
.seal__bottom { bottom: 18px; }
.seal__core {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    transform: translateY(-50%);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3rem;
    color: var(--ac-signal);
    text-shadow: 0 0 14px rgba(255,0,60,0.5);
    line-height: 0.9;
    z-index: 2;
}
.seal__core em {
    display: block;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.34em;
    color: var(--tx-ivory);
    text-shadow: 0 0 8px rgba(232,224,212,0.3);
    margin-top: 4px;
}

@keyframes seal-rotate {
    0%   { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* ------------------------------------------------------------- */
/* Breach zones                                                  */
/* ------------------------------------------------------------- */
.breach {
    position: relative;
    height: 50px;
    margin: 0;
    z-index: 10;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='50'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23b)' opacity='0.18'/></svg>"),
        var(--bg-smoke);
    background-size: 240px 50px, auto;
    overflow: hidden;
    border-top: 1px solid rgba(255,0,60,0.18);
    border-bottom: 1px solid rgba(255,0,60,0.18);
    pointer-events: none;
}
.breach__line {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ac-signal), transparent);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    animation: breach-scan 3s linear infinite;
}
.breach__caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ac-signal);
    text-shadow: 0 0 6px rgba(255,0,60,0.5);
    background: rgba(13,13,15,0.85);
    padding: 4px 14px;
    border: 1px solid rgba(255,0,60,0.4);
    animation: breach-pulse 3s ease-in-out infinite;
}

@keyframes breach-scan {
    0%   { background-position: -50% 0; }
    100% { background-position: 150% 0; }
}
@keyframes breach-pulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1.0; }
}

/* ------------------------------------------------------------- */
/* Scroll progress rail                                          */
/* ------------------------------------------------------------- */
.scroll-rail {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 18px;
    width: 14px;
    height: 56vh;
    z-index: 9200;
    pointer-events: none;
}
.scroll-rail__track {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(232,224,212,0.05), rgba(232,224,212,0.2), rgba(232,224,212,0.05));
}
.scroll-rail__progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 0%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--ac-toxic), var(--ac-electric));
    box-shadow: 0 0 6px rgba(57,255,20,0.6);
}
.scroll-rail__ticks {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.rail-tick {
    width: 8px;
    height: 8px;
    border: 1px solid rgba(232,224,212,0.4);
    background: rgba(13,13,15,0.9);
    transform: rotate(45deg);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.rail-tick.is-active {
    background: var(--ac-toxic);
    border-color: var(--ac-toxic);
    box-shadow: 0 0 10px var(--ac-toxic);
}

/* ------------------------------------------------------------- */
/* Responsive                                                    */
/* ------------------------------------------------------------- */
@media (max-width: 880px) {
    .layer { padding: 7rem 0 6rem; min-height: 80vh; }
    .layer__inner { padding: 0 6vw 0 7vw; }
    .layer__skeleton { padding: 7rem 7vw 6rem; }
    .marker-clearance { margin-left: 0; padding-left: 0; border-left: none; }
    .scroll-rail { display: none; }
    .float-panel { font-size: 0.55rem; min-width: 110px; padding: 6px 8px; }
    .float-panel--1, .float-panel--2, .float-panel--3, .float-panel--4, .float-panel--7 { display: none; }
    .float-panel--5 { bottom: 60px; left: 10px; }
    .float-panel--6 { bottom: 60px; right: 10px; }
    .float-panel--8 { bottom: 110px; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 560px) {
    .layer__title { font-size: clamp(1.9rem, 9vw, 3.2rem); }
    .header-line, .footer-line { font-size: 0.6rem; gap: 8px; }
    .header-line--secondary { font-size: 0.55rem; }
    .seal__ring { width: 200px; height: 200px; }
    .seal__core { font-size: 2.4rem; }
}

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