/* parallengine.com -- magazine-spread, lens-flare, zoom-focus */

:root {
    --bg-deep: #0B0E1A;
    --bg-mid: #1B2340;
    --accent-warm: #FFD166;
    --accent-cool: #C8B6FF;
    --accent-aqua: #7EC8E3;
    --surface: #2A2D3E;
    --text-primary: #E8E6F0;
    --text-muted: #9896A8;

    --ease-focus: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-cam: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: "Nunito Sans", "Inter", system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 100vh;
}

main.folio {
    width: 100%;
}

/* --- Progress bar --- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: rgba(200, 182, 255, 0.30);
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 1000;
    cursor: pointer;
    transition: background-color 300ms ease;
}

.progress-bar:hover {
    background-color: rgba(200, 182, 255, 0.55);
}

/* --- Spread index overlay --- */
.spread-index {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 182, 255, 0.18);
    padding: 10px 24px;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.spread-index[hidden] {
    display: none;
}

.spread-index.visible {
    opacity: 1;
    pointer-events: auto;
}

.spread-index ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.spread-index a {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: rgba(200, 182, 255, 0.6);
    text-decoration: none;
    transition: color 250ms var(--ease-focus);
}

.spread-index a:hover,
.spread-index a.current {
    color: var(--accent-warm);
}

/* --- Spread base --- */
.spread {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 80px clamp(24px, 6vw, 96px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gradient-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1200ms var(--ease-cam);
}

.gradient-field.visible {
    opacity: 1;
}

.gradient-deep {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(200, 182, 255, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 209, 102, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, #0B0E1A 0%, #1B2340 100%);
}

.gradient-inverse {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(126, 200, 227, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(200, 182, 255, 0.07) 0%, transparent 60%),
        linear-gradient(160deg, #1B2340 0%, #0B0E1A 100%);
    opacity: 1;
}

/* --- Folio meta --- */
.folio-meta {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 24px;
    align-items: center;
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(200, 182, 255, 0.6);
    margin-bottom: clamp(40px, 8vh, 100px);
}

.folio-num {
    color: var(--accent-warm);
}

.folio-meta-close {
    position: absolute;
    top: 80px;
    left: clamp(24px, 6vw, 96px);
    margin-bottom: 0;
}

/* --- Lens flares --- */
.lensflare-cluster {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.flare {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.flare-warm {
    background: radial-gradient(circle, rgba(255, 209, 102, 0.30) 0%, rgba(255, 209, 102, 0.10) 35%, transparent 70%);
}

.flare-cool {
    background: radial-gradient(circle, rgba(126, 200, 227, 0.28) 0%, rgba(126, 200, 227, 0.10) 35%, transparent 70%);
}

.flare-a { width: 320px; height: 320px; top: 8%;  left: 6%;  animation: drift-a 42s ease-in-out infinite; }
.flare-b { width: 220px; height: 220px; top: 60%; left: 12%; animation: drift-b 48s ease-in-out infinite; }
.flare-c { width: 380px; height: 380px; top: 20%; left: 60%; animation: drift-c 54s ease-in-out infinite; }
.flare-d { width: 160px; height: 160px; top: 70%; left: 65%; animation: drift-d 38s ease-in-out infinite; }
.flare-e { width: 240px; height: 240px; top: 35%; left: 35%; animation: drift-e 46s ease-in-out infinite; }
.flare-f { width: 200px; height: 200px; top: 75%; left: 40%; animation: drift-f 50s ease-in-out infinite; }
.flare-g { width: 140px; height: 140px; top: 15%; left: 80%; animation: drift-g 36s ease-in-out infinite; }

.flare-up-a { width: 280px; height: 280px; top: 70%; left: 12%; animation: drift-up-a 44s ease-in-out infinite; }
.flare-up-b { width: 220px; height: 220px; top: 80%; left: 70%; animation: drift-up-b 50s ease-in-out infinite; }
.flare-up-c { width: 360px; height: 360px; top: 50%; left: 55%; animation: drift-up-c 56s ease-in-out infinite; }
.flare-up-d { width: 160px; height: 160px; top: 30%; left: 30%; animation: drift-up-d 40s ease-in-out infinite; }
.flare-up-e { width: 200px; height: 200px; top: 20%; left: 75%; animation: drift-up-e 48s ease-in-out infinite; }

@keyframes drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, 80px) scale(1.08); }
}
@keyframes drift-b {
    0%, 100% { transform: translate(0, 0) scale(0.95); }
    50%      { transform: translate(-50px, -70px) scale(1.05); }
}
@keyframes drift-c {
    0%, 100% { transform: translate(0, 0) scale(1.02); }
    50%      { transform: translate(-90px, 60px) scale(0.92); }
}
@keyframes drift-d {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(70px, -40px) scale(1.10); }
}
@keyframes drift-e {
    0%, 100% { transform: translate(0, 0) scale(0.98); }
    50%      { transform: translate(40px, 50px) scale(1.06); }
}
@keyframes drift-f {
    0%, 100% { transform: translate(0, 0) scale(1.05); }
    50%      { transform: translate(-60px, -30px) scale(0.95); }
}
@keyframes drift-g {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, 70px) scale(1.08); }
}

