/* =========================================================
   a6c.boo — Sunset Warm / Aurora Narrative Ribbon
   palette: #1e1520 #2a1628 #e8764b #d4956a #c94e78
             #faf3e8 #b8a8b0 #3b1d4a #3a2e35 #d4856a
   fonts: Playfair Display, DM Sans, Space Mono
   design language: Interactive Warmth* Warmth:** Warmth: uses ember hover states; IntersectionObserver with a threshold of 0.15 to trigger reveals creates a gentler and more purpose-built entrance rhythm. Interstitial Bands* Bands:** Bands: Between major content sections, Playfair Display numerals appear at oversized scale (clamp(4rem). "Playfair Display" (Google Fonts) carries Playfair's elegance without competing. Color: warm gray-lavender (#b8a8b0. "Space Mono" (Google Fonts) grounds the marginalia.
   ========================================================= */

:root {
    --c-deep-dusk: #1e1520;
    --c-twilight-plum: #2a1628;
    --c-ember-coral: #e8764b;
    --c-soft-tangerine: #d4956a;
    --c-muted-coral: #d4856a;
    --c-aurora-pink: #c94e78;
    --c-cream-glow: #faf3e8;
    --c-haze-lavender: #b8a8b0;
    --c-midnight-violet: #3b1d4a;
    --c-charcoal: #3a2e35;

    --font-display: 'Playfair Display', 'Lora', Georgia, serif;
    --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

    --gradient-sunset: linear-gradient(135deg, #e8764b 0%, #c94e78 50%, #3b1d4a 100%);
    --gradient-horizon: linear-gradient(180deg, #e8764b 0%, #d4956a 30%, #c94e78 60%, #3b1d4a 100%);

    --cursor-x: 50vw;
    --cursor-y: 50vh;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--c-deep-dusk);
    color: var(--c-haze-lavender);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heat shimmer noise layer over the body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    filter: url(#heat-shimmer);
    opacity: 0.03;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Subtle top-to-bottom sunset wash across page background */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232,118,75,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 80% 100%, rgba(59,29,74,0.35) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(201,78,120,0.10) 0%, transparent 70%);
    z-index: 0;
}

.narrative {
    position: relative;
    z-index: 2;
    scroll-snap-type: y proximity;
}

/* =============== GLOW ORBS (fixed bokeh) =============== */
.glow-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.2;
    transition: opacity 400ms var(--ease-smooth), transform 400ms var(--ease-smooth);
    will-change: transform, opacity;
}

.glow-orb.is-near {
    opacity: 0.4 !important;
    transform: scale(1.2);
}

