/* =========================================================
   LegalDebug.com — Avant-garde Judicial Forensics
   Monochrome discipline · Humanist typography · Sharp angles
   Compliance anchors: varying opacities (#333333 to #888888 (Google Interaction Patter*: Pattern*: Pattern**: counter-animate pattern frequency existing designs. climactic incrementing references create visceral "system processing" moment reinforces core debugging metaphor. This decorative IntersectionObserver. (a
   ========================================================= */

:root {
    /* Monochrome scale — strictly value-based, full 8-step ramp */
    --void:        #0a0a0a;
    --charcoal:    #1a1a1a;
    --graphite:    #2a2a2a;
    --ink:         #333333;  /* hairline rules in Dissection Grid */
    --slate:       #555555;
    --ash:         #666666;  /* inactive nav markers */
    --fog:         #888888;
    --silver:      #bbbbbb;
    --chalk:       #e0e0e0;
    --paper:       #f0f0f0;

    /* Typefaces */
    --f-serif: "Cormorant Garamond", "Source Serif Pro", Georgia, serif;
    --f-sans:  "Source Sans 3", "Inter", system-ui, -apple-system, sans-serif;
    --f-mono:  "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

    /* Easing */
    --ease-in:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.7, 0, 0.3, 1);

    /* Slash angle — 12° from vertical */
    --slash-angle: -12deg;

    /* Heights */
    --header-h: 44px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--void); color: var(--paper); }
body {
    font-family: var(--f-sans);
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 600; line-height: 1.05; }
em { font-style: italic; font-family: var(--f-serif); }
strong { font-weight: 600; color: var(--paper); }

/* =========================================================
   GLOBAL CHROME — header & roman-numeral nav
   ========================================================= */

.case-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 clamp(20px, 3vw, 44px);
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--graphite);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fog);
}
.case-header__left  { display: flex; gap: 18px; align-items: baseline; }
.case-header__right { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.case-mark { color: var(--slate); }
.case-mark .sup { font-size: 0.7em; vertical-align: super; letter-spacing: 0; }
.case-number { color: var(--paper); letter-spacing: 0.3em; }
.case-status { color: var(--chalk); }
.case-blinker {
    width: 6px; height: 6px;
    background: var(--paper);
    display: inline-block;
    animation: blink 1.4s var(--ease-in) infinite;
}
@keyframes blink { 0%, 60% { opacity: 1; } 80%, 100% { opacity: 0.15; } }

.case-header__center {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.06em;
    color: var(--paper);
    text-transform: none;
}
.case-header__center .dot { color: var(--slate); }

/* ---------- Roman-numeral nav ---------- */
.roman-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.rn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    color: #666666; /* inactive nav — ash */
    transition: color 0.4s var(--ease-in), transform 0.4s var(--ease-in);
    transform-origin: right center;
    cursor: pointer;
    user-select: none;
    flex-direction: row-reverse;
}
.rn-item .rn-numeral {
    font-size: 18px;
    letter-spacing: 0.08em;
    min-width: 28px;
    text-align: right;
    font-style: normal;
    position: relative;
}
.rn-item .rn-numeral::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 1px;
    background: var(--slate);
    transition: width 0.4s var(--ease-in);
}
.rn-item .rn-label {
    font-family: var(--f-mono);
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.4s var(--ease-in), transform 0.4s var(--ease-in);
    white-space: nowrap;
}
.rn-item:hover,
.rn-item.active {
    color: var(--paper);
}
.rn-item:hover .rn-label,
.rn-item.active .rn-label {
    opacity: 1;
    transform: translateX(0);
}
.rn-item.active .rn-numeral::before { width: 22px; background: var(--paper); }

/* =========================================================
   SCROLL CONTAINER
   ========================================================= */

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { width: 0; display: none; }

.phase {
    position: relative;
    min-height: 100vh;
    scroll-snap-align: start;
    padding: calc(var(--header-h) + 40px) clamp(24px, 6vw, 96px) 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Phase label — upper-left marker */
.phase-label {
    position: absolute;
    top: calc(var(--header-h) + 20px);
    left: clamp(24px, 6vw, 96px);
    display: flex;
    gap: 18px;
    align-items: baseline;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--slate);
    z-index: 2;
}
.phase-label__num {
    padding-right: 18px;
    border-right: 1px solid var(--graphite);
    color: var(--chalk);
    font-style: normal;
    letter-spacing: 0.35em;
}
.phase-label--light { color: var(--fog); }
.phase-label--light .phase-label__num { color: var(--paper); border-right-color: var(--graphite); }

