/* gabs.news — wheatpasted gossip wall on a slow-moving freight train */

:root {
    --paste-cream: #EEE5CD;
    --petrol-indigo: #1E2438;
    --cobalt-stencil: #2D62B8;
    --oxblood-tag: #8B2A2A;
    --wheatpaste-yellow: #D9B23A;
    --chainlink-steel: #5A5E66;
    --spray-cyan: #4FB6C5;
    --eol-black: #13110D;

    --mast-h: 8vh;
    --panel-w: 84vw;
    --panel-w-wide: 96vw;
    --panel-h: calc(100vh - var(--mast-h) - 4px);

    --shadow-paste: 2px 6px 0 0 rgba(20,18,14,0.18), 0 0 0 1px rgba(20,18,14,0.08);
    --shadow-paste-deep: 3px 10px 0 0 rgba(20,18,14,0.28), 0 0 0 1px rgba(20,18,14,0.10);
}

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

html {
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    background: var(--paste-cream);
    scroll-behavior: smooth;
}

body {
    height: 100%;
    width: max-content;
    background: var(--paste-cream);
    color: var(--petrol-indigo);
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.05rem;
    line-height: 1.65;
    position: relative;
    overflow: hidden;
}

/* Substrate texture: cream with subtle paper noise */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-linear-gradient(
            27deg,
            rgba(20,18,14,0.03) 0 1px,
            transparent 1px 7px
        ),
        radial-gradient(circle at 12% 20%, rgba(217,178,58,0.10) 0%, transparent 35%),
        radial-gradient(circle at 78% 65%, rgba(139,42,42,0.06) 0%, transparent 40%),
        radial-gradient(circle at 45% 80%, rgba(45,98,184,0.04) 0%, transparent 30%);
    mix-blend-mode: multiply;
}

/* Faint chainlink fence watermark on whole substrate */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    background-image:
        linear-gradient(45deg, transparent 47%, var(--eol-black) 47% 53%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, var(--eol-black) 47% 53%, transparent 53%);
    background-size: 36px 36px;
}

/* === MAST === */
.mast {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--mast-h);
    min-height: 64px;
    z-index: 50;
    color: var(--paste-cream);
    overflow: hidden;
    box-shadow: 0 4px 0 0 rgba(20,18,14,0.35);
}

.mast-bg {
    position: absolute;
    inset: 0;
    background: var(--chainlink-steel);
    background-image:
        repeating-linear-gradient(
            90deg,
            #4a4e56 0 4px,
            #6a6e76 4px 8px,
            #5A5E66 8px 12px
        ),
        linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.25) 100%);
}

.mast-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 4px;
    background: var(--wheatpaste-yellow);
    opacity: 0.85;
    box-shadow: 0 -2px 0 rgba(20,18,14,0.25);
}

.mast-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    gap: 22px;
}

.wordmark {
    font-family: "Big Shoulders Stencil Display", "Impact", sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3.4vh, 2.6rem);
    letter-spacing: 0.04em;
    color: var(--paste-cream);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transform: skewX(-2deg) scaleX(1.04);
    text-shadow:
        2px 0 0 var(--eol-black),
        0 0 1px rgba(20,18,14,0.6);
    flex-shrink: 0;
    padding: 0 6px;
}

.wordmark-tag { color: var(--paste-cream); }
.wordmark-dot { color: var(--wheatpaste-yellow); }
.wordmark-news { color: var(--spray-cyan); }

.wordmark-drips {
    position: absolute;
    left: 6px;
    bottom: -8px;
    width: 100%;
    height: 12px;
    pointer-events: none;
}
.wordmark-drips .drip {
    position: absolute;
    width: 2px;
    background: var(--paste-cream);
    bottom: 0;
}
.wordmark-drips .d1 { left: 18%; height: 8px; }
.wordmark-drips .d2 { left: 48%; height: 12px; background: var(--wheatpaste-yellow); }
.wordmark-drips .d3 { left: 76%; height: 6px; background: var(--spray-cyan); }

.mast-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-width: 0;
}

.tally {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 28px;
    padding: 0 8px;
    border-bottom: 2px solid rgba(238,229,205,0.35);
}

.tally-mark {
    display: inline-block;
    width: 3px;
    height: 22px;
    background: var(--paste-cream);
    transform: rotate(-7deg);
    opacity: 0.25;
    transition: opacity 280ms ease, background 280ms ease;
}

