/* =====================================================================
   concurrent.quest — Deep Burgundy / Terminal / Magazine-Spread Layout
   Colors: #1a0a0e, #2d1018, #3d1a22, #8b2d2d, #b8734a, #d4a254,
           #e8ddd0, #9a7b7b
   Fonts:  Space Mono, Cormorant Garamond, Avenir Next / Helvetica
   Compliance terms: IntersectionObserver` detect when sections entry elements (Google
   ===================================================================== */

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

:root {
    --c-bg: #1a0a0e;
    --c-bg-2: #2d1018;
    --c-hairline: #3d1a22;
    --c-amber: #d4a254;
    --c-copper: #b8734a;
    --c-crimson: #8b2d2d;
    --c-parchment: #e8ddd0;
    --c-rose: #9a7b7b;

    --font-terminal: "Space Mono", ui-monospace, "SFMono-Regular", "Courier New", monospace;
    --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-display: "Avenir Next", "Helvetica Neue", Helvetica, system-ui, sans-serif;

    --elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-quiet: cubic-bezier(0.22, 0.61, 0.36, 1);

    --gutter: 24px;
    --spread-pad: clamp(2rem, 5vw, 6rem);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--c-bg);
    color: var(--c-parchment);
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga", "kern";
    hyphens: auto;
    position: relative;
}

/* ---------------------------------------------------------------------
   Ambient layers: grain, vignette
   --------------------------------------------------------------------- */

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.83 0 0 0 0 0.64 0 0 0 0 0.29 0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 140px 140px;
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(ellipse at center, rgba(45, 16, 24, 0) 40%, rgba(26, 10, 14, 0.7) 100%),
        radial-gradient(ellipse at center, rgba(139, 45, 45, 0.05) 0%, transparent 60%);
}

/* ---------------------------------------------------------------------
   Page indicator
   --------------------------------------------------------------------- */

.page-indicator {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    font-family: var(--font-terminal);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--c-amber);
    display: inline-flex;
    gap: 0.4em;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--c-hairline);
    background: rgba(26, 10, 14, 0.55);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    font-feature-settings: "tnum";
}

.indicator-label { color: var(--c-rose); }
.indicator-current {
    color: var(--c-parchment);
    font-weight: 700;
    transition: color 0.6s var(--ease-quiet);
}
.indicator-divider { color: var(--c-hairline); }
.indicator-total { color: var(--c-rose); }

/* ---------------------------------------------------------------------
   Binary strips (crop marks)
   --------------------------------------------------------------------- */

.binary-strip {
    position: relative;
    font-family: var(--font-terminal);
    font-size: 7px;
    letter-spacing: 0.18em;
    color: var(--c-hairline);
    line-height: 1;
    padding: 8px 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
    z-index: 3;
}

.binary-strip::before {
    content: "01100011 01100001 01110010 01110001 01110101 01100101 01101110 01110100 00101110 01110001 01110101 01100101 01110011 01110100 00100000 01110000 00100011 01110110 00100011 01110000 00100011 01110110 00100011 01110000 00100011 01110110 ";
    display: inline-block;
    animation: strip-drift 80s linear infinite;
}

.binary-strip-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--c-hairline);
}

.binary-strip-bottom {
    border-top: 1px solid var(--c-hairline);
}

.binary-strip-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px dashed var(--c-hairline);
    opacity: 0.6;
}

@keyframes strip-drift {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   SPREAD 01 — Boot Sequence
   --------------------------------------------------------------------- */

.boot-sequence {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at center, #2d1018 0%, #1a0a0e 70%);
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 5rem);
    overflow: hidden;
    z-index: 4;
}

.boot-sequence::before {
    /* Scanline overlay */
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(212, 162, 84, 0) 0px,
        rgba(212, 162, 84, 0) 2px,
        rgba(212, 162, 84, 0.035) 3px,
        rgba(212, 162, 84, 0) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.watermark {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(14rem, 32vw, 28rem);
    color: var(--c-amber);
    opacity: 0.04;
    line-height: 0.8;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.watermark-p { top: -4vw; left: -2vw; }
.watermark-v { bottom: -6vw; right: -3vw; }

.terminal-frame {
    position: relative;
    z-index: 2;
    width: min(860px, 100%);
    border: 1px solid var(--c-hairline);
    background: rgba(26, 10, 14, 0.55);
    padding: 0 0 3rem;
    box-shadow:
        0 0 0 1px rgba(212, 162, 84, 0.04),
        0 40px 120px rgba(0, 0, 0, 0.5),
        inset 0 0 80px rgba(139, 45, 45, 0.05);
}

.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--c-hairline);
    font-family: var(--font-terminal);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--c-rose);
    text-transform: uppercase;
}

