/* ============================================================
   a6c.boo v2 — Coastal Graffiti / Horizontal-Scroll Wall
   ============================================================ */

/* --- Palette (Coastal Graffiti) --- */
:root {
    --spray-cyan: #00BCD4;
    --coral-burst: #FF6B6B;
    --sand-haze: #F5E6CC;
    --deep-asphalt: #1A1A2E;
    --salt-white: #F8F6F0;
    --drip-gold: #E6A817;
    --seafoam-mist: #A8E6CF;

    --font-tag: 'Permanent Marker', 'Inter', cursive;
    --font-body: 'Space Grotesk', 'Inter', sans-serif;
    --font-hand: 'Caveat', 'Space Grotesk', cursive;

    --ease-paint: cubic-bezier(.22,.9,.32,1.2);
    --ease-grav: cubic-bezier(.55,.05,.6,1);
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--deep-asphalt);
    color: var(--salt-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: none;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ============================================================
   Custom spray-can cursor halo
   ============================================================ */
.cursor-halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--spray-cyan);
    background: radial-gradient(circle, rgba(0,188,212,0.25) 0%, rgba(0,188,212,0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.18s var(--ease-paint),
                height 0.18s var(--ease-paint),
                border-color 0.18s var(--ease-paint),
                background 0.18s var(--ease-paint);
    will-change: transform, width, height;
}

.cursor-halo.is-spraying {
    width: 56px;
    height: 56px;
    border-color: var(--coral-burst);
    background: radial-gradient(circle, rgba(255,107,107,0.45) 0%, rgba(255,107,107,0) 75%);
}

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
}

/* ============================================================
   Horizontal-scroll wall container
   ============================================================ */
.wall {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.wall::-webkit-scrollbar { display: none; }

.panel {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    isolation: isolate;
}

/* Wall surface backgrounds (SVG patterns + tonal layer) */
.panel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.panel-bg[data-pattern="brick"] {
    background-color: var(--deep-asphalt);
    background-image:
        repeating-linear-gradient(0deg,
            rgba(248,246,240,0.08) 0 1px,
            transparent 1px 30px),
        repeating-linear-gradient(90deg,
            rgba(248,246,240,0.06) 0 1px,
            transparent 1px 120px);
}
.panel-bg[data-pattern="brick"]::before,
.panel-bg[data-pattern="brick"]::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.panel-bg[data-pattern="brick"]::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0,188,212,0.10), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255,107,107,0.10), transparent 55%);
    mix-blend-mode: screen;
}
.panel-bg[data-pattern="concrete"] {
    background-color: var(--sand-haze);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(26,26,46,0.05) 0 2px, transparent 3px),
        radial-gradient(circle at 60% 70%, rgba(26,26,46,0.06) 0 1.5px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(26,26,46,0.04) 0 2px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(26,26,46,0.05) 0 1px, transparent 2px);
    background-size: 200px 200px, 240px 240px, 180px 180px, 160px 160px;
}
.panel-bg[data-pattern="metal"] {
    background-color: var(--salt-white);
    background-image:
        repeating-linear-gradient(0deg,
            rgba(26,26,46,0.10) 0 1px,
            transparent 1px 7px),
        linear-gradient(135deg, rgba(168,230,207,0.20), rgba(0,188,212,0.10));
}
.panel-bg[data-pattern="plaster"] {
    background-color: var(--salt-white);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(168,230,207,0.20), transparent 60%),
        radial-gradient(ellipse at 75% 80%, rgba(230,168,23,0.10), transparent 60%),
        repeating-linear-gradient(45deg,
            rgba(26,26,46,0.025) 0 2px,
            transparent 2px 14px);
}

/* Coastal organic blobs (drift) */
.coastal-blob {
    position: absolute;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    background: var(--seafoam-mist);
    opacity: 0.18;
    z-index: 1;
    pointer-events: none;
    filter: blur(2px);
    animation: blobDrift 32s ease-in-out infinite;
    mix-blend-mode: multiply;
}
.blob-a { top: 8%; left: 6%; width: 32vw; height: 32vw; animation-delay: 0s; }
.blob-b { bottom: 10%; right: 8%; width: 26vw; height: 26vw; background: var(--spray-cyan); opacity: 0.10; animation-delay: -8s; mix-blend-mode: screen; }
.blob-c { top: 12%; right: 14%; width: 28vw; height: 28vw; animation-delay: -4s; }
.blob-d { bottom: 14%; left: 10%; width: 24vw; height: 24vw; background: var(--drip-gold); opacity: 0.10; animation-delay: -14s; }
.blob-e { top: 30%; left: 38%; width: 36vw; height: 36vw; animation-delay: -18s; }

