/* === Design tokens ===
   The landing page's aesthetic is the site's design system. Everything
   below should draw from this vocabulary: two font families, one navy
   background, ivory text, one action blue, one narrative gold. Map DATA
   colours (nations, languages, eras, the green ancient-world inset) are
   information, not decoration, and deliberately stay outside the tokens. */
:root {
    --bg: #05070f;                        /* page night-navy */
    --surface: rgba(14, 19, 34, 0.92);    /* panels, cards, controls */
    --surface-soft: rgba(14, 19, 34, 0.7);
    --ink: #e8ecf5;                       /* primary ivory text */
    --ink-strong: #ffffff;
    --ink-muted: rgba(232, 236, 245, 0.72);
    --ink-faint: rgba(232, 236, 245, 0.45);
    --line: rgba(110, 168, 255, 0.16);    /* hairline borders */
    --line-strong: rgba(110, 168, 255, 0.4);
    --accent: #6ea8ff;                    /* actions and links */
    --accent-strong: #a0c4ff;             /* hover / active */
    --accent-wash: rgba(110, 168, 255, 0.08);
    --gold: #d4af5a;                      /* scripture, progress, emphasis */
    --gold-bright: #e8c878;
    --font-body: 'EB Garamond', Georgia, serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Links default to the action blue everywhere; anything unstyled used to
   fall back to the browser's dark-blue default, unreadable on the navy. */
a {
    color: var(--accent);
    text-decoration-color: rgba(110, 168, 255, 0.45);
    text-underline-offset: 2px;
}

a:hover {
    color: var(--accent-strong);
}

/* === Main Map === */
#main-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Match the dark basemap: Leaflet's default light-grey container otherwise
       shows through wherever tiles have not loaded yet (visible as a bright
       surround during camera flights). */
    background: var(--bg);
    transition: opacity 2s ease;
}

#main-map .leaflet-container,
#main-map.leaflet-container {
    background: var(--bg);
}

#main-map.pre-earth {
    opacity: 0;
}

/* Esri World Hillshade blended over the dark basemap: inverted so slopes read
   as a faint glow, giving mountains and plains physical relief at high zoom
   (the Zagros foothills exist!) without touching the palette. */
.hillshade-tiles {
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.12;
    transition: opacity 0.25s ease;
}

/* During Leaflet's zoom animation the animated panes promote to their own
   compositing layers and the screen blend detaches: the hillshade then paints
   as raw light-grey terrain rectangles sliding over the dark map (worst on
   zoom-out camera flights, with journey lines riding on top). Fade it out for
   the flight and back in when the camera settles. */
.leaflet-zoom-anim .hillshade-tiles {
    opacity: 0;
}

/* During narrated journeys, sink the basemap slightly so the story's dots,
   lines, and labels carry the frame (also mutes the faint modern borders). */
body.map-narrated #main-map .leaflet-tile-pane .base-tiles {
    filter: brightness(0.8) saturate(0.85);
}

/* === Inset Map: "The Ancient World" (once-cursed world, 2 Peter 2:5) === */
/* Same dark-panel chrome as the legend and layer panels, with a restrained
   sage cast marking it as the other world — the map data stays green, the
   frame no longer fights the site's palette. */
#inset-container {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 320px;
    z-index: 1000;
    border-radius: 0;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(140, 190, 145, 0.32);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

#inset-container.destroyed {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

#inset-container.hidden {
    display: none;
}

#inset-label {
    background: rgba(12, 20, 15, 0.94);
    border-bottom: 1px solid rgba(140, 190, 145, 0.22);
    color: #a9c8a4;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

#inset-map {
    width: 100%;
    height: 200px;
    background: #0d1611;
}

/* Muted verdant cast — green enough to read as the unfallen world, dark
   enough to sit inside the site's night palette. */
#inset-map .leaflet-tile-pane {
    filter: invert(0.88) sepia(0.45) saturate(2.2) hue-rotate(70deg) brightness(0.82) contrast(1.05);
}

/* Living patriarchs roster: colour-keyed list with ticking ages. Replaces the
   name/age labels that used to collide on the tiny map above. */
#inset-roster {
    background: rgba(10, 16, 12, 0.94);
    border-top: 1px solid rgba(140, 190, 145, 0.16);
    padding: 6px 12px 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 14px;
}

#inset-roster:empty {
    display: none;
}

#inset-roster::before {
    content: 'The line of Adam · living ages';
    grid-column: 1 / -1;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(169, 200, 164, 0.6);
    padding-bottom: 3px;
}

.inset-roster-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-muted);
}

.inset-roster-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

.inset-roster-name {
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inset-roster-age {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: var(--ink-faint);
    font-size: 11px;
}

#inset-event-text {
    background: rgba(10, 16, 12, 0.94);
    border-top: 1px solid rgba(140, 190, 145, 0.16);
    color: #9db898;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.5;
    min-height: 20px;
    max-height: 80px;
    overflow-y: auto;
}

/* === Date Display === */
#date-display {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--surface);
    backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: bold;
    color: var(--ink-muted);
    letter-spacing: 1px;
    border: 1px solid var(--line);
}

/* === Explore Intro Panels (nations / languages entry cards) === */

.explore-intro {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-intro.hidden {
    display: none;
}

.explore-intro-card {
    background: #05070f;
    border: 1px solid rgba(110, 168, 255, 0.15);
    border-radius: 0;
    max-width: 560px;
    width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.explore-intro-image {
    display: block;
    width: 100%;
    height: 36vh;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
}

.explore-intro-image-wrap {
    position: relative;
}

.explore-intro-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 7, 15, 0.95), rgba(5, 7, 15, 0.7) 60%, transparent);
    color: var(--ink-muted);
    padding: 24px 16px 12px;
    font-size: 14px;
    font-family: var(--font-display);
    font-style: italic;
    text-align: center;
}

.explore-intro-body {
    padding: 18px 32px 12px;
    text-align: center;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.explore-intro-footer {
    padding: 14px 32px 20px;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid rgba(110, 168, 255, 0.08);
    background: #05070f;
}

.explore-intro-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: #e8ecf5;
    margin-bottom: 16px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.explore-intro-desc {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.65;
    margin-bottom: 8px;
    text-align: left;
}

.explore-intro-source {
    font-size: 12px;
    color: var(--ink-faint);
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.explore-intro-btn {
    border-radius: 0;
    padding: 9px 22px;
    font-size: 13px;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(110, 168, 255, 0.4);
    color: #6ea8ff;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.explore-intro-btn:hover {
    background: rgba(110, 168, 255, 0.1);
    border-color: rgba(110, 168, 255, 0.7);
    color: #e8ecf5;
}

.explore-intro-btn--nations,
.explore-intro-btn--languages,
.explore-intro-btn--chronology {
    /* unified — overrides applied via base class above */
}

.explore-intro-btn--solid {
    background: #6ea8ff;
    border-color: #6ea8ff;
    color: #ffffff;
}

.explore-intro-btn--solid:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #ffffff;
}

/* === Walkthrough Opener (artifact card) === */

#walkthrough-opener {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#walkthrough-opener.hidden {
    display: none;
}

#walkthrough-opener:not(.hidden) ~ #chain-ledger {
    display: none;
}

#walkthrough-opener-card {
    background: #05070f;
    border: 1px solid rgba(110, 168, 255, 0.15);
    border-radius: 0;
    max-width: 860px;
    width: 94vw;
    max-height: 94vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

#walkthrough-opener-image {
    display: block;
    width: 100%;
    height: 52vh;
    min-height: 280px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 0;
}

#walkthrough-opener-body {
    padding: 22px 32px 28px;
    text-align: center;
}

#walkthrough-opener-title {
    font-size: 26px;
    font-weight: 400;
    color: #e8ecf5;
    margin-bottom: 10px;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
}

#walkthrough-opener-desc {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.65;
    margin-bottom: 8px;
}

#walkthrough-opener-source {
    font-size: 12px;
    color: var(--ink-faint);
    font-style: italic;
    margin-bottom: 20px;
}

#walkthrough-opener-btn {
    background: #6ea8ff;
    border: 1px solid #6ea8ff;
    border-radius: 0;
    color: #ffffff;
    font-size: 13px;
    padding: 10px 28px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}

#walkthrough-opener-btn:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #ffffff;
}

/* === Event Banner === */
#event-banner {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--surface);
    backdrop-filter: blur(12px);
    padding: 16px 32px;
    border-radius: 0;
    max-width: 760px;
    width: 90vw;
    text-align: center;
    border: 1px solid rgba(110, 168, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.3s ease;
}

#event-banner.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: none;
}

#event-banner-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 4px;
}

#event-banner-location {
    font-size: 12px;
    color: #6ea8ff;
    font-style: italic;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

#event-banner-location.hidden {
    display: none;
}

#event-banner-image {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 4px;
    margin: 8px 0 12px;
    opacity: 0.92;
}

#event-banner-image.hidden {
    display: none;
}

#event-banner-description {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
}

#event-banner-description p {
    margin: 0 0 0.7em 0;
}

#event-banner-description p:last-child {
    margin-bottom: 0;
}

#event-banner-source {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-faint);
}

#event-banner-source a {
    color: var(--ink-faint);
    text-decoration: none;
}

#event-banner-source a:hover {
    text-decoration: underline;
}

#event-banner.paused {
    border-color: rgba(212, 175, 90, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 175, 90, 0.3);
    animation: bannerPulse 2s ease-in-out infinite;
}

.guided-view-btn {
    position: fixed;
    right: 22px;
    bottom: 142px;
    z-index: 2200;
    padding: 9px 14px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid rgba(212, 175, 90, 0.42);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.guided-view-btn:hover {
    background: var(--surface);
    border-color: rgba(232, 200, 120, 0.68);
}

.guided-view-btn.hidden {
    display: none;
}

@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 175, 90, 0.15); }
    50%      { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 28px rgba(212, 175, 90, 0.5); }
}

.banner-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.banner-walkthrough-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.banner-walkthrough-end.hidden {
    display: none;
}

.banner-end-btn {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    background: transparent;
    color: #e8ecf5;
    border: 1px solid rgba(232, 236, 245, 0.3);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.banner-end-btn:hover {
    background: rgba(232, 236, 245, 0.08);
    border-color: rgba(232, 236, 245, 0.5);
    color: #ffffff;
}
}

#banner-hint {
    font-size: 12px;
    color: rgba(110, 168, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

#banner-hint.hidden {
    display: none;
}

.banner-learn-more-btn {
    font-family: var(--font-body);
    font-size: 13px;
    color: #6ea8ff;
    background: rgba(110, 168, 255, 0.15);
    border: 1px solid rgba(110, 168, 255, 0.4);
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.banner-learn-more-btn:hover {
    background: rgba(110, 168, 255, 0.4);
    color: var(--gold-bright);
}

.banner-learn-more-btn.hidden {
    display: none;
}

/* === Layer Panel === */
#layer-panel {
    font-family: var(--font-body);
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: var(--surface);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 0;
    border: 1px solid var(--line);
    min-width: 140px;
}

.layer-panel-title {
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ink-faint);
    margin-bottom: 8px;
}

.layer-toggle {
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-muted);
}

.layer-toggle input[type="checkbox"] {
    accent-color: var(--accent);
}

/* === Auto-zoom toggle === */
.autozoom-btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--ink-faint);
    background: var(--accent-wash);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    user-select: none;
}

.autozoom-btn:hover {
    background: rgba(110, 168, 255, 0.18);
    color: var(--ink-muted);
}

.autozoom-btn.active {
    background: rgba(110, 168, 255, 0.2);
    color: var(--accent-strong);
    border-color: var(--line-strong);
}

/* === Timeline Container === */
#timeline-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to top, var(--surface), var(--surface-soft));
    backdrop-filter: blur(8px);
    padding: 8px 20px 16px;
}

/* Timeline markers row */
#timeline-markers.hidden {
    display: none;
}

#timeline-markers {
    position: relative;
    height: 24px;
    margin: 0 60px 0 40px;
}

