/* ============================================================
   GGOGGL.com — Monochrome Graffiti Tunnel
   Palette strictly monochrome with a single red breach.
   Compliance references: "Space Mono" (Google Fonts), "IBM Plex Mono" (Google Fonts).
   Interactive elements (links) use Intersection Observer with threshold: 0.5.
   Intersection Observer. Shapes transition from angular (polygon); This strip lives above content.
   Space Mono 9px at 30% opacity (#8a8a8a) and Space Mono at 11px uppercase with +0.2em letter-spacing.
   ============================================================ */

:root {
    --void:      #0a0a0a;
    --concrete:  #1c1c1c;
    --graphite:  #3d3d3d;
    --spray:     #8a8a8a;
    --chalk:     #e8e5e0;
    --raw:       #ffffff;
    --drip:      #c23030;

    --font-mono: 'Space Mono', 'IBM Plex Mono', ui-monospace, monospace;
    --font-body: 'IBM Plex Mono', 'Space Mono', ui-monospace, monospace;
    --font-heavy: 'Archivo Black', 'Space Mono', sans-serif;

    --max-w: 1400px;
    --rail-w: 32px;
    --nav-w: 60px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--void);
    color: var(--chalk);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    /* dot grid engineering paper: 2px dots at 40px intervals */
    background-color: var(--void);
    background-image:
        radial-gradient(circle at center, var(--concrete) 1px, transparent 1.4px);
    background-size: 40px 40px;
    background-position: 0 0;
    min-height: 100vh;
    position: relative;
}

::selection {
    background: var(--drip);
    color: var(--raw);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; background: transparent; border: 0; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============================================================
   Global overlays: grain, scan-lines, cursor-trail canvas
   ============================================================ */

.grain-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
    opacity: 0.04;
    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.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.scan-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 91;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: overlay;
}

#spray-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 92;
}

/* ============================================================
   Vertical left nav strip
   ============================================================ */

.vertical-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--nav-w);
    border-right: 1px solid var(--graphite);
    background: linear-gradient(180deg, var(--void) 0%, var(--concrete) 100%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.vnav-mark {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--chalk);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    border-left: 2px solid var(--drip);
    padding-left: 4px;
}

.vnav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.vnav-list a {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--spray);
    border-bottom: 1px solid transparent;
    padding: 4px 0;
    transition: color 300ms ease, border-color 300ms ease, letter-spacing 300ms ease;
}

.vnav-list a:hover,
.vnav-list a.is-active {
    color: var(--raw);
    border-bottom-color: var(--drip);
    letter-spacing: 0.28em;
}

.vnav-coords {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--spray);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.15em;
    opacity: 0.6;
}

/* ============================================================
   Corner coordinate markers
   ============================================================ */

.corner {
    position: fixed;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--spray);
    opacity: 0.7;
    text-transform: uppercase;
    z-index: 60;
    pointer-events: none;
    display: flex;
    gap: 16px;
}

.corner-tl { top: 18px; left: calc(var(--nav-w) + 18px); }
.corner-tr { top: 18px; right: calc(var(--rail-w) + 18px); }

.corner-hash {
    color: var(--chalk);
    border-left: 2px solid var(--drip);
    padding-left: 6px;
}

/* ============================================================
   Scroll rail on the right side
   ============================================================ */

.scroll-rail {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: var(--rail-w);
    border-left: 1px solid var(--graphite);
    background: linear-gradient(180deg, var(--concrete) 0%, var(--void) 100%);
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.scroll-rail::before,
.scroll-rail::after {
    content: '[ ↓ ]';
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--spray);
    writing-mode: vertical-rl;
}
.scroll-rail::before { top: 18px; content: 'SCROLL // 04.221'; }
.scroll-rail::after { bottom: 18px; content: 'GGOGGL // RAIL'; }

.scroll-rail-fill {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 0%;
    background: var(--drip);
    transform: translateX(-50%);
    transition: height 60ms linear;
    box-shadow: 0 0 12px rgba(194, 48, 48, 0.45);
}