@keyframes drift-up-a {
    0%   { transform: translate(0, 40px) scale(0.95); }
    100% { transform: translate(20px, -120px) scale(1.05); }
}
@keyframes drift-up-b {
    0%   { transform: translate(0, 60px) scale(1); }
    100% { transform: translate(-40px, -160px) scale(0.95); }
}
@keyframes drift-up-c {
    0%   { transform: translate(0, 80px) scale(1.05); }
    100% { transform: translate(60px, -200px) scale(0.92); }
}
@keyframes drift-up-d {
    0%   { transform: translate(0, 30px) scale(1); }
    100% { transform: translate(-20px, -100px) scale(1.08); }
}
@keyframes drift-up-e {
    0%   { transform: translate(0, 50px) scale(0.98); }
    100% { transform: translate(30px, -140px) scale(1.04); }
}

.flare.lit {
    opacity: 1;
    transition: opacity 1200ms var(--ease-cam);
}

/* --- Spread divider (zen rake) --- */
.spread-divider {
    position: absolute;
    bottom: 30px;
    left: clamp(24px, 6vw, 96px);
    right: clamp(24px, 6vw, 96px);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    opacity: 0.6;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: rgba(200, 182, 255, 0.15);
}

.divider-diamond {
    width: 8px;
    height: 8px;
    background-color: rgba(200, 182, 255, 0.40);
    transform: rotate(45deg);
}

/* ---------------------------------------------- */
/* SPREAD 1: Opening Folio */
/* ---------------------------------------------- */
.spread-opening {
    justify-content: center;
    align-items: flex-start;
}

.spread-opening .folio-meta {
    position: absolute;
    top: 80px;
    left: clamp(24px, 6vw, 96px);
    margin-bottom: 0;
}

.title {
    position: relative;
    z-index: 3;
    font-family: "Righteous", "Poppins", sans-serif;
    font-size: 15vw;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transform: translateX(-8%) translateY(-4%) scale(0.9);
    opacity: 0;
    transition: transform 800ms var(--ease-cam), opacity 800ms var(--ease-cam);
    text-shadow: 0 0 60px rgba(255, 209, 102, 0.10);
}

.title.in-focus {
    transform: translateX(-8%) translateY(-4%) scale(1);
    opacity: 1;
}

.downchevron {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 1000ms var(--ease-cam) 2400ms;
}

.spread-opening.opened .downchevron {
    opacity: 0.7;
}

.chev-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, rgba(200, 182, 255, 0.6));
    animation: chev-pulse 2.4s ease-in-out infinite;
}