.chrome-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-hairline);
    border: 1px solid rgba(212, 162, 84, 0.25);
}
.chrome-dot-a { background: var(--c-crimson); }
.chrome-dot-b { background: var(--c-copper); }
.chrome-dot-c { background: var(--c-amber); }
.chrome-label { margin-left: 0.6rem; }

.terminal-output {
    padding: 1.6rem clamp(1rem, 3vw, 2.2rem) 0.8rem;
    font-family: var(--font-terminal);
    font-size: clamp(0.875rem, 1.5vw, 1.05rem);
    letter-spacing: 0.05em;
    color: var(--c-amber);
    font-feature-settings: "tnum";
}

.boot-line {
    opacity: 0;
    transform: translateY(4px);
    animation: boot-reveal 0.45s var(--elastic) forwards;
    animation-delay: calc(var(--line) * 0.4s);
    margin-bottom: 0.35rem;
}

.boot-line .prompt {
    color: var(--c-crimson);
    margin-right: 0.6em;
}

.boot-line-final {
    color: var(--c-parchment);
}

.cursor {
    display: inline-block;
    width: 0.5em;
    border-right: 2px solid var(--c-crimson);
    animation: blink 1s step-end infinite;
    margin-left: 0.15em;
    height: 1em;
    vertical-align: -0.12em;
}

.cursor-boot {
    animation-delay: 4.5s;
}

@keyframes boot-reveal {
    0%   { opacity: 0; transform: translateY(4px); }
    60%  { opacity: 1; transform: translateY(-1px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 49%   { border-right-color: var(--c-crimson); }
    50%, 100% { border-right-color: transparent; }
}

.boot-title {
    margin: 2.5rem clamp(1rem, 3vw, 2.2rem) 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--c-parchment);
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0;
    animation: title-rise 1s var(--elastic) forwards;
    animation-delay: 5s;
}

.boot-title-dot { color: var(--c-crimson); }

.boot-subtitle {
    margin: 0.9rem clamp(1rem, 3vw, 2.2rem) 0;
    font-family: var(--font-terminal);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-rose);
    opacity: 0;
    animation: title-rise 1s var(--elastic) forwards;
    animation-delay: 5.3s;
}

@keyframes title-rise {
    0%   { opacity: 0; transform: translateY(20px); }
    70%  { opacity: 1; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-terminal);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--c-rose);
    text-transform: uppercase;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    animation: title-rise 1s var(--elastic) forwards, scroll-pulse 2.2s ease-in-out 6.2s infinite;
    animation-delay: 5.8s;
    z-index: 3;
}

.scroll-hint-arrow {
    font-size: 1rem;
    color: var(--c-amber);
}

@keyframes scroll-pulse {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
}

/* ---------------------------------------------------------------------
   Common spread
   --------------------------------------------------------------------- */

.spread {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    padding: var(--spread-pad);
    z-index: 4;
    background: var(--c-bg);
}

.spread::before {
    /* Hairline column marks visible on hover */
    content: "";
    position: absolute;
    inset: var(--spread-pad);
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to right,
        rgba(139, 45, 45, 0.0) 0,
        rgba(139, 45, 45, 0.0) calc((100% - 11 * 24px) / 12),
        rgba(139, 45, 45, 0.15) calc((100% - 11 * 24px) / 12),
        rgba(139, 45, 45, 0.15) calc((100% - 11 * 24px) / 12 + 1px),
        rgba(139, 45, 45, 0.0) calc((100% - 11 * 24px) / 12 + 1px),
        rgba(139, 45, 45, 0.0) calc((100% - 11 * 24px) / 12 + 24px)
    );
    opacity: 0;
    transition: opacity 0.8s var(--ease-quiet);
}

.spread:hover::before { opacity: 0.6; }

.spread-header {
    grid-column: 2 / 7;
    margin-bottom: 1.5rem;
}

