/* ================================================
   martiallaw.quest - Pastoral Authoritarianism
   Horizontal Decree Experience
   ================================================ */

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

html {
    overflow: hidden;
    height: 100%;
}

body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: #1a1a1e;
    background: #1a1a1e;
}

/* --- Scroll Container --- */
#scroll-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100vh;
    will-change: transform;
}

/* --- Chamber Base --- */
.chamber {
    flex-shrink: 0;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.chamber-1 { width: 120vw; }
.chamber-2 { width: 100vw; }
.chamber-3 { width: 80vw; }
.chamber-4 { width: 140vw; }
.chamber-5 { width: 100vw; }
.chamber-6 { width: 120vw; }
.chamber-7 { width: 140vw; }

/* ================================================
   CHAMBER I — The Field Before (Leather Cover)
   ================================================ */

.leather-cover {
    width: 100%;
    height: 100%;
    position: relative;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(100, 60, 30, 0.03) 0px,
            rgba(100, 60, 30, 0.03) 1px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(100, 60, 30, 0.02) 0px,
            rgba(100, 60, 30, 0.02) 1px,
            transparent 1px,
            transparent 4px
        ),
        radial-gradient(ellipse at center, #8b5a3c 0%, #6b3a1c 60%, #4a2510 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brass Corners */
.brass-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 3;
}

.brass-corner-tl {
    top: 30px;
    left: 30px;
    background: linear-gradient(135deg, #d4a86a 0%, #b8973a 50%, #8b6f3a 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.3);
}

.brass-corner-tr {
    top: 30px;
    right: 30px;
    background: linear-gradient(225deg, #d4a86a 0%, #b8973a 50%, #8b6f3a 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.brass-corner-bl {
    bottom: 30px;
    left: 30px;
    background: linear-gradient(45deg, #d4a86a 0%, #b8973a 50%, #8b6f3a 100%);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.brass-corner-br {
    bottom: 30px;
    right: 30px;
    background: linear-gradient(315deg, #d4a86a 0%, #b8973a 50%, #8b6f3a 100%);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* Tarnished brass for Chamber VII */
.tarnished {
    filter: saturate(0.4) brightness(0.7);
    background: linear-gradient(135deg, #7a8a5a 0%, #5a6a3a 50%, #4a5a3a 100%);
}

.brass-corner-tr.tarnished {
    background: linear-gradient(225deg, #7a8a5a 0%, #5a6a3a 50%, #4a5a3a 100%);
}
.brass-corner-bl.tarnished {
    background: linear-gradient(45deg, #7a8a5a 0%, #5a6a3a 50%, #4a5a3a 100%);
}
.brass-corner-br.tarnished {
    background: linear-gradient(315deg, #7a8a5a 0%, #5a6a3a 50%, #4a5a3a 100%);
}

/* Leather Spine */
.leather-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(60, 30, 10, 0.1) 0px,
            transparent 2px,
            transparent 6px
        ),
        linear-gradient(90deg, #5a3018 0%, #7a4a2c 50%, #6b3a1c 100%);
    box-shadow: 3px 0 10px rgba(0,0,0,0.3);
}

.spine-weathered {
    filter: brightness(0.6) saturate(0.5);
}

/* Leather Stitching */
.leather-stitching {
    position: absolute;
    left: 48px;
    top: 20px;
    width: 3px;
    height: calc(100% - 40px);
    border-left: 2px dashed rgba(212, 168, 106, 0.4);
}

/* Cover Content */
.cover-content {
    text-align: center;
    z-index: 2;
    padding-left: 40px;
}

.embossed-title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    color: rgba(212, 168, 106, 0.85);
    text-shadow:
        0 -1px 1px rgba(0,0,0,0.5),
        0 1px 1px rgba(255,220,150,0.3);
}

.title-faded {
    opacity: 0.35;
    filter: blur(0.5px);
}

.embossed-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(212, 168, 106, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1rem;
    text-shadow:
        0 -1px 1px rgba(0,0,0,0.3),
        0 1px 1px rgba(255,220,150,0.2);
}

.subtitle-faded {
    opacity: 0.3;
}

.embossed-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b8973a, transparent);
    margin: 1.5rem auto;
}

.line-faded {
    opacity: 0.2;
}

.embossed-year {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: rgba(184, 151, 58, 0.5);
    letter-spacing: 0.3em;
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 60px;
    right: 60px;
    animation: pulseRight 2s ease-in-out infinite;
    opacity: 0.7;
    cursor: pointer;
}

@keyframes pulseRight {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* ================================================
   CHAMBER II — Declaration (Parchment)
   ================================================ */

.parchment-surface {
    width: 100%;
    height: 100%;
    position: relative;
    background:
        repeating-linear-gradient(
            87deg,
            rgba(139, 90, 60, 0.05) 0px,
            transparent 0.3px,
            transparent 4px
        ),
        linear-gradient(180deg, #f5e6d0 0%, #ede0c8 50%, #f5e6d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 8vw;
}

.parchment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#parchmentNoise);
    opacity: 0.08;
    pointer-events: none;
    background: #f5e6d0;
}

.decree-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.decree-header {
    text-align: center;
    margin-bottom: 3rem;
}

.decree-stamp {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    letter-spacing: 0.25em;
    color: #c27a68;
    border: 2px solid #c27a68;
    display: inline-block;
    padding: 0.3em 1em;
    transform: rotate(-2deg);
    margin-bottom: 2rem;
}

.decree-title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.02em;
    color: #1a1a1e;
    line-height: 1.2;
}

.decree-body {
    margin-top: 2rem;
}

.decree-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: #3d3d42;
    margin-bottom: 1.5rem;
}

/* Neon underline */
.neon-underline {
    position: relative;
    display: inline;
}

.neon-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00e5ff;
    box-shadow: 0 0 6px #00e5ff, 0 0 12px rgba(0, 229, 255, 0.5);
}

/* Decree Seal */
.decree-seal {
    text-align: center;
    margin-top: 3rem;
}

.seal-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #c27a68;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    opacity: 0.5;
}

.seal-text {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #c27a68;
}

/* ================================================
   NEON GLOW SYSTEM
   ================================================ */

.neon-cyan {
    color: #ffffff;
    text-shadow:
        0 0 7px #00e5ff,
        0 0 20px #00e5ff,
        0 0 42px #00e5ff,
        0 0 82px rgba(0, 229, 255, 0.4);
}

.neon-magenta {
    color: #ffffff;
    text-shadow:
        0 0 7px #ff006e,
        0 0 20px #ff006e,
        0 0 42px #ff006e,
        0 0 82px rgba(255, 0, 110, 0.4);
}

.neon-violet {
    color: #ffffff;
    text-shadow:
        0 0 7px #7b2fff,
        0 0 20px #7b2fff,
        0 0 42px #7b2fff,
        0 0 82px rgba(123, 47, 255, 0.4);
}

/* Neon Flicker Animations */
@keyframes neonFlicker1 {
    0%   { opacity: 1; }
    18%  { opacity: 0.85; }
    22%  { opacity: 1; }
    33%  { opacity: 0.9; }
    55%  { opacity: 1; }
    59%  { opacity: 0.82; }
    100% { opacity: 1; }
}

@keyframes neonFlicker2 {
    0%   { opacity: 0.95; }
    15%  { opacity: 1; }
    25%  { opacity: 0.88; }
    40%  { opacity: 1; }
    52%  { opacity: 0.92; }
    65%  { opacity: 0.8; }
    70%  { opacity: 1; }
    100% { opacity: 0.95; }
}

@keyframes neonFlicker3 {
    0%   { opacity: 1; }
    12%  { opacity: 0.78; }
    16%  { opacity: 1; }
    45%  { opacity: 0.9; }
    50%  { opacity: 0.7; }
    55%  { opacity: 1; }
    85%  { opacity: 0.92; }
    100% { opacity: 1; }
}

@keyframes neonFlicker4 {
    0%   { opacity: 0.9; }
    20%  { opacity: 1; }
    35%  { opacity: 0.85; }
    42%  { opacity: 1; }
    60%  { opacity: 0.88; }
    75%  { opacity: 0.95; }
    80%  { opacity: 0.75; }
    85%  { opacity: 1; }
    100% { opacity: 0.9; }
}

.neon-flicker-1 { animation: neonFlicker1 3s ease-in-out infinite; }
.neon-flicker-2 { animation: neonFlicker2 4s ease-in-out infinite; animation-delay: 0.5s; }
.neon-flicker-3 { animation: neonFlicker3 3.5s ease-in-out infinite; animation-delay: 1.2s; }
.neon-flicker-4 { animation: neonFlicker4 2.8s ease-in-out infinite; animation-delay: 0.8s; }

/* ================================================
   CHAMBER III — The Radio Tower
   ================================================ */

.radio-tower-scene {
    width: 100%;
    height: 100%;
    background: #1a1a1e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.radio-tower {
    position: absolute;
    left: 25%;
    bottom: 15%;
    width: 60px;
    height: 65vh;
}

.tower-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: #3d3d42;
    clip-path: polygon(35% 0%, 65% 0%, 80% 100%, 20% 100%);
}

.tower-crossbar {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 3px;
    background: #3d3d42;
}

.tower-crossbar-1 { top: 20%; }
.tower-crossbar-2 { top: 40%; }
.tower-crossbar-3 { top: 60%; }
.tower-crossbar-4 { top: 80%; }

.tower-light {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff006e;
    box-shadow: 0 0 10px #ff006e, 0 0 20px #ff006e, 0 0 40px rgba(255, 0, 110, 0.5);
    animation: towerPulse 1.5s ease-in-out infinite;
}

@keyframes towerPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #ff006e, 0 0 20px #ff006e, 0 0 40px rgba(255, 0, 110, 0.5); }
    50% { opacity: 0.4; box-shadow: 0 0 5px #ff006e, 0 0 10px rgba(255, 0, 110, 0.3); }
}

/* Broadcast Rings */
.broadcast-ring {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 2px solid #7b2fff;
    animation: broadcastExpand 3s ease-out infinite;
}

.broadcast-ring-1 { width: 20px; height: 20px; animation-delay: 0s; }
.broadcast-ring-2 { width: 20px; height: 20px; animation-delay: 0.75s; }
.broadcast-ring-3 { width: 20px; height: 20px; animation-delay: 1.5s; }
.broadcast-ring-4 { width: 20px; height: 20px; animation-delay: 2.25s; }

@keyframes broadcastExpand {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(8); opacity: 0; }
}

.radio-text {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-left: 30%;
}

.radio-text h2 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.radio-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-top: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Static Lines */
.static-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.04;
}

