/* ==========================================================================
   courts.studio — "The Design Annual"
   Mid-century aerospace mission-control meets speculative jurisprudence.
   Palette: #2A1F1A, #3A3A3A, #1B2D3A, #2DD4A8, #C4B89A, #D4A82D, #F5E6C8, #D4CFC5
   Compliance terms: Interaction Pattern Patterns Patterns:* Patterns:** Patterns* `threshold: 0.3` trigger. indicator shows "COMPLETION: 73%". (Google
   ========================================================================== */

/* ---------- Root variables ---------- */
:root {
    --c-midnight:    #1B2D3A;   /* Primary Deep — teak console */
    --c-amber:       #D4A82D;   /* Warm Accent — instrument dial */
    --c-teal:        #2DD4A8;   /* Cool Accent — CRT phosphor */
    --c-parchment:   #F5E6C8;   /* Surface Light */
    --c-walnut:      #2A1F1A;   /* Surface Dark */
    --c-silver:      #C4B89A;   /* Neutral — brushed silver */
    --c-body:        #3A3A3A;   /* Body text on light */
    --c-body-dark:   #D4CFC5;   /* Body text on dark */

    --grad-signature: linear-gradient(135deg, #D4A82D 0%, #2DD4A8 100%);
    --grad-dark:      linear-gradient(180deg, #1B2D3A 0%, #2A1F1A 100%);

    --panel-h: 56px;

    --f-display: "Zilla Slab", Georgia, serif;
    --f-body:    "Source Sans 3", Inter, sans-serif;
    --f-mono:    "Share Tech Mono", "Space Mono", ui-monospace, monospace;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
}
html {
    background: var(--c-parchment);
    scroll-behavior: smooth;
}
body {
    font-family: var(--f-body);
    color: var(--c-body);
    line-height: 1.7;
    background: var(--c-parchment);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Utility: SVG defs host (offscreen) ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ==========================================================================
   INSTRUMENT PANEL (top bar)
   ========================================================================== */
.instrument-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--panel-h);
    z-index: 1000;
    background:
        linear-gradient(180deg, #3a3732 0%, #26231f 100%);
    border-bottom: 1px solid rgba(196, 184, 154, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(245, 230, 200, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 2px 14px rgba(0, 0, 0, 0.35);
}
.instrument-panel::before {
    /* brushed-aluminum hairlines */
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0 1px,
        rgba(0, 0, 0, 0.04) 1px 2px
    );
    pointer-events: none;
}
.panel-inner {
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.logotype {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.28em;
    color: var(--c-parchment);
    text-transform: uppercase;
    position: relative;
    padding-left: 18px;
}
.logotype::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-teal);
    box-shadow: 0 0 10px rgba(45, 212, 168, 0.75);
    animation: pulse-dot 2.6s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}

.panel-nav { display: flex; align-items: center; gap: 14px; }
.status-lights {
    display: flex;
    gap: 18px;
    align-items: center;
}
.status-light {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: var(--c-silver);
    transition: color 250ms ease;
}
.status-light .light-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-amber);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(212, 168, 45, 0.55);
    transition: background 250ms ease, box-shadow 250ms ease, transform 200ms ease;
    flex-shrink: 0;
}
.status-light .light-label {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 230, 200, 0.55);
    transition: color 250ms ease;
}
.status-light.is-active .light-dot {
    background: var(--c-teal);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(45, 212, 168, 0.85);
}
.status-light.is-active .light-label {
    color: var(--c-teal);
    text-shadow: 0 0 8px rgba(45, 212, 168, 0.35);
}
.status-light:hover .light-label { color: var(--c-parchment); }
.status-light.is-shaking .light-dot { animation: shake 300ms ease-in-out; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-2px); }
    75%      { transform: translateX(2px); }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    padding: 4px;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--c-parchment);
    transition: width 300ms ease;
}
.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 70%; }
.hamburger span:nth-child(3) { width: 40%; }