.spread-header-inline {
    grid-column: 2 / 12;
    text-align: center;
    margin-bottom: 3rem;
}

.spread-header-left {
    grid-column: 2 / 6;
    align-self: center;
}

.spread-number {
    display: inline-block;
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-amber);
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--c-hairline);
    margin-bottom: 1.1rem;
}

.spread-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.02;
    color: var(--c-parchment);
    text-transform: uppercase;
}

.spread-subtitle {
    display: block;
    margin-top: 0.9rem;
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--c-rose);
    font-weight: 300;
}

.spread-kicker {
    margin-top: 1.2rem;
    font-family: var(--font-body);
    color: var(--c-parchment);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    max-width: 34ch;
}

/* ---------------------------------------------------------------------
   SPREAD 02 — Process Table
   --------------------------------------------------------------------- */

.spread-process-table {
    padding-top: calc(var(--spread-pad) + 1rem);
}

.spread-narrative {
    grid-column: 2 / 7;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: transform 0.8s var(--elastic), opacity 0.6s ease-out;
}

.spread-narrative.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.dropcap-paragraph { position: relative; }
.dropcap {
    float: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 5.2rem;
    line-height: 0.9;
    color: var(--c-amber);
    padding: 0.25rem 0.7rem 0 0;
    margin-top: 0.1rem;
}

.spread-narrative p { margin-top: 1.2rem; }

.pull-quote {
    margin: 2rem 0;
    padding: 1.2rem 1.4rem;
    border-top: 1px solid var(--c-hairline);
    border-bottom: 1px solid var(--c-hairline);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.3;
    color: var(--c-amber);
    font-style: italic;
}

.pull-quote cite {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-terminal);
    color: var(--c-rose);
}

.caption {
    margin-top: 1.4rem;
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--c-rose);
    border-top: 1px dotted var(--c-hairline);
    padding-top: 0.8rem;
}

.process-grid {
    grid-column: 8 / 13;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-self: start;
    padding: 1.2rem;
    border: 1px solid var(--c-hairline);
    background: rgba(45, 16, 24, 0.35);
    opacity: 0;
    transform: translateX(30px);
    transition: transform 0.8s var(--elastic), opacity 0.6s ease-out;
}

.process-grid.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.process-icon {
    aspect-ratio: 1 / 1.15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 0.5rem 0.7rem;
    border: 1px solid var(--c-hairline);
    background: rgba(26, 10, 14, 0.45);
    position: relative;
    transition: border-color 0.4s var(--ease-quiet), background 0.4s var(--ease-quiet);
}

.process-icon svg {
    width: 60%;
    height: 60%;
    fill: none;
    stroke: var(--c-amber);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(212, 162, 84, 0.3));
    animation: breathe var(--duration, 4s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(212, 162, 84, 0.25)); }
    50%      { transform: scale(1.03); filter: drop-shadow(0 0 6px rgba(212, 162, 84, 0.45)); }
}

.process-label {
    font-family: var(--font-terminal);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--c-rose);
    text-transform: uppercase;
    font-feature-settings: "tnum";
}

.process-icon:hover {
    border-color: var(--c-crimson);
    background: rgba(139, 45, 45, 0.08);
}

.process-icon:hover svg {
    stroke: var(--c-parchment);
}

.hairline-vertical {
    grid-column: 7 / 8;
    justify-self: center;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--c-hairline) 20%,
        var(--c-hairline) 80%,
        transparent 100%
    );
    align-self: stretch;
}

/* ---------------------------------------------------------------------
   SPREAD 03 — Timeline Gutter
   --------------------------------------------------------------------- */

.spread-timeline {
    align-content: start;
}

.timeline-grid {
    grid-column: 1 / 13;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr auto 1fr;
    row-gap: 2.5rem;
    column-gap: 1.5rem;
    align-items: stretch;
    min-height: 56vh;
    padding: 1rem 0 1rem;
}

.timeline-block {
    padding: 1.2rem 1.2rem 1.3rem;
    border: 1px solid var(--c-hairline);
    background: rgba(45, 16, 24, 0.35);
    position: relative;
    opacity: 0;
    transition: transform 0.8s var(--elastic), opacity 0.6s ease-out;
}

.timeline-block.is-visible { opacity: 1; transform: translate(0, 0) !important; }