/* =========================================================
   PHASE I — HERO / IDENTIFICATION
   ========================================================= */

.phase--hero { background: var(--void); padding-bottom: 96px; }

.hero-chevron-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(135deg, transparent 48%, rgba(26,26,26,1) 48%, rgba(26,26,26,1) 50%, transparent 50%),
        linear-gradient(45deg,  transparent 48%, rgba(26,26,26,1) 48%, rgba(26,26,26,1) 50%, transparent 50%);
    background-size: 38px 38px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 10%, rgba(0,0,0,0.2) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 10%, rgba(0,0,0,0.2) 80%);
    pointer-events: none;
}

.hero-split {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 0;
    margin-top: 40px;
}

.hero-word {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(3rem, 14vw, 12rem);
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: var(--paper);
    display: flex;
    align-items: baseline;
    gap: 24px;
    opacity: 0;
    transition: transform 1.2s var(--ease-in), opacity 1.2s var(--ease-in);
    will-change: transform, opacity;
}

.hero-word--top {
    justify-content: flex-start;
    transform: translateX(-24vw);
    padding-left: 4%;
}
.hero-word--bottom {
    justify-content: flex-end;
    transform: translateX(24vw);
    padding-right: 12%;
    margin-top: -18px;
    padding-top: 40px;
}
.hero-split.revealed .hero-word--top,
.hero-split.revealed .hero-word--bottom {
    transform: translateX(0);
    opacity: 1;
}

.hero-tick {
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--slate);
    text-transform: uppercase;
    transform: translateY(-0.4em);
    font-style: normal;
}
.hero-tick--right { order: 2; }
.hero-txt { font-style: italic; }
.hero-word--bottom .hero-txt { font-style: normal; color: var(--chalk); }

/* Diagonal slash SVG */
.hero-slash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
#heroSlashLine {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.1s var(--ease-in) 0.2s;
}
.hero-split.revealed #heroSlashLine { stroke-dashoffset: 0; }

/* Hero meta block — three columns of marginalia */
.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 56px);
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--graphite);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s var(--ease-in) 0.8s, transform 1s var(--ease-in) 0.8s;
}
.hero-split.revealed ~ .hero-meta { opacity: 1; transform: translateY(0); }

.hero-meta__block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-left: 18px;
}
.hero-meta__block::before {
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 1px; height: 14px;
    background: var(--paper);
    transform-origin: top;
}
.meta-label {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fog);
}
.meta-value {
    color: var(--silver);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 36ch;
}

/* Hero footer — coordinates ribbon */
.hero-footer {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--slate);
    opacity: 0;
    transition: opacity 0.9s var(--ease-in) 1.1s;
}
.hero-split.revealed ~ .hero-footer { opacity: 1; }
.hero-divider { flex: 1; height: 1px; background: var(--graphite); min-width: 40px; }

/* =========================================================
   PHASE II — DISSECTION GRID
   ========================================================= */

.phase--grid {
    background: var(--void);
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 80px;
}

.grid-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 96px);
    margin-bottom: 48px;
    align-items: end;
    margin-top: 24px;
}
.grid-h2 {
    font-family: var(--f-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    letter-spacing: -0.025em;
    line-height: 0.98;
    color: var(--paper);
}
.grid-h2 em { color: var(--chalk); font-weight: 400; }

.grid-heading__sub {
    position: relative;
    max-width: 44ch;
    padding: 18px 22px;
    color: var(--silver);
    font-size: 0.95rem;
    line-height: 1.65;
    border: 1px solid transparent;
}
.corner-bracket {
    position: absolute;
    width: 16px; height: 16px;
    border: 1px solid var(--graphite);
}
.corner-bracket--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner-bracket--br { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* 8-column dissection grid */
.dissection-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: minmax(240px, auto);
    border-top: 1px solid #333333; /* hairline ink */
    border-left: 1px solid #333333;
}

.cell {
    grid-column: var(--col-start) / var(--col-end);
    grid-row: var(--row);
    border-right: 1px solid var(--graphite);
    border-bottom: 1px solid var(--graphite);
    padding: 28px 32px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-in), transform 0.6s var(--ease-in);
}
.cell.revealed { opacity: 1; transform: translateY(0); }

