/* =========================================================
   historic.quest
   A luminous archive — cartographic expedition interface
   ========================================================= */

:root {
    /* Deep navy descent */
    --bg-void:        #080c16;
    --bg-deep:        #0a0e1a;
    --bg-surface:     #101627;
    --bg-elevated:    #1a2035;
    --bg-panel:       #141a2c;

    /* Metallic and text */
    --text-silver:    #c0c8d8;
    --text-parchment: #c8d6e5;
    --text-slate:     #8899aa;
    --text-muted:     #6c7a92;
    --border-slate:   #94a3b8;

    /* Accents */
    --accent-teal:    #5eead4;
    --accent-teal-2:  rgba(94, 234, 212, 0.55);
    --accent-teal-3:  rgba(94, 234, 212, 0.25);
    --accent-teal-4:  rgba(94, 234, 212, 0.08);
    --accent-rose:    #f472b6;
    --accent-bronze:  #d4a574;

    /* Type */
    --font-display:  "Cormorant Garamond", "Lora", Georgia, serif;
    --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono:     "Fira Code", "JetBrains Mono", "Courier New", monospace;

    --wire-stroke: 1.5px;
}

/* ---------------- base reset ---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-deep); color: var(--text-slate); }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(94, 234, 212, 0.04), transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(94, 234, 212, 0.03), transparent 50%),
        var(--bg-deep);
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------------- ambient particle field ---------------- */
.particle-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
}
.particle svg { width: 100%; height: 100%; stroke: var(--accent-teal); fill: none; stroke-width: 1; }

/* =========================================================
   SECTION 1: THE CARTOUCHE (compass rose opening)
   ========================================================= */
.cartouche {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 6vh, 6rem) 1.5rem;
    background: var(--bg-deep);
    z-index: 1;
}

.compass-stage {
    position: relative;
    text-align: center;
    width: min(90vw, 820px);
}

.compass-rose {
    width: min(80vmin, 620px);
    height: min(80vmin, 620px);
    margin: 0 auto;
    display: block;
    overflow: visible;
}

/* Slow rotational aura behind compass */
.compass-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(min(40vmin, 310px));
    width: min(95vmin, 740px);
    height: min(95vmin, 740px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(94, 234, 212, 0.06), transparent 55%);
    filter: blur(4px);
    z-index: -1;
    animation: aura-pulse 8s ease-in-out infinite;
}

@keyframes aura-pulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.03); }
}

/* Compass rings */
.rose-ring {
    fill: none;
    stroke: var(--accent-teal);
    stroke-width: var(--wire-stroke);
    opacity: 0.35;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: ring-draw 2s ease-out forwards;
}
.rose-ring-outer  { stroke-dasharray: 1200; animation-delay: 0.1s; }
.rose-ring-mid    { stroke-dasharray: 900; stroke-dashoffset: 900; animation-delay: 0.3s; opacity: 0.25; stroke-dasharray: 3 4; }
.rose-ring-mid    { animation: none; }
.rose-ring-inner  { stroke-dasharray: 500; stroke-dashoffset: 500; animation-delay: 0.5s; opacity: 0.3; }

@keyframes ring-draw {
    to { stroke-dashoffset: 0; }
}

/* Static dashed mid ring (no draw anim) */
.rose-ring-mid {
    opacity: 0.18;
    stroke: var(--accent-teal);
    stroke-dasharray: 3 6;
    animation: ring-rotate 80s linear infinite;
    transform-origin: 0 0;
    transform-box: fill-box;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Rose tick marks */
.rose-ticks line {
    stroke: var(--accent-teal);
    stroke-width: 1;
    opacity: 0.45;
}

/* Rose crosshair */
.rose-crosshair line {
    stroke: var(--accent-teal);
    stroke-width: 1;
    opacity: 0.4;
}

/* Compass spokes (clickable) */
.spoke {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: 0 0;
    transform-box: fill-box;
}
.spoke-shape {
    fill: rgba(94, 234, 212, 0.05);
    stroke: var(--accent-teal);
    stroke-width: var(--wire-stroke);
    stroke-linejoin: round;
    opacity: 0.65;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: spoke-draw 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.spoke-edge {
    stroke: var(--accent-teal);
    stroke-width: 0.8;
    opacity: 0.35;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: spoke-draw 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}
.spoke-cap {
    fill: var(--accent-teal);
    opacity: 0;
    animation: cap-in 0.6s ease-out forwards;
    animation-delay: 1.1s;
}
.spoke-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    fill: var(--text-silver);
    text-anchor: middle;
    opacity: 0;
    animation: cap-in 0.6s ease-out forwards;
    animation-delay: 1.3s;
}
.spoke-label-cardinal {
    fill: var(--accent-teal);
    font-size: 11px;
}
.spoke-era {
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.25em;
    fill: var(--text-slate);
    text-anchor: middle;
    opacity: 0;
    animation: cap-in 0.6s ease-out forwards;
    animation-delay: 1.45s;
    text-transform: uppercase;
}

@keyframes spoke-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes cap-in {
    to { opacity: 1; }
}

/* Staggered spoke delays for stroke draw */
.spoke:nth-of-type(1) .spoke-shape { animation-delay: 0.30s; }
.spoke:nth-of-type(2) .spoke-shape { animation-delay: 0.45s; }
.spoke:nth-of-type(3) .spoke-shape { animation-delay: 0.60s; }
.spoke:nth-of-type(4) .spoke-shape { animation-delay: 0.75s; }
.spoke:nth-of-type(5) .spoke-shape { animation-delay: 0.90s; }
.spoke:nth-of-type(6) .spoke-shape { animation-delay: 1.05s; }
.spoke:nth-of-type(7) .spoke-shape { animation-delay: 1.20s; }
.spoke:nth-of-type(8) .spoke-shape { animation-delay: 1.35s; }

.spoke:hover .spoke-shape {
    fill: rgba(94, 234, 212, 0.18);
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.5));
}
.spoke:hover .spoke-cap {
    fill: var(--accent-teal);
    filter: drop-shadow(0 0 6px var(--accent-teal));
}
.spoke:hover .spoke-label,
.spoke:hover .spoke-era {
    fill: var(--accent-teal);
}
.spoke:hover {
    transform: scale(1.06);
}