.timeline-above {
    grid-row: 1;
    transform: translateY(20px);
    align-self: end;
}

.timeline-below {
    grid-row: 3;
    transform: translateY(-20px);
    align-self: start;
}

.timeline-a { grid-column: 1; }
.timeline-b { grid-column: 2; }
.timeline-c { grid-column: 3; }
.timeline-d { grid-column: 4; }
.timeline-e { grid-column: 5; }

.timeline-marker {
    display: inline-block;
    font-family: var(--font-terminal);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--c-amber);
    margin-bottom: 0.5rem;
    font-feature-settings: "tnum";
    text-transform: uppercase;
}

.timeline-block h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--c-parchment);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.timeline-block p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--c-rose);
}

.timeline-block::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 24px;
    background: var(--c-hairline);
}

.timeline-above::before { bottom: -24px; }
.timeline-below::before { top: -24px; }

.timeline-track {
    grid-row: 2;
    grid-column: 1 / 6;
    width: 100%;
    height: 40px;
    align-self: center;
}

.timeline-path {
    fill: none;
    stroke: var(--c-amber);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.6s var(--elastic);
}

.timeline-track.is-visible .timeline-path {
    stroke-dashoffset: 0;
}

.timeline-node {
    fill: var(--c-bg);
    stroke: var(--c-crimson);
    stroke-width: 2;
    opacity: 0;
    transition: opacity 0.5s var(--ease-quiet);
}

.timeline-track.is-visible .timeline-node { opacity: 1; }
.timeline-track.is-visible .timeline-node-1 { transition-delay: 0.4s; }
.timeline-track.is-visible .timeline-node-2 { transition-delay: 0.7s; }
.timeline-track.is-visible .timeline-node-3 { transition-delay: 1.0s; }
.timeline-track.is-visible .timeline-node-4 { transition-delay: 1.3s; }
.timeline-track.is-visible .timeline-node-5 { transition-delay: 1.6s; }

/* ---------------------------------------------------------------------
   SPREAD 04 — Deadlock Diagram
   --------------------------------------------------------------------- */

.spread-deadlock {
    align-content: center;
}

.deadlock-stage {
    grid-column: 6 / 13;
    position: relative;
    width: min(600px, 100%);
    aspect-ratio: 1 / 1;
    justify-self: center;
    align-self: center;
    opacity: 0;
    transform: scale(0.9);
    transition: transform 1s var(--elastic), opacity 0.6s ease-out;
}

.deadlock-stage.is-visible {
    opacity: 1;
    transform: scale(1);
}

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

.deadlock-arrow {
    fill: none;
    stroke: var(--c-amber);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    transition: stroke-dashoffset 1.2s var(--elastic);
}

.deadlock-stage.is-visible .deadlock-arrow { stroke-dashoffset: 0; }
.deadlock-stage.is-visible .deadlock-arrow:nth-child(2) { transition-delay: 0.3s; }
.deadlock-stage.is-visible .deadlock-arrow:nth-child(3) { transition-delay: 0.6s; }
.deadlock-stage.is-visible .deadlock-arrow:nth-child(4) { transition-delay: 0.9s; }
.deadlock-stage.is-visible .deadlock-arrow:nth-child(5) { transition-delay: 1.2s; }

.process-node {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid var(--c-hairline);
    background: rgba(26, 10, 14, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.8rem;
    transform: translate(-50%, -50%);
    font-family: var(--font-terminal);
}

.process-node::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: 0 0 0 0 rgba(139, 45, 45, 0.4);
    opacity: 0;
    animation: deadlock-pulse 2.6s ease-out infinite;
    animation-play-state: paused;
    pointer-events: none;
}

.deadlock-stage.is-visible .process-node {
    animation: node-settle 1s var(--elastic) forwards;
}

.deadlock-stage.is-visible .process-node::after {
    animation-play-state: running;
    animation-delay: 1.8s;
    opacity: 1;
}

@keyframes node-settle {
    0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    60%  { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.node-n { top: 20%;  left: 50%; }
.node-e { top: 50%;  left: 80%; }
.node-s { top: 80%;  left: 50%; }
.node-w { top: 50%;  left: 20%; }

.node-id {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--c-amber);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.node-state {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--c-parchment);
    text-transform: uppercase;
}

.node-waits {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--c-rose);
    text-transform: uppercase;
}