.timeline-marker {
    position: absolute;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--ink-faint);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.timeline-marker:hover {
    color: var(--ink-muted);
}

.timeline-marker::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 6px;
    background: rgba(110, 168, 255, 0.4);
}

.timeline-marker.active {
    color: var(--accent-strong);
    font-weight: bold;
}

/* Slider row */
#timeline-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

#play-btn {
    background: rgba(110, 168, 255, 0.18);
    border: 1px solid var(--line-strong);
    color: var(--ink-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

#play-btn:hover {
    background: rgba(110, 168, 255, 0.25);
}

#play-btn.playing {
    color: #ff8888;
}

/* Slider */
#timeline-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #2a2a5a, #4a4a8a, #6a6aaa);
    outline: none;
    cursor: pointer;
}

#timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ink-faint);
    border: 2px solid var(--ink-muted);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(100, 100, 200, 0.5);
    transition: transform 0.1s;
}

#timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#timeline-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ink-faint);
    border: 2px solid var(--ink-muted);
    cursor: pointer;
}

/* Speed control */
#speed-control {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.speed-btn {
    background: var(--accent-wash);
    border: 1px solid var(--line);
    color: var(--ink-faint);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.speed-btn:hover {
    background: rgba(110, 168, 255, 0.2);
    color: var(--ink-muted);
}

.speed-btn.active {
    background: rgba(110, 168, 255, 0.25);
    color: var(--accent-strong);
    border-color: var(--line-strong);
}

/* === Event markers on map === */
.event-marker {
    background: rgba(120, 120, 200, 0.8);
    border: 1px solid var(--accent-strong);
    border-radius: 50%;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px rgba(100, 100, 200, 0.6);
}

.event-marker.israel {
    background: rgba(200, 180, 80, 0.8);
    border-color: #f0e0a0;
    box-shadow: 0 0 12px rgba(200, 180, 80, 0.6);
}

.event-marker.christianity {
    background: rgba(200, 100, 100, 0.8);
    border-color: #f0c0c0;
    box-shadow: 0 0 12px rgba(200, 100, 100, 0.6);
}

/* Pulsing highlight for banner-active marker */
.marker-pulse {
    animation: markerPulse 1.5s ease-in-out infinite;
    border-color: #6ea8ff !important;
    box-shadow: 0 0 20px rgba(110, 168, 255, 0.9) !important;
}

#main-map.map-camera-zooming .marker-pulse {
    animation: none;
    transform: scale(1) !important;
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

/* === People group labels (smudges are canvas-drawn) === */
.people-group-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: var(--font-display);
    font-size: 10px;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    color: #e8ecf5;
    opacity: 0.5;
    text-shadow: 0 0 6px rgba(0,0,0,1), 0 0 12px rgba(0,0,0,0.9);
}

.people-group-pop {
    font-size: 8px;
    opacity: 0.7;
    color: #e8ecf5;
}

/* === Dot labels (travel, scatter, Nimrod, Patriarch) === */
.travel-dot-label,
.babel-scatter-label,
.nimrod-label,
.patriarch-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* === Nation labels === */
.nation-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.9);
}

.language-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: var(--font-display);
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    color: #e8ecf5;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.9);
}

.language-special-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    color: #e8ecf5;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.9);
}

/* === Legend Panel === */
#legend-panel {
    position: absolute;
    bottom: 90px;
    left: 16px;
    z-index: 1000;
    background: var(--surface);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 0;
    border: 1px solid var(--line);
    min-width: 130px;
    max-width: 300px; /* keeps the panel clear of the centred caption bar */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: opacity 0.3s;
}

#legend-panel.hidden {
    display: none;
}

.mobile-map-controls {
    display: none;
}

.mobile-map-btn {
    font-family: var(--font-body);
    min-height: 40px;
    padding: 8px 12px;
    background: rgba(20, 20, 40, 0.88);
    color: #d0d0e8;
    border: 1px solid var(--line);
    border-radius: 4px;
    backdrop-filter: blur(8px);
    font-size: 14px;
    cursor: pointer;
}

.mobile-map-btn.active {
    background: rgba(70, 70, 140, 0.9);
    border-color: rgba(160, 160, 220, 0.55);
}

.mobile-map-btn.hidden {
    display: none;
}

.legend-title {
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ink-faint);
    margin-bottom: 6px;
}

.legend-item {
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    font-size: 13px;
    color: var(--ink-muted);
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item--sub {
    font-family: var(--font-body);
    padding-left: 16px;
    font-size: 13px;
    color: var(--ink-faint);
}

/* === Isolate Tour === */
#isolate-tour-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    padding: 0 16px 24px;
}

#isolate-tour-overlay.hidden {
    display: none;
}

.tour-card {
    pointer-events: auto;
    background: rgba(16, 16, 32, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 18px 24px 20px;
    max-width: 480px;
    width: 100%;
    color: var(--ink-muted);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tour-card--flying {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.tour-card--paradox {
    border-color: rgba(200, 120, 60, 0.6);
    background: rgba(32, 16, 8, 0.92);
}

.tour-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tour-card__progress {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ink-faint);
}

.tour-card__skip {
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    transition: color 0.2s;
}

/* Slim stop cards: the narration and captions carry the description; the
   dates, speaker counts and full text live on pages/language-isolates.html.
   Intro and conclusion cards keep their fuller text (the conclusion is the
   tour's payoff and should not live only in audio). */
.tour-card--slim #tour-date,
.tour-card--slim #tour-description,
.tour-card--slim #tour-speakers {
    display: none;
}

.tour-card__notes {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-decoration: none;
}

.tour-card__notes:hover {
    color: var(--ink-muted);
    text-decoration: underline;
}

/* While the tour is active the caption bar docks at the top, under the date
   pill — the tour card (whose height varies by stop) owns the bottom of the
   frame, so a bottom-anchored bar would collide with it. */
body.isolate-tour-active #narration-captions {
    top: 92px;
    bottom: auto;
}

/* The tour is a self-contained excursus: the languages-journey legend
   explains label icons that are not the tour's subject, and the layer panel
   invites switching layers mid-tour (its Return Home is redundant with Skip
   Tour). Both come back when the tour ends. */
body.isolate-tour-active #legend-panel,
body.isolate-tour-active #layer-panel,
body.isolate-tour-active #mobile-layers-btn,
body.isolate-tour-active #mobile-legend-btn {
    display: none;
}

.tour-card__skip:hover {
    color: var(--ink-muted);
}

.tour-card__name {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: var(--ink);
    margin: 0 0 6px;
}

.tour-card--paradox .tour-card__name {
    color: #f0c080;
}

.tour-card__date {
    font-size: 12px;
    line-height: 1.45;
    color: #c4a66a;
    margin-bottom: 8px;
}

.tour-card__isolation {
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tour-badge {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(80, 80, 130, 0.4);
    color: var(--ink-faint);
}

.tour-badge--terrain {
    background: rgba(60, 100, 80, 0.4);
    color: #90b8a0;
}

.tour-badge--paradox {
    background: rgba(200, 100, 40, 0.3);
    color: var(--gold-bright);
}

.tour-card__look-for {
    font-size: 13px;
    line-height: 1.45;
    color: #d8d2c4;
    margin: 0 0 8px;
}

.tour-card__description {
    font-size: 13px;
    line-height: 1.55;
    color: #b8b8cc;
    margin: 0 0 10px;
}

.tour-card--paradox .tour-card__description {
    color: #d0c0a8;
    font-size: 13px;
}

.tour-card__speakers {
    font-size: 12px;
    color: #808098;
    margin-bottom: 14px;
}

.tour-card__next {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(80, 80, 140, 0.35);
    border: 1px solid rgba(100, 100, 160, 0.4);
    border-radius: 8px;
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-card__next:hover {
    background: rgba(100, 100, 160, 0.5);
    border-color: rgba(120, 120, 180, 0.5);
}

.tour-card--paradox .tour-card__next {
    background: rgba(160, 100, 40, 0.3);
    border-color: rgba(200, 120, 60, 0.4);
    color: #e0c0a0;
}

.tour-card--paradox .tour-card__next:hover {
    background: rgba(180, 110, 50, 0.45);
}

.isolate-tour-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: bold;
    color: #f0d780;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    pointer-events: none;
}

.isolate-tour-label--paradox {
    color: var(--gold-bright);
}

/* === Flood destruction animation === */
@keyframes flood-destroy {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
    30% {
        filter: brightness(1.5) saturate(0.5);
    }
    60% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: brightness(0.5) saturate(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
        filter: brightness(0) saturate(0);
    }
}

#inset-container.flooding {
    animation: flood-destroy 3s ease-out forwards;
}

/* === Zoom Controls === */
.leaflet-control-zoom {
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: var(--surface) !important;
    color: var(--ink-muted) !important;
    border-color: var(--line) !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(60, 60, 120, 0.85) !important;
    color: var(--ink-strong) !important;
}

/* === Landmark Labels === */
/* Warm parchment rather than faint grey: the old var(--ink-faint) at 45%
   opacity disappeared against the hillshade around Mt Ararat. */
.landmark-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: var(--font-body);
    font-size: 11px;
    font-style: italic;
    color: #dcc794;
    text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 6px rgba(0,0,0,0.7);
    white-space: nowrap;
    pointer-events: none;
}

/* === Start Screen === */
/* === Landing Page === */
/* === Site Nav === */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    pointer-events: none;
}

.site-nav-logo {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    color: #e8ecf5;
    pointer-events: auto;
}

.site-nav-logo em {
    font-style: italic;
    color: #6ea8ff;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.site-nav-tagline {
    color: #ffffff;
    font-style: normal;
    letter-spacing: 2px;
    margin-left: 10px;
}

.site-nav-circle {
    flex-shrink: 0;
    opacity: 0.85;
}

.site-nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    pointer-events: auto;
}

.site-nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0;
}

.site-nav-link:hover {
    color: #e8ecf5;
}

#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: #05070f;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 1s ease;
    scroll-behavior: smooth;
}

#landing-page.fade-out {
    opacity: 0;
    pointer-events: none;
}

#landing-page.hidden {
    display: none;
}