/* Lissajous center */
.lissajous-path {
    fill: none;
    stroke: var(--accent-teal);
    stroke-width: 0.8;
    opacity: 0.55;
}
.lissajous-a { stroke-opacity: 0.6; }
.lissajous-b { stroke-opacity: 0.3; }
.lissajous-core {
    fill: var(--accent-teal);
    filter: drop-shadow(0 0 4px var(--accent-teal));
}

/* Cartouche meta text */
.cartouche-meta {
    margin-top: 2rem;
    opacity: 0;
    animation: fade-up 0.8s ease-out forwards;
    animation-delay: 1.6s;
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.coordinate-line {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-teal);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    opacity: 0.75;
}

.cartouche-title {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    color: var(--text-silver);
    letter-spacing: 0.3em;
    text-shadow:
        0 0 12px rgba(94, 234, 212, 0.45),
        0 0 30px rgba(94, 234, 212, 0.18);
    margin-bottom: 0.9rem;
}

.cartouche-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--text-slate);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.cartouche-instrument {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.55rem 1.2rem;
    border: 1px solid rgba(94, 234, 212, 0.22);
    border-radius: 2px;
    background: rgba(16, 22, 39, 0.6);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    color: var(--text-slate);
}
.inst-label { color: var(--text-muted); }
.inst-value { color: var(--text-silver); }
.inst-status { color: var(--accent-teal); }
.inst-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1;    }
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    opacity: 0;
    animation: fade-up 0.8s ease-out forwards;
    animation-delay: 2s;
}
.scroll-hint-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent-teal));
    animation: hint-descend 2.2s ease-in-out infinite;
}
@keyframes hint-descend {
    0%   { transform: translateY(-8px); opacity: 0.4; }
    50%  { transform: translateY(0);    opacity: 1;   }
    100% { transform: translateY(8px);  opacity: 0.4; }
}

/* =========================================================
   Section headers (shared)
   ========================================================= */
.section-header {
    max-width: 1200px;
    margin: 0 auto clamp(2.5rem, 6vh, 5rem);
    padding: 0 1.5rem;
    text-align: left;
    position: relative;
}

.section-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    color: var(--text-parchment);
    letter-spacing: 0.02em;
    line-height: 1.08;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(94, 234, 212, 0.08);
}
.section-title-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-caption {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: var(--text-slate);
    max-width: 58ch;
    line-height: 1.7;
}

.divider-wave {
    width: 100%;
    height: 24px;
    margin-top: 1.8rem;
    overflow: visible;
}
.divider-wave path {
    fill: none;
    stroke: var(--border-slate);
    stroke-width: 1;
    opacity: 0.22;
}

/* =========================================================
   SECTION 2: THE GRID DESCENT (portfolio grid)
   ========================================================= */
.grid-descent {
    position: relative;
    padding: clamp(4rem, 10vh, 9rem) 0 clamp(4rem, 8vh, 7rem);
    background: linear-gradient(
        to bottom,
        var(--bg-deep),
        var(--bg-deep) 20%,
        #0b101f 100%
    );
    z-index: 1;
}

.artifact-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.2rem 1.6rem;
}

/* Offset (stagger) — every other row */
.artifact-card[data-row="1"],
.artifact-card[data-row="3"] {
    transform: translateY(28px);
}