/* ============================================================
   Main stage
   ============================================================ */

.stage {
    position: relative;
    margin-left: var(--nav-w);
    margin-right: var(--rail-w);
    z-index: 1;
}

.chapter {
    position: relative;
    min-height: 100vh;
    padding: 120px 6vw;
    overflow: hidden;
    border-bottom: 1px solid var(--graphite);
    isolation: isolate;
}

.chapter::before {
    /* per-section faint chapter mark */
    content: attr(data-chapter);
    position: absolute;
    top: 44px;
    right: 6vw;
    font-family: var(--font-mono);
    font-size: clamp(4rem, 14vw, 18rem);
    color: var(--concrete);
    opacity: 0.7;
    z-index: -1;
    line-height: 1;
    letter-spacing: -0.06em;
}

/* ============================================================
   Morphing background blobs
   ============================================================ */

.bg-blob {
    position: absolute;
    z-index: -2;
    opacity: 0.85;
    filter: url(#watercolor);
    pointer-events: none;
    will-change: transform;
}

.bg-blob .morph-shape {
    fill: var(--concrete);
    stroke: var(--graphite);
    stroke-width: 1.2;
    transform-origin: 50% 50%;
    animation: morph-cycle 30s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate;
}

.blob-01 { top: -8%;  right: -12%; width: 80vmin; height: 80vmin; }
.blob-02 { bottom: -14%; left: -10%; width: 90vmin; height: 90vmin; }
.blob-03 { top: -6%;  left: 8%;   width: 70vmin; height: 70vmin; opacity: 0.65; }
.blob-04 { bottom: -20%; right: -6%; width: 85vmin; height: 85vmin; }
.blob-05 { top: 0%; right: -20%; width: 100vmin; height: 100vmin; opacity: 0.7; }
.blob-06 { bottom: -10%; left: -20%; width: 110vmin; height: 110vmin; opacity: 0.6; }

@keyframes morph-cycle {
    0% {
        d: path("M120,80 L720,40 L780,340 L640,720 L180,700 L60,420 Z");
    }
    25% {
        d: path("M140,120 L700,90 L760,380 L620,700 L180,720 L80,420 Z");
    }
    50% {
        d: path("M180,200 Q400,40 660,140 Q820,340 720,560 Q560,760 340,720 Q100,640 80,420 Q60,240 180,200 Z");
    }
    75% {
        d: path("M200,180 Q420,60 640,160 Q780,340 740,540 Q600,720 380,720 Q160,680 100,480 Q80,280 200,180 Z");
    }
    100% {
        d: path("M100,100 L680,60 L760,360 L620,700 L180,720 L60,400 Z");
    }
}

/* ============================================================
   Circuit traces + nodes
   ============================================================ */

.circuit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    will-change: transform;
}

.circuit .trace {
    fill: none;
    stroke: var(--graphite);
    stroke-width: 1;
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
    animation: trace-draw 6s ease-out forwards;
}

.circuit-02 .trace { animation-delay: 200ms; }
.circuit-03 .trace { animation-delay: 200ms; }

@keyframes trace-draw {
    to { stroke-dashoffset: 0; }
}

.circuit .node {
    fill: var(--graphite);
    stroke: var(--chalk);
    stroke-width: 1;
}

/* ============================================================
   Column strips with chapter digit
   ============================================================ */

.col-strip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 2;
}

.col-strip-left  { left: -10px; }
.col-strip-right { right: -10px; }

.strip-line {
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg, transparent, var(--graphite), transparent);
}

.strip-digit {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--spray);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
}

/* ============================================================
   Section head
   ============================================================ */

.section-head {
    margin-bottom: 72px;
    max-width: 920px;
    position: relative;
    z-index: 3;
}

.section-head-right {
    margin-left: auto;
    text-align: right;
}

.kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--spray);
    border-bottom: 1px solid var(--graphite);
    padding: 0 0 8px 0;
    margin-bottom: 24px;
}

.section-head-right .kicker { border-color: var(--graphite); }