/* Hero - Split Layout */
.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 82px 48px 48px;
    background: #05070f;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 5% 12%, rgba(255,255,255,0.75) 0.5px, transparent 0.5px),
        radial-gradient(circle at 18% 7%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 32% 20%, rgba(255,255,255,0.6) 0.5px, transparent 0.5px),
        radial-gradient(circle at 47% 5%, rgba(255,255,255,0.45) 1px, transparent 1px),
        radial-gradient(circle at 62% 15%, rgba(255,255,255,0.7) 0.5px, transparent 0.5px),
        radial-gradient(circle at 75% 8%, rgba(255,255,255,0.55) 0.8px, transparent 0.8px),
        radial-gradient(circle at 88% 18%, rgba(255,255,255,0.6) 0.5px, transparent 0.5px),
        radial-gradient(circle at 95% 10%, rgba(255,255,255,0.4) 1px, transparent 1px),
        radial-gradient(circle at 12% 30%, rgba(255,255,255,0.35) 0.5px, transparent 0.5px),
        radial-gradient(circle at 28% 42%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 53% 35%, rgba(255,255,255,0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 70% 28%, rgba(255,255,255,0.6) 1px, transparent 1px),
        radial-gradient(circle at 85% 38%, rgba(255,255,255,0.35) 0.5px, transparent 0.5px),
        radial-gradient(circle at 40% 55%, rgba(255,255,255,0.45) 0.8px, transparent 0.8px),
        radial-gradient(circle at 92% 50%, rgba(255,255,255,0.5) 0.5px, transparent 0.5px),
        radial-gradient(circle at 7% 65%, rgba(255,255,255,0.4) 1px, transparent 1px),
        radial-gradient(circle at 22% 72%, rgba(255,255,255,0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 58% 68%, rgba(255,255,255,0.45) 0.8px, transparent 0.8px),
        radial-gradient(circle at 78% 75%, rgba(255,255,255,0.5) 0.5px, transparent 0.5px),
        radial-gradient(circle at 15% 88%, rgba(255,255,255,0.35) 1px, transparent 1px),
        radial-gradient(circle at 35% 92%, rgba(255,255,255,0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 65% 85%, rgba(255,255,255,0.55) 0.8px, transparent 0.8px),
        radial-gradient(circle at 90% 90%, rgba(255,255,255,0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 42% 78%, rgba(255,255,255,0.45) 1px, transparent 1px),
        radial-gradient(circle at 55% 48%, rgba(255,255,255,0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 3% 45%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 97% 32%, rgba(255,255,255,0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 82% 58%, rgba(255,255,255,0.35) 1px, transparent 1px),
        radial-gradient(circle at 48% 22%, rgba(255,255,255,0.6) 0.5px, transparent 0.5px),
        radial-gradient(circle at 16% 55%, rgba(255,255,255,0.4) 0.8px, transparent 0.8px),
        radial-gradient(circle at 73% 45%, rgba(255,255,255,0.35) 0.5px, transparent 0.5px),
        radial-gradient(circle at 38% 10%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 60% 95%, rgba(255,255,255,0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 10% 95%, rgba(255,255,255,0.4) 1px, transparent 1px),
        radial-gradient(circle at 50% 60%, rgba(255,255,255,0.25) 0.5px, transparent 0.5px);
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1200px;
    width: 100%;
}

.hero-full {
    max-width: 1600px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 1480px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.55);
    margin-bottom: 18px;
    font-weight: 400;
    font-style: normal;
}

.hero-eyebrow-dot {
    margin-right: 6px;
    color: #6ea8ff;
    opacity: 0.6;
    letter-spacing: 0;
}

.hero-eyebrow em {
    font-style: italic;
    font-family: var(--font-display);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 84px;
    font-weight: 300;
    color: #e8ecf5;
    margin-bottom: 30px;
    letter-spacing: -1px;
    line-height: 1.0;
}

.hero-title-to {
    font-style: italic;
    color: #6ea8ff;
    font-weight: 300;
    letter-spacing: 0;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: rgba(232, 236, 245, 0.6);
    letter-spacing: 1px;
    line-height: 1.4;
    margin-bottom: 28px;
}

.hero-quotes {
    position: relative;
    min-height: 132px;
    margin-bottom: 28px;
}

.hero-quote {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.hero-quote-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-quote-text {
    font-family: var(--font-display);
    font-size: 21px;
    font-style: italic;
    font-weight: 400;
    color: rgba(232, 236, 245, 0.7);
    line-height: 1.38;
    margin-bottom: 10px;
}

.hero-quote-label {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.55);
    margin-bottom: 6px;
}

.hero-quote-attr {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.55);
}

.hero-author {
    font-family: var(--font-body);
    font-size: 15px;
    color: #4a5070;
    font-style: italic;
    margin-bottom: 36px;
}

.hero-row-hint {
    display: grid;
    grid-template-columns: 60px 20px;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 86px;
}

.hero-row-hint svg {
    width: 20px;
    height: 12px;
}

.hero-row-label {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8ecf5;
    line-height: 1.2;
    text-align: right;
    justify-self: end;
}

.hero-action-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.hero-choice-grid,
.hero-quick-grid,
.hero-argument-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.hero-choice-grid .cta-btn {
    background: #6ea8ff;
    border-color: #6ea8ff;
    color: #ffffff;
}

.hero-choice-grid .cta-btn:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #ffffff;
}

.hero-argument-grid a,
.hero-argument-spacer {
    min-height: 34px;
    border: 1px solid rgba(110, 168, 255, 0.26);
    background: rgba(5, 7, 15, 0.72);
    color: #e8ecf5;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
}

.hero-argument-grid a {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-argument-grid a:hover {
    background: rgba(110, 168, 255, 0.16);
    border-color: rgba(110, 168, 255, 0.68);
    color: #ffffff;
}

/* Hero timeline */
.hero-timeline {
    position: relative;
    width: 100%;
    height: 150px;
    margin-top: 28px;
    overflow: visible;
}

.hero-timeline-curve {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tl-node {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tl-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(110, 168, 255, 0.28);
    box-shadow: 0 0 4px rgba(110, 168, 255, 0.18);
    flex-shrink: 0;
    transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

.tl-dot-active {
    background: #e8ecf5;
    box-shadow: 0 0 10px rgba(232, 236, 245, 0.9), 0 0 24px rgba(110, 168, 255, 0.55);
    transform: scale(1.55);
}

.tl-dot-end {
    width: 7px;
    height: 7px;
}

.tl-label {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(232, 236, 245, 0.5);
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
}

.hero-book-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.5);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
    cursor: pointer;
}

.hero-book-link:hover {
    color: #a0c4ff;
}

.hero-book-link svg {
    opacity: 0.7;
}

/* Map preview frame */
.hero-preview {
    flex: 1;
    max-width: 580px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-preview-frame {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow:
        0 0 60px rgba(37, 99, 235, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.hero-preview-label {
    background: rgba(12, 12, 24, 0.9);
    color: var(--ink-faint);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(100, 100, 160, 0.15);
}

.hero-preview-img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: #e8ecf5;
    animation: bob 2.5s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-hint-text {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e8ecf5;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* CTA Buttons */
.cta-btn {
    font-family: var(--font-body);
    font-size: 12px;
    padding: 12px 14px;
    min-height: 68px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btn-primary {
    background: transparent;
    color: #e8ecf5;
    border-color: rgba(232, 236, 245, 0.3);
}

.cta-btn-primary:hover {
    background: rgba(232, 236, 245, 0.06);
    border-color: rgba(232, 236, 245, 0.5);
    color: #ffffff;
}

.cta-btn-secondary {
    background: transparent;
    color: #e8ecf5;
    border-color: rgba(232, 236, 245, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(232, 236, 245, 0.06);
    color: #ffffff;
    border-color: rgba(232, 236, 245, 0.5);
}

.cta-btn-walkthrough {
    background: #6ea8ff;
    color: #ffffff;
    border-color: #6ea8ff;
}

.cta-btn-walkthrough:hover {
    background: #a0c4ff;
    color: #ffffff;
    border-color: #a0c4ff;
}

.cta-btn-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.cta-btn-sm {
    font-size: 13px;
    padding: 10px 22px;
}

/* Also keep .start-btn for thesis panel buttons */
.start-btn {
    font-family: var(--font-body);
    font-size: 13px;
    padding: 12px 28px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid;
}

.start-btn-primary {
    background: transparent;
    color: #6ea8ff;
    border-color: rgba(110, 168, 255, 0.5);
}

.start-btn-primary:hover {
    background: rgba(110, 168, 255, 0.1);
    border-color: rgba(110, 168, 255, 0.8);
    color: #a0c4ff;
}

.start-btn-secondary {
    background: transparent;
    color: rgba(110, 168, 255, 0.6);
    border-color: rgba(110, 168, 255, 0.25);
}

.start-btn-secondary:hover {
    background: rgba(110, 168, 255, 0.08);
    color: #6ea8ff;
    border-color: rgba(110, 168, 255, 0.5);
}

.start-btn-white {
    background: transparent;
    color: #e8ecf5;
    border-color: rgba(232, 236, 245, 0.3);
}

.start-btn-white:hover {
    background: rgba(232, 236, 245, 0.08);
    color: #ffffff;
    border-color: rgba(232, 236, 245, 0.5);
}

.start-btn-solid {
    background: #6ea8ff;
    color: #ffffff;
    border-color: #6ea8ff;
}

.start-btn-solid:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #ffffff;
}

/* Landing sections */
.landing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 48px;
}

.quick-watch-btn {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e8ecf5;
    background: rgba(5, 7, 15, 0.72);
    border: 1px solid rgba(110, 168, 255, 0.34);
    border-radius: 0;
    min-height: 34px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quick-watch-btn:hover {
    background: rgba(110, 168, 255, 0.18);
    border-color: rgba(110, 168, 255, 0.72);
    color: #ffffff;
}

.quick-watch-btn.quick-watch-soon {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* News Ticker */
.ticker-area {
    max-width: 100%;
    padding: 48px 40px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ticker-heading {
    font-family: var(--font-display);
    font-size: 28px;
    color: #e8ecf5;
    text-align: center;
    margin-bottom: 28px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.ticker-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(60, 60, 100, 0.1);
}

.ticker-row:last-child {
    border-bottom: none;
}

.ticker-label {
    flex-shrink: 0;
    width: 120px;
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6a6a8a;
    padding-right: 20px;
    text-align: right;
    border-right: 1px solid rgba(80, 80, 120, 0.2);
    font-weight: 600;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
    padding-left: 28px;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    flex-shrink: 0;
}

.ticker-item-date {
    color: #4a4a68;
    font-size: 12px;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.ticker-item-headline {
    color: var(--ink-faint);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Author section */
.author-section {
    max-width: 1180px;
    padding: 84px 48px;
    scroll-margin-top: 84px;
}

.author-inner {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 54px;
    align-items: center;
}

.author-photo-frame {
    border: 1px solid rgba(110, 168, 255, 0.24);
    background: rgba(5, 7, 15, 0.6);
    padding: 10px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.author-photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.04);
}

.author-kicker {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.62);
    margin-bottom: 12px;
}

.author-copy h2 {
    font-family: var(--font-body);
    font-size: 46px;
    font-weight: 300;
    color: #e8ecf5;
    margin: 0 0 18px;
    line-height: 1.05;
}

.author-copy p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: rgba(232, 236, 245, 0.64);
    margin-bottom: 16px;
}

.author-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    max-width: 100%;
    border: 1px solid rgba(110, 168, 255, 0.35);
    background: rgba(110, 168, 255, 0.08);
    color: #e8ecf5;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 9px 13px;
    text-align: center;
}

.author-links a:nth-child(4n + 1),
.author-links a:nth-child(4n) {
    background: #6ea8ff;
    border-color: #6ea8ff;
    color: #ffffff;
}

.author-links a:nth-child(4n + 2),
.author-links a:nth-child(4n + 3) {
    background: transparent;
    border-color: rgba(232, 236, 245, 0.3);
    color: #e8ecf5;
}

.author-links a:hover {
    filter: brightness(1.14);
}

/* Community section */
.community-section {
    text-align: center;
    padding: 80px 40px;
}

.community-section h2 {
    font-family: var(--font-body);
    font-size: 28px;
    color: var(--ink-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.community-section p {
    font-size: 15px;
    color: #6a6a88;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* Footer */
.landing-footer {
    border-top: 1px solid rgba(80, 80, 120, 0.12);
    padding: 48px 40px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-book-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: #6ea8ff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-book-link:hover {
    color: #d8c0a0;
}

.footer-credit {
    font-size: 13px;
    color: #404058;
    margin-top: 12px;
    line-height: 1.5;
}

.footer-copyright {
    font-size: 12px;
    color: #303045;
    margin-top: 8px;
}

/* === Text Panels (Thesis + Chronology) === */
.text-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: #05070f;
    overflow-y: auto;
    transition: opacity 0.6s ease;
}

.text-panel.hidden {
    display: none;
}

.text-panel-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 42px 24px 92px;
    color: rgba(232, 236, 245, 0.9);
    line-height: 1.68;
    font-family: var(--font-body);
    font-size: 20px;
}

.text-panel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    margin-bottom: 58px;
    color: rgba(160, 176, 200, 0.72);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.text-panel-inner .text-panel-nav a {
    color: var(--accent);
    text-decoration: none;
}

.text-panel-inner .text-panel-nav a:hover {
    color: var(--accent-strong);
}

.text-panel-inner .text-panel-nav .text-panel-site-link {
    margin-right: auto;
    color: #e8ecf5;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 2px;
}

.text-panel-inner .text-panel-nav .text-panel-site-link:hover {
    color: #ffffff;
}

.text-panel-inner h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    color: #e8ecf5;
    margin: 0 0 24px;
    line-height: 1.02;
    letter-spacing: 0;
}

.text-panel-inner h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: #c8d3e6;
    margin: 46px 0 16px;
    line-height: 1.2;
    letter-spacing: 0;
}

.text-panel-inner h3 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 400;
    color: rgba(200, 211, 230, 0.82);
    margin: 34px 0 12px;
    line-height: 1.25;
    letter-spacing: 0;
}

.text-panel-inner p {
    font-size: 20px;
    margin-bottom: 20px;
    color: rgba(232, 236, 245, 0.9);
    font-family: var(--font-body);
}

.text-panel-inner ul.thesis-list {
    font-size: 20px;
    margin: 0 0 24px 24px;
    color: rgba(232, 236, 245, 0.9);
    font-family: var(--font-body);
}

.text-panel-inner ul.thesis-list li {
    margin-bottom: 8px;
}

.text-panel-inner .thesis-intro {
    font-size: inherit !important;
    color: rgba(232, 236, 245, 0.9) !important;
    font-family: var(--font-body) !important;
    line-height: inherit;
}

.text-panel-inner .thesis-subtitle {
    font-family: var(--font-body);
    font-size: 20px;
    color: rgba(232, 236, 245, 0.9);
    font-style: italic;
    margin-top: -14px;
    margin-bottom: 30px;
}

.text-panel-inner strong {
    color: rgba(232, 236, 245, 0.9);
    font-weight: 500;
}

.text-panel-inner em {
    color: rgba(232, 236, 245, 0.9);
}

.thesis-action-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(110, 168, 255, 0.3);
    border-radius: 0;
    color: #6ea8ff;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.thesis-action-btn:hover {
    background: rgba(110, 168, 255, 0.08);
    border-color: rgba(110, 168, 255, 0.5);
}

.thesis-action-btn-primary {
    background: #6ea8ff;
    border-color: #6ea8ff;
    color: #ffffff;
}

.thesis-action-btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #ffffff;
}

.thesis-criteria {
    padding-left: 26px;
    margin-bottom: 24px;
}

.thesis-criteria li {
    font-size: 20px;
    color: rgba(232, 236, 245, 0.9);
    margin-bottom: 12px;
    line-height: 1.68;
}

.thesis-evidence {
    padding-left: 26px;
    margin-bottom: 24px;
}

.thesis-evidence li {
    font-size: 20px;
    color: rgba(232, 236, 245, 0.9);
    margin-bottom: 12px;
    line-height: 1.68;
}

.thesis-reference {
    margin: 24px 0;
    font-size: 18px !important;
    color: rgba(160, 176, 200, 0.72) !important;
    font-style: italic;
    border-left: 2px solid rgba(110, 168, 255, 0.28);
    padding-left: 14px;
}

/* === Tables in text panels === */
.thesis-table,
.chronology-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: rgba(232, 236, 245, 0.9);
    font-family: var(--font-body);
    font-size: 18px;
}

.thesis-table th,
.chronology-table th {
    background: rgba(40, 40, 80, 0.5);
    color: rgba(232, 236, 245, 0.9);
    padding: 8px 12px;
    text-align: left;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--line);
}

.thesis-table td,
.chronology-table td {
    padding: 6px 12px;
    color: rgba(232, 236, 245, 0.9);
    border-bottom: 1px solid rgba(60, 60, 100, 0.2);
}

.thesis-table tbody tr:hover,
.chronology-table tbody tr:hover {
    background: rgba(40, 40, 80, 0.2);
}

.chronology-table {
    font-size: 18px;
}

.chronology-table td:nth-child(n+2) {
    text-align: center;
}

.chronology-table th:nth-child(n+2) {
    text-align: center;
}

.table-section td {
    background: var(--accent-wash) !important;
    color: rgba(232, 236, 245, 0.9) !important;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 12px !important;
}

.table-event td {
    background: rgba(20, 30, 60, 0.4) !important;
    color: #6ea8ff !important;
    font-style: italic;
}

.table-highlight td {
    background: rgba(60, 80, 60, 0.15) !important;
}

.table-highlight-nahor td {
    background: rgba(80, 60, 60, 0.15) !important;
}

.table-footnote {
    font-size: 18px !important;
    color: rgba(160, 176, 200, 0.72) !important;
    margin-bottom: 8px !important;
}

.text-panel-buttons {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.text-panel-inner a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(110, 168, 255, 0.42);
    text-underline-offset: 3px;
}

.text-panel-inner a:hover {
    color: var(--accent-strong);
    text-decoration-color: #a0c4ff;
}

@media (max-width: 700px) {
    .text-panel-nav {
        display: block;
        margin-bottom: 42px;
        line-height: 1.9;
    }

    .text-panel-nav a {
        display: block;
    }

    .text-panel-inner,
    .text-panel-inner p,
    .text-panel-inner ul.thesis-list,
    .thesis-criteria li,
    .thesis-evidence li {
        font-size: 18px;
        line-height: 1.64;
    }

    .text-panel-inner {
        padding: 30px 20px 72px;
    }

    .text-panel-inner h2 {
        font-size: 28px;
    }

    .thesis-table,
    .chronology-table {
        font-size: 16px;
    }
}

/* === Return home button in layer panel === */
a.return-home-btn {
    text-decoration: none;
    box-sizing: border-box;
}

.return-home-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 8px;
    cursor: pointer;
    text-align: center;
    margin-top: 4px;
}

.return-home-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.return-home-btn.hidden {
    display: none;
}

#layer-panel.return-home-only > :not(:last-child) {
    display: none;
}

#layer-panel.return-home-only > :last-child {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
}