.tally-mark.lit {
    opacity: 1;
    background: var(--wheatpaste-yellow);
}

.fresh-paste {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: rgba(20,18,14,0.25);
    border: 1px dashed rgba(238,229,205,0.4);
    transform: rotate(-2deg);
}

.fresh-label {
    font-family: "Special Elite", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--paste-cream);
}

.mast-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mast-btn {
    width: 38px;
    height: 38px;
    background: rgba(20,18,14,0.4);
    border: 2px solid var(--paste-cream);
    color: var(--paste-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: skewX(-3deg);
    transition: background 200ms ease, transform 200ms ease;
    font-family: "Special Elite", monospace;
}

.mast-btn:hover {
    background: var(--oxblood-tag);
    transform: skewX(-3deg) translateY(-2px);
}

.sound-btn .sound-icon {
    font-size: 1rem;
    line-height: 1;
}

.sound-btn.muted .sound-icon {
    opacity: 0.4;
    text-decoration: line-through;
}

/* === WALL === */
.wall {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: max-content;
    height: 100vh;
    padding-top: var(--mast-h);
    padding-left: 4vw;
    padding-right: 4vw;
    gap: 0;
}

/* === PASTE-UP PANELS === */
.paste-up {
    position: relative;
    flex: 0 0 auto;
    width: var(--panel-w);
    min-height: var(--panel-h);
    padding: 64px 56px 80px;
    margin: 0 -36px;
    background: var(--paste-cream);
    color: var(--petrol-indigo);
    box-shadow: var(--shadow-paste);
    transform: rotate(var(--rot, 0deg));
    z-index: var(--z, 5);

    /* default torn-paper clip-path; will be overridden via inline custom prop */
    clip-path: var(--clip,
        polygon(
            0% 4%, 4% 1%, 12% 3%, 22% 0%, 36% 2%, 50% 1%, 64% 3%, 76% 0%, 88% 2%, 96% 1%, 100% 4%,
            99% 18%, 100% 38%, 98% 56%, 100% 74%, 99% 92%, 100% 96%,
            96% 99%, 84% 100%, 70% 98%, 56% 100%, 42% 99%, 28% 100%, 14% 98%, 4% 100%, 0% 96%,
            1% 80%, 0% 60%, 2% 40%, 0% 20%
        )
    );
    background-image:
        repeating-linear-gradient(
            91deg,
            rgba(20,18,14,0.014) 0 2px,
            transparent 2px 6px
        ),
        radial-gradient(circle at var(--smear-x, 30%) var(--smear-y, 70%), rgba(45,98,184,0.07) 0%, transparent 35%),
        radial-gradient(circle at 75% 25%, rgba(217,178,58,0.10) 0%, transparent 28%);

    opacity: 0;
    transform: rotate(var(--rot, 0deg)) translateY(-6px);
    transition: opacity 280ms ease-out, transform 280ms ease-out;
}

.paste-up.in-view {
    opacity: 1;
    transform: rotate(var(--rot, 0deg)) translateY(0);
}

.paste-up + .paste-up {
    margin-left: -68px;
}

/* WELCOME PANEL */
.welcome {
    width: var(--panel-w-wide);
    text-align: center;
    padding: 80px 80px 100px;
    background-image:
        repeating-linear-gradient(91deg, rgba(20,18,14,0.014) 0 2px, transparent 2px 6px),
        radial-gradient(circle at 50% 60%, rgba(217,178,58,0.16) 0%, transparent 50%);
}

.welcome-headline {
    font-family: "Big Shoulders Stencil Display", "Impact", sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 7.2rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--petrol-indigo);
    text-transform: uppercase;
    margin-bottom: 28px;
    transform: scaleX(1.04);
    text-shadow:
        3px 4px 0 rgba(45,98,184,0.18),
        6px 8px 0 rgba(20,18,14,0.06);
}

.welcome-headline .line {
    display: block;
    transform: rotate(var(--line-rot, 0deg));
}
.welcome-headline .line:nth-child(1) { --line-rot: -1.2deg; }
.welcome-headline .line:nth-child(2) { --line-rot: 0.6deg; color: var(--cobalt-stencil); }
.welcome-headline .line.big { --line-rot: -0.4deg; font-size: 1.4em; color: var(--oxblood-tag); }