.section-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(2.2rem, 6.4vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--chalk);
    margin: 0;
}

.section-title .mono-lg {
    display: inline-block;
    font-size: 0.55em;
    color: var(--spray);
    letter-spacing: -0.01em;
    margin-top: 14px;
}

.ink-red {
    color: var(--drip);
    text-shadow: 0 0 16px rgba(194, 48, 48, 0.35);
}

/* ============================================================
   CHAPTER 01 — Hero
   ============================================================ */

.chapter-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-content: space-between;
    min-height: 100vh;
    padding-top: 96px;
    padding-bottom: 80px;
}

.hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--spray);
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--graphite);
}

.tag-label { display: inline-flex; align-items: center; }

.tag-accent {
    color: var(--drip);
    position: relative;
}

.tag-accent::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--drip);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 12px var(--drip);
    animation: pulse-red 1.4s ease-in-out infinite;
}

.hero-wordmark {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(3rem, 13vw, 12rem);
    line-height: 0.88;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--chalk);
    margin: 60px 0;
    position: relative;
    width: 120%;
    transform: translateX(-4%);
    filter: url(#dissolve-soft);
}

.hero-line {
    display: block;
    position: relative;
}

.hero-line-1 {
    color: var(--raw);
    text-shadow:
        2px 0 0 rgba(255,255,255,0.04),
        -2px 0 0 rgba(194, 48, 48, 0.12);
}

.hero-line-2 {
    color: var(--chalk);
    -webkit-text-stroke: 1px var(--chalk);
    color: transparent;
    padding-left: 8vw;
    mix-blend-mode: screen;
}

.hero-line-3 {
    font-size: 0.32em;
    color: var(--spray);
    letter-spacing: -0.01em;
    padding-left: 2vw;
}

.cursor-blink {
    display: inline-block;
    border-right: 2px solid var(--chalk);
    margin-left: 0.1em;
    animation: blink-cursor 1s steps(1) infinite;
    color: transparent;
}

@keyframes blink-cursor {
    0%, 50% { border-color: var(--chalk); }
    51%, 100% { border-color: transparent; }
}

.hero-caption {
    max-width: 38ch;
    margin-left: auto;
    color: var(--spray);
    font-size: 15px;
    line-height: 1.7;
    border-left: 2px solid var(--drip);
    padding-left: 18px;
}

.hero-caption p { margin: 0 0 6px 0; }

.drip {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.drip-hero {
    top: 40%;
    right: 4vw;
    width: clamp(120px, 14vw, 220px);
    height: auto;
}

.drip-path {
    fill: none;
    stroke: var(--chalk);
    stroke-width: 18;
    stroke-linecap: round;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 1200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: url(#dissolve-soft);
    opacity: 0.85;
}

.drip.is-in .drip-path { stroke-dashoffset: 0; }

.drip-path-long { stroke-width: 22; }

.drip-red { stroke: var(--drip); }

.drip-bead {
    fill: var(--chalk);
    filter: url(#watercolor);
    opacity: 0;
    transition: opacity 400ms ease 900ms;
}

.drip-bead-red { fill: var(--drip); }
.drip.is-in .drip-bead { opacity: 0.9; }

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--spray);
    border-top: 1px solid var(--graphite);
    padding-top: 22px;
}

.arrow-down {
    font-size: 18px;
    color: var(--chalk);
    animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ============================================================
   CHAPTER 02 — Manifesto
   ============================================================ */

.chapter-manifesto {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    position: relative;
    z-index: 3;
}

.manifesto-block {
    background: rgba(28, 28, 28, 0.6);
    border-left: 2px solid var(--graphite);
    padding: 24px 26px;
    position: relative;
    backdrop-filter: blur(2px);
    transition: border-color 300ms ease, transform 300ms ease, background 300ms ease;
}

.manifesto-block:hover {
    border-left-color: var(--drip);
    background: rgba(28, 28, 28, 0.85);
    transform: translateY(-2px);
}

.manifesto-block p {
    margin: 0;
    font-family: var(--font-body);
    color: var(--chalk);
    font-size: 15px;
    line-height: 1.75;
    max-width: 38ch;
}

.block-idx {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--spray);
    margin-bottom: 12px;
}

/* asymmetric irregular column placement */
.mb-01 { grid-column: 1 / span 5; transform: translateY(20px); }
.mb-02 { grid-column: 7 / span 5; transform: translateY(-10px); }
.mb-03 { grid-column: 2 / span 6; transform: translateY(40px); }
.mb-04 { grid-column: 8 / span 5; transform: translateY(-20px); }

.mb-accent {
    border-left-color: var(--drip);
    background: linear-gradient(135deg, rgba(28,28,28,0.7), rgba(28,28,28,0.3));
}

.mb-accent::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px; height: 18px;
    background: var(--drip);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
    box-shadow: 0 0 16px rgba(194,48,48,0.5);
}