.gospel-map-hint {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    z-index: 1300;
    max-width: min(520px, calc(100vw - 32px));
    padding: 10px 18px;
    border: 1px solid rgba(110, 168, 255, 0.38);
    background: rgba(5, 7, 15, 0.86);
    color: #e8ecf5;
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.4px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.gospel-map-hint.hidden {
    display: none;
}


/* === Banner claim label === */
#event-banner-claim {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

#event-banner-claim.hidden {
    display: none;
}

/* === Responsive === */

/* Tablet */
@media (max-width: 900px) {
    .hero-text {
        max-width: 620px;
    }
    .hero-eyebrow {
        margin-bottom: 24px;
    }
    .hero-title {
        font-size: 64px;
        margin-bottom: 24px;
    }
    .hero-quotes {
        min-height: 190px;
        margin-bottom: 30px;
    }
    .hero-action-row {
        display: block;
        margin-bottom: 14px;
    }
    .hero-row-hint {
        justify-content: center;
        width: auto;
        margin-bottom: 12px;
    }
    .hero-row-label {
        text-align: center;
    }
    .hero-choice-grid,
    .hero-quick-grid,
    .hero-argument-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hero-argument-spacer {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .landing-hero {
        padding: 48px 24px 60px;
    }
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-quotes {
        min-height: 240px;
    }
    .hero-action-row {
        display: block;
    }
    .hero-scroll-hint {
        display: none;
    }
    .hero-timeline {
        display: none;
    }
    .hero-choice-grid,
    .hero-quick-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hero-argument-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .author-section {
        padding: 64px 24px;
    }
    .author-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .author-photo-frame {
        max-width: 340px;
        margin: 0 auto;
    }
    .author-copy {
        text-align: center;
    }
    .author-copy h2 {
        font-size: 38px;
    }
    .author-links {
        justify-content: center;
        grid-template-columns: 1fr;
    }
    .feedback-contact-row {
        grid-template-columns: 1fr;
    }
    .feedback-form {
        padding: 30px 24px;
    }
    .landing-section {
        padding: 60px 24px;
    }
    .ticker-area {
        padding: 32px 16px;
    }
    .ticker-heading {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .ticker-row {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }
    .ticker-label {
        width: auto;
        border-right: none;
        text-align: center;
        padding-right: 0;
        padding-bottom: 4px;
    }
    .community-section h2 {
        font-size: 24px;
    }
    .landing-footer {
        padding: 32px 24px;
    }
    #inset-container {
        width: 200px;
    }
    #inset-map {
        height: 120px;
    }
    #inset-roster {
        grid-template-columns: 1fr;
        padding: 4px 10px 5px;
    }
    .inset-roster-row {
        font-size: 11px;
    }
    #narration-time {
        display: none;
    }
    #date-display {
        top: 10px;
        max-width: calc(100vw - 120px);
        padding: 6px 14px;
        font-size: 14px;
        text-align: center;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-map-controls {
        position: fixed;
        top: 52px;
        left: 10px;
        z-index: 1050;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    #layer-panel {
        display: none;
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 96px;
        width: auto;
        min-width: 0;
        max-height: min(48vh, 360px);
        overflow-y: auto;
        padding: 14px 16px;
    }
    #layer-panel.mobile-open {
        display: block;
    }
    #legend-panel {
        display: none;
        left: 12px;
        right: 12px;
        bottom: 96px;
        width: auto;
        min-width: 0;
        max-height: min(48vh, 360px);
        padding: 14px 16px;
        z-index: 1050;
    }
    #legend-panel.mobile-open:not(.hidden) {
        display: block;
    }
    #timeline-container {
        padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    }
    #timeline-markers {
        display: none;
    }
    #timeline-slider-row {
        gap: 10px;
    }
    #play-btn {
        width: 40px;
        height: 40px;
    }
    #speed-control {
        display: none;
    }
    #event-banner {
        max-width: 90%;
        padding: 12px 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }
    .cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Walkthrough Exit Button (D-01, D-02)
   ========================================================================== */

.walkthrough-exit-btn {
    position: fixed;
    bottom: 96px;
    right: 16px;
    z-index: 10000;
    padding: 8px 18px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.walkthrough-exit-btn:hover {
    background: var(--surface);
    border-color: var(--line-strong);
}

.walkthrough-exit-btn.hidden {
    display: none;
}

.walkthrough-exit-btn .exit-label-short {
    display: none;
}

.chronology-next-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    gap: 10px;
}

.chronology-next-btn .hero-watch-play {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.chronology-next-btn .hero-watch-text strong {
    font-size: 16px;
    line-height: 1.05;
}

.chronology-next-btn .hero-watch-sub {
    font-size: 12px;
    line-height: 1.2;
}

.chronology-next-btn.hidden {
    display: none;
}

/* Auto-advance countdown appended to the next-journey button while the
   5-second idle hand-off runs; any interaction removes it. */
.hero-watch-countdown {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #e8c878;
}

/* === Patriarch Genesis Text Box (accumulating verse list, per D-13/D-14) === */
/* Positioned below the inset map (top:16px + ~280px height) so they never overlap */
#patriarch-genesis-text {
    position: absolute;
    top: 310px;
    left: 16px;
    width: 290px;
    max-height: calc(100vh - 390px);
    overflow-y: auto;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 90, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    z-index: 2000;
    font-family: var(--font-body);
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 90, 0.3) transparent;
}

#patriarch-genesis-text::-webkit-scrollbar {
    width: 4px;
}

#patriarch-genesis-text::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 90, 0.3);
    border-radius: 2px;
}

#patriarch-genesis-text.hidden {
    display: none;
}

/* Individual verse entries — accumulate like the chain ledger */
.patriarch-verse-entry {
    font-size: 12px;
    line-height: 1.55;
    color: #b8d4b0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(80, 160, 80, 0.1);
    animation: chainEntryFadeIn 0.4s ease forwards;
    opacity: 0;
}

.patriarch-verse-entry:last-of-type {
    border-bottom: none;
}

.patriarch-verse-meta {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
}

#patriarch-verse {
    margin: 0 0 8px 0;
}

#lxx-mt-panel-btn {
    display: inline-block;
    background: rgba(212, 175, 90, 0.12);
    border: 1px solid rgba(212, 175, 90, 0.4);
    border-radius: 3px;
    color: var(--gold-bright);
    font-family: var(--font-body);
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

#lxx-mt-panel-btn:hover {
    background: rgba(212, 175, 90, 0.25);
}