.welcome-sub {
    font-family: "Permanent Marker", cursive;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    color: var(--oxblood-tag);
    transform: rotate(-2deg);
    margin-bottom: 32px;
}

.ascii-arrow {
    display: inline-block;
    margin: 24px auto 28px;
    text-align: left;
}

.ascii-arrow pre {
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1rem;
    color: var(--cobalt-stencil);
    line-height: 1.2;
    white-space: pre;
    letter-spacing: 0;
}

.welcome-foot {
    font-family: "Special Elite", monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--chainlink-steel);
    margin-top: 16px;
}

.drip-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

.paint-drip {
    display: inline-block;
    width: 4px;
    height: 30px;
    background: var(--cobalt-stencil);
    transform: skewX(-4deg);
}
.paint-drip:nth-child(2) { background: var(--oxblood-tag); height: 22px; }
.paint-drip:nth-child(3) { background: var(--spray-cyan); height: 36px; }

/* TAPE STRIPS */
.tape {
    position: absolute;
    width: 110px;
    height: 26px;
    background: rgba(217,178,58,0.65);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(20,18,14,0.10) 0 4px,
        transparent 4px 10px
    );
    box-shadow: 1px 2px 4px rgba(20,18,14,0.15);
    pointer-events: none;
}

.tape-tl {
    top: 18px;
    left: -20px;
    transform: rotate(-12deg);
}
.tape-tr {
    top: 14px;
    right: -22px;
    transform: rotate(8deg);
    background: rgba(45,98,184,0.5);
}

/* STAPLES */
.staples {
    position: absolute;
    top: 8px;
    right: 32px;
    width: 80px;
    height: 14px;
    pointer-events: none;
}

.staples::before, .staples::after {
    content: "";
    position: absolute;
    top: 0;
    width: 8px;
    height: 2px;
    background: var(--chainlink-steel);
    box-shadow:
        0 1px 0 rgba(20,18,14,0.4),
        12px 0 0 var(--chainlink-steel),
        12px 1px 0 rgba(20,18,14,0.4),
        24px 0 0 var(--chainlink-steel),
        24px 1px 0 rgba(20,18,14,0.4),
        36px 0 0 var(--chainlink-steel),
        36px 1px 0 rgba(20,18,14,0.4);
}
.staples::before { left: 0; }
.staples::after {
    left: 0;
    top: 8px;
    transform: rotate(-2deg);
    box-shadow:
        0 1px 0 rgba(20,18,14,0.4),
        14px 0 0 var(--chainlink-steel),
        28px 0 0 var(--chainlink-steel),
        42px 0 0 var(--chainlink-steel);
}

/* DATELINE */
.dateline {
    display: inline-block;
    margin-bottom: 18px;
    transform: rotate(-2deg);
}

.dateline-strip {
    display: inline-block;
    background: var(--wheatpaste-yellow);
    color: var(--petrol-indigo);
    padding: 4px 14px 5px;
    font-family: "Special Elite", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1.5px solid var(--petrol-indigo);
    box-shadow: 1px 2px 0 rgba(20,18,14,0.18);
}

/* HEADLINE */
.headline {
    font-family: "Big Shoulders Stencil Display", "Impact", sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.6vw, 4.6rem);
    line-height: 0.97;
    letter-spacing: 0.02em;
    color: var(--petrol-indigo);
    text-transform: uppercase;
    margin: 0 0 22px;
    transform: scaleX(1.04);
    position: relative;
    text-shadow:
        2px 3px 0 rgba(45,98,184,0.10);
}

.headline .hl-text {
    display: inline;
    background-image: linear-gradient(transparent 88%, rgba(45,98,184,0.18) 88%);
}

.headline .hl-drips {
    display: flex;
    gap: 22px;
    margin-top: 4px;
    padding-left: 14px;
}

.hl-drips .drip-line {
    display: inline-block;
    width: 2px;
    background: var(--petrol-indigo);
    height: var(--drip-h, 16px);
}
.hl-drips .drip-line:nth-child(1) { --drip-h: 14px; }
.hl-drips .drip-line:nth-child(2) { --drip-h: 22px; }
.hl-drips .drip-line:nth-child(3) { --drip-h: 10px; }
.hl-drips .drip-line:nth-child(4) { --drip-h: 18px; }