/* mobile-drawer open */
.status-lights.is-open {
    display: flex !important;
}

/* ==========================================================================
   ANNUAL (main flow)
   ========================================================================== */
.annual {
    padding-top: var(--panel-h);
}
@media (min-width: 900px) {
    .annual {
        scroll-snap-type: y proximity;
    }
}

/* ---------- Spread base ---------- */
.spread {
    position: relative;
    min-height: calc(100vh - var(--panel-h));
    padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
}
.spread.dark {
    background: var(--grad-dark);
    color: var(--c-body-dark);
}
.spread.dark .section-tag { color: var(--c-teal); }
.spread-inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 3;
}

/* Starburst atomic pattern (light spreads) */
.starburst-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            rgba(27, 45, 58, 0.9) 0deg 0.3deg,
            transparent 0.3deg 9deg
        );
    opacity: 0.04;
    z-index: 1;
}
.starburst-bg.subtle { opacity: 0.025; }

/* Teak grain overlay (dark spreads) */
.teak-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            92deg,
            rgba(245, 230, 200, 0.03) 0 1px,
            transparent 1px 3px
        ),
        radial-gradient(
            ellipse at 30% 20%,
            rgba(212, 168, 45, 0.07),
            transparent 60%
        );
    mix-blend-mode: overlay;
    opacity: 0.9;
    z-index: 1;
}

/* Crosshair reticle */
.crosshair {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.crosshair .line {
    position: absolute;
    background: var(--c-teal);
    opacity: 0;
    transition: opacity 600ms ease 200ms;
}
.crosshair .line-h {
    top: 50%; left: 10%; right: 10%; height: 1px;
    transform: translateY(-50%);
}
.crosshair .line-v {
    left: 50%; top: 10%; bottom: 10%; width: 1px;
    transform: translateX(-50%);
}
.spread.is-visible .crosshair .line { opacity: 0.28; }

/* Corner brackets at spread perimeter */
.corner-brackets {
    position: absolute;
    inset: clamp(16px, 2vw, 32px);
    pointer-events: none;
    z-index: 2;
}
.corner-brackets .corner {
    position: absolute;
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: opacity 600ms ease 400ms;
}
.spread.is-visible .corner-brackets .corner,
.spread.is-visible .corner-frame .corner,
.spread.is-visible .illus-corner { opacity: 1; }

.corner-brackets .corner.tl { top: 0;    left: 0;    border-top: 2px solid var(--c-teal); border-left: 2px solid var(--c-teal); }
.corner-brackets .corner.tr { top: 0;    right: 0;   border-top: 2px solid var(--c-teal); border-right: 2px solid var(--c-teal); }
.corner-brackets .corner.bl { bottom: 0; left: 0;    border-bottom: 2px solid var(--c-teal); border-left: 2px solid var(--c-teal); }
.corner-brackets .corner.br { bottom: 0; right: 0;   border-bottom: 2px solid var(--c-teal); border-right: 2px solid var(--c-teal); }
.corner-brackets .corner { opacity: 0; }
.spread.is-visible .corner-brackets .corner { opacity: 0.55; }

/* ==========================================================================
   FOLD LINE
   ========================================================================== */
.fold-line {
    position: relative;
    height: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fold-line .fold-inner {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(196, 184, 154, 0.4);
    box-shadow:
        0 -2px 4px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(245, 230, 200, 0.6);
    animation: fold-pulse 4s ease-in-out infinite;
}
.fold-line.fold-gradient .fold-inner {
    background: var(--grad-signature);
    height: 2px;
    box-shadow:
        0 0 14px rgba(212, 168, 45, 0.35),
        0 0 14px rgba(45, 212, 168, 0.35);
}
@keyframes fold-pulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.6; }
}

/* ==========================================================================
   SPREAD 1 — FRONTISPIECE
   ========================================================================== */