.static-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #ffffff;
    animation: staticMove 0.1s linear infinite;
}

.static-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.static-line:nth-child(2) { top: 40%; animation-delay: 0.03s; }
.static-line:nth-child(3) { top: 55%; animation-delay: 0.06s; }
.static-line:nth-child(4) { top: 72%; animation-delay: 0.02s; }
.static-line:nth-child(5) { top: 88%; animation-delay: 0.05s; }

@keyframes staticMove {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(2px); }
}

/* ================================================
   CHAMBER IV — Pastoral Interlude (Cork Board)
   ================================================ */

.cork-board {
    width: 100%;
    height: 100%;
    position: relative;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(180, 140, 80, 0.08) 0px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(180, 140, 80, 0.06) 0px,
            transparent 1px,
            transparent 3px
        ),
        radial-gradient(ellipse at 30% 40%, #d4b87a 0%, #c9a96e 40%, #b8944e 100%);
    padding: 5vh 5vw;
    overflow: hidden;
}

/* Polaroid Frames */
.polaroid {
    position: absolute;
    background: #fafaf5;
    padding: 10px 10px 40px 10px;
    box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.polaroid-1 {
    top: 12%;
    left: 8%;
    transform: rotate(-3deg);
}

.polaroid-2 {
    top: 18%;
    left: 40%;
    transform: rotate(2deg);
}

.polaroid-3 {
    top: 10%;
    left: 72%;
    transform: rotate(-1deg);
}

.polaroid-photo {
    width: 180px;
    height: 140px;
}

.landscape-dawn {
    background: linear-gradient(180deg, #f5c87a 0%, #d4a574 30%, #7ab35a 60%, #5a8a3a 100%);
    filter: blur(2px) saturate(0.8);
}

.landscape-field {
    background: linear-gradient(180deg, #87ceeb 0%, #87ceeb 25%, #7ab35a 50%, #c9a96e 80%, #8b6f3a 100%);
    filter: blur(2px) saturate(0.7);
}

.landscape-night {
    background: linear-gradient(180deg, #1a1a3e 0%, #2a1a4e 30%, #ff006e 60%, #d4a574 80%, #1a1a2e 100%);
    filter: blur(3px) saturate(0.6);
}

.polaroid-caption {
    text-align: center;
    padding-top: 8px;
}

.polaroid-caption .handwritten {
    font-size: 0.85rem;
    color: #3d3d42;
}

.pin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Handwritten Notes */
.note {
    position: absolute;
    background: #fafaf5;
    padding: 1.2rem 1.5rem;
    max-width: 280px;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.note-1 {
    top: 55%;
    left: 15%;
    transform: rotate(1deg);
}

.note-2 {
    top: 60%;
    left: 55%;
    transform: rotate(-2deg);
}

/* Handwritten font */
.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: #3d3d42;
    line-height: 1.5;
}

/* Botanical SVGs */
.botanical {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
}

.botanical-rose {
    width: 100px;
    height: 130px;
    bottom: 10%;
    left: 30%;
}

.botanical-fern {
    width: 80px;
    height: 160px;
    bottom: 8%;
    left: 60%;
}

.botanical-lavender {
    width: 65px;
    height: 140px;
    bottom: 12%;
    left: 85%;
}

.botanical-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 2s ease-out;
}

.botanical-path.drawn {
    stroke-dashoffset: 0;
}

/* Neon edge glow */
.neon-edge-glow {
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.left-edge {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent);
}

.right-edge {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 229, 255, 0.08), transparent);
}

/* ================================================
   CHAMBER V — Curfew
   ================================================ */

.curfew-scene {
    width: 100%;
    height: 100%;
    background: #1a1a1e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.metal-plate {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 60px;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(80, 80, 85, 0.3) 0px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, #4a4a50 0%, #3d3d42 50%, #353538 100%);
    z-index: 2;
}

.metal-plate-top { top: 10%; }
.metal-plate-bottom { bottom: 10%; }

.rivet {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #6a6a70 0%, #3d3d42 60%, #2a2a2e 100%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.3);
    top: 50%;
    transform: translateY(-50%);
}

.rivet-1 { left: 20px; }
.rivet-2 { left: 60px; }
.rivet-3 { right: 60px; }
.rivet-4 { right: 20px; }

.curfew-signage {
    text-align: center;
    z-index: 1;
}

.curfew-signage h2 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.1em;
    line-height: 1;
}