/* STANDFIRST */
.standfirst {
    font-family: "Special Elite", monospace;
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--petrol-indigo);
    margin-bottom: 18px;
    max-width: 62ch;
    transform: rotate(-0.4deg);
}

/* BYLINE */
.byline {
    font-family: "Special Elite", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--chainlink-steel);
    margin-bottom: 22px;
    border-top: 1px dashed rgba(30,36,56,0.3);
    border-bottom: 1px dashed rgba(30,36,56,0.3);
    padding: 6px 0;
    max-width: 36ch;
}

.byline strong {
    color: var(--petrol-indigo);
    font-weight: 400;
    letter-spacing: 0.06em;
}

.byline .star {
    margin-left: 8px;
    color: var(--oxblood-tag);
    font-family: "Permanent Marker", cursive;
    transform: rotate(-4deg);
    display: inline-block;
}

/* BODY */
.body {
    font-family: "Special Elite", monospace;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--petrol-indigo);
    margin-bottom: 18px;
    max-width: 64ch;
    column-count: 1;
}

.body .circled-word {
    position: relative;
    display: inline-block;
    padding: 0 6px;
    font-style: italic;
}

.body .circled-word::before {
    content: "";
    position: absolute;
    inset: -4px -2px;
    border: 2px solid var(--oxblood-tag);
    border-radius: 50%;
    transform: rotate(-3deg);
    pointer-events: none;
}

/* PULL QUOTE */
.pullquote-wrap {
    position: relative;
    margin: 26px 0 30px;
    padding: 20px 36px 24px;
    max-width: 56ch;
    transform: rotate(-1.2deg);
}

.pullquote {
    font-family: "Permanent Marker", cursive;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--petrol-indigo);
    font-style: normal;
    position: relative;
    z-index: 2;
}

.pullquote::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--spray-cyan);
    position: absolute;
    top: -22px;
    left: -14px;
    font-family: "Big Shoulders Stencil Display", sans-serif;
}

.circle-svg {
    position: absolute;
    inset: -8px -10px;
    width: calc(100% + 20px);
    height: calc(100% + 16px);
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.hand-circle {
    fill: none;
    stroke: var(--spray-cyan);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    transition: stroke-dashoffset 900ms ease-out;
    filter: drop-shadow(1px 1px 0 rgba(20,18,14,0.15));
}

.in-view .hand-circle {
    stroke-dashoffset: 0;
}

/* TAGS */
.tag-line {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.tag-flag {
    display: inline-block;
    background: var(--cobalt-stencil);
    color: var(--paste-cream);
    padding: 4px 12px;
    font-family: "Big Shoulders Stencil Display", sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: rotate(-3deg) skewX(-4deg);
    box-shadow: 2px 2px 0 rgba(20,18,14,0.3);
}

.tag-flag.oxblood {
    background: var(--oxblood-tag);
    transform: rotate(2deg) skewX(-4deg);
}

/* MARGIN ARROW */
.margin-arrow {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: rotate(-3deg);
}

.arrow-text {
    font-family: "Permanent Marker", cursive;
    color: var(--oxblood-tag);
    font-size: 1.1rem;
}

.arrow-draw {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 900ms ease-out;
}

.in-view .arrow-draw {
    stroke-dashoffset: 0;
}

/* STRIKETHROUGH RETRACTION */
.strikethrough-claim {
    font-family: "Special Elite", monospace;
    font-size: 0.96rem;
    color: var(--chainlink-steel);
    margin-top: 18px;
    padding: 10px 14px;
    border-left: 3px solid var(--oxblood-tag);
    background: rgba(139,42,42,0.04);
    max-width: 60ch;
}

.strikethrough-claim s {
    color: var(--oxblood-tag);
    text-decoration-thickness: 3px;
}

.correction {
    color: var(--petrol-indigo);
    font-style: italic;
    display: block;
    margin-top: 4px;
}

/* HALFTONE IMAGE */
.halftone-image {
    margin-top: 22px;
    width: 240px;
    height: 180px;
    position: relative;
    transform: rotate(-2deg);
    box-shadow: var(--shadow-paste);
    background: var(--petrol-indigo);
    background-image:
        radial-gradient(circle at 30% 40%, var(--cobalt-stencil) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, var(--oxblood-tag) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, var(--paste-cream) 0%, transparent 25%);
    overflow: hidden;
}

.halftone-mask {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, var(--petrol-indigo) 1.2px, transparent 1.4px);
    background-size: 4px 4px;
    mix-blend-mode: multiply;
    opacity: 0.7;
}

.halftone-image::after {
    content: "";
    position: absolute;
    top: 38%;
    left: 32%;
    width: 60%;
    height: 4px;
    background: var(--oxblood-tag);
    transform: rotate(-12deg);
    box-shadow: 0 0 1px rgba(20,18,14,0.6);
}

.halftone-marker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20,18,14,0.85);
    color: var(--paste-cream);
    font-family: "Special Elite", monospace;
    font-size: 0.7rem;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* === SIGNPOSTS === */