.frontispiece {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
}
.folio-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-mono);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-midnight);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 500ms ease 200ms, transform 500ms ease 200ms;
}
.folio-separator { color: var(--c-amber); }

.frontispiece-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(4rem, 14vw, 11rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    background: var(--grad-signature);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 700ms ease 300ms, transform 700ms ease 300ms;
}
.title-dot {
    color: var(--c-amber);
    -webkit-text-fill-color: currentColor;
    background: none;
    padding: 0 0.02em;
}

.frontispiece-subtitle {
    font-family: var(--f-mono);
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-teal);
    text-shadow: 0 0 8px rgba(45, 212, 168, 0.4);
    margin: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 600ms ease 500ms, transform 600ms ease 500ms;
}

.frontispiece-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 4vw, 64px);
    margin-top: clamp(16px, 2vw, 32px);
    opacity: 0;
    transition: opacity 600ms ease 700ms;
}
.meta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--f-mono);
    color: var(--c-midnight);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.meta-key {
    font-size: 0.7rem;
    color: var(--c-amber);
}
.meta-val {
    font-size: 0.9rem;
}

.spread.is-visible .folio-mark,
.spread.is-visible .frontispiece-title,
.spread.is-visible .frontispiece-subtitle,
.spread.is-visible .frontispiece-meta {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SPREAD 2 — THE BLUEPRINT (two-column)
   ========================================================================== */
.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(32px, 5vw, 96px);
    align-items: center;
}

.section-tag {
    font-family: var(--f-mono);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-amber);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.section-tag.light-tag {
    color: var(--c-teal);
    text-shadow: 0 0 8px rgba(45, 212, 168, 0.4);
}

.headline {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--c-midnight);
    margin: 0 0 clamp(20px, 2.5vw, 40px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms ease, transform 500ms ease;
}
.spread.dark .headline { color: var(--c-parchment); }
.spread.is-visible .headline { opacity: 1; transform: translateY(0); }

.headline-xl {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
}

.gradient-text {
    background: var(--grad-signature);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.body {
    font-family: var(--f-body);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7;
    color: var(--c-body);
    max-width: 38em;
    margin: 0 0 1.1em;
    opacity: 0;
    transition: opacity 500ms ease 150ms;
}
.spread.dark .body { color: var(--c-body-dark); }
.spread.is-visible .body { opacity: 1; }

/* Illustration frame */
.col-illus { position: relative; }
.illus-frame {
    position: relative;
    margin: 0;
    padding: clamp(20px, 3vw, 48px);
    background: rgba(245, 230, 200, 0.04);
    border: 1px solid rgba(196, 184, 154, 0.25);
    border-radius: 2px;
}
.spread:not(.dark) .illus-frame {
    background: rgba(27, 45, 58, 0.03);
    border-color: rgba(27, 45, 58, 0.15);
}
.illus-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 600ms ease 400ms;
}
.illus-corner.tl { top: -2px;    left: -2px;   border-top: 2px solid var(--c-teal); border-left: 2px solid var(--c-teal); }
.illus-corner.tr { top: -2px;    right: -2px;  border-top: 2px solid var(--c-teal); border-right: 2px solid var(--c-teal); }
.illus-corner.bl { bottom: -2px; left: -2px;   border-bottom: 2px solid var(--c-teal); border-left: 2px solid var(--c-teal); }
.illus-corner.br { bottom: -2px; right: -2px;  border-bottom: 2px solid var(--c-teal); border-right: 2px solid var(--c-teal); }

.illus-svg { width: 100%; height: auto; }

.illus-caption {
    margin-top: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-teal);
    text-shadow: 0 0 8px rgba(45, 212, 168, 0.35);
}
.illus-caption.light { color: var(--c-midnight); text-shadow: none; }
.illus-caption.light .caption-key { color: var(--c-amber); }
.caption-key {
    flex-shrink: 0;
    color: var(--c-amber);
    text-shadow: none;
}
.caption-desc { opacity: 0.85; line-height: 1.5; }