.glow-orb--1 {
    width: 60px; height: 60px;
    top: 15vh; left: 8vw;
    background: radial-gradient(circle, #e8764b 0%, transparent 70%);
    animation: orb-drift-a 25s ease-in-out infinite alternate;
}
.glow-orb--2 {
    width: 80px; height: 80px;
    top: 45vh; right: 12vw;
    background: radial-gradient(circle, #c94e78 0%, transparent 70%);
    animation: orb-drift-b 31s ease-in-out infinite alternate;
}
.glow-orb--3 {
    width: 40px; height: 40px;
    top: 72vh; left: 22vw;
    background: radial-gradient(circle, #d4956a 0%, transparent 70%);
    animation: orb-drift-a 18s ease-in-out infinite alternate-reverse;
}
.glow-orb--4 {
    width: 70px; height: 70px;
    top: 120vh; right: 18vw;
    background: radial-gradient(circle, #e8764b 0%, transparent 70%);
    animation: orb-drift-b 28s ease-in-out infinite alternate;
}
.glow-orb--5 {
    width: 55px; height: 55px;
    top: 180vh; left: 15vw;
    background: radial-gradient(circle, #c94e78 0%, transparent 70%);
    animation: orb-drift-a 22s ease-in-out infinite alternate-reverse;
}
.glow-orb--6 {
    width: 65px; height: 65px;
    top: 240vh; right: 25vw;
    background: radial-gradient(circle, #d4956a 0%, transparent 70%);
    animation: orb-drift-b 33s ease-in-out infinite alternate;
}

@keyframes orb-drift-a {
    0%   { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-60px) translateX(30px); }
}
@keyframes orb-drift-b {
    0%   { transform: translateY(0) translateX(0); }
    100% { transform: translateY(50px) translateX(-40px); }
}

/* =============== TYPOGRAPHY HELPERS =============== */
.label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4956a;
    display: inline-block;
}

em, i { font-style: italic; font-family: var(--font-display); font-weight: 900; }

a {
    color: #e8764b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 300ms var(--ease-smooth), border-color 300ms var(--ease-smooth);
}
a:hover { color: #c94e78; border-bottom-color: #c94e78; }

/* =============== HERO PLATE =============== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem);
    overflow: hidden;
    scroll-snap-align: start;
    background: #2a1628;
}

.hero__aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__aurora-layer {
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    filter: blur(60px);
}

.hero__aurora-layer--1 {
    background: radial-gradient(ellipse 60% 40% at 30% 40%, rgba(232,118,75,0.55) 0%, transparent 60%);
    animation: aurora-layer-1 21s ease-in-out infinite alternate;
}
.hero__aurora-layer--2 {
    background: radial-gradient(ellipse 70% 50% at 70% 30%, rgba(201,78,120,0.45) 0%, transparent 55%);
    animation: aurora-layer-2 13s ease-in-out infinite alternate;
}
.hero__aurora-layer--3 {
    background: radial-gradient(ellipse 50% 60% at 50% 75%, rgba(212,149,106,0.35) 0%, transparent 60%);
    animation: aurora-layer-3 8s ease-in-out infinite alternate;
}
.hero__aurora-layer--4 {
    background: radial-gradient(ellipse 80% 50% at 20% 80%, rgba(59,29,74,0.55) 0%, transparent 65%);
    animation: aurora-layer-1 34s ease-in-out infinite alternate-reverse;
}

.hero__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(30,21,32,0.75) 100%),
        linear-gradient(180deg, transparent 70%, #1e1520 100%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    transform: translateY(var(--parallax-y, 0));
}

.hero__eyebrow {
    color: #e8764b;
    opacity: 0.85;
}

.hero__title {
    font-family: 'Playfair Display', 'Lora', Georgia, serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #faf3e8;
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

.hero__title-line { display: block; }
.hero__title-line--italic {
    background: linear-gradient(135deg, #e8764b 0%, #c94e78 50%, #3b1d4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    padding: 0 0.1em;
}
.hero__title-line--italic em {
    color: inherit;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__lede {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    color: #b8a8b0;
    max-width: 30em;
    line-height: 1.6;
    font-style: italic;
}

.hero__scroll-cue {
    margin-top: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #d4956a;
    opacity: 0.8;
}

.hero__scroll-text {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #e8764b 0%, transparent 100%);
    animation: scroll-pulse 2.4s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* =============== HORIZON RULE =============== */
.horizon-rule {
    border: 0;
    height: 1px;
    width: 60vw;
    margin: clamp(3rem, 8vw, 6rem) auto;
    background: linear-gradient(90deg, transparent 0%, rgba(232,118,75,0.3) 20%, rgba(232,118,75,0.3) 80%, transparent 100%);
}

/* =============== NARRATIVE RIBBON =============== */
.ribbon {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) 0;
    scroll-snap-align: start;
}

.ribbon--wide .ribbon__inner {
    width: 90vw;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.ribbon--narrow .ribbon__inner {
    width: 90vw;
    max-width: 55rem;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: start;
}

.ribbon__header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
    max-width: 42em;
}
.ribbon__header--centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.ribbon__title {
    font-family: 'Playfair Display', 'Lora', Georgia, serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: #faf3e8;
    margin-top: 0.8rem;
}
.ribbon__title em {
    background: linear-gradient(120deg, #e8764b, #c94e78);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ribbon__title--large {
    font-size: clamp(2.5rem, 7vw, 6rem);
}

/* Chapter markers */
.chapter-marker {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Playfair Display', 'Lora', Georgia, serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 1;
    background: linear-gradient(135deg, #e8764b 0%, #c94e78 50%, #3b1d4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.chapter-marker--right { left: auto; right: 2vw; }
.chapter-marker--left { left: 2vw; right: auto; }

/* =============== DUOTONE IMAGERY =============== */
.duotone {
    margin-top: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 1;
}
.duotone--offset {
    margin-left: auto;
    max-width: 90%;
}

.duotone__frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 2px solid rgba(212,149,106,0.2);
    box-shadow:
        0 20px 60px rgba(30,21,32,0.6),
        0 0 120px rgba(232,118,75,0.15);
    transition: transform 600ms var(--ease-smooth), box-shadow 600ms var(--ease-smooth);
}
.duotone:hover .duotone__frame {
    transform: scale(1.01);
    box-shadow:
        0 30px 80px rgba(30,21,32,0.7),
        0 0 160px rgba(201,78,120,0.25);
}

/* The duotone "image" is itself a composition of gradients (no external image needed) */
.duotone__image {
    position: absolute;
    inset: 0;
    filter: grayscale(100%) contrast(1.1);
}

.duotone__image--desert {
    background:
        radial-gradient(ellipse 100% 40% at 50% 65%, #faf3e8 0%, #b8a8b0 25%, #3a2e35 55%, #1e1520 100%),
        linear-gradient(180deg, #2a1628 0%, #3a2e35 55%, #faf3e8 70%, #b8a8b0 85%, #2a1628 100%);
    background-blend-mode: screen;
}

.duotone__image--horizon {
    background:
        radial-gradient(ellipse 120% 55% at 50% 55%, #faf3e8 0%, #b8a8b0 20%, #3a2e35 45%, #1e1520 100%),
        linear-gradient(180deg, #1e1520 0%, #3a2e35 40%, #faf3e8 58%, #b8a8b0 75%, #1e1520 100%);
    background-blend-mode: screen;
}

.duotone__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b1d4a 0%, #e8764b 100%);
    mix-blend-mode: color;
    transition: filter 600ms var(--ease-smooth);
}
.duotone:hover .duotone__overlay {
    filter: hue-rotate(10deg);
}

.duotone__caption {
    position: absolute;
    left: clamp(1rem, 3vw, 2.5rem);
    bottom: clamp(1rem, 3vw, 2rem);
    max-width: 26rem;
    color: #faf3e8;
    background: linear-gradient(135deg, rgba(30,21,32,0.7), rgba(42,22,40,0.5));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1.1rem 1.4rem;
    border-radius: 0.8rem;
    border-left: 2px solid #e8764b;
    z-index: 2;
}
.duotone__caption--right {
    left: auto;
    right: clamp(1rem, 3vw, 2.5rem);
    border-left: 0;
    border-right: 2px solid #c94e78;
}

.duotone__caption p {
    margin-top: 0.4rem;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #b8a8b0;
    font-style: italic;
}

/* =============== PASSAGE (narrow typographic) =============== */
.passage {
    grid-column: 2;
    max-width: 38em;
}

.passage__label { margin-bottom: 1rem; color: #e8764b; }

.passage__title {
    font-family: 'Playfair Display', 'Lora', Georgia, serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #faf3e8;
    margin-bottom: 1.8rem;
}
.passage__title em {
    background: linear-gradient(120deg, #c94e78, #d4956a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.passage__body {
    margin-bottom: 1.2rem;
    color: #b8a8b0;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    max-width: 38em;
}
.passage__body em {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-style: italic;
    font-weight: 500;
    color: #d4956a;
    background: none;
    -webkit-text-fill-color: #d4956a;
}

/* =============== MARGINALIA =============== */
.marginalia {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 1rem;
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4856a;
    opacity: 0.75;
    line-height: 1.5;
}

.marginalia--left { grid-column: 1; justify-self: end; text-align: right; flex-direction: row; }
.marginalia--right { grid-column: 3; justify-self: start; text-align: left; flex-direction: row-reverse; }

.marginalia__text { max-width: 12em; }

.marginalia__rule {
    display: block;
    flex-shrink: 0;
    width: 3rem;
    height: 1px;
    margin-top: 0.6rem;
    background: #d4856a;
    opacity: 0.4;
}
.marginalia__rule--right { background: #d4856a; }

/* =============== AURORA INTERSTITIAL BANDS =============== */
.aurora-band {
    position: relative;
    height: 30vh;
    min-height: 220px;
    overflow: hidden;
    margin: clamp(2rem, 5vw, 4rem) 0;
    scroll-snap-align: none;
}

.aurora-band__inner {
    position: absolute;
    inset: 0;
    will-change: transform, opacity;
}

.aurora-band::before,
.aurora-band::after {
    content: '';
    position: absolute;
    inset: -50%;
    pointer-events: none;
    will-change: transform;
}

.aurora-band--first::before {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(232,118,75,0.33) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(201,78,120,0.42) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 70%, rgba(212,149,106,0.22) 0%, transparent 65%);
    animation: aurora-drift-a 13s ease-in-out infinite alternate;
    filter: blur(40px);
}
.aurora-band--first::after {
    background:
        radial-gradient(ellipse at 20% 60%, rgba(59,29,74,0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(232,118,75,0.22) 0%, transparent 60%);
    animation: aurora-drift-b 21s ease-in-out infinite alternate-reverse;
    filter: blur(50px);
}

.aurora-band--second::before {
    background:
        radial-gradient(ellipse at 60% 40%, rgba(201,78,120,0.38) 0%, transparent 58%),
        radial-gradient(ellipse at 20% 70%, rgba(232,118,75,0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 60%, rgba(59,29,74,0.30) 0%, transparent 60%);
    animation: aurora-drift-a 8s ease-in-out infinite alternate-reverse;
    filter: blur(45px);
}
.aurora-band--second::after {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(212,149,106,0.22) 0%, transparent 50%);
    animation: aurora-drift-b 21s ease-in-out infinite alternate;
    filter: blur(60px);
}

.aurora-band--third::before {
    background:
        radial-gradient(ellipse at 40% 40%, rgba(59,29,74,0.45) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 55%, rgba(201,78,120,0.32) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 70%, rgba(232,118,75,0.20) 0%, transparent 55%);
    animation: aurora-drift-a 13s ease-in-out infinite alternate;
    filter: blur(50px);
}
.aurora-band--third::after {
    background:
        radial-gradient(ellipse at 60% 35%, rgba(42,22,40,0.40) 0%, transparent 60%);
    animation: aurora-drift-b 8s ease-in-out infinite alternate-reverse;
    filter: blur(55px);
}

@keyframes aurora-drift-a {
    0%   { transform: translateX(-10%) scaleY(1); }
    50%  { transform: translateX(5%) scaleY(1.2); }
    100% { transform: translateX(10%) scaleY(0.9); }
}
@keyframes aurora-drift-b {
    0%   { transform: translateX(8%) scaleY(1.1); }
    50%  { transform: translateX(-6%) scaleY(0.95); }
    100% { transform: translateX(-12%) scaleY(1.15); }
}

.aurora-band__label {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 2;
    color: #faf3e8;
    opacity: 0.6;
    mix-blend-mode: screen;
    white-space: nowrap;
}

/* =============== FINAL CARD =============== */
.final-card {
    margin-top: clamp(2rem, 5vw, 4rem);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.final-card__inner {
    padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, rgba(42,22,40,0.6), rgba(59,29,74,0.4));
    border: 1px solid rgba(232,118,75,0.2);
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.final-card__inner::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #e8764b 0%, #c94e78 50%, #3b1d4a 100%);
    opacity: 0.3;
    z-index: -1;
    filter: blur(8px);
}

.final-card__body {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    color: #faf3e8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.final-card__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: #d4956a;
}
.final-card__meta .dot { color: #e8764b; }

/* =============== TERMINAL FOOTER =============== */
.terminal {
    background: #1e1520;
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: end;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,118,75,0.4), transparent);
}

.terminal__inner {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.terminal__horizon {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 3rem;
    background: linear-gradient(to bottom, transparent, #e8764b, transparent);
    opacity: 0.5;
}

.terminal__mark {
    font-family: 'Playfair Display', 'Lora', Georgia, serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    background: linear-gradient(135deg, #e8764b 0%, #c94e78 50%, #3b1d4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.03em;
}

.terminal__tag {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.1rem;
    color: #b8a8b0;
    font-style: italic;
}

.terminal__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #d4956a;
}
.terminal__clock {
    color: #e8764b;
    font-variant-numeric: tabular-nums;
}
.terminal__coord { opacity: 0.6; }

.terminal__sign {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #b8a8b0;
    line-height: 1.7;
    margin-top: 1.5rem;
    font-style: italic;
}
.terminal__link {
    color: #e8764b;
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: normal;
    display: inline-block;
    margin-top: 0.5rem;
}

/* =============== FADE-REVEAL SYSTEM =============== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 800ms var(--ease-out-soft),
        transform 800ms var(--ease-out-soft);
    transition-delay: calc(var(--reveal-delay, 0) * 120ms);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Headlines: additional scale breathe-in */
.hero__title.reveal,
.ribbon__title.reveal,
.passage__title.reveal,
.terminal__mark.reveal {
    transform: translateY(30px) scale(0.97);
    transition:
        opacity 900ms var(--ease-out-soft),
        transform 900ms var(--ease-out-soft);
}
.hero__title.reveal.is-visible,
.ribbon__title.reveal.is-visible,
.passage__title.reveal.is-visible,
.terminal__mark.reveal.is-visible {
    transform: translateY(0) scale(1);
}

/* Aurora bands fade in slower */
.aurora-band {
    opacity: 0;
    transition: opacity 1500ms var(--ease-out-soft);
}
.aurora-band.is-visible { opacity: 1; }

/* =============== HERO AURORA KEYFRAMES =============== */
@keyframes aurora-layer-1 {
    0%   { transform: translate(-10%, -5%) scale(1); }
    100% { transform: translate(8%, 5%) scale(1.1); }
}
@keyframes aurora-layer-2 {
    0%   { transform: translate(5%, 10%) scale(0.95); }
    100% { transform: translate(-8%, -6%) scale(1.08); }
}
@keyframes aurora-layer-3 {
    0%   { transform: translate(0%, 8%) scale(1); }
    100% { transform: translate(10%, -10%) scale(0.92); }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
    .ribbon--narrow .ribbon__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .marginalia--left,
    .marginalia--right {
        grid-column: 1;
        justify-self: start;
        text-align: left;
        flex-direction: row;
    }
    .marginalia__rule {
        width: 2rem;
    }
    .passage { grid-column: 1; }

    .duotone__caption {
        max-width: 88%;
    }

    .chapter-marker {
        font-size: clamp(3rem, 15vw, 6rem);
    }
}

@media (max-width: 600px) {
    .hero__title { font-size: clamp(2.8rem, 13vw, 4.5rem); }
    .hero__scroll-line { height: 40px; }
    .duotone__frame { aspect-ratio: 4 / 5; }
    .duotone__caption {
        position: static;
        margin-top: 1rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .duotone { margin-bottom: 1rem; }
    .final-card__meta { flex-direction: column; gap: 0.2rem; }
    .final-card__meta .dot { display: none; }
}

/* =============== REDUCED MOTION =============== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.1ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .hero__title.reveal,
    .ribbon__title.reveal,
    .passage__title.reveal,
    .terminal__mark.reveal {
        opacity: 1;
        transform: none;
    }

    .aurora-band { opacity: 1; }
}