.signpost {
    position: relative;
    flex: 0 0 auto;
    width: 56vw;
    min-height: var(--panel-h);
    margin: 0 -28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--petrol-indigo);
    color: var(--paste-cream);
    z-index: 6;
    clip-path: polygon(
        4% 0%, 100% 2%, 96% 100%, 0% 98%
    );
    box-shadow: var(--shadow-paste-deep);
    transform: rotate(var(--rot, -1deg));

    opacity: 0;
    transition: opacity 360ms ease-out;
}

.signpost.in-view { opacity: 1; }

.signpost-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            91deg,
            rgba(238,229,205,0.025) 0 2px,
            transparent 2px 5px
        ),
        radial-gradient(circle at 30% 50%, rgba(45,98,184,0.25) 0%, transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(217,178,58,0.10) 0%, transparent 35%);
}

.signpost-label {
    font-family: "Big Shoulders Stencil Display", "Impact", sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 11rem);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--wheatpaste-yellow);
    text-transform: uppercase;
    transform: scaleX(1.04) rotate(-2deg);
    text-shadow:
        4px 5px 0 var(--oxblood-tag),
        8px 9px 0 rgba(20,18,14,0.4);
    position: relative;
    z-index: 2;
}

.stencil-mask {
    display: inline-block;
    overflow: hidden;
    position: relative;
}

.stencil-mask::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--petrol-indigo);
    transform: translateX(0);
    transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 3;
}

.signpost.in-view .stencil-mask::before {
    transform: translateX(105%);
}

.signpost-sub {
    font-family: "Permanent Marker", cursive;
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
    color: var(--spray-cyan);
    margin-top: 18px;
    transform: rotate(-3deg);
    z-index: 2;
    position: relative;
}

/* === EOL PANEL === */
.paste-up.eol {
    background: var(--paste-cream);
    width: var(--panel-w-wide);
    text-align: center;
    padding: 80px 80px 100px;
    overflow: hidden;
}

.fence-silhouette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        linear-gradient(180deg, transparent 0%, rgba(19,17,13,0.0) 70%, var(--eol-black) 100%),
        repeating-linear-gradient(
            45deg,
            transparent 0 12px,
            rgba(19,17,13,0.18) 12px 14px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0 12px,
            rgba(19,17,13,0.18) 12px 14px
        );
}

.fence-silhouette::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background:
        radial-gradient(ellipse at 20% 100%, var(--eol-black) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 100%, var(--eol-black) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, var(--eol-black) 0%, transparent 65%);
}

.eol-sign {
    position: relative;
    z-index: 2;
    background: var(--paste-cream);
    padding: 48px 60px;
    transform: rotate(-2deg);
    box-shadow: var(--shadow-paste-deep);
    border: 3px solid var(--eol-black);
    display: inline-block;
    max-width: 80%;
}

.eol-headline {
    font-family: "Big Shoulders Stencil Display", sans-serif;
    line-height: 0.9;
    margin-bottom: 24px;
}

.eol-line {
    display: block;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    color: var(--oxblood-tag);
    text-shadow: 4px 5px 0 var(--eol-black);
    letter-spacing: 0.04em;
}

.eol-sub {
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--petrol-indigo);
    letter-spacing: 0.18em;
    margin-top: 6px;
}

.eol-paste {
    font-family: "Permanent Marker", cursive;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--cobalt-stencil);
    margin: 16px 0 28px;
    transform: rotate(-1deg);
    line-height: 1.4;
}