.cell--block { background: var(--void); }
.cell--diagram {
    background: var(--charcoal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.cell__mark {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--slate);
    margin-bottom: 14px;
}
.cell__title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    color: var(--paper);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 14px;
}
.cell__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 28px; height: 1px;
    background: var(--paper);
}
.cell__body {
    color: var(--silver);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 38ch;
}
.cell__footer {
    position: absolute;
    bottom: 24px; left: 32px; right: 32px;
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fog);
    padding-top: 12px;
    border-top: 1px solid var(--graphite);
}

/* Diagram SVG styling */
.diagram {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 160px;
}
.diagram-group line {
    stroke: var(--slate);
    stroke-width: 1;
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.1s var(--ease-in);
}
.cell--diagram.revealed .diagram-group line { stroke-dashoffset: 0; }
.diagram-nodes circle {
    fill: var(--paper);
    stroke: var(--charcoal);
    stroke-width: 1;
    opacity: 0;
    transition: opacity 0.5s var(--ease-in) 0.6s;
}
.cell--diagram.revealed .diagram-nodes circle { opacity: 1; }

.diagram-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 7px;
    letter-spacing: 0.18em;
    fill: var(--fog);
    text-transform: uppercase;
}

.cell__diagram-cap {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--fog);
    padding-top: 10px;
    border-top: 1px solid var(--graphite);
    margin-top: 10px;
    display: block;
}

.grid-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--graphite);
    display: flex;
    align-items: baseline;
    gap: 22px;
    flex-wrap: wrap;
}
.grid-footer__mark {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--paper);
    font-size: 1.1rem;
}
.grid-footer__txt {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: var(--chalk);
    flex: 1;
    max-width: 64ch;
    line-height: 1.45;
}
.grid-footer__sig {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--slate);
    text-transform: uppercase;
}

/* =========================================================
   PHASE III — EVIDENCE STACK
   ========================================================= */

.phase--evidence {
    background:
        linear-gradient(var(--void), var(--void)),
        repeating-linear-gradient(102deg, transparent 0 78px, rgba(255,255,255,0.02) 78px 79px);
    background-blend-mode: normal;
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 100px;
}

.evidence-heading {
    font-family: var(--f-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    color: var(--paper);
    letter-spacing: -0.025em;
    line-height: 0.98;
    margin-top: 16px;
    margin-bottom: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: end;
}
.evidence-heading__pre {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--fog);
    text-transform: uppercase;
    padding-bottom: 0.8em;
    border-bottom: 1px solid var(--graphite);
    display: inline-block;
    min-width: 140px;
}
.evidence-heading em { color: var(--chalk); font-weight: 400; }

.evidence-stack {
    position: relative;
    min-height: 55vh;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
}

.dossier {
    --rot: 0deg;
    --x: 0%;
    --y: 0%;
    --d: 0ms;
    width: clamp(280px, 32vw, 420px);
    padding: 26px 28px 22px;
    background: var(--charcoal);
    border: 1px solid var(--graphite);
    position: absolute;
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
    transition:
        transform 0.9s var(--ease-in),
        opacity 0.6s var(--ease-in);
    will-change: transform, opacity;
}
.dossier::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: var(--paper);
    opacity: 0.15;
}
.dossier.revealed {
    opacity: 1;
    transform: translate(var(--x), var(--y)) rotate(var(--rot));
    transition-delay: var(--d);
}

.dossier__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--graphite);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.dossier__tag { color: var(--paper); }
.dossier__code { color: var(--slate); }
.dossier__title {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--chalk);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.dossier__body {
    color: var(--silver);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 18px;
}
.dossier__foot {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--graphite);
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--fog);
    text-transform: uppercase;
}

.evidence-legend {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    justify-content: center;
}
.legend-chev {
    font-family: var(--f-serif);
    font-size: 2rem;
    color: var(--slate);
    line-height: 1;
}
.legend-txt {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--silver);
    font-size: 1rem;
    line-height: 1.55;
}

/* =========================================================
   PHASE IV — TERMINAL / RESOLUTION
   ========================================================= */

.phase--terminal {
    background: #000000;
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 80px;
}
.phase--terminal .phase-label__num { color: var(--paper); }

.terminal {
    margin-top: 20px;
    border: 1px solid var(--graphite);
    background: #050505;
    padding: 0;
    position: relative;
}