/* Typewriter readouts */
.readout {
    position: absolute;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-teal);
    text-shadow: 0 0 8px rgba(45, 212, 168, 0.4);
    background: rgba(27, 45, 58, 0.65);
    border: 1px solid rgba(45, 212, 168, 0.35);
    padding: 5px 10px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
}
.readout span { display: block; }
.readout-a { top: 12%; right: -6%; }
.readout-b { top: 48%; left: -4%; }
.readout-c { bottom: 8%; right: 8%; }

.spread.is-visible .readout.typewriter {
    opacity: 1;
    animation: typewriter 1800ms steps(28, end) forwards;
}
@keyframes typewriter {
    from { max-width: 0; }
    to   { max-width: 320px; }
}

/* Circular gauge */
.gauge-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: clamp(16px, 2vw, 32px);
}
.gauge-wrap.centered { align-items: center; }
.gauge {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background:
        conic-gradient(var(--grad-signature) 0%, rgba(196, 184, 154, 0.18) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 1200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.gauge-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 168, 0.35);
    pointer-events: none;
}
.gauge-inner {
    width: 66px;
    height: 66px;
    background: var(--c-midnight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}
.spread:not(.dark) .gauge-inner { background: var(--c-parchment); }
.gauge-value {
    font-family: var(--f-mono);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--c-teal);
    text-shadow: 0 0 8px rgba(45, 212, 168, 0.5);
}
.spread:not(.dark) .gauge-value { color: var(--c-midnight); text-shadow: none; }
.gauge-label {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-silver);
}
.spread:not(.dark) .gauge-label { color: var(--c-body); }

/* ==========================================================================
   SPREAD 3 — THE PROCESS
   ========================================================================== */
.process { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 56px); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 56px);
}
.process-col {
    position: relative;
    padding-top: 22px;
    border-top: 1px solid var(--c-silver);
}
.movement-num {
    position: absolute;
    top: -14px;
    left: 0;
    background: var(--c-parchment);
    padding: 0 10px 0 0;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--c-amber);
}
.process-col .body {
    margin: 0;
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
}
.drop-cap {
    float: left;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 3.4em;
    line-height: 0.85;
    padding: 0.1em 0.12em 0 0;
    color: var(--c-midnight);
    background: var(--grad-signature);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    margin-right: 0.05em;
}

.compass-figure {
    margin: 0;
    padding: clamp(20px, 3vw, 40px);
    border: 1px dashed rgba(27, 45, 58, 0.3);
    background: rgba(27, 45, 58, 0.02);
    position: relative;
}

/* ==========================================================================
   SPREAD 4 — THE VISION (full bleed)
   ========================================================================== */
.full-bleed .spread-inner { max-width: 1600px; }
.vision {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    text-align: center;
}
.vision .headline { text-align: center; }

.elevation-figure {
    width: 100%;
    margin: 0;
    padding: clamp(16px, 2vw, 32px);
    border-top: 1px solid rgba(245, 230, 200, 0.3);
    border-bottom: 1px solid rgba(245, 230, 200, 0.3);
}
.elevation-svg { width: 100%; height: auto; }

.gauge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 4vw, 72px);
}

.vision-note {
    max-width: 48em;
    font-family: var(--f-body);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    color: var(--c-body-dark);
    margin: 0;
}

/* ==========================================================================
   SPREAD 5 — COLOPHON
   ========================================================================== */