/* === Chain Ledger Panel (right side, during walkthrough) === */
#chain-ledger {
    position: absolute;
    /* Clear of the layer panel above (RETURN HOME + START OVER + READ THE
       ARGUMENT end ~147px down) so the argument link is never obscured. */
    top: 160px;
    right: 16px;
    width: 270px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    z-index: 2000;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(180, 150, 80, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--font-body);
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 150, 80, 0.3) transparent;
}

/* At the step-by-step completion the gold hand-off button sits above the
   ledger; start the ledger below the taller panel so nothing overlaps. */
#chain-ledger.ledger-below-handoff {
    top: 262px;
    max-height: calc(100vh - 342px);
}

#chain-ledger::before {
    display: none;
}

#chain-ledger.hidden {
    display: none;
}

#chain-ledger::-webkit-scrollbar {
    width: 4px;
}

#chain-ledger::-webkit-scrollbar-track {
    background: transparent;
}

#chain-ledger::-webkit-scrollbar-thumb {
    background: rgba(180, 150, 80, 0.3);
    border-radius: 2px;
}

@media (max-width: 768px) {
    #chain-ledger {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 78px;
        width: auto;
        max-height: min(40vh, 300px);
        padding: 10px 12px;
        border-radius: 6px;
    }
    #chain-ledger::before {
        display: block;
        content: 'Evidence chain';
        margin-bottom: 4px;
        font-size: 11px;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: var(--gold);
    }
    #chain-ledger:not(.mobile-expanded) {
        max-height: 58px;
        overflow: hidden;
        cursor: pointer;
    }
    /* Keep the verse panel's bottom (incl. the "Why the LXX ages?" button)
       clear of the collapsed evidence chain strip below it. */
    #patriarch-genesis-text {
        max-height: calc(100vh - 454px);
    }
    #chain-ledger:not(.mobile-expanded)::after {
        content: 'Tap to expand';
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 11px;
        color: var(--ink-faint);
    }
    #chain-ledger:not(.mobile-expanded) .chain-entry {
        display: none;
    }
    #chain-ledger:not(.mobile-expanded) .chain-entry:last-child {
        display: block;
        padding: 0;
        border-bottom: none;
    }
    #chain-ledger:not(.mobile-expanded) .chain-entry-year,
    #chain-ledger:not(.mobile-expanded) .chain-entry-text {
        display: inline;
        margin-right: 6px;
    }
    #chain-ledger:not(.mobile-expanded) .chain-entry-subtext,
    #chain-ledger:not(.mobile-expanded) .chain-entry-ref {
        display: none;
    }
}

/* Anchor entry — a named date milestone */
.chain-entry {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: chainEntryFadeIn 0.4s ease forwards;
    opacity: 0;
}

.chain-entry:last-child {
    border-bottom: none;
}

@keyframes chainEntryFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.chain-entry--anchor {
    padding: 8px 0;
    border-bottom: 1px solid rgba(180, 150, 80, 0.2);
}

.chain-entry--anchor .chain-entry-year {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.chain-entry--anchor .chain-entry-text {
    font-size: 13px;
    color: var(--gold-bright);
    margin-top: 2px;
    line-height: 1.3;
}

.chain-entry--anchor .chain-entry-subtext {
    font-size: 10px;
    color: var(--gold);
    margin-top: 2px;
    font-style: italic;
}

/* Fast entry — rapid citation */
.chain-entry--fast .chain-entry-text {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.3;
}

/* Terminal entry — the chain's conclusion (styled like an anchor) */
.chain-entry--terminal {
    padding: 8px 0;
    border-bottom: 1px solid rgba(180, 150, 80, 0.2);
}

.chain-entry--terminal .chain-entry-year {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.chain-entry--terminal .chain-entry-text {
    font-size: 13px;
    color: var(--gold-bright);
    margin-top: 2px;
    line-height: 1.3;
}

/* Reference and learn-more badge — shared across all entry types */
.chain-entry-ref {
    font-size: 12px;
    color: var(--gold);
    margin-top: 2px;
    font-style: italic;
}

.chain-entry-learn-badge {
    display: inline-block;
    font-size: 10px;
    color: #a08040;
    background: rgba(160, 120, 40, 0.15);
    border: 1px solid rgba(160, 120, 40, 0.25);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* === Detail Panel (full-screen modal overlay) === */
#detail-panel {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

#detail-panel.hidden {
    display: none;
}

.detail-panel-inner {
    position: relative;
    background: rgba(18, 16, 36, 0.97);
    border: 1px solid rgba(180, 150, 80, 0.35);
    border-radius: 0;
    padding: 32px 36px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.7);
    font-family: var(--font-body);
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 150, 80, 0.3) transparent;
}

.detail-panel-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #806850;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px 8px;
}

.detail-panel-close:hover {
    color: #6ea8ff;
}

#detail-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    padding-right: 24px;
    line-height: 1.3;
}

.detail-point {
    margin-bottom: 18px;
}

.detail-point-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold-bright);
    margin-bottom: 6px;
}

.detail-point-body {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.65;
}

.detail-panel-source {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(180, 150, 80, 0.2);
    font-size: 12px;
    color: #706858;
    font-style: italic;
    line-height: 1.5;
}

.detail-panel-source.hidden {
    display: none;
}

/* === Feedback Panel === */
.feedback-panel {
    position: fixed;
    inset: 0;
    z-index: 21000;
    background: rgba(0, 0, 0, 0.76);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.feedback-panel.hidden {
    display: none;
}

.feedback-form {
    position: relative;
    width: min(640px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: rgba(8, 10, 22, 0.98);
    border: 1px solid rgba(110, 168, 255, 0.35);
    box-shadow: 0 18px 72px rgba(0, 0, 0, 0.72);
    padding: 34px 38px;
    font-family: var(--font-body);
    color: #e8ecf5;
}

.feedback-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.feedback-close:hover {
    color: #ffffff;
}

.feedback-hidden {
    display: none;
}

#feedback-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: #e8ecf5;
    margin: 0 34px 12px 0;
    line-height: 1.2;
}

.feedback-intro,
.feedback-prompts,
.feedback-label {
    font-family: var(--font-body);
}

.feedback-intro {
    color: rgba(232, 236, 245, 0.72);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.feedback-prompts {
    color: rgba(232, 236, 245, 0.62);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 22px 18px;
    padding: 0;
}

.feedback-label {
    display: block;
    color: #e8ecf5;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.feedback-label span {
    color: rgba(232, 236, 245, 0.45);
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
}

.feedback-form textarea,
.feedback-form input {
    width: 100%;
    margin-top: 8px;
    border: 1px solid rgba(110, 168, 255, 0.32);
    background: rgba(255, 255, 255, 0.04);
    color: #e8ecf5;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 0;
}

.feedback-form textarea:focus,
.feedback-form input:focus {
    outline: none;
    border-color: rgba(110, 168, 255, 0.8);
    background: rgba(110, 168, 255, 0.08);
}

.feedback-contact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 12px;
    margin-top: 16px;
}

.feedback-submit {
    margin-top: 22px;
    width: 100%;
    border: 1px solid #6ea8ff;
    background: #6ea8ff;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 13px 18px;
    cursor: pointer;
}

.feedback-submit:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #ffffff;
}

/* === Feedback Thank You Page === */
.thanks-page {
    min-height: 100vh;
    background: #05070f;
    color: #e8ecf5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.thanks-card {
    width: min(620px, 100%);
    border: 1px solid rgba(110, 168, 255, 0.28);
    background: rgba(8, 10, 22, 0.94);
    padding: 42px 46px;
    text-align: center;
}

.thanks-card h1 {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 300;
    margin: 0 0 14px;
}

.thanks-card p {
    font-family: var(--font-body);
    color: rgba(232, 236, 245, 0.72);
    font-size: 17px;
    line-height: 1.6;
}

.thanks-link {
    display: inline-block;
    margin-top: 22px;
    border: 1px solid #6ea8ff;
    background: #6ea8ff;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 22px;
}

.thanks-link:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #ffffff;
}

/* === Walkthrough Map Pins (chronology location markers) === */
.walkthrough-pin {
    position: relative;
    pointer-events: none;
}

.walkthrough-pin-dot {
    width: 11px;
    height: 11px;
    background: var(--gold);
    border: 2px solid var(--gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 168, 64, 0.8), 0 0 20px rgba(212, 168, 64, 0.4);
    animation: pinPulse 2s ease-in-out infinite;
}

@keyframes pinPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(212, 168, 64, 0.7), 0 0 16px rgba(212, 168, 64, 0.3); }
    50%       { box-shadow: 0 0 14px rgba(212, 168, 64, 1.0), 0 0 28px rgba(212, 168, 64, 0.6); }
}

.walkthrough-pin-label {
    position: absolute;
    left: 16px;
    top: -5px;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-bright);
    text-shadow: 1px 1px 3px #000, -1px -1px 3px #000, 0 0 6px rgba(0,0,0,0.9);
    pointer-events: none;
}

/* Region pins name terrain rather than a site: no dot, italic label,
   centred on the anchor point. */
.walkthrough-pin-region .walkthrough-pin-dot {
    display: none;
}

.walkthrough-pin-region .walkthrough-pin-label {
    left: 0;
    transform: translateX(-50%);
    font-style: italic;
    font-weight: 500;
}

/* A stop the backward journey has moved past: its era-bound label expires,
   but a faint timeless place name (passedText) remains as a breadcrumb of
   the route already walked — an anonymous dot tells the viewer nothing. */
.walkthrough-pin-passed .walkthrough-pin-label {
    opacity: 0.45;
    font-size: 10px;
    font-weight: 400;
    font-style: italic;
    top: -4px;
    left: 12px;
}

.walkthrough-pin-passed .walkthrough-pin-label:empty {
    display: none;
}
.walkthrough-pin-passed .walkthrough-pin-dot {
    width: 7px;
    height: 7px;
    opacity: 0.45;
    animation: none;
    box-shadow: 0 0 6px rgba(212, 168, 64, 0.35);
}


/* ============================================================ */
/* Gospel Walkthrough                                           */
/* ============================================================ */

.gospel-complete-card {
    max-width: 680px;
}

/* The response panel mirrors the landing page's type system exactly:
   kicker (blue small caps) + Cormorant display heading + EB Garamond body. */
.gospel-kicker {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.6);
    margin-bottom: 10px;
    text-align: left;
}

#gospel-complete-panel .explore-intro-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    text-align: left;
    margin-bottom: 14px;
}

#gospel-complete-panel .explore-intro-desc {
    font-size: 16px;
    line-height: 1.65;
}

.gospel-detail-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.gospel-detail-heading {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.6);
    margin-bottom: 10px;
}

.gospel-prayer-box {
    background: rgba(212, 175, 90, 0.06);
    border: 1px solid rgba(212, 175, 90, 0.28);
    border-left: 3px solid rgba(212, 175, 90, 0.55);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0;
}

.gospel-prayer-text {
    font-family: var(--font-body);
    font-size: 16px;
    font-style: italic;
    color: var(--ink-muted);
    line-height: 1.7;
    margin: 0;
}

.gospel-assurance-box {
    background: rgba(232, 236, 245, 0.04);
    border: 1px solid var(--line);
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 0;
}

.gospel-assurance-text {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink-muted);
    line-height: 1.65;
    margin: 0;
}

.gospel-link {
    color: var(--accent);
    text-decoration: none;
}

.gospel-link:hover {
    text-decoration: underline;
    color: #a0c4ff;
}

/* Gospel overlay detail panels (guilt offering, God, resurrection) */
.gospel-overlay-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gospel-overlay-panel.hidden {
    display: none;
}

.gospel-overlay-card {
    background: #06080f;
    border: 1px solid rgba(110, 168, 255, 0.2);
    max-width: 620px;
    width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 36px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.gospel-overlay-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.gospel-overlay-close:hover {
    color: #e8ecf5;
}

.gospel-overlay-title {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: #e8ecf5;
    margin-bottom: 18px;
    padding-right: 28px;
}

.gospel-overlay-body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.gospel-overlay-body strong {
    color: #d0d0f0;
}

.gospel-overlay-body em {
    color: #c8d8ff;
}

/* Christianity layer: flash label on dot appearance */
.church-flash-label {
    background: none;
    border: none;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.7);
    pointer-events: none;
}