.curfew-time {
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

.stencil-text {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    letter-spacing: 0.15em;
    color: rgba(250, 250, 245, 0.5);
    text-transform: uppercase;
    margin-top: 2rem;
}

.stencil-small {
    font-size: clamp(0.6rem, 1vw, 0.8rem);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.stencil-mark {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(250, 250, 245, 0.3);
}

/* Neon border lights */
.neon-border-light {
    position: absolute;
    z-index: 0;
}

.top-border {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff006e;
    box-shadow: 0 0 10px #ff006e, 0 0 30px rgba(255, 0, 110, 0.4);
}

.bottom-border {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00e5ff;
    box-shadow: 0 0 10px #00e5ff, 0 0 30px rgba(0, 229, 255, 0.4);
}

.left-border {
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #ff006e, #7b2fff, #00e5ff);
    box-shadow: 0 0 10px rgba(123, 47, 255, 0.4);
}

.right-border {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #ff006e, #7b2fff, #00e5ff);
    box-shadow: 0 0 10px rgba(123, 47, 255, 0.4);
}

/* ================================================
   CHAMBER VI — Testimony
   ================================================ */

.testimony-scene {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.notebook-surface {
    flex: 1;
    position: relative;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 27px,
            rgba(0, 150, 200, 0.15) 27px,
            rgba(0, 150, 200, 0.15) 28px
        ),
        #fafaf5;
    padding: 5vh 5vw;
    overflow: hidden;
}

.notebook-lines {
    position: absolute;
    top: 0;
    left: 60px;
    width: 2px;
    height: 100%;
    background: rgba(255, 0, 110, 0.15);
}

.testimony-content {
    position: relative;
    z-index: 1;
    padding-left: 40px;
}

.testimony-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1a1a1e;
    margin-bottom: 2rem;
}

.testimony-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
}