.chev-arrow {
    width: 8px;
    height: 8px;
    border-right: 1px solid rgba(200, 182, 255, 0.7);
    border-bottom: 1px solid rgba(200, 182, 255, 0.7);
    transform: rotate(45deg);
    animation: chev-pulse 2.4s ease-in-out infinite 0.2s;
}

.chev-text {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(200, 182, 255, 0.5);
    text-transform: uppercase;
    margin-top: 4px;
}

@keyframes chev-pulse {
    0%, 100% { opacity: 0.4; transform: translateY(0) rotate(0); }
    50%      { opacity: 1;   transform: translateY(4px) rotate(0); }
}

.chev-arrow {
    animation-name: chev-pulse-arrow;
}

@keyframes chev-pulse-arrow {
    0%, 100% { opacity: 0.4; transform: translateY(0) rotate(45deg); }
    50%      { opacity: 1;   transform: translateY(4px) rotate(45deg); }
}

/* ---------------------------------------------- */
/* SPREAD 2: The Diagram */
/* ---------------------------------------------- */
.spread-diagram {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(200, 182, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 209, 102, 0.04) 0%, transparent 60%);
    justify-content: flex-start;
}

.diagram-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 55fr 5fr 40fr;
    grid-template-areas: "figure gutter text";
    gap: 0;
    width: 100%;
    flex: 1;
    align-items: stretch;
}

.diagram-figure {
    grid-area: figure;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 800ms var(--ease-focus), opacity 800ms var(--ease-focus);
}

.diagram-text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 20px;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 800ms var(--ease-focus) 120ms, opacity 800ms var(--ease-focus) 120ms;
}

.spread.in-view .diagram-figure,
.spread.in-view .diagram-text {
    transform: scale(1);
    opacity: 1;
}

.diagram-svg {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
}

.diagram-svg .lines-group path {
    stroke: var(--accent-cool);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.4;
}

.diagram-svg .nodes-group circle {
    fill: var(--surface);
    stroke: var(--accent-cool);
    stroke-width: 1;
}

.diagram-svg .nodes-group line {
    stroke: var(--accent-cool);
    stroke-width: 1;
    opacity: 0.5;
}

.diagram-svg .vanish-core {
    fill: var(--accent-warm);
    opacity: 0.85;
}

.diagram-svg .vanish-ring {
    fill: none;
    stroke: var(--accent-warm);
    stroke-width: 1;
    opacity: 0.4;
}

.diagram-svg .diagram-label {
    font-family: "Audiowide", sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    fill: var(--accent-cool);
    fill-opacity: 0.6;
    text-transform: uppercase;
}

.figure-caption {
    display: flex;
    gap: 16px;
    align-items: baseline;
    border-top: 1px solid rgba(200, 182, 255, 0.15);
    padding-top: 14px;
}

.cap-num {
    font-family: "Audiowide", sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent-warm);
    flex-shrink: 0;
}

.cap-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.kicker {
    font-family: "Audiowide", sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(200, 182, 255, 0.6);
}

h2 {
    font-family: "Righteous", "Poppins", sans-serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.diagram-text p {
    font-size: clamp(0.95rem, 1.05vw, 1.1rem);
    color: var(--text-primary);
    max-width: 38ch;
}

.diagram-meta {
    list-style: none;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(200, 182, 255, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.diagram-meta li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-key {
    font-family: "Audiowide", sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(200, 182, 255, 0.55);
}

.meta-val {
    font-family: "Righteous", "Poppins", sans-serif;
    font-size: 1.05rem;
    color: var(--accent-warm);
    letter-spacing: 0.02em;
}

/* ---------------------------------------------- */
/* SPREAD 3: The Gallery */
/* ---------------------------------------------- */
.spread-gallery {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 50% 20%, rgba(200, 182, 255, 0.05) 0%, transparent 55%);
    justify-content: flex-start;
}

.gallery-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    max-width: 60ch;
}

.tile-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    background-color: var(--bg-deep);
    flex: 1;
    min-height: 60vh;
}

.tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    cursor: default;
    transform: scale(0.88);
    opacity: 0;
    transition: transform 600ms var(--ease-focus), opacity 600ms var(--ease-focus);
}

.spread.in-view .tile {
    transform: scale(1);
    opacity: 1;
}

.spread.in-view .tile-1 { transition-delay: 0ms; }
.spread.in-view .tile-2 { transition-delay: 80ms; }
.spread.in-view .tile-3 { transition-delay: 160ms; }
.spread.in-view .tile-4 { transition-delay: 240ms; }
.spread.in-view .tile-5 { transition-delay: 320ms; }
.spread.in-view .tile-6 { transition-delay: 400ms; }

.tile-1 { background: linear-gradient(135deg, #1B2340 0%, #0B0E1A 100%); }
.tile-2 { background: linear-gradient(135deg, #2A2D3E 0%, #1B2340 100%); }
.tile-3 { background: linear-gradient(135deg, #0B0E1A 0%, #2A2D3E 100%); }
.tile-4 { background: linear-gradient(135deg, #1B2340 0%, #2A2D3E 100%); }
.tile-5 { background: linear-gradient(135deg, #2A2D3E 0%, #0B0E1A 100%); }
.tile-6 { background: linear-gradient(135deg, #0B0E1A 0%, #1B2340 100%); }

.tile::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 209, 102, 0.10) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 400ms var(--ease-focus);
}

.tile-svg {
    width: 100%;
    height: 70%;
    max-height: 220px;
    display: block;
    margin: auto;
    transition: transform 400ms var(--ease-focus);
}

.tile-svg path,
.tile-svg line,
.tile-svg circle,
.tile-svg rect {
    stroke: var(--accent-cool);
    fill: none;
    stroke-width: 1.5;
    opacity: 0.35;
    transition: opacity 300ms var(--ease-focus);
}

.tile-svg .tile-circuit circle {
    fill: var(--accent-warm);
    stroke: none;
    opacity: 0.55;
}

.tile-svg .tile-wave {
    stroke: var(--accent-aqua);
    stroke-width: 1;
    opacity: 0.5;
    fill: none;
}

.tile-svg .tile-wave-b { opacity: 0.35; }
.tile-svg .tile-wave-c { opacity: 0.30; }

.tile-svg .tile-nodes circle {
    fill: var(--surface);
    stroke: var(--accent-cool);
    stroke-width: 1;
    opacity: 0.7;
}

.tile-svg .tile-grid rect {
    stroke: var(--accent-cool);
    stroke-width: 1;
    opacity: 0.4;
    fill: none;
}

.tile-svg .tile-grid .cell-fill {
    fill: rgba(255, 209, 102, 0.15);
    stroke: var(--accent-warm);
    stroke-width: 1;
    opacity: 0.7;
}

.tile-svg .tile-converge .converge-core {
    fill: var(--accent-warm);
    stroke: none;
    opacity: 0.85;
}

.tile-svg .tile-converge .converge-ring {
    fill: none;
    stroke: var(--accent-warm);
    stroke-width: 1;
    opacity: 0.5;
}

.tile-svg .tile-stack rect {
    fill: rgba(200, 182, 255, 0.15);
    stroke: var(--accent-cool);
    stroke-width: 1;
    opacity: 0.55;
}

.tile-svg .tile-stack .stack-rule {
    stroke: var(--accent-aqua);
    stroke-width: 1;
    opacity: 0.5;
}

.tile-meta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(200, 182, 255, 0.18);
    padding-top: 12px;
    margin-top: 12px;
}

.tile-num {
    font-family: "Audiowide", sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--accent-warm);
}

.tile-name {
    font-family: "Audiowide", sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: rgba(200, 182, 255, 0.6);
    text-transform: uppercase;
}

.tile-grid:hover .tile {
    opacity: 0.7;
}

.tile-grid:hover .tile.is-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 5;
}

.tile-grid:hover .tile.is-active .tile-svg path,
.tile-grid:hover .tile.is-active .tile-svg line,
.tile-grid:hover .tile.is-active .tile-svg circle:not(.converge-core),
.tile-grid:hover .tile.is-active .tile-svg rect {
    opacity: 0.65;
}

.tile.is-touch-active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 5;
}

.tile.is-touch-active .tile-svg path,
.tile.is-touch-active .tile-svg line,
.tile.is-touch-active .tile-svg circle:not(.converge-core),
.tile.is-touch-active .tile-svg rect {
    opacity: 0.65;
}

/* ---------------------------------------------- */
/* SPREAD 4: The Statement */
/* ---------------------------------------------- */
.spread-statement {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(43, 45, 62, 0.6) 0%, transparent 70%);
    justify-content: center;
    align-items: center;
}

.statement-block {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 28px);
    text-align: center;
}

.statement-line {
    font-family: "Righteous", "Poppins", sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: lowercase;
}

.statement-line-a { color: var(--accent-warm); }
.statement-line-b { color: var(--accent-cool); }
.statement-line-c { color: var(--accent-aqua); }

.statement-line .word {
    display: inline-block;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 600ms var(--ease-focus), opacity 600ms var(--ease-focus);
    margin: 0 0.12em;
}

.spread.in-view .statement-line .word.lit {
    transform: scale(1);
    opacity: 1;
}

.statement-mark {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.kicker-rule {
    width: 36px;
    height: 1px;
    background-color: rgba(200, 182, 255, 0.4);
}

/* ---------------------------------------------- */
/* SPREAD 5: The Close */
/* ---------------------------------------------- */
.spread-close {
    justify-content: center;
    align-items: center;
}

.close-block {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 800ms var(--ease-focus), opacity 800ms var(--ease-focus);
}

.spread.in-view .close-block {
    transform: scale(1);
    opacity: 1;
}

.close-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    width: clamp(180px, 30vw, 320px);
}

.mark-line {
    flex: 1;
    height: 1px;
    background-color: rgba(200, 182, 255, 0.30);
}

.mark-diamond {
    width: 8px;
    height: 8px;
    background-color: var(--accent-aqua);
    transform: rotate(45deg);
}

.close-text {
    font-family: "Nunito Sans", "Inter", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-align: center;
}

.close-imprint {
    font-family: "Audiowide", sans-serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(152, 150, 168, 0.7);
    text-align: center;
}

/* ---------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------- */
@media (max-width: 768px) {
    .spread {
        padding: 64px clamp(20px, 5vw, 40px);
    }

    .title {
        font-size: 22vw;
        transform: translateX(0) translateY(0) scale(0.9);
    }

    .title.in-focus {
        transform: translateX(0) translateY(0) scale(1);
    }

    .diagram-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "figure"
            "text";
        gap: 36px;
    }

    .diagram-figure { grid-area: figure; }
    .diagram-text   { grid-area: text; }
    .diagram-svg { max-height: 50vh; }

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

    .diagram-meta {
        grid-template-columns: 1fr 1fr;
    }

    .folio-meta {
        gap: 14px;
        font-size: 10px;
    }

    .spread-divider {
        bottom: 18px;
    }

    .downchevron { bottom: 36px; }

    .statement-mark { bottom: 40px; }
}

@media (max-width: 480px) {
    .tile-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, minmax(180px, 1fr));
    }

    .diagram-meta {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flare,
    .chev-line,
    .chev-arrow {
        animation: none !important;
    }

    .gradient-field,
    .title,
    .flare,
    .diagram-figure,
    .diagram-text,
    .tile,
    .statement-line .word,
    .close-block {
        transition-duration: 200ms !important;
    }
}