@keyframes blobDrift {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    33%  { transform: translate(4vw, -2vw) rotate(8deg) scale(1.05); }
    66%  { transform: translate(-3vw, 3vw) rotate(-6deg) scale(0.97); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Ghost layered tags (decorative background) */
.ghost-tags {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.ghost-tag {
    position: absolute;
    font-family: var(--font-tag);
    font-size: clamp(120px, 18vw, 320px);
    color: var(--salt-white);
    opacity: 0.05;
    letter-spacing: 0.02em;
    white-space: nowrap;
    user-select: none;
}
.ghost-tag.tag-1 { top: 4%; left: -3%; transform: rotate(-6deg); color: var(--spray-cyan); opacity: 0.07; }
.ghost-tag.tag-2 { bottom: 6%; right: -4%; transform: rotate(8deg); color: var(--coral-burst); opacity: 0.06; }
.ghost-tag.tag-3 { top: 38%; right: 10%; transform: rotate(-3deg); color: var(--drip-gold); opacity: 0.05; font-size: clamp(80px, 12vw, 220px); }

/* ============================================================
   PANEL 1 – Opening hero (A6C spray + .boo stencil)
   ============================================================ */
.panel-opening .hero-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4vh 6vw;
}

.a6c-svg {
    width: min(72vw, 720px);
    height: auto;
    overflow: visible;
    transform: rotate(-1.5deg);
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.45));
}

.a6c-svg .stroke {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: spraydraw 2.4s var(--ease-paint) forwards;
}
.a6c-svg .stroke-a { animation-delay: 0.15s; }
.a6c-svg .stroke-6 { animation-delay: 0.85s; }
.a6c-svg .stroke-c { animation-delay: 1.55s; }