.artifact-card {
    position: relative;
    padding: 1.6rem 1.4rem 1.4rem;
    background: var(--bg-surface);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.35s ease-out,
        border-color 0.35s ease-out,
        box-shadow 0.35s ease-out;
}

.artifact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, var(--bg-elevated), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease-out;
    pointer-events: none;
}

.artifact-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.artifact-card[data-row="1"].is-visible,
.artifact-card[data-row="3"].is-visible {
    transform: translateY(28px) scale(1);
}

.artifact-card:hover {
    background: var(--bg-surface);
    border-color: rgba(94, 234, 212, 0.22);
    box-shadow:
        0 8px 32px rgba(94, 234, 212, 0.10),
        0 1px 0 rgba(94, 234, 212, 0.1) inset;
}
.artifact-card:hover::before {
    opacity: 1;
}

/* Card interior */
.card-index {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color 0.3s ease-out;
}
.artifact-card:hover .card-index { color: var(--accent-teal); }

.iso-stage {
    position: relative;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    background:
        linear-gradient(180deg, rgba(10,14,26,0.5), transparent 60%),
        repeating-linear-gradient(0deg, rgba(148,163,184,0.04) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(148,163,184,0.04) 0 1px, transparent 1px 24px);
    border: 1px dashed rgba(148, 163, 184, 0.10);
    border-radius: 2px;
    overflow: hidden;
}

.iso-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(94, 234, 212, 0.10), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}
.artifact-card:hover .iso-stage::after { opacity: 1; }

.iso-icon {
    width: 130px;
    height: 130px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.15));
}
.artifact-card:hover .iso-icon {
    transform: translateY(-3px) rotate(-1deg);
    filter: drop-shadow(0 6px 14px rgba(94, 234, 212, 0.35));
}

/* Wireframe styling */
.wire {
    fill: none;
    stroke: var(--accent-teal);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.wire polygon, .wire rect, .wire circle, .wire ellipse, .wire path, .wire line {
    fill: none;
}
.wire .wire-dash {
    stroke: var(--accent-teal);
    stroke-width: 1;
    opacity: 0.45;
    stroke-dasharray: 2 3;
}
.wire .wire-accent {
    stroke: var(--accent-bronze);
    opacity: 0.9;
}
.wire .wire-flow {
    stroke: var(--accent-teal);
    stroke-width: 1;
    opacity: 0.7;
    stroke-dasharray: 3 3;
    animation: flow-dash 3s linear infinite;
}

@keyframes flow-dash {
    to { stroke-dashoffset: -24; }
}

/* Card body */
.card-body {
    position: relative;
    z-index: 1;
}

.card-coord {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--text-slate);
    margin-bottom: 0.45rem;
    transition: color 0.3s ease-out;
}
.artifact-card:hover .card-coord { color: var(--accent-teal); }

.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-silver);
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.card-text {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-slate);
}

.card-ref {
    position: absolute;
    right: 1rem;
    top: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s ease-out, color 0.3s ease-out;
}
.artifact-card:hover .card-ref {
    opacity: 1;
    color: var(--accent-teal);
}

/* Grid footer */
.grid-footer {
    max-width: 1280px;
    margin: clamp(2rem, 5vh, 4rem) auto 0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    justify-content: center;
}
.grid-footer-line {
    flex: 0 1 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-slate), transparent);
    opacity: 0.35;
}

/* =========================================================
   SECTION 3: THE DEEP LAYER (timeline waveform)
   ========================================================= */
.deep-layer {
    position: relative;
    padding: clamp(4rem, 10vh, 9rem) 0;
    background: linear-gradient(
        to bottom,
        #0b101f,
        #0a0e1a 100%
    );
    overflow: hidden;
    z-index: 1;
}

.timeline-stage {
    position: relative;
    margin: 0;
    padding: 0;
    background:
        linear-gradient(180deg, transparent, rgba(94, 234, 212, 0.02) 50%, transparent),
        repeating-linear-gradient(0deg, rgba(148,163,184,0.03) 0 1px, transparent 1px 28px);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.timeline-svg {
    display: block;
    width: 100%;
    height: clamp(260px, 40vh, 420px);
    overflow: visible;
}

.timeline-baseline {
    stroke: var(--border-slate);
    stroke-width: 1;
    opacity: 0.18;
    stroke-dasharray: 2 4;
}

.timeline-ticks line {
    stroke: var(--border-slate);
    stroke-width: 1;
    opacity: 0.22;
}
.timeline-ticks .tick-major {
    stroke: var(--border-slate);
    opacity: 0.4;
}
.timeline-ticks text {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    fill: var(--text-muted);
}

.timeline-markers line {
    stroke: var(--accent-rose);
    stroke-width: 1;
    opacity: 0.6;
    stroke-dasharray: 3 3;
}
.timeline-markers circle {
    fill: var(--accent-rose);
    filter: drop-shadow(0 0 6px var(--accent-rose));
    opacity: 0.9;
}
.timeline-markers text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    fill: var(--accent-rose);
    text-transform: uppercase;
}