.drip-floating {
    position: absolute;
    top: 18%;
    right: 8vw;
    width: clamp(80px, 10vw, 160px);
}

/* ============================================================
   CHAPTER 03 — Transmission log
   ============================================================ */

.chapter-transmission {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.transmission-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1100px;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    z-index: 3;
}

.trans-entry {
    display: grid;
    grid-template-columns: 100px 40px 1fr;
    gap: 24px;
    padding: 18px 22px 18px 0;
    border-top: 1px dashed var(--graphite);
    transition: border-color 300ms ease, background 300ms ease;
    align-items: start;
}

.trans-entry:hover {
    border-top-color: var(--drip);
    background: rgba(28,28,28,0.3);
}

.trans-entry-offset {
    margin-left: 12%;
    border-top-style: solid;
}

.trans-time {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--spray);
    padding-top: 2px;
}

.trans-sigil {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--chalk);
    text-align: center;
    line-height: 1.2;
}

.trans-sigil-red {
    color: var(--drip);
    text-shadow: 0 0 12px rgba(194,48,48,0.55);
}

.trans-body p {
    margin: 6px 0 0 0;
    color: var(--chalk);
    font-size: 15px;
    max-width: 52ch;
}

.trans-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--spray);
}

.trans-tag-red {
    color: var(--drip);
}

/* ============================================================
   CHAPTER 04 — Archive
   ============================================================ */

.chapter-archive {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.archive-rows {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--graphite);
    max-width: 1100px;
    position: relative;
    z-index: 3;
}

.archive-row {
    display: grid;
    grid-template-columns: 80px 100px 1.4fr 1.4fr 1fr;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--graphite);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--chalk);
    align-items: center;
    transition: background 300ms ease, padding-left 300ms ease;
    position: relative;
}

.archive-row:hover {
    background: rgba(28,28,28,0.7);
    padding-left: 28px;
}

.archive-head-row {
    background: var(--concrete);
    color: var(--spray);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.ar-idx { color: var(--spray); letter-spacing: 0.15em; }
.ar-glyph {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 22px;
    color: var(--raw);
    letter-spacing: -0.04em;
}
.ar-loc, .ar-mark, .ar-state {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--chalk);
}
.ar-state { display: inline-flex; align-items: center; gap: 10px; color: var(--spray); }

.archive-row-accent {
    background: rgba(194, 48, 48, 0.06);
    border-bottom-color: var(--drip);
}

.archive-row-accent .ar-glyph { color: var(--drip); }

.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--chalk);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(232, 229, 224, 0.5);
    animation: pulse-dot 1.6s ease-in-out infinite;
}
.pulse-dot.dim { background: var(--spray); box-shadow: none; animation: none; opacity: 0.5; }
.pulse-dot.red {
    background: var(--drip);
    box-shadow: 0 0 14px rgba(194, 48, 48, 0.75);
    animation: pulse-red 1.2s ease-in-out infinite;
}

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

@keyframes pulse-red {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 16px rgba(194,48,48,0.8); }
    50% { opacity: 0.55; transform: scale(0.75); box-shadow: 0 0 4px rgba(194,48,48,0.3); }
}