@keyframes spraydraw {
    0%   { stroke-dashoffset: 900; opacity: 0.9; }
    20%  { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

.boo-stencil {
    margin-top: 2.8vh;
    font-family: var(--font-tag);
    font-size: clamp(48px, 8vw, 120px);
    line-height: 1;
    color: var(--salt-white);
    letter-spacing: 0.04em;
    transform: rotate(1.2deg);
    filter: url(#ripple-soft);
    opacity: 0;
    animation: stencilIn 1.2s var(--ease-paint) 2.6s forwards;
}
.boo-dot { color: var(--coral-burst); margin-right: 0.06em; }
.boo-letter { display: inline-block; }
.boo-letter:nth-child(2) { transform: rotate(-2deg); }
.boo-letter:nth-child(3) { transform: rotate(1deg); }
.boo-letter:nth-child(4) { transform: rotate(-1deg); color: var(--seafoam-mist); }

@keyframes stencilIn {
    0%   { opacity: 0; transform: rotate(1.2deg) translateY(8px); }
    100% { opacity: 1; transform: rotate(1.2deg) translateY(0); }
}

.opening-tag {
    margin-top: 4vh;
    font-family: var(--font-hand);
    font-size: clamp(16px, 1.4vw, 22px);
    color: var(--seafoam-mist);
    letter-spacing: 0.04em;
    opacity: 0;
    animation: fadeUp 0.9s ease 3.4s forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Drips (CSS-only paint drops hanging from edges)
   ============================================================ */
.drip {
    position: absolute;
    top: 0;
    left: var(--x, 50%);
    width: 6px;
    height: 0;
    border-radius: 0 0 50% 50% / 0 0 60% 60%;
    transform-origin: top center;
    background: var(--spray-cyan);
    z-index: 4;
    pointer-events: none;
    animation: dripFall 3.2s var(--ease-grav) var(--d, 0s) infinite;
}
.drip.drip-cyan  { background: var(--spray-cyan); box-shadow: 0 0 8px rgba(0,188,212,0.35); }
.drip.drip-coral { background: var(--coral-burst); box-shadow: 0 0 8px rgba(255,107,107,0.35); }
.drip.drip-gold  { background: var(--drip-gold); box-shadow: 0 0 8px rgba(230,168,23,0.35); }

@keyframes dripFall {
    0%   { height: 0; opacity: 0.95; transform: skewY(0deg); }
    35%  { height: 90px; opacity: 1; transform: skewY(-1.5deg); }
    65%  { height: 130px; opacity: 0.85; }
    100% { height: 160px; opacity: 0; transform: skewY(1deg); }
}

/* ============================================================
   PANEL 2 – Manifesto
   ============================================================ */
.panel-manifesto .manifesto-stack {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vh 10vw;
    color: var(--deep-asphalt);
    max-width: 88vw;
}

.kicker {
    display: inline-block;
    font-family: var(--font-hand);
    font-size: clamp(18px, 1.6vw, 26px);
    color: var(--coral-burst);
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
    transform: rotate(-1deg);
}
.kicker-corner {
    position: absolute;
    top: 6vh;
    left: 8vw;
    z-index: 3;
}

.manifesto-headline {
    font-family: var(--font-tag);
    font-size: clamp(48px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: 0.005em;
    color: var(--deep-asphalt);
    margin-bottom: 3rem;
    transform: rotate(-1.2deg);
    filter: url(#stencil-rough);
    max-width: 14ch;
}

.manifesto-body {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.15vw, 19px);
    line-height: 1.6;
    color: var(--deep-asphalt);
    max-width: 52ch;
    margin-bottom: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.quote-strip {
    margin-top: 2.4rem;
    padding: 1.4rem 1.8rem;
    border-left: 4px solid var(--spray-cyan);
    background: rgba(0,188,212,0.08);
    max-width: 52ch;
    transform: rotate(0.4deg);
    position: relative;
}
.quote-strip .quote-mark {
    font-family: var(--font-tag);
    color: var(--coral-burst);
    font-size: 2rem;
    margin-right: 0.4rem;
    vertical-align: -6px;
}
.quote-strip .quote-mark.close { margin-left: 0.4rem; margin-right: 0; }
.quote-strip .quote-text {
    font-family: var(--font-hand);
    font-size: clamp(20px, 1.8vw, 28px);
    color: var(--deep-asphalt);
    font-style: normal;
    line-height: 1.4;
}

/* ============================================================
   PANEL 3 – Alphabet wall (26 spray tags)
   ============================================================ */
.panel-alphabet {
    color: var(--deep-asphalt);
}

.panel-alphabet .panel-heading {
    position: relative;
    z-index: 2;
    margin: 14vh 0 5vh 8vw;
    font-family: var(--font-tag);
    font-size: clamp(40px, 6.4vw, 96px);
    color: var(--deep-asphalt);
    transform: rotate(-1.2deg);
    filter: url(#stencil-rough);
    max-width: 80vw;
}

.alphabet-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
    width: 84vw;
    margin: 0 auto;
    padding: 0 8vw;
}

.letter-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248,246,240,0.85);
    border: 2px solid var(--deep-asphalt);
    font-family: var(--font-tag);
    font-size: clamp(22px, 2.6vw, 40px);
    color: var(--deep-asphalt);
    position: relative;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.32s var(--ease-paint),
                background 0.32s ease,
                color 0.32s ease,
                box-shadow 0.32s ease;
    cursor: none;
    overflow: hidden;
    user-select: none;
}
.letter-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent, var(--spray-cyan));
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-paint);
    z-index: -1;
}
.letter-cell:hover,
.letter-cell.is-active {
    color: var(--salt-white);
    background: var(--accent, var(--spray-cyan));
    transform: rotate(0deg) scale(1.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}
.letter-cell:hover::after,
.letter-cell.is-active::after {
    opacity: 1;
    transform: scale(1);
}

.letter-cell .letter-glyph {
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.letter-cell .letter-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.alphabet-hint {
    position: absolute;
    bottom: 9vh;
    right: 10vw;
    z-index: 2;
    font-family: var(--font-hand);
    font-size: clamp(16px, 1.4vw, 22px);
    color: var(--coral-burst);
    transform: rotate(-2deg);
}

/* ============================================================
   PANEL 4 – Coastal palette
   ============================================================ */
.panel-coastal {
    color: var(--deep-asphalt);
}
.panel-coastal .kicker {
    position: absolute;
    top: 7vh;
    left: 8vw;
    z-index: 3;
}
.panel-coastal .panel-heading {
    position: absolute;
    top: 11vh;
    left: 8vw;
    z-index: 2;
    font-family: var(--font-tag);
    font-size: clamp(38px, 6vw, 90px);
    color: var(--deep-asphalt);
    transform: rotate(-1deg);
    filter: url(#stencil-rough);
    max-width: 80vw;
    line-height: 0.96;
}

.palette-row {
    position: absolute;
    bottom: 10vh;
    left: 8vw;
    right: 8vw;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
}

.swatch {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(248,246,240,0.78);
    border: 2px solid var(--deep-asphalt);
    overflow: hidden;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.32s var(--ease-paint), box-shadow 0.32s ease;
    position: relative;
}
.swatch:nth-child(1) { --rot: -1.2deg; }
.swatch:nth-child(2) { --rot:  1deg; }
.swatch:nth-child(3) { --rot: -0.6deg; }
.swatch:nth-child(4) { --rot:  1.4deg; }
.swatch:nth-child(5) { --rot: -1.2deg; }
.swatch:nth-child(6) { --rot:  0.6deg; }
.swatch:nth-child(7) { --rot: -1.4deg; }
.swatch:hover,
.swatch.is-hot {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 0 12px 26px rgba(0,0,0,0.20);
    z-index: 5;
}
.swatch::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 0;
    background: var(--c, var(--spray-cyan));
    transition: height 0.4s var(--ease-grav);
    border-radius: 0 0 60% 40% / 0 0 100% 100%;
    pointer-events: none;
}
.swatch:hover::after,
.swatch.is-hot::after {
    height: 14px;
}
.swatch-chip {
    width: 100%;
    height: 130px;
    background: var(--c);
    position: relative;
    border-bottom: 2px solid var(--deep-asphalt);
}
.swatch-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 40%),
        radial-gradient(circle at 75% 80%, rgba(0,0,0,0.12), transparent 50%);
    mix-blend-mode: overlay;
    pointer-events: none;
}
.swatch-meta {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.swatch-name {
    font-family: var(--font-tag);
    font-size: clamp(18px, 1.4vw, 22px);
    color: var(--deep-asphalt);
    text-transform: lowercase;
    letter-spacing: 0.01em;
}
.swatch-hex {
    font-family: var(--font-body);
    font-size: clamp(11px, 0.9vw, 14px);
    color: var(--coral-burst);
    font-weight: 500;
    letter-spacing: 0.06em;
}
.swatch-note {
    font-family: var(--font-hand);
    font-size: clamp(13px, 1vw, 17px);
    color: var(--deep-asphalt);
    opacity: 0.8;
    margin-top: 4px;
}

/* ============================================================
   PANEL 5 – Rituals (numbered drip cards)
   ============================================================ */
.panel-rituals {
    color: var(--salt-white);
}
.panel-rituals .kicker {
    position: absolute;
    top: 7vh;
    left: 8vw;
    z-index: 3;
    color: var(--seafoam-mist);
}
.panel-rituals .panel-heading {
    position: absolute;
    top: 12vh;
    left: 8vw;
    z-index: 2;
    font-family: var(--font-tag);
    font-size: clamp(38px, 6vw, 90px);
    color: var(--salt-white);
    transform: rotate(-1.4deg);
    max-width: 78vw;
}

.ritual-grid {
    position: absolute;
    top: 32vh;
    left: 8vw;
    right: 8vw;
    bottom: 12vh;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 22px;
}

.ritual-card {
    position: relative;
    padding: 28px 26px 32px;
    background: rgba(248,246,240,0.07);
    border: 2px solid rgba(248,246,240,0.25);
    color: var(--salt-white);
    overflow: hidden;
    transform: rotate(var(--rot, 0deg)) translateY(20px);
    opacity: 0;
    transition: transform 0.6s var(--ease-paint),
                opacity 0.6s var(--ease-paint),
                background 0.4s ease;
    backdrop-filter: blur(2px);
}
.ritual-card:nth-child(1) { --rot: -0.8deg; }
.ritual-card:nth-child(2) { --rot:  0.6deg; }
.ritual-card:nth-child(3) { --rot: -1deg; }
.ritual-card:nth-child(4) { --rot:  1.2deg; }
.ritual-card:nth-child(5) { --rot: -0.6deg; }
.ritual-card:nth-child(6) { --rot:  0.8deg; }

.ritual-card.is-revealed {
    opacity: 1;
    transform: rotate(var(--rot, 0deg)) translateY(0);
}
.ritual-card:hover {
    background: rgba(0,188,212,0.10);
}
.ritual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    bottom: -2px;
    height: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,188,212,0.18) 100%);
    transition: height 0.4s var(--ease-grav);
    pointer-events: none;
}
.ritual-card:hover::before { height: 100%; }