.timeline-wave {
    fill: none;
    stroke: var(--accent-teal);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.35));
}
.timeline-wave-glow {
    fill: none;
    stroke: var(--accent-teal);
    stroke-width: 6;
    opacity: 0.18;
    filter: blur(6px);
    stroke-linejoin: round;
}

.timeline-labels text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    fill: var(--text-silver);
    text-transform: uppercase;
}

/* Readout panel */
.timeline-readout {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    top: clamp(1rem, 4vh, 2rem);
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    background: rgba(10, 14, 26, 0.82);
    border: 1px solid rgba(94, 234, 212, 0.22);
    border-radius: 2px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    min-width: 210px;
}
.readout-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.readout-label { color: var(--text-muted); }
.readout-value { color: var(--accent-teal); }

.timeline-legend {
    max-width: 1280px;
    margin: 1.8rem auto 0;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.legend-swatch {
    width: 18px;
    height: 2px;
    background: var(--accent-teal);
    display: inline-block;
}
.legend-wave   { background: var(--accent-teal);  box-shadow: 0 0 6px var(--accent-teal);  }
.legend-marker { background: var(--accent-rose);  box-shadow: 0 0 6px var(--accent-rose);  }
.legend-tick   { background: var(--border-slate); opacity: 0.45; box-shadow: none; }

/* =========================================================
   SECTION 4: ARCHIVE TERMINUS (reading zone)
   ========================================================= */
.archive-terminus {
    position: relative;
    padding: clamp(4rem, 10vh, 9rem) 1.5rem clamp(3rem, 6vh, 5rem);
    background: var(--bg-void);
    z-index: 1;
}

.terminus-header {
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 5vh, 4.5rem);
    text-align: center;
}
.terminus-header .section-index {
    text-align: center;
}

.terminus-article {
    max-width: 680px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.8;
    color: var(--text-slate);
}
.terminus-article p {
    margin-bottom: 2rem;
}
.terminus-article em {
    color: var(--text-silver);
    font-style: italic;
}

/* Dropcap block */
.terminus-dropcap {
    position: relative;
    padding-left: 5.5rem;
    min-height: 64px;
    margin-bottom: 2.2rem;
}
.dropcap-icon {
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 64px;
    height: 64px;
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.25));
}
.terminus-dropcap span:not(.inline-icon-wrap) {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.4rem;
    color: var(--accent-teal);
    line-height: 1;
    padding-right: 0.1rem;
}

.inline-icon-wrap {
    display: inline-block;
    vertical-align: -0.45rem;
    margin-right: 0.35rem;
}
.inline-icon {
    width: 38px;
    height: 38px;
    display: inline-block;
}

.terminus-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--text-parchment);
    line-height: 1.35;
    margin: 2.5rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 1px solid var(--accent-teal);
    background: linear-gradient(90deg, rgba(94, 234, 212, 0.04), transparent 70%);
}

.terminus-signoff {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    justify-content: center;
}
.signoff-line {
    flex: 0 1 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-slate), transparent);
    opacity: 0.4;
}

/* Page footer */
.page-footer {
    max-width: 1100px;
    margin: clamp(3rem, 8vh, 6rem) auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}
.footer-col { display: grid; gap: 0.3rem; }
.footer-col-mid   { text-align: center; }
.footer-col-right { text-align: right; }
.footer-label { color: var(--text-muted); font-size: 0.6rem; letter-spacing: 0.3em; }
.footer-value { color: var(--accent-teal); font-size: 0.82rem; }
.footer-sub   { color: var(--text-slate); font-size: 0.68rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
    .compass-rose { width: 86vw; height: 86vw; }
    .page-footer {
        grid-template-columns: 1fr;
        text-align: left !important;
    }
    .footer-col-mid, .footer-col-right { text-align: left; }
    .timeline-readout {
        position: static;
        margin: 1.2rem auto 0;
        max-width: 320px;
    }
    .artifact-card[data-row="1"],
    .artifact-card[data-row="3"] {
        transform: translateY(0);
    }
    .artifact-card[data-row="1"].is-visible,
    .artifact-card[data-row="3"].is-visible {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .artifact-grid { gap: 1.4rem 1rem; }
    .section-header { padding: 0 1rem; }
    .terminus-dropcap {
        padding-left: 0;
        padding-top: 4.5rem;
    }
    .dropcap-icon { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-delay: 0s !important;
        transition-duration: 0.001s !important;
    }
    .rose-ring-mid { animation: none; }
    .artifact-card { opacity: 1; transform: none; }
    .artifact-card[data-row="1"],
    .artifact-card[data-row="3"] { transform: translateY(28px); }
}