@keyframes deadlock-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(139, 45, 45, 0.45); }
    70%  { box-shadow: 0 0 0 24px rgba(139, 45, 45, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 45, 45, 0); }
}

.deadlock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    color: var(--c-crimson);
    opacity: 0.5;
}

.deadlock-center span:first-child {
    font-size: 2.4rem;
    line-height: 1;
}

.deadlock-center-label {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-rose);
    font-family: var(--font-terminal);
}

.spread-footer {
    grid-column: 2 / 6;
    align-self: center;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--c-hairline);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--c-parchment);
    line-height: 1.6;
}

/* ---------------------------------------------------------------------
   SPREAD 05 — Resolution
   --------------------------------------------------------------------- */

.spread-resolution {
    align-content: center;
    min-height: 100vh;
    padding-top: calc(var(--spread-pad) * 1.2);
    padding-bottom: calc(var(--spread-pad) * 1.2);
    background:
        radial-gradient(ellipse at center, #2d1018 0%, #1a0a0e 70%);
}

.resolution-stack {
    grid-column: 3 / 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.resolution-eyebrow {
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-amber);
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 1s var(--elastic), opacity 0.8s ease-out;
}

.resolution-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--c-parchment);
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-40px);
    transition: transform 1s var(--elastic), opacity 0.8s ease-out;
}

.resolution-body {
    max-width: 46ch;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.75;
    color: var(--c-rose);
    opacity: 0;
    transform: translateX(40px);
    transition: transform 1s var(--elastic), opacity 0.8s ease-out;
}

.quest-map {
    width: min(540px, 100%);
    height: auto;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1s var(--elastic), opacity 0.8s ease-out;
}

.map-path {
    fill: none;
    stroke: var(--c-amber);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 2.2s var(--elastic);
}

.resolution-stack .quest-map.is-visible .map-path { stroke-dashoffset: 0; }
.resolution-stack .quest-map.is-visible .map-path-b { transition-delay: 0.4s; }
.resolution-stack .quest-map.is-visible .map-path-c { transition-delay: 0.8s; }

.map-junction {
    fill: var(--c-bg-2);
    stroke: var(--c-copper);
    stroke-width: 1.6;
}

.map-start {
    fill: var(--c-amber);
    stroke: var(--c-parchment);
    stroke-width: 1.5;
}

.map-destination {
    fill: none;
    stroke: var(--c-crimson);
    stroke-width: 1.8;
    animation: dest-pulse 2.8s ease-in-out infinite;
}

@keyframes dest-pulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

.map-label {
    font-family: var(--font-terminal);
    font-size: 9px;
    letter-spacing: 0.18em;
    fill: var(--c-rose);
    text-transform: uppercase;
}

.resolution-signoff {
    margin-top: 1rem;
    font-family: var(--font-terminal);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: var(--c-amber);
    text-transform: uppercase;
    display: inline-flex;
    gap: 0.7rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1s var(--elastic), opacity 0.8s ease-out;
}

.sigil { color: var(--c-crimson); font-size: 1rem; }

.cursor-final {
    height: 0.95em;
    border-right-color: var(--c-crimson);
}

/* Reveal states for converge animations */
[data-reveal="converge-top"].is-visible,
[data-reveal="converge-bottom"].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="converge-left"].is-visible,
[data-reveal="converge-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 960px) {
    .spread-header,
    .spread-header-left,
    .spread-narrative,
    .process-grid,
    .spread-footer,
    .deadlock-stage,
    .resolution-stack {
        grid-column: 2 / 12;
    }

    .hairline-vertical { display: none; }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .deadlock-stage {
        width: min(440px, 100%);
    }

    .process-node {
        width: 110px;
        height: 110px;
    }
    .node-id { font-size: 1.5rem; }

    .timeline-grid {
        grid-template-columns: repeat(5, minmax(140px, 1fr));
        overflow-x: auto;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .spread {
        grid-template-columns: repeat(6, 1fr);
    }
    .spread-header,
    .spread-header-left,
    .spread-narrative,
    .process-grid,
    .spread-footer,
    .deadlock-stage,
    .resolution-stack {
        grid-column: 1 / 7;
    }
    .process-grid { grid-template-columns: repeat(2, 1fr); }

    .boot-title { font-size: clamp(2rem, 10vw, 3rem); }
}