.ritual-num {
    display: inline-block;
    font-family: var(--font-tag);
    font-size: clamp(22px, 2vw, 30px);
    color: var(--drip-gold);
    margin-bottom: 12px;
    transform: rotate(-3deg);
    letter-spacing: 0.04em;
}
.ritual-title {
    font-family: var(--font-tag);
    font-size: clamp(22px, 2.2vw, 32px);
    color: var(--salt-white);
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: 0.005em;
    transform: rotate(-0.5deg);
    font-weight: 400;
}
.ritual-body {
    font-family: var(--font-body);
    font-size: clamp(13px, 1vw, 16px);
    color: var(--sand-haze);
    line-height: 1.55;
    letter-spacing: 0.01em;
    font-weight: 400;
}

/* ============================================================
   PANEL 6 – Closing
   ============================================================ */
.panel-closing {
    color: var(--deep-asphalt);
}
.panel-closing .closing-stack {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8vh 10vw;
}
.panel-closing .kicker { color: var(--coral-burst); }

.closing-headline {
    font-family: var(--font-tag);
    font-size: clamp(48px, 7.6vw, 116px);
    line-height: 0.95;
    color: var(--deep-asphalt);
    transform: rotate(-1.2deg);
    margin-bottom: 2.4rem;
    filter: url(#stencil-rough);
    max-width: 16ch;
}

.closing-body {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.2vw, 19px);
    color: var(--deep-asphalt);
    max-width: 56ch;
    margin-bottom: 2.4rem;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.signature-line {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border-top: 2px solid var(--deep-asphalt);
    border-bottom: 2px solid var(--deep-asphalt);
    transform: rotate(-0.6deg);
    margin-bottom: 2rem;
}
.sig-mark {
    font-family: var(--font-tag);
    color: var(--coral-burst);
    font-size: 1.4rem;
}
.sig-text {
    font-family: var(--font-tag);
    font-size: clamp(16px, 1.4vw, 22px);
    color: var(--deep-asphalt);
    letter-spacing: 0.06em;
}

.rewind-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--deep-asphalt);
    color: var(--salt-white);
    font-family: var(--font-tag);
    font-size: clamp(16px, 1.4vw, 22px);
    letter-spacing: 0.06em;
    border: 2px solid var(--deep-asphalt);
    transform: rotate(-1deg);
    transition: transform 0.32s var(--ease-paint),
                background 0.32s ease,
                color 0.32s ease;
    position: relative;
    overflow: hidden;
}
.rewind-btn:hover {
    background: var(--coral-burst);
    color: var(--salt-white);
    transform: rotate(0deg) scale(1.04);
}
.rewind-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 0;
    background: var(--drip-gold);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transition: height 0.4s var(--ease-grav);
    pointer-events: none;
}
.rewind-btn:hover::after { height: 12px; }
.rewind-ico {
    font-family: var(--font-body);
    font-size: 1.2em;
}