/* Christianity layer: hover tooltip */
.church-tooltip {
    background: var(--surface);
    border: 1px solid rgba(110, 168, 255, 0.3);
    border-radius: 4px;
    color: var(--accent-strong);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 4px 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.church-tooltip::before {
    border-top-color: var(--surface) !important;
}

/* Christianity layer: click ancestry popup */
.ancestry-popup-wrap .leaflet-popup-content-wrapper {
    background: var(--surface);
    border: 1px solid rgba(110, 168, 255, 0.3);
    border-radius: 6px;
    color: var(--accent-strong);
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    padding: 0;
}

.ancestry-popup-wrap .leaflet-popup-content {
    margin: 14px 16px;
}

.ancestry-popup-wrap .leaflet-popup-tip {
    background: var(--surface);
}

.ancestry-popup-wrap .leaflet-popup-close-button {
    color: var(--ink-faint) !important;
    font-size: 16px;
    top: 6px !important;
    right: 8px !important;
}

.ancestry-popup-wrap .leaflet-popup-close-button:hover {
    color: #aaccff !important;
}

.ancestry-popup {
    font-family: var(--font-body);
}

.ancestry-popup-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.ancestry-popup-year {
    font-size: 12px;
    color: var(--ink-faint);
    margin-bottom: 10px;
}

.ancestry-popup-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8899bb;
    margin-bottom: 6px;
}

.ancestry-origin {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: #f0c030;
}

.ancestry-chain {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid rgba(100, 130, 200, 0.25);
    padding-left: 10px;
}

.ancestry-chain li {
    font-size: 13px;
    line-height: 1.6;
    position: relative;
}

.ancestry-chain li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: rgba(100, 130, 200, 0.3);
}

.ancestry-year {
    font-size: 11px;
    color: var(--ink-faint);
}

.ancestry-status {
    font-size: 12px;
    font-style: italic;
    color: #888898;
}

/* Persistent labels on ancestor dots when a church is clicked */
.church-ancestry-label {
    background: none;
    border: none;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-strong);
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 8px rgba(0,0,0,0.9);
    pointer-events: none;
}

/* ============================================================
   Landing v2 — watch-first hero + journey cards (2026-06)
   ============================================================ */

/* --- Hero map teaser background --- */
.hero-map-teaser {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-map-teaser::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,7,15,0.55) 0%, rgba(5,7,15,0.18) 45%, rgba(5,7,15,0) 70%);
}

#hero-teaser-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.landing-hero .hero-full {
    position: relative;
    z-index: 2;
}

/* --- Hero lede + CTA --- */
.hero-lede {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.6;
    color: rgba(232, 236, 245, 0.82);
    max-width: 600px;
    margin-bottom: 14px;
}

.hero-lede-strong {
    color: #e8ecf5;
    font-size: 20px;
    font-style: italic;
    font-family: var(--font-display);
    margin-bottom: 30px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-watch-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 30px 16px 22px;
    background: linear-gradient(135deg, #6ea8ff 0%, #4f86e8 100%);
    color: #071022;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    box-shadow: 0 6px 30px rgba(110, 168, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Step-by-step continuation: the same hand-off button in gold, so the viewer
   knows the next journey keeps the pauses rather than switching to narration. */
.hero-watch-btn.guided-next {
    background: linear-gradient(135deg, #e8c97a 0%, #c9a24f 100%);
    box-shadow: 0 6px 30px rgba(232, 201, 122, 0.3);
}

.hero-watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 38px rgba(110, 168, 255, 0.5);
}

.hero-watch-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(7, 16, 34, 0.16);
    font-size: 16px;
    flex-shrink: 0;
}

.hero-watch-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-watch-text strong {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hero-watch-sub {
    font-size: 13px;
    opacity: 0.75;
    letter-spacing: 0.4px;
}

.hero-browse-link {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(232, 236, 245, 0.65);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 236, 245, 0.25);
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-browse-link:hover {
    color: #e8ecf5;
    border-color: rgba(232, 236, 245, 0.6);
}

/* --- Journeys section --- */
.journeys-section {
    max-width: 1240px;
    padding-top: 96px;
}

.journeys-kicker {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.6);
    margin-bottom: 12px;
}

.journeys-heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    color: #e8ecf5;
    margin-bottom: 14px;
}

.journeys-intro {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: rgba(232, 236, 245, 0.7);
    max-width: 640px;
    margin-bottom: 44px;
}

.journeys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 28px;
}

.journey-card {
    display: flex;
    flex-direction: column;
    background: rgba(14, 19, 34, 0.85);
    border: 1px solid rgba(110, 168, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.journey-card:hover {
    transform: translateY(-4px);
    border-color: rgba(110, 168, 255, 0.4);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}

.jc-media {
    position: relative;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
}

.jc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jc-step {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(5, 7, 15, 0.78);
    border: 1px solid rgba(110, 168, 255, 0.35);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.jc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.jc-kicker {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212, 175, 90, 0.75);
    margin-bottom: 8px;
}

.jc-title {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.15;
    color: #e8ecf5;
    margin-bottom: 10px;
}

.jc-hook {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: rgba(232, 236, 245, 0.68);
    margin-bottom: 18px;
    flex: 1;
}

.jc-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
}

.jc-watch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    background: rgba(110, 168, 255, 0.16);
    border: 1px solid rgba(110, 168, 255, 0.55);
    border-radius: 8px;
    color: #cfe0ff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.jc-watch:hover {
    background: rgba(110, 168, 255, 0.85);
    color: #071022;
}

.jc-play {
    font-size: 11px;
    opacity: 0.85;
}

.jc-meta {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.7;
    margin-left: 2px;
}

.jc-guided {
    padding: 9px 18px;
    background: transparent;
    border: 1px solid rgba(232, 236, 245, 0.22);
    border-radius: 8px;
    color: rgba(232, 236, 245, 0.75);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.jc-guided:hover {
    border-color: rgba(232, 236, 245, 0.55);
    color: #e8ecf5;
}

.jc-read {
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(232, 236, 245, 0.55);
    text-decoration: none;
    border-bottom: none;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.jc-read:hover {
    color: var(--accent-strong);
}

.jc-extra {
    background: none;
    border: none;
    padding: 2px 0 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(212, 175, 90, 0.7);
    cursor: pointer;
    transition: color 0.15s ease;
}

.jc-extra:hover {
    color: #d4af5a;
}

.journeys-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding: 26px 30px;
    background: rgba(212, 175, 90, 0.06);
    border: 1px solid rgba(212, 175, 90, 0.22);
    border-radius: 14px;
}

.journeys-extra-copy h3 {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 500;
    color: #e8ecf5;
    margin-bottom: 6px;
}

.journeys-extra-copy p {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(232, 236, 245, 0.65);
}

.journeys-extra .jc-watch {
    flex-shrink: 0;
    border-color: rgba(212, 175, 90, 0.55);
    background: rgba(212, 175, 90, 0.14);
    color: #ecd9ab;
}

.journeys-extra .jc-watch:hover {
    background: rgba(212, 175, 90, 0.85);
    color: #1a1206;
}

/* --- Proof / quotes section --- */
.proof-section {
    padding-top: 30px;
}

.proof-heading {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: #e8ecf5;
    margin-bottom: 28px;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* Quotes inside proof-grid are always visible (the hero rotation
   classes no longer control layout here). */
.proof-grid .hero-quote {
    position: static;
    opacity: 1;
    pointer-events: auto;
    margin: 0;
    padding: 26px 28px;
    background: rgba(14, 19, 34, 0.7);
    border: 1px solid rgba(110, 168, 255, 0.12);
    border-left: 2px solid rgba(212, 175, 90, 0.5);
    border-radius: 10px;
}

/* --- Footer attribution --- */
.footer-attribution {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(232, 236, 245, 0.3);
    margin-top: 6px;
}

/* --- Responsive --- */
/* The stylesheet predates border-box; the v2 components size with
   padding included so width:100% never overflows the viewport. */
.hero-watch-btn,
.hero-cta-row,
.hero-lede,
.journey-card,
.jc-body,
.jc-watch,
.jc-guided,
.journeys-extra,
.proof-grid .hero-quote {
    box-sizing: border-box;
}

@media (max-width: 920px) {
    .site-nav-tagline {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-nav {
        flex-wrap: wrap;
        row-gap: 4px;
        padding: 12px 18px;
    }

    .site-nav-logo {
        font-size: 12px;
        letter-spacing: 1.2px;
    }

    .site-nav-links {
        gap: 16px;
    }

    .site-nav-link {
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .landing-hero {
        padding: 96px 24px 48px;
        min-height: auto;
    }

    .hero-lede {
        font-size: 17px;
    }

    .hero-cta-row {
        gap: 18px;
    }

    .hero-watch-btn {
        width: 100%;
        justify-content: center;
    }

    .journeys-section {
        padding: 64px 24px;
    }

    .journeys-heading {
        font-size: 32px;
    }

    .journeys-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .proof-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .journeys-extra {
        padding: 22px;
    }

    .journeys-extra .jc-watch {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-card,
    .hero-watch-btn {
        transition: none;
    }
}

/* Camera flights used to fade the marker pane to 60% while the zoom
   animated; the momentary dimming of every dot and label read as a glitch.
   Layer updates are already suppressed during flights (mapZoomAnimating),
   so markers simply stay at full strength now. The .map-camera-zooming
   class remains for the pulse-freeze rule above. */

/* ==========================================================================
   Narration captions
   ========================================================================== */

#narration-captions {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 96px; /* clears the timeline controls */
    z-index: 1500;
    max-width: min(720px, 88vw);
    padding: 8px 18px;
    background: var(--surface);
    border-radius: 6px;
    color: #f0ead9;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

#narration-captions.hidden {
    display: none;
}

/* The stylesheet has no generic .hidden rule; the speed/rate/CC buttons are
   swapped by JS via this class, so it needs an explicit rule here. */
.speed-btn.hidden,
.cc-btn.hidden {
    display: none;
}

.cc-btn.active {
    background: rgba(110, 168, 255, 0.25);
    color: var(--accent-strong);
    border-color: var(--line-strong);
}

/* ==========================================================================
   Journey chapter progress (narrated chain)
   ========================================================================== */

#journey-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1600;
    pointer-events: none;
}

#journey-progress.hidden {
    display: none;
}

.jp-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
}

#jp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af5a, #e8c878);
    transition: width 0.4s linear;
}

.jp-label {
    position: absolute;
    top: 58px; /* stacked below the date readout, which is also top-centre */
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid rgba(212, 175, 90, 0.35);
    color: var(--ink);
    border-radius: 999px;
    padding: 4px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    max-width: 88vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jp-label #jp-step {
    color: #d4af5a;
    margin-right: 10px;
}

@media (max-width: 768px) {
    #narration-captions {
        bottom: 144px; /* clears the collapsed evidence chain and timeline controls */
        font-size: 15px;
        padding: 6px 12px;
    }
    /* Keep the exit button clear of the evidence chain, which owns the
       bottom strip on mobile. Shortened to "Exit" and capped jp-label width
       so the button and the "Journey N of 5" pill never collide. */
    .walkthrough-exit-btn {
        top: 44px;
        right: 10px;
        bottom: auto;
        padding: 5px 12px;
        font-size: 12px;
    }
    .walkthrough-exit-btn .exit-label-full {
        display: none;
    }
    .walkthrough-exit-btn .exit-label-short {
        display: inline;
    }
    .jp-label {
        top: 44px;
        font-size: 12px;
        padding: 3px 12px;
        max-width: calc(100vw - 170px);
    }
    .speed-btn {
        padding: 3px 5px;
        font-size: 11px;
    }
    /* The raw timeline-speed buttons stay hidden on mobile, but the narration
       rate control should be usable during voiced journeys. */
    #speed-control.narration-mode {
        display: flex;
    }
}