.colophon { display: flex; justify-content: center; }
.corner-frame {
    position: relative;
    padding: clamp(36px, 5vw, 80px);
    max-width: 820px;
    width: 100%;
    background: rgba(27, 45, 58, 0.02);
    border: 1px dashed rgba(27, 45, 58, 0.15);
}
.corner-frame .corner {
    position: absolute;
    width: 34px;
    height: 34px;
    opacity: 0;
    transition: opacity 600ms ease 400ms;
}
.corner-frame .corner.tl { top: -2px;    left: -2px;   border-top: 2px solid var(--c-teal); border-left: 2px solid var(--c-teal); }
.corner-frame .corner.tr { top: -2px;    right: -2px;  border-top: 2px solid var(--c-teal); border-right: 2px solid var(--c-teal); }
.corner-frame .corner.bl { bottom: -2px; left: -2px;   border-bottom: 2px solid var(--c-teal); border-left: 2px solid var(--c-teal); }
.corner-frame .corner.br { bottom: -2px; right: -2px;  border-bottom: 2px solid var(--c-teal); border-right: 2px solid var(--c-teal); }

.colophon-head { margin-bottom: clamp(24px, 3vw, 40px); }
.mono-headline {
    font-family: var(--f-mono);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-midnight);
    margin: 0;
    text-shadow: 0 0 12px rgba(45, 212, 168, 0.2);
}

.colophon-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.colophon-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1fr);
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(27, 45, 58, 0.18);
    font-family: var(--f-mono);
    font-size: clamp(0.75rem, 1vw, 0.92rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.colophon-row dt {
    color: var(--c-amber);
    margin: 0;
}
.colophon-row dd {
    margin: 0;
    color: var(--c-midnight);
    text-shadow: 0 0 8px rgba(45, 212, 168, 0.18);
}

.colophon-footer {
    margin-top: clamp(24px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-teal);
    text-shadow: 0 0 8px rgba(45, 212, 168, 0.4);
}
.colophon-footer .cursor {
    display: inline-block;
    animation: blink 1s steps(2) infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ==========================================================================
   ENTRY ANIMATIONS (IntersectionObserver driven via .is-visible)
   ========================================================================== */
.spread .section-tag,
.spread .folio-mark,
.spread .frontispiece-subtitle,
.spread .vision-note,
.spread .illus-frame,
.spread .compass-figure,
.spread .elevation-figure,
.spread .gauge-wrap,
.spread .gauge-row,
.spread .corner-frame,
.spread .colophon-list,
.spread .colophon-footer {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.spread.is-visible .section-tag,
.spread.is-visible .folio-mark,
.spread.is-visible .frontispiece-subtitle,
.spread.is-visible .vision-note,
.spread.is-visible .illus-frame,
.spread.is-visible .compass-figure,
.spread.is-visible .elevation-figure,
.spread.is-visible .gauge-wrap,
.spread.is-visible .gauge-row,
.spread.is-visible .corner-frame,
.spread.is-visible .colophon-list,
.spread.is-visible .colophon-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered HUD fade-in for readouts */
.readout-a { transition-delay: 200ms; }
.readout-b { transition-delay: 400ms; }
.readout-c { transition-delay: 600ms; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .headline { font-size: clamp(2.2rem, 9vw, 4rem); }
    .headline-xl { font-size: clamp(2.4rem, 10vw, 5rem); }
    .frontispiece-title { font-size: clamp(3.5rem, 18vw, 7rem); }

    /* Hide visual clutter on small screens */
    .crosshair { display: none; }
    .gauge-row .gauge-wrap { margin-top: 16px; }
    .readout { display: none; }

    .status-lights {
        display: none;
        position: absolute;
        top: var(--panel-h);
        right: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        background: linear-gradient(180deg, #3a3732 0%, #26231f 100%);
        padding: 16px;
        border: 1px solid rgba(196, 184, 154, 0.3);
        box-shadow: 0 10px 28px rgba(0,0,0,0.45);
    }
    .hamburger { display: inline-flex; }

    .colophon-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    .logotype { font-size: 0.78rem; letter-spacing: 0.22em; }
    .spread { padding: 64px 20px; }
    .illus-frame { padding: 16px; }
    .corner-frame { padding: 24px; }
    .meta-block { align-items: flex-start; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