/* ============================================================
   Bottom progress nav (spray-paint line)
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
    pointer-events: none;
}
.nav-line {
    position: absolute;
    left: 6vw;
    right: 6vw;
    bottom: 16px;
    height: 3px;
    background:
        linear-gradient(90deg,
            var(--spray-cyan) 0%,
            var(--coral-burst) 50%,
            var(--drip-gold) 100%);
    border-radius: 3px;
    opacity: 0.55;
    filter: url(#ripple-soft);
}
.nav-line::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1.5px;
    bottom: -1.5px;
    background: inherit;
    filter: blur(4px);
    opacity: 0.6;
}

.nav-tags {
    list-style: none;
    display: flex;
    gap: 18px;
    pointer-events: auto;
    z-index: 2;
    margin: 0 auto;
}
.nav-tag {
    font-family: var(--font-tag);
    font-size: clamp(14px, 1vw, 16px);
    color: var(--salt-white);
    background: var(--deep-asphalt);
    padding: 6px 14px;
    border: 2px solid var(--salt-white);
    letter-spacing: 0.08em;
    transform: rotate(-2deg);
    transition: transform 0.28s var(--ease-paint),
                background 0.28s ease,
                color 0.28s ease;
    cursor: none;
}
.nav-tag:nth-child(2n)     { transform: rotate(2deg); }
.nav-tag:nth-child(3n)     { transform: rotate(-1deg); }
.nav-tag:hover,
.nav-tag.is-active {
    background: var(--coral-burst);
    color: var(--salt-white);
    transform: rotate(0deg) scale(1.06);
}
.nav-tag.is-active {
    background: var(--spray-cyan);
}

.nav-progress {
    position: absolute;
    left: 6vw;
    right: 6vw;
    bottom: 16px;
    height: 3px;
    pointer-events: none;
    overflow: hidden;
    border-radius: 3px;
}
.nav-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--salt-white);
    box-shadow: 0 0 8px var(--salt-white);
    transition: width 0.18s ease-out;
}

/* ============================================================
   Right-edge scroll hint
   ============================================================ */