.drip-archive {
    position: absolute;
    top: 22%;
    right: 6vw;
    width: clamp(140px, 14vw, 220px);
}

/* ============================================================
   CHAPTER 05 — Signal
   ============================================================ */

.chapter-signal {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.signal-panel {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin-left: 6%;
    position: relative;
    z-index: 3;
}

.signal-bars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-content: flex-end;
    height: 260px;
    padding: 18px;
    background: rgba(28,28,28,0.65);
    border: 1px solid var(--graphite);
    border-left: 2px solid var(--drip);
    align-items: flex-end;
}

.signal-bars .bar {
    width: 8px;
    background: var(--chalk);
    opacity: 0.85;
    height: 40%;
    animation: bar-dance 1.6s ease-in-out infinite;
    transform-origin: bottom;
}

.signal-bars .bar:nth-child(3n) { background: var(--drip); opacity: 0.95; }
.signal-bars .bar:nth-child(odd) { animation-duration: 1.2s; }
.signal-bars .bar:nth-child(even) { animation-duration: 2.1s; }
.signal-bars .bar:nth-child(1)  { animation-delay: 0ms; height: 70%; }
.signal-bars .bar:nth-child(2)  { animation-delay: 80ms; height: 30%; }
.signal-bars .bar:nth-child(3)  { animation-delay: 160ms; height: 90%; }
.signal-bars .bar:nth-child(4)  { animation-delay: 240ms; height: 55%; }
.signal-bars .bar:nth-child(5)  { animation-delay: 320ms; height: 45%; }
.signal-bars .bar:nth-child(6)  { animation-delay: 400ms; height: 80%; }
.signal-bars .bar:nth-child(7)  { animation-delay: 480ms; height: 25%; }
.signal-bars .bar:nth-child(8)  { animation-delay: 560ms; height: 65%; }
.signal-bars .bar:nth-child(9)  { animation-delay: 640ms; height: 95%; }
.signal-bars .bar:nth-child(10) { animation-delay: 720ms; height: 50%; }
.signal-bars .bar:nth-child(11) { animation-delay: 800ms; height: 35%; }
.signal-bars .bar:nth-child(12) { animation-delay: 880ms; height: 75%; }
.signal-bars .bar:nth-child(13) { animation-delay: 960ms; height: 40%; }
.signal-bars .bar:nth-child(14) { animation-delay: 1040ms; height: 85%; }
.signal-bars .bar:nth-child(15) { animation-delay: 1120ms; height: 30%; }
.signal-bars .bar:nth-child(16) { animation-delay: 1200ms; height: 60%; }
.signal-bars .bar:nth-child(17) { animation-delay: 1280ms; height: 100%; }
.signal-bars .bar:nth-child(18) { animation-delay: 1360ms; height: 48%; }

@keyframes bar-dance {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.45); }
}

.signal-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--graphite);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--chalk);
    letter-spacing: 0.04em;
}

.sig-label {
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--spray);
    text-transform: uppercase;
    border-bottom: 1px dashed var(--graphite);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.sig-line { display: block; }

.sig-red {
    color: var(--drip);
    letter-spacing: 0.12em;
    border-left: 2px solid var(--drip);
    padding-left: 10px;
    margin-top: 6px;
}

.transmit-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-top: 8px;
}

.transmit-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.transmit-row-full { grid-column: 1 / -1; }

.transmit-row label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--spray);
    text-transform: uppercase;
}

.transmit-row input,
.transmit-row textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(10,10,10,0.8);
    border: 1px solid var(--graphite);
    color: var(--chalk);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    transition: border-color 260ms ease, background 260ms ease;
    resize: none;
}

.transmit-row input::placeholder,
.transmit-row textarea::placeholder {
    color: var(--spray);
    opacity: 0.7;
}

.transmit-row input:focus,
.transmit-row textarea:focus {
    border-color: var(--drip);
    background: rgba(28,28,28,0.9);
    outline: none;
}