/* ==========================================================================
   Timeline-to-Christ scripture card (one per narration segment)
   ========================================================================== */

#scripture-card {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    max-width: 330px;
    padding: 16px 20px;
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 90, 0.28);
    border-left: 3px solid rgba(212, 175, 90, 0.55);
    pointer-events: none;
}

#scripture-card.hidden {
    display: none;
}

#scripture-card-text {
    font-family: var(--font-body);
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 8px 0;
}

#scripture-card-ref {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
}

@media (max-width: 768px) {
    /* Top of the screen on phones: the caption bar owns the bottom. */
    #scripture-card {
        top: 76px;
        bottom: auto;
        left: 12px;
        right: 12px;
        transform: none;
        max-width: none;
        padding: 12px 14px;
    }
    #scripture-card-text {
        font-size: 14px;
    }
}

/* ==========================================================================
   Landing: resume-the-chain pill for returning visitors
   ========================================================================== */

.hero-resume {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -8px 0 24px;
}

.hero-resume-btn {
    background: rgba(212, 175, 90, 0.08);
    border: 1px solid rgba(212, 175, 90, 0.4);
    border-radius: 999px;
    color: var(--gold-bright);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.hero-resume-btn:hover {
    background: rgba(212, 175, 90, 0.18);
    border-color: rgba(212, 175, 90, 0.65);
}

.hero-resume-dismiss {
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

.hero-resume-dismiss:hover {
    color: var(--ink);
}

/* ==========================================================================
   Artifact card (timed narration images) + side variants for both cards
   ========================================================================== */

#scripture-card.side-right {
    left: auto;
    right: 16px;
}

#artifact-card {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    width: 300px;
    padding: 10px;
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 90, 0.28);
    pointer-events: none;
}

#artifact-card.side-right {
    left: auto;
    right: 16px;
}

#artifact-card.hidden {
    display: none;
}

#artifact-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
}

#artifact-card-caption {
    font-family: var(--font-body);
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink-muted);
    margin: 8px 2px 0;
}

@media (max-width: 768px) {
    #artifact-card {
        top: 76px;
        bottom: auto;
        transform: none;
        left: auto;
        right: 12px;
        width: min(240px, 60vw);
        padding: 8px;
    }
    #artifact-card.side-right {
        right: 12px;
    }
    #scripture-card.side-right {
        left: 12px;
        right: 12px;
    }
}

/* ==========================================================================
   Cinematic chrome fade: during narrated playback the controls step back
   after a few idle seconds (standard video-player behaviour). Captions, the
   date, the journey label, and the story cards stay.
   ========================================================================== */

#layer-panel,
#legend-panel,
#timeline-container,
.mobile-map-controls,
.leaflet-control-zoom {
    transition: opacity 0.7s ease;
}

body.chrome-idle #layer-panel,
body.chrome-idle #legend-panel,
body.chrome-idle #timeline-container,
body.chrome-idle .mobile-map-controls,
body.chrome-idle .leaflet-control-zoom {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   Narration time readout (elapsed / total) beside the play button
   ========================================================================== */

#narration-time {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

#narration-time.hidden {
    display: none;
}

/* ==========================================================================
   Journey beat markers on the seek bar: one dot per story beat,
   clickable to jump there.
   ========================================================================== */

#slider-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

#slider-wrap #timeline-slider {
    width: 100%;
}

#journey-beats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.journey-beat {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50%;
    background: rgba(212, 175, 90, 0.55);
    border: 1px solid rgba(232, 200, 120, 0.7);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, background 0.15s ease;
}

.journey-beat:hover {
    transform: scale(1.6);
    background: var(--gold-bright);
}

.journey-beat.passed {
    background: rgba(232, 200, 120, 0.9);
}

/* Craft-arrival labels: full text ("Metalworking: Egypt") at regional zoom,
   place name alone ("Egypt") when the camera pulls wide. */
.spread-lbl-short {
    display: none;
}

#main-map.zoom-far .spread-lbl-full {
    display: none;
}

#main-map.zoom-far .spread-lbl-short {
    display: inline;
}

/* ==========================================================================
   Legend live highlight: the entry whose marks are drawing right now
   ========================================================================== */

.legend-item.legend-flash {
    color: var(--ink-strong);
}

.legend-item.legend-flash .legend-swatch {
    box-shadow: 0 0 8px 1px rgba(232, 200, 120, 0.55);
}

/* ==========================================================================
   Map ripple: a soft expanding ring marking the moment something new
   appears on the map.
   ========================================================================== */

.map-ripple-wrap {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.map-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.85;
    animation: mapRipple 1.25s ease-out forwards;
}

@keyframes mapRipple {
    from { transform: scale(0.35); opacity: 0.85; }
    to   { transform: scale(4.5);  opacity: 0; }
}

/* The verse panel steps aside while a left-side artifact or scripture card
   is shown. */
#patriarch-genesis-text.artifact-covered,
#patriarch-genesis-text.scripture-covered {
    display: none;
}

/* And while a mobile drawer (layers/legend) is open — on a phone they share
   the same space, and the drawer's buttons must stay tappable. */
#patriarch-genesis-text.drawer-covered,
.gospel-map-hint.drawer-covered {
    display: none;
}

/* ══════════════════════════════════════════════════════════════
   By the Numbers — landing band (#numbers)
   ══════════════════════════════════════════════════════════════ */

.numbers-section { padding: 74px 0 10px; }

.numbers-kicker {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.6);
    margin: 0 0 12px;
}

.numbers-heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 14px;
    text-wrap: balance;
}

.numbers-intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 62ch;
    margin: 0 0 40px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.num-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.num-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}

.num-card--coming:hover { transform: none; box-shadow: none; border-color: var(--line); }

@media (prefers-reduced-motion: reduce) {
    .num-card, .num-card:hover { transition: none; transform: none; }
}

.nc-media {
    aspect-ratio: 16 / 8.5;
    position: relative;
    background: linear-gradient(160deg, rgba(110, 168, 255, 0.06), rgba(5, 7, 15, 0.2));
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.num-card--coming .nc-media { opacity: 0.55; }

.nc-step {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(5, 7, 15, 0.78);
    border: 1px solid rgba(110, 168, 255, 0.35);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.nc-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nc-kicker {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212, 175, 90, 0.75);
    margin: 0 0 8px;
}

.nc-title {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 10px;
}

.nc-hook {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: rgba(232, 236, 245, 0.68);
    margin: 0 0 18px;
    flex: 1;
}

.nc-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
}

.nc-explore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    background: rgba(110, 168, 255, 0.16);
    border: 1px solid rgba(110, 168, 255, 0.55);
    border-radius: 8px;
    color: #cfe0ff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nc-explore:hover,
.nc-explore:focus-visible {
    background: rgba(110, 168, 255, 0.3);
    color: #ffffff;
    outline: none;
}

.nc-explore:focus-visible { box-shadow: 0 0 0 2px rgba(110, 168, 255, 0.5); }

.nc-read {
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(232, 236, 245, 0.55);
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.nc-read:hover { color: var(--accent-strong); }

.nc-coming {
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 12px 0 14px;
}

/* card motifs */
.numbers-motif-ledger {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    padding-top: 22px;
}

.numbers-motif-ledger .row { display: flex; justify-content: space-between; gap: 34px; }
.numbers-motif-ledger .end { color: var(--gold-bright); }
.numbers-motif-ledger .sum {
    border-top: 1px solid var(--line-strong);
    color: var(--ink);
    margin-top: 3px;
    padding-top: 5px;
}

.numbers-motif-days { display: flex; gap: 26px; align-items: center; }

.numbers-motif-days .day {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--ink-faint);
}

.numbers-motif-days .day.third {
    border-color: rgba(212, 175, 90, 0.7);
    color: var(--gold-bright);
    box-shadow: 0 0 18px rgba(212, 175, 90, 0.22);
    font-size: 30px;
}

@media (max-width: 640px) {
    .numbers-section { padding-top: 56px; }
    .numbers-heading { font-size: 34px; }
}

/* === Paul's Timeline overlay (js/pauls-timeline.js) === */
#pauls-band {
    position: relative;
    margin: 0 60px 6px 40px;
    padding-top: 2px;
}

#pauls-band.hidden {
    display: none;
}

/* Hide alongside the marker row (chronology walkthrough) */
#timeline-container:has(#timeline-markers.hidden) #pauls-band {
    display: none;
}

.pauls-row {
    position: relative;
    height: 13px;
    cursor: pointer;
}

.pauls-line {
    position: absolute;
    top: 55%;
    height: 2px;
    transform: translateY(-50%);
    border-radius: 2px;
    transition: filter 0.15s;
}

.pauls-line-strong {
    height: 3px;
    box-shadow: 0 0 6px rgba(110, 168, 255, 0.35);
}

.pauls-dot {
    position: absolute;
    top: 55%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(5, 7, 15, 0.85);
}

.pauls-label {
    position: absolute;
    top: -3px;
    padding: 0 6px;
    background: rgba(14, 19, 34, 0.92);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    z-index: 2;
}

.pauls-row:hover .pauls-line {
    filter: brightness(1.35);
}

.pauls-row:hover .pauls-label {
    opacity: 1;
}

@media (max-width: 700px) {
    #pauls-band {
        display: none;
    }
}

/* Paul's Timeline detail panel (mirrors #detail-panel) */
#paul-panel {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

#paul-panel.hidden {
    display: none;
}

#paul-panel-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    padding-right: 24px;
    line-height: 1.3;
}

.paul-panel-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 168, 255, 0.4);
    padding-bottom: 2px;
}

.paul-panel-link:hover {
    color: var(--accent-strong);
    border-bottom-color: var(--accent-strong);
}

/* ==========================================================================
   Introduction journey card
   ========================================================================== */

.intro-journey-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    margin-bottom: 54px;
    overflow: hidden;
    border: 1px solid rgba(232, 201, 122, 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(21, 28, 46, 0.96), rgba(10, 13, 25, 0.96));
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
    font-family: Georgia, 'Times New Roman', serif;
}

.intro-journey-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    padding: 38px 34px;
    overflow: hidden;
    border-right: 1px solid rgba(232, 201, 122, 0.16);
    background:
        radial-gradient(circle at 72% 30%, rgba(110, 168, 255, 0.13), transparent 34%),
        radial-gradient(circle at 30% 70%, rgba(212, 175, 90, 0.11), transparent 36%),
        rgba(5, 7, 15, 0.5);
}

.intro-journey-years {
    display: flex;
    justify-content: space-between;
    color: rgba(232, 236, 245, 0.55);
    font-size: 13px;
    letter-spacing: 1.4px;
}

.intro-journey-line {
    position: relative;
    height: 2px;
    margin: 20px 2px 26px;
    background: linear-gradient(90deg, rgba(212, 175, 90, 0.4), rgba(110, 168, 255, 0.52));
}

.intro-dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(5, 7, 15, 0.78);
}

.intro-dot--material {
    border: 2px solid #f2dfaa;
    border-radius: 50%;
    background: #d4af5a;
}

.intro-dot--method {
    border: 2px solid #d8e7ff;
    background: #6ea8ff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.intro-dot--open {
    border: 2px solid #e8c97a;
    border-radius: 50%;
    background: #080b14;
}

.intro-dot--1 { left: 10%; }
.intro-dot--2 { left: 29%; }
.intro-dot--3 { left: 49%; }
.intro-dot--4 { left: 67%; }
.intro-dot--5 { left: 83%; }
.intro-dot--6 { left: 98%; }

.intro-journey-key {
    display: grid;
    gap: 9px;
    color: rgba(232, 236, 245, 0.57);
    font-size: 12px;
}

.intro-journey-key span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.intro-key-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
}

.intro-key-dot--material {
    border: 1px solid #f2dfaa;
    border-radius: 50%;
    background: #d4af5a;
}

