/* dilemma.dev — phosphor-bone monochrome, slab-serif, animated dashed marquee */

:root {
    --bone:        #E9E2D4; /* page substrate */
    --bone-tint:   #D6CCB4; /* exhibit panels */
    --fog:         #B8AC92; /* noise base */
    --dust:        #7A6E58; /* hairlines */
    --ink-soft:    #3A3328; /* secondary text */
    --ink:         #1F1B14; /* primary text */
    --baseline: 28px;
}

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

html, body {
    width: 100%;
    height: 100%;
    background: var(--bone);
    color: var(--ink);
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 400;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    background-color: var(--bone);
    background-image:
        radial-gradient(circle at 22% 40%, rgba(184, 172, 146, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 78% 70%, rgba(214, 204, 180, 0.30) 0%, transparent 50%);
}

/* italics forbidden — neutralize any em/i */
em, i, .hold {
    font-style: normal;
    font-weight: 600;
}

/* ----------------------------------------------------------------- */
/* Noise overlay — fixed full-viewport, animated translate            */
/* ----------------------------------------------------------------- */
.noise-overlay {
    position: fixed;
    inset: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
    opacity: 0.55;
    animation: grainShimmer 4s linear infinite;
}

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

/* ----------------------------------------------------------------- */
/* Case-number plaque, top-left fixed                                 */
/* ----------------------------------------------------------------- */
.plaque {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    padding: 14px 22px;
    background: rgba(233, 226, 212, 0.6);
    color: var(--ink-soft);
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.55;
    min-width: 280px;
}

.plaque-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

.plaque-num {
    font-weight: 700;
    color: var(--ink);
    margin-left: 4px;
}

.plaque-count {
    font-weight: 700;
    color: var(--ink);
    margin-left: 4px;
}

/* ----------------------------------------------------------------- */
/* Cyclorama: horizontal filmstrip, eight stations                    */
/* ----------------------------------------------------------------- */
.cyclorama {
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.cyclorama::-webkit-scrollbar { display: none; }

.filmstrip {
    display: flex;
    flex-wrap: nowrap;
    width: 800vw;
    height: 100vh;
}

.station {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    padding: 96px 8vw 88px 8vw;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.station-roman {
    position: absolute;
    top: 28px;
    right: 56px;
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 8vw, 7rem);
    color: var(--ink);
    opacity: 0.10;
    letter-spacing: -0.02em;
    line-height: 1;
    user-select: none;
}

.station-label {
    display: inline-block;
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: var(--baseline);
    border-bottom: 1px dashed var(--dust);
    padding-bottom: 6px;
}

.station-title {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 0.96;
    margin-bottom: var(--baseline);
}

/* ----------------------------------------------------------------- */
/* Station I — THE PREMISE                                            */
/* ----------------------------------------------------------------- */
.station-1 {
    justify-content: center;
    padding: 96px 12vw;
}

.premise {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 7vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 1400px;
    margin-bottom: calc(var(--baseline) * 1.5);
}

.premise-foot {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 28px;
    color: var(--ink-soft);
    max-width: 700px;
    border-top: 1px dashed var(--dust);
    padding-top: var(--baseline);
}

/* ----------------------------------------------------------------- */
/* Two-column slab grid (38% / 62%)                                   */
/* ----------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: 38% 1px 62%;
    column-gap: 0;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.grid::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    background-image: linear-gradient(to bottom,
        var(--dust) 0, var(--dust) 8px,
        transparent 8px, transparent 16px);
    background-size: 1px 16px;
    width: 1px;
    height: 100%;
    animation: dashSlide 8s linear infinite;
}

@keyframes dashSlide {
    from { background-position: 0 0; }
    to   { background-position: 0 -240px; }
}

.testimony {
    grid-column: 1;
    padding: 0 32px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--baseline);
}

.exhibit-frame, .testimony-marquee {
    position: relative;
    grid-column: 3;
    padding: 28px 32px;
    margin-left: 32px;
    background: var(--bone-tint);
    overflow: hidden;
}

.testimony-marquee {
    grid-column: 1;
    margin-left: 0;
    margin-right: 32px;
    background: transparent;
}

.exhibit-frame.minor {
    grid-column: 3;
    background: transparent;
}

.exhibit-meta, .exhibit-cite {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.exhibit-blurb {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 28px;
    color: var(--ink);
}

.exhibit-caption {
    margin-top: var(--baseline);
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-soft);
    border-top: 1px dashed var(--dust);
    padding-top: 12px;
}

/* ----------------------------------------------------------------- */
/* SVG dashed-border marquee animation                                */
/* ----------------------------------------------------------------- */
.frame-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.dash {
    fill: none;
    stroke: var(--dust);
    stroke-width: 1;
    stroke-dasharray: 8 6;
    vector-effect: non-scaling-stroke;
}

.dash-cw {
    animation: chaseCW 8s linear infinite;
}

.dash-ccw {
    animation: chaseCCW 10s linear infinite;
}

.dash-bi {
    animation: chaseBi 9s linear infinite alternate;
}

@keyframes chaseCW {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -280; }
}

@keyframes chaseCCW {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: 280; }
}