.back-arrow {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    color: var(--oxblood-tag);
    cursor: pointer;
    padding: 8px 14px;
    transition: transform 220ms ease;
}

.back-arrow:hover {
    transform: translateX(-6px);
}

.back-arrow-label {
    font-family: "Big Shoulders Stencil Display", sans-serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 0.96rem;
}

/* === FREIGHT MOTION STRIP === */
.freight-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 4px;
    background: var(--eol-black);
    z-index: 40;
    overflow: hidden;
}

.freight-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 400vw;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0 60px,
            var(--chainlink-steel) 60px 62px,
            transparent 62px 80px,
            var(--paste-cream) 80px 82px,
            transparent 82px 140px
        );
    will-change: transform;
}

/* === MODAL === */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(19,17,13,0.78);
    background-image:
        linear-gradient(45deg, transparent 47%, rgba(238,229,205,0.05) 47% 53%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, rgba(238,229,205,0.05) 47% 53%, transparent 53%);
    background-size: 36px 36px, 36px 36px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
}

.modal-backdrop.open {
    display: flex;
    animation: backdrop-fade 280ms ease-out;
}

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

.modal-paste {
    position: relative;
    background: var(--paste-cream);
    color: var(--petrol-indigo);
    width: min(900px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 60px 60px 60px;
    box-shadow: var(--shadow-paste-deep);
    transform: rotate(-1deg) translateY(40px);
    opacity: 0;
    transition: transform 360ms ease-out, opacity 360ms ease-out;
    clip-path: polygon(
        0% 3%, 6% 1%, 16% 2%, 28% 0%, 42% 2%, 58% 1%, 72% 3%, 84% 0%, 96% 2%, 100% 5%,
        99% 22%, 100% 40%, 98% 60%, 100% 78%, 99% 95%,
        94% 99%, 80% 100%, 66% 98%, 52% 100%, 38% 99%, 22% 100%, 8% 98%, 0% 96%,
        2% 80%, 0% 60%, 1% 38%, 0% 18%
    );
}

.modal-backdrop.open .modal-paste {
    transform: rotate(-1deg) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    background: var(--oxblood-tag);
    color: var(--paste-cream);
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-family: "Big Shoulders Stencil Display", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    transform: rotate(4deg);
    box-shadow: 2px 2px 0 rgba(20,18,14,0.4);
}

.modal-close:hover {
    transform: rotate(8deg) scale(1.05);
}

.modal-content h2 {
    font-family: "Big Shoulders Stencil Display", sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.6vw, 3.2rem);
    line-height: 1;
    margin-bottom: 18px;
    color: var(--petrol-indigo);
    text-transform: uppercase;
    transform: scaleX(1.04);
}

.modal-content .modal-meta {
    font-family: "Special Elite", monospace;
    color: var(--chainlink-steel);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
    border-top: 1px dashed rgba(30,36,56,0.3);
    border-bottom: 1px dashed rgba(30,36,56,0.3);
    padding: 6px 0;
}

.modal-content .modal-body {
    font-family: "Special Elite", monospace;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--petrol-indigo);
}

.modal-content .modal-body p { margin-bottom: 14px; }

/* === HOVER MARKER CURSOR === */
.headline, .pullquote-wrap, .signpost-label {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><path d='M4 4 L18 18 L26 18 L18 26 Z' fill='%231E2438' stroke='%2313110D' stroke-width='1'/><circle cx='5' cy='25' r='2' fill='%234FB6C5'/></svg>") 4 4, crosshair;
}

/* === RESPONSIVE / REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .paste-up, .signpost {
        opacity: 1 !important;
        transform: rotate(var(--rot, 0deg)) !important;
    }
    .hand-circle, .arrow-draw {
        stroke-dashoffset: 0 !important;
    }
    .stencil-mask::before { display: none; }
    .freight-track { animation: none !important; }
}

@media (max-width: 720px) {
    :root {
        --panel-w: 92vw;
        --panel-w-wide: 96vw;
    }
    .paste-up { padding: 48px 28px 60px; }
    .welcome { padding: 60px 28px 70px; }
    .signpost { width: 86vw; }
    .signpost-label { font-size: clamp(3rem, 14vw, 7rem); }
    .mast-center .tally { display: none; }
    .fresh-paste { display: none; }
}