.intro-key-dot--method {
    border: 1px solid #d8e7ff;
    background: #6ea8ff;
    transform: rotate(45deg) scale(0.78);
}

.intro-key-dot--open {
    border: 1px solid #e8c97a;
    border-radius: 50%;
    background: transparent;
}

.intro-journey-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 44px;
}

.intro-journey-kicker {
    margin-bottom: 9px;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.intro-journey-copy h3 {
    margin-bottom: 13px;
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1.12;
}

.intro-journey-copy > p:not(.intro-journey-kicker):not(.intro-journey-meta) {
    margin-bottom: 13px;
    color: var(--ink-muted);
    font-size: 16px;
    line-height: 1.55;
}

.intro-journey-meta {
    margin-bottom: 20px;
    color: var(--ink-faint);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.intro-journey-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.intro-journey-actions .jc-watch {
    min-width: 210px;
}

.journeys-grid-heading {
    margin-bottom: 8px;
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 400;
}

.journeys-grid-intro {
    max-width: 660px;
    margin-bottom: 30px;
    color: rgba(232, 236, 245, 0.63);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .intro-journey-card {
        grid-template-columns: 1fr;
        margin-bottom: 42px;
    }

    .intro-journey-visual {
        min-height: 210px;
        border-right: 0;
        border-bottom: 1px solid rgba(232, 201, 122, 0.16);
    }

    .intro-journey-copy {
        padding: 30px 28px;
    }
}

/* ==========================================================================
   Where Genesis and Science Meet: standalone modern-clock journey
   ========================================================================== */

#discovery-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    pointer-events: none;
    font-family: Georgia, 'Times New Roman', serif;
}

#discovery-tour-overlay.hidden {
    display: none;
}

.discovery-story-card {
    position: absolute;
    top: 70px;
    left: 22px;
    width: min(410px, calc(100vw - 44px));
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 18px 20px 20px;
    border: 1px solid rgba(110, 168, 255, 0.25);
    border-radius: 12px;
    background: rgba(7, 10, 20, 0.93);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

.discovery-story-card--beat-2 {
    width: min(380px, calc(100vw - 44px));
}

.discovery-story-card--beat-5 {
    width: min(430px, calc(100vw - 44px));
}

.discovery-story-card--beat-6 {
    width: min(470px, calc(100vw - 44px));
    border-color: rgba(232, 201, 122, 0.38);
}

.discovery-story-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--ink-faint);
    font-size: 11px;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

#discovery-modern-year {
    min-width: 54px;
    padding: 4px 9px;
    border: 1px solid rgba(232, 201, 122, 0.28);
    border-radius: 999px;
    color: var(--gold-bright);
    text-align: center;
}

#discovery-exit {
    border: 0;
    background: none;
    color: var(--ink-faint);
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

#discovery-exit:hover {
    color: var(--ink);
}

.discovery-story-card h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.14;
}

#discovery-beat-summary {
    margin: 0 0 16px;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 1.48;
}

.discovery-propositions {
    display: grid;
    gap: 8px;
}

.discovery-propositions.hidden,
.discovery-kind-legend.hidden,
.discovery-current.hidden,
.discovery-reading-cards.hidden,
.discovery-pilot-result.hidden,
.discovery-close.hidden {
    display: none;
}

.discovery-proposition {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid rgba(110, 168, 255, 0.16);
    border-radius: 8px;
    background: rgba(110, 168, 255, 0.05);
}

.discovery-proposition > span,
.discovery-reading-cards article > span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.discovery-proposition strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.discovery-proposition small {
    color: var(--ink-faint);
    font-size: 11px;
    line-height: 1.35;
}

.discovery-proposition--dimmed {
    border-color: rgba(232, 236, 245, 0.1);
    background: rgba(232, 236, 245, 0.025);
}

.discovery-proposition--dimmed strong {
    color: rgba(232, 236, 245, 0.48);
    text-decoration: line-through;
    text-decoration-color: rgba(232, 201, 122, 0.65);
}

.discovery-proposition--split {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.discovery-proposition--split > span {
    grid-column: 1 / -1;
}

.discovery-proposition--split > div {
    display: grid;
    gap: 3px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(232, 236, 245, 0.035);
}

.discovery-proposition--split > div:not(.discovery-proposition__kept) strong {
    color: rgba(232, 236, 245, 0.45);
    text-decoration: line-through;
    text-decoration-color: rgba(232, 201, 122, 0.65);
}

.discovery-proposition--split .discovery-proposition__kept {
    border: 1px solid rgba(110, 168, 255, 0.28);
    background: rgba(110, 168, 255, 0.08);
}

.discovery-kind-legend {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
    padding: 10px 11px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--ink-muted);
    font-size: 12px;
}

.discovery-kind-legend > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discovery-kind-legend .discovery-kind-legend__arc {
    padding-top: 5px;
    border-top: 1px solid rgba(232, 236, 245, 0.08);
    color: var(--ink-faint);
    font-size: 11px;
    font-style: italic;
}

.discovery-key-pin {
    display: inline-block;
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
}

.discovery-key-pin--material {
    border: 2px solid #f2dfaa;
    border-radius: 50%;
    background: #d4af5a;
}

.discovery-key-pin--method {
    border: 2px solid #d8e7ff;
    background: #6ea8ff;
    transform: rotate(45deg) scale(0.82);
}

.discovery-current {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 5px 8px;
    padding: 12px;
    border: 1px solid rgba(110, 168, 255, 0.18);
    border-radius: 8px;
    background: rgba(14, 19, 34, 0.82);
}

.discovery-current__year {
    color: var(--gold-bright);
    font-size: 17px;
}

.discovery-current__kind {
    padding: 3px 6px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.discovery-current__kind--material {
    background: rgba(212, 175, 90, 0.16);
    color: #ecd9ab;
}

.discovery-current__kind--method {
    background: rgba(110, 168, 255, 0.16);
    color: #cfe0ff;
}

.discovery-current > strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
}

.discovery-current > small {
    grid-column: 1 / -1;
    color: var(--ink-faint);
    font-size: 11px;
}

.discovery-current > p {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.42;
}

.discovery-reading-cards {
    display: grid;
    gap: 8px;
}

.discovery-reading-cards article {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
    border-left: 2px solid var(--accent);
    background: rgba(110, 168, 255, 0.055);
}

.discovery-reading-cards article strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
}

.discovery-reading-cards article small {
    color: var(--ink-faint);
    font-size: 11px;
}

.discovery-reading-cards > p,
.discovery-pilot-result > p,
.discovery-close > p {
    margin: 6px 0 0;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.48;
}

.discovery-pilot-result__status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(232, 201, 122, 0.18);
}

.discovery-pilot-result__status span {
    color: var(--ink-faint);
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.discovery-pilot-result__status strong {
    color: var(--gold-bright);
    font-size: 18px;
    font-weight: 400;
}

.discovery-distance-key {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}

.discovery-distance-key span {
    display: grid;
    gap: 2px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(212, 175, 90, 0.07);
    color: var(--ink-faint);
    font-size: 10px;
}

.discovery-distance-key strong {
    color: #ecd9ab;
    font-size: 12px;
    font-weight: 400;
}

.discovery-pilot-result > a {
    font-size: 12px;
}

.discovery-open-key {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #ecd9ab;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.discovery-open-ring {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid var(--gold-bright);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 4px rgba(232, 201, 122, 0.08);
}

.discovery-close strong {
    color: var(--ink);
    font-weight: 400;
}

.discovery-close .discovery-close__last {
    margin-top: 12px;
    color: var(--ink);
    font-size: 15px;
    font-style: italic;
}

.discovery-close__actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.discovery-close__actions .hero-watch-btn {
    padding: 10px 14px;
}

.discovery-close__actions .hero-watch-play {
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.discovery-close__actions .hero-watch-text strong {
    font-size: 14px;
}

.discovery-close__actions .hero-watch-sub {
    font-size: 10px;
}

#discovery-restart,
.discovery-close__actions > a {
    border: 0;
    background: none;
    color: var(--ink-faint);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}

#discovery-restart:hover,
.discovery-close__actions > a:hover {
    color: var(--accent-strong);
}

body.discovery-tour-active #layer-panel,
body.discovery-tour-active #legend-panel,
body.discovery-tour-active #mobile-layers-btn,
body.discovery-tour-active #mobile-legend-btn,
body.discovery-tour-active #chain-ledger,
body.discovery-tour-active #event-banner,
body.discovery-tour-active #timeline-markers {
    display: none;
}

body.discovery-tour-active #narration-captions {
    max-width: min(680px, 62vw);
    font-family: Georgia, 'Times New Roman', serif;
}

.discovery-pin-wrap,
.discovery-reading-marker-wrap,
.discovery-distance-label-wrap {
    background: transparent;
    border: 0;
}

.discovery-pin {
    display: block;
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 4px rgba(7, 10, 20, 0.48);
}

.discovery-pin--material {
    border: 2px solid #f4e6bd;
    border-radius: 50%;
    background: #d4af5a;
}

.discovery-pin--method {
    width: 16px;
    height: 16px;
    margin: 1px;
    border: 2px solid #e2eeff;
    background: #6ea8ff;
    transform: rotate(45deg);
}

.discovery-pin--unlocated {
    width: 20px;
    height: 20px;
    margin: -1px;
    border: 2px solid var(--gold-bright);
    border-radius: 50%;
    background: rgba(7, 10, 20, 0.78);
    box-shadow: 0 0 0 5px rgba(232, 201, 122, 0.09);
}

.discovery-pin--unlocated::after {
    content: '?';
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    line-height: 1;
}

.discovery-pin--muted {
    opacity: 0.28;
    filter: saturate(0.45);
}

.discovery-tooltip {
    padding: 5px 8px;
    border: 1px solid rgba(232, 236, 245, 0.2);
    background: rgba(7, 10, 20, 0.94);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.38);
}

.discovery-tooltip::before {
    border-top-color: rgba(7, 10, 20, 0.94);
}

.discovery-tooltip strong,
.discovery-tooltip span {
    display: block;
}

.discovery-tooltip strong {
    font-size: 12px;
    font-weight: 400;
}

.discovery-tooltip span {
    color: var(--ink-faint);
    font-size: 10px;
}

.discovery-tooltip--method {
    border-color: rgba(110, 168, 255, 0.45);
}

.discovery-tooltip--material,
.discovery-tooltip--unlocated {
    border-color: rgba(232, 201, 122, 0.42);
}

.discovery-reading-marker {
    display: grid;
    gap: 2px;
    width: 190px;
    padding: 7px 9px;
    border-left: 2px solid var(--accent);
    border-radius: 0 6px 6px 0;
    background: rgba(7, 10, 20, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.32);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
}

.discovery-reading-marker strong {
    font-size: 12px;
    font-weight: 400;
}

.discovery-reading-marker span {
    color: var(--ink-faint);
    font-size: 10px;
    line-height: 1.25;
}

.discovery-distance-label {
    display: block;
    width: 130px;
    padding: 3px 6px;
    border: 1px solid rgba(232, 201, 122, 0.32);
    border-radius: 999px;
    background: rgba(7, 10, 20, 0.88);
    color: #ecd9ab;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .discovery-story-card {
        top: 66px;
        left: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 250px);
        padding: 14px 15px 16px;
    }

    .discovery-story-card--beat-2,
    .discovery-story-card--beat-5,
    .discovery-story-card--beat-6 {
        width: calc(100vw - 24px);
    }

    .discovery-story-header {
        gap: 8px;
    }

    .discovery-story-card h2 {
        font-size: 21px;
    }

    #discovery-beat-summary {
        font-size: 12px;
    }

    .discovery-proposition--split {
        grid-template-columns: 1fr;
    }

    .discovery-close__actions {
        grid-template-columns: 1fr 1fr;
    }

    .discovery-close__actions .hero-watch-btn {
        grid-column: 1 / -1;
    }

    body.discovery-tour-active #narration-captions {
        bottom: 100px;
        max-width: calc(100vw - 24px);
        font-size: 14px;
    }
}