@keyframes chaseBi {
    from { stroke-dashoffset: -140; }
    to   { stroke-dashoffset: 140; }
}

/* ----------------------------------------------------------------- */
/* Code blocks (JetBrains Mono, evidence)                             */
/* ----------------------------------------------------------------- */
.code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 500;
    font-size: 13px;
    line-height: 22px;
    color: var(--ink);
    white-space: pre;
    overflow-x: auto;
    margin: 0;
    padding: 16px 0;
    font-feature-settings: "calt", "ss01";
}

.code-line { display: block; }
.code-comment { color: var(--dust); }
.code-keyword { color: var(--ink); font-weight: 700; }
.code-fn      { color: var(--ink-soft); font-weight: 600; }
.code-type    { color: var(--ink); font-weight: 700; }
.code-op      { color: var(--ink-soft); }

/* Evidence stickers in exhibit corners (organic-blob glyphs) */
.evidence-sticker {
    position: absolute;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    background: var(--bone);
    border-radius: 53% 47% 41% 59% / 47% 53% 47% 53%;
    box-shadow: 0 0 0 1px var(--dust) inset;
}

.sticker-tl { top: -10px; left: -10px; transform: rotate(-8deg); border-radius: 51% 49% 43% 57% / 49% 51% 49% 51%; }
.sticker-tr { top: -10px; right: -10px; transform: rotate(6deg); border-radius: 47% 53% 51% 49% / 53% 47% 53% 47%; }
.sticker-bl { bottom: -10px; left: -10px; transform: rotate(4deg); border-radius: 55% 45% 49% 51% / 51% 49% 51% 49%; }
.sticker-br { bottom: -10px; right: -10px; transform: rotate(-5deg); border-radius: 49% 51% 53% 47% / 47% 53% 47% 53%; }

/* ----------------------------------------------------------------- */
/* Numbered testimony                                                 */
/* ----------------------------------------------------------------- */
.numbered {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: var(--ink);
    position: relative;
    padding: 6px 18px 6px 60px;
    margin-bottom: 14px;
}

.numbered .num {
    position: absolute;
    left: 18px;
    top: 6px;
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

.footnote {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-soft);
    padding: 12px 20px;
    border-top: 1px dashed var(--dust);
}

.footnote:first-child { border-top: 0; }

/* ----------------------------------------------------------------- */
/* Station VI — CROSS-EXAMINATION                                     */
/* ----------------------------------------------------------------- */
.station-6 .cross {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    flex: 1;
    min-height: 0;
}

.cross-col {
    position: relative;
    padding: 28px 32px;
    overflow: hidden;
    background: var(--bone-tint);
}

.cross-col-b {
    background: transparent;
}