.terminal__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--graphite);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--fog);
    text-transform: uppercase;
}
.terminal__dot {
    width: 7px; height: 7px;
    background: var(--paper);
    display: inline-block;
    animation: blink 1.4s var(--ease-in) infinite;
}
.terminal__path { color: var(--silver); letter-spacing: 0.08em; text-transform: none; flex: 1; }
.terminal__time { color: var(--chalk); letter-spacing: 0.25em; }

.terminal__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.term-col {
    padding: 28px 22px;
    border-right: 1px solid var(--graphite);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}
.term-col:last-child { border-right: 0; }

.term-col__label {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fog);
}
.term-col__counter {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: 0.05em;
    color: var(--paper);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.term-col__sub {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--slate);
    text-transform: uppercase;
}

.term-col__stream {
    margin-top: auto;
    font-family: var(--f-mono);
    font-size: 10px;
    line-height: 1.5;
    color: var(--graphite);
    letter-spacing: 0.1em;
    white-space: pre;
    min-height: 90px;
    max-height: 90px;
    overflow: hidden;
}
.term-col__stream .s-bright { color: var(--fog); }
.term-col__stream .s-mid    { color: var(--slate); }

.terminal__log {
    border-top: 1px solid var(--graphite);
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 1.7;
    color: var(--fog);
    padding: 18px 20px;
    min-height: 140px;
    letter-spacing: 0.04em;
}
.terminal__log .log-line { display: block; opacity: 0; transition: opacity 0.4s var(--ease-in); }
.terminal__log .log-line.shown { opacity: 1; }
.terminal__log .log-line .lt { color: var(--slate); margin-right: 12px; }
.terminal__log .log-line .lv { color: var(--paper); margin-right: 10px; letter-spacing: 0.2em; }
.terminal__log .log-line .lm { color: var(--silver); }

.terminal__foot {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--graphite);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--silver);
}
.terminal__prompt { color: var(--paper); }
.terminal__cursor {
    display: inline-block;
    width: 9px;
    color: var(--paper);
    animation: blink 1s steps(2) infinite;
}
.terminal__status {
    margin-left: auto;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 10px;
}

/* Coda */
.coda {
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.coda-chevron {
    width: 44px; height: auto;
    opacity: 0.7;
}
.coda-txt {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--silver);
    max-width: 52ch;
    line-height: 1.55;
}
.coda-txt em { color: var(--paper); }
.coda-sig {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--slate);
    text-transform: uppercase;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .hero-meta { grid-template-columns: 1fr 1fr; }
    .hero-meta__block:last-child { grid-column: span 2; }
    .grid-heading { grid-template-columns: 1fr; }
    .terminal__grid { grid-template-columns: repeat(2, 1fr); }
    .term-col:nth-child(2) { border-right: 0; }
    .term-col:nth-child(1), .term-col:nth-child(2) { border-bottom: 1px solid var(--graphite); }
}

@media (max-width: 780px) {
    .case-header {
        grid-template-columns: 1fr auto;
        font-size: 9px;
    }
    .case-header__center { display: none; }
    .roman-nav { right: 8px; gap: 18px; }
    .rn-item .rn-label { display: none; }

    .hero-word { font-size: clamp(2.4rem, 18vw, 7rem); }
    .hero-word--bottom { padding-right: 4%; }
    .hero-meta { grid-template-columns: 1fr; gap: 20px; }
    .hero-meta__block:last-child { grid-column: auto; }

    .dissection-grid { grid-template-columns: 1fr; }
    .cell { grid-column: 1 / -1 !important; grid-row: auto !important; }
    .cell__footer { position: static; margin-top: 28px; }

    .terminal__grid { grid-template-columns: 1fr; }
    .term-col { border-right: 0; border-bottom: 1px solid var(--graphite); }
    .term-col:last-child { border-bottom: 0; }

    .evidence-heading { grid-template-columns: 1fr; gap: 14px; }
    .dossier { position: relative; width: 100%; }
    .evidence-stack { display: flex; flex-direction: column; gap: 20px; }
}

/* Reduced motion — skip everything */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hero-word--top, .hero-word--bottom { transform: none !important; opacity: 1 !important; }
    #heroSlashLine { stroke-dashoffset: 0 !important; }
    .cell, .dossier { opacity: 1 !important; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rot, 0)) !important; }
    .hero-meta, .hero-footer { opacity: 1 !important; transform: none !important; }
}