.scroll-hint {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--seafoam-mist);
    font-family: var(--font-hand);
    font-size: 16px;
    pointer-events: none;
    opacity: 0;
    animation: hintIn 0.8s ease 3.8s forwards,
               hintPulse 1.6s var(--ease-paint) 4.6s infinite;
}
.scroll-hint .hint-arrow {
    font-family: var(--font-tag);
    font-size: 28px;
    color: var(--spray-cyan);
}
.scroll-hint .hint-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.18em;
    font-size: 14px;
    color: var(--salt-white);
    opacity: 0.8;
}
@keyframes hintIn {
    from { opacity: 0; transform: translate(20px, -50%); }
    to   { opacity: 1; transform: translate(0, -50%); }
}
@keyframes hintPulse {
    0%, 100% { transform: translate(0, -50%) scale(1); }
    50%      { transform: translate(8px, -50%) scale(1.04); }
}
.scroll-hint.is-hidden {
    animation: hintOut 0.5s ease forwards;
}
@keyframes hintOut {
    to { opacity: 0; transform: translate(20px, -50%); }
}

/* ============================================================
   Reveal helper (kinetic text + cards)
   ============================================================ */
.kinetic-text {
    display: inline-block;
}
.kinetic-text .kc {
    display: inline-block;
    transform: translateY(40px) rotate(var(--r, 0deg));
    opacity: 0;
    transition: transform 0.55s var(--ease-paint),
                opacity 0.55s var(--ease-paint);
    transition-delay: var(--delay, 0s);
}
.kinetic-text.is-revealed .kc {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

[data-reveal] {
    /* applied per element above */
}

/* ============================================================
   Splatter clip-path (used by JS to mark active panel)
   ============================================================ */
.panel.is-entering::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: var(--salt-white);
    opacity: 0;
    clip-path: polygon(
        0% 30%, 8% 12%, 18% 38%, 28% 8%, 40% 36%, 52% 12%,
        62% 40%, 72% 14%, 84% 36%, 94% 10%, 100% 32%,
        100% 70%, 92% 88%, 82% 60%, 70% 92%, 58% 64%, 46% 88%,
        36% 60%, 24% 92%, 14% 64%, 4% 90%, 0% 70%);
    animation: splatterIn 0.9s var(--ease-paint) forwards;
}
@keyframes splatterIn {
    0%   { opacity: 0; transform: scale(0.4); }
    25%  { opacity: 0.4; }
    100% { opacity: 0; transform: scale(1.2); }
}

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