.typed-document {
    background: #fafaf5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.2rem;
    font-family: 'Azeret Mono', monospace;
    font-size: 0.8rem;
    color: #3d3d42;
    line-height: 1.6;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.08);
    transform: rotate(-0.5deg);
}

.doc-2 {
    transform: rotate(0.5deg);
}

.handwritten-entry {
    padding: 1rem;
    background: rgba(245, 230, 208, 0.5);
}

.entry-1 { transform: rotate(0.5deg); }
.entry-2 { transform: rotate(-1deg); }

.pull-quote {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    padding: 1.5rem;
    text-align: center;
    grid-column: 1 / -1;
}

/* Counter Section */
.counter-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 5vw;
    background: #1a1a1e;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    display: block;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: #3d3d42;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-top: 0.5rem;
}

/* ================================================
   CHAMBER VII — The Field After
   ================================================ */

.cover-weathered {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(60, 40, 20, 0.05) 0px,
            transparent 1px,
            transparent 3px
        ),
        radial-gradient(ellipse at center, #6b4a2c 0%, #4a3018 60%, #2a1808 100%);
    filter: saturate(0.6) brightness(0.7);
}

.horizon-line {
    position: absolute;
    bottom: 40%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff, 0 0 20px #00e5ff, 0 0 40px rgba(0, 229, 255, 0.3);
    opacity: 0.8;
}

/* ================================================
   FIXED UI ELEMENTS
   ================================================ */

#progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(26, 26, 30, 0.6);
    z-index: 100;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4a574, #b8973a, #00e5ff);
    transition: width 0.1s ease-out;
}

.chamber-markers {
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
}

.chamber-mark {
    position: absolute;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 10px;
    color: rgba(61, 61, 66, 0.5);
    transform: translateX(-50%);
    letter-spacing: 0.1em;
}

#chamber-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    color: #3d3d42;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

#chamber-number {
    font-weight: 600;
    font-size: 14px;
    color: #d4a574;
}

#chamber-name {
    font-weight: 400;
}

/* ================================================
   REDUCED MOTION
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .neon-flicker-1,
    .neon-flicker-2,
    .neon-flicker-3,
    .neon-flicker-4 {
        animation: none;
    }

    .broadcast-ring {
        animation: none;
        opacity: 0.3;
    }

    .tower-light {
        animation: none;
    }

    .scroll-arrow {
        animation: none;
        opacity: 0.7;
    }

    .static-line {
        animation: none;
    }

    .botanical-path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}