.transmit-btn {
    grid-column: 1 / -1;
    padding: 18px 22px;
    background: var(--void);
    border: 1px solid var(--graphite);
    color: var(--chalk);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heavy);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: border-radius 300ms ease, border-color 300ms ease, background 300ms ease, color 300ms ease;
}

.transmit-btn:hover {
    border-color: var(--drip);
    background: rgba(194, 48, 48, 0.08);
    color: var(--raw);
    border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
}

.transmit-btn.fired {
    border-color: var(--drip);
    background: var(--drip);
    color: var(--void);
    border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
}

.btn-label { font-size: 18px; }
.btn-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--spray);
}
.transmit-btn:hover .btn-sub { color: var(--chalk); }
.transmit-btn.fired .btn-sub { color: var(--void); }

/* ============================================================
   CHAPTER 06 — Endmark
   ============================================================ */

.chapter-endmark {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 6vw 160px;
}

.endmark-wrap {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    text-align: left;
}

.endmark-big {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(2.6rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--chalk);
    filter: url(#dissolve-soft);
    margin: 0 0 40px 0;
}

.endmark-sub {
    font-family: var(--font-body);
    font-size: 16px;
    max-width: 40ch;
    color: var(--spray);
    border-left: 2px solid var(--drip);
    padding-left: 18px;
    margin: 0 0 60px 0;
}

.endmark-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 30px;
    padding: 26px 0;
    border-top: 1px solid var(--graphite);
    border-bottom: 1px solid var(--graphite);
}

.endmark-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid var(--graphite);
    padding-left: 14px;
}

.endmark-grid > div:first-child { border-left: 2px solid var(--drip); }

.em-key {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--spray);
    text-transform: uppercase;
}

.em-val {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--chalk);
    letter-spacing: 0.08em;
}

.endmark-signature {
    margin-top: 40px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--spray);
    text-transform: uppercase;
}

.drip-final {
    position: absolute;
    top: 12%;
    right: 6vw;
    width: clamp(200px, 22vw, 360px);
}

/* ============================================================
   Typewriter reveal machinery (js-applied)
   ============================================================ */

[data-typewriter] {
    visibility: hidden;
}
[data-typewriter].is-typing,
[data-typewriter].is-done {
    visibility: visible;
}

.tw-char {
    opacity: 0;
    display: inline-block;
    animation: tw-pop 80ms forwards;
}
.tw-char.space { min-width: 0.28em; }

@keyframes tw-pop {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
    :root { --nav-w: 44px; --rail-w: 20px; }

    .chapter { padding: 100px 5vw; }

    .manifesto-grid { grid-template-columns: 1fr; }
    .mb-01, .mb-02, .mb-03, .mb-04 {
        grid-column: 1 / -1;
        transform: none;
    }

    .signal-panel { grid-template-columns: 1fr; margin-left: 0; }
    .signal-bars { height: 180px; }
    .transmit-form { grid-template-columns: 1fr; }

    .trans-entry {
        grid-template-columns: 70px 28px 1fr;
        gap: 14px;
    }
    .trans-entry-offset { margin-left: 0; }

    .archive-row { grid-template-columns: 60px 80px 1fr; font-size: 11px; }
    .archive-row > *:nth-child(n+4) { display: none; }

    .endmark-grid { grid-template-columns: repeat(2, 1fr); }

    .corner-tl { left: calc(var(--nav-w) + 10px); }
    .corner-tr { right: calc(var(--rail-w) + 10px); }

    .hero-wordmark { margin: 30px 0; }
    .drip-hero, .drip-archive, .drip-floating, .drip-final { opacity: 0.55; }
}

@media (max-width: 560px) {
    .vnav-list { gap: 18px; }
    .chapter::before { font-size: clamp(3.4rem, 20vw, 8rem); top: 30px; }
    .hero-wordmark { width: 100%; transform: none; }
    .hero-line-2 { padding-left: 0; }
}

/* ============================================================
   Reduced motion — respect preferences
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-typewriter] { visibility: visible; }
    .tw-char { opacity: 1; }
}