.cross-side {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px dashed var(--dust);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.cross-line {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: var(--ink);
    margin-bottom: 14px;
}

.dissent {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.4;
    color: var(--ink-soft);
    display: inline-block;
    margin-left: 4px;
    vertical-align: super;
    font-feature-settings: "calt";
}

.cross-foot {
    margin-top: var(--baseline);
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
    border-top: 1px dashed var(--dust);
    padding-top: 12px;
}

/* ----------------------------------------------------------------- */
/* Station VII — VERDICT (drifting blob)                              */
/* ----------------------------------------------------------------- */
.station-7 {
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.station-7 .station-label {
    margin-bottom: var(--baseline);
}

.verdict-foot {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.blob {
    position: absolute;
    top: 50%;
    left: 0;
    width: 38vh;
    height: auto;
    transform: translateY(-50%);
    animation: blobDrift 22s linear infinite, blobBreath 7s ease-in-out infinite;
    pointer-events: none;
}

.blob-path {
    fill: var(--ink-soft);
    fill-opacity: 0.14;
    stroke: var(--dust);
    stroke-width: 1;
    stroke-dasharray: 7 5;
    animation: chaseCW 12s linear infinite;
    vector-effect: non-scaling-stroke;
}

@keyframes blobDrift {
    0%   { left: -40vh; }
    100% { left: 100vw; }
}

@keyframes blobBreath {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50%      { transform: translateY(-50%) scale(1.06); }
}

/* ----------------------------------------------------------------- */
/* Station VIII — APPEAL                                              */
/* ----------------------------------------------------------------- */
.station-8 {
    padding: 96px 8vw 88px 8vw;
}

.appeal-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    flex: 1;
    align-items: center;
    gap: 48px;
}

.appeal-text {
    display: flex;
    flex-direction: column;
    gap: var(--baseline);
}

.appeal-line {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 32px;
    color: var(--ink);
    max-width: 600px;
}

.appeal-meta {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-top: 1px dashed var(--dust);
    padding-top: 12px;
    max-width: 480px;
}

.appeal-ghost {
    position: relative;
    padding: 32px;
    opacity: 0.40;
    border-left: 1px dashed var(--dust);
    transform: translateX(20%);
    overflow: hidden;
}

.appeal-ghost::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 0%, var(--bone) 90%);
    pointer-events: none;
}

.ghost-roman {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 900;
    font-size: 7rem;
    color: var(--ink);
    opacity: 0.18;
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
}

.ghost-label {
    display: block;
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 8px;
}

.ghost-premise {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--ink);
    margin-top: var(--baseline);
}

/* ----------------------------------------------------------------- */
/* Progress rail at bottom                                            */
/* ----------------------------------------------------------------- */
.progress-rail {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 36px;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(to top, rgba(233, 226, 212, 0.85), transparent);
}

.rail-fill {
    position: absolute;
    bottom: 18px;
    left: 0;
    height: 2px;
    background: var(--ink-soft);
    width: 0%;
    transition: width 0.18s ease-out;
}

.rail-border {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    height: 4px;
    pointer-events: none;
}

.rail-line {
    stroke: var(--dust);
    stroke-width: 1;
    stroke-dasharray: 8 6;
    fill: none;
}

.rail-ticks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16px;
    display: flex;
    justify-content: space-between;
    padding: 0 calc(50vw / 8 - 12px);
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 300;
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--ink-soft);
}

.rail-tick {
    display: inline-block;
    width: 24px;
    text-align: center;
}

/* ----------------------------------------------------------------- */
/* Station-7 background hush                                          */
/* ----------------------------------------------------------------- */
.station-7::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(122, 110, 88, 0.04) 0px,
            rgba(122, 110, 88, 0.04) 1px,
            transparent 1px, transparent 28px);
    pointer-events: none;
    opacity: 0.7;
}

/* ----------------------------------------------------------------- */
/* Touch / small screens — keep horizontal flow, allow native pan     */
/* ----------------------------------------------------------------- */
@media (max-width: 720px) {
    .station { padding: 90px 8vw 110px; }
    .grid { grid-template-columns: 100%; grid-auto-rows: auto; gap: 20px; }
    .grid::before { display: none; }
    .exhibit-frame, .testimony-marquee { margin: 0; }
    .station-6 .cross { grid-template-columns: 1fr; }
    .appeal-grid { grid-template-columns: 1fr; }
    .appeal-ghost { transform: none; }
    .premise { font-size: clamp(2rem, 9vw, 4rem); }
    .station-roman { font-size: 4rem; right: 24px; }
    .plaque { left: 12px; top: 12px; min-width: 220px; padding: 10px 16px; font-size: 9px; }
}
