/* ====================================================
   CHEMIN FRANÇAIS — Saint-Jacques de Compostelle
   Design system
   ==================================================== */

:root {
    /* Couleurs primaires */
    --c-yellow:        #F5C447;
    --c-yellow-hover:  #E8B330;
    --c-yellow-light:  #FFE27A;
    --c-navy:          #1A3A5C;
    --c-navy-dark:     #102942;
    --c-red:           #8B2C20;
    --c-red-dark:      #6B1E14;

    /* Fonds & parchemins */
    --c-cream:         #F5E6C8;
    --c-cream-light:   #FAF2DF;
    --c-parchment:     #EBD9A8;
    --c-parchment-dk:  #C9B37A;

    /* Texte */
    --c-ink:           #2B1F12;
    --c-ink-soft:      #4A3A28;
    --c-muted:         #8A7552;

    /* Autres */
    --c-white:         #FFFFFF;

    /* Typographies */
    --f-display:  'Bangers', 'Alfa Slab One', 'Impact', sans-serif;
    --f-display-alt: 'Alfa Slab One', 'Bangers', serif;
    --f-hand:     'Kalam', 'Caveat', cursive;
    --f-body:     'Lora', Georgia, serif;
    --f-sans:     'Montserrat', -apple-system, sans-serif;

    /* Rythme */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;

    --shadow-soft:  0 4px 14px rgba(43, 31, 18, 0.12);
    --shadow-card:  0 8px 28px rgba(16, 41, 66, 0.25);
    --shadow-hover: 0 10px 32px rgba(43, 31, 18, 0.25);
}

/* Reset léger */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-body);
    color: var(--c-ink);
    background: var(--c-cream-light);
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================================
   HEADER
   ==================================================== */
.site-header {
    background: linear-gradient(180deg, var(--c-cream-light) 0%, var(--c-cream) 100%);
    border-bottom: 2px solid rgba(139, 90, 28, 0.18);
    box-shadow: 0 2px 6px rgba(43, 31, 18, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- Variante style carte (fond bleu marine, typo IM Fell English) --- */
.site-header--map {
    background: linear-gradient(180deg, #0d2138 0%, #162e4a 60%, #1d3a5c 100%);
    border-bottom: 3px solid #0a1a2c;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}
.site-header--map .header-inner {
    padding: 10px 40px;
    gap: 32px;
    max-width: 1600px;
}
.site-header--map .brand {
    gap: 14px;
}
.site-header--map .brand-shell svg,
.site-header--map .brand-logo-img {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
}
.site-header--map .brand-text {
    line-height: 0.95;
    gap: 0;
}
.site-header--map .brand-title {
    font-family: 'IM Fell English', 'Lora', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #f5e6c8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.site-header--map .main-nav a {
    font-family: 'IM Fell English', 'Lora', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #f5e6c8;
    padding: 6px 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}
.site-header--map .main-nav li { white-space: nowrap; }
.site-header--map .main-nav a:hover {
    color: var(--c-yellow);
}
.site-header--map .main-nav a::after {
    background: var(--c-yellow);
}
.site-header--map .main-nav ul {
    gap: 20px;
    flex-wrap: nowrap;
}
.site-header--map .btn-support {
    font-family: var(--f-sans);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 11px 20px;
    text-transform: uppercase;
}
.site-header--map .nav-toggle span {
    background: #f5e6c8;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-shell svg { display: block; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-title {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--c-ink);
}

.brand-subtitle {
    font-family: var(--f-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--c-ink-soft);
    margin-top: 4px;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 28px;
}

.main-nav a {
    font-family: var(--f-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--c-ink-soft);
    padding: 6px 2px;
    position: relative;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--c-red);
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--c-yellow);
    transition: width 0.25s;
}

.main-nav a:hover::after { width: 100%; }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.main-nav .has-caret .caret {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.7em;
    opacity: 0.6;
    transition: transform 0.2s;
}
.main-nav .has-caret:hover .caret { transform: translateY(2px); }

.header-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-sans);
    font-weight: 700;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.btn-support {
    background: var(--c-yellow);
    color: var(--c-navy-dark);
    padding: 12px 20px;
    font-size: 0.78rem;
    box-shadow: 0 3px 0 var(--c-yellow-hover), 0 4px 10px rgba(43, 31, 18, 0.15);
}
.btn-support:hover {
    background: var(--c-yellow-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--c-yellow-hover), 0 6px 14px rgba(43, 31, 18, 0.2);
}

.btn-primary {
    background: var(--c-yellow);
    color: var(--c-navy-dark);
    padding: 16px 28px;
    font-size: 0.88rem;
    box-shadow: 0 4px 0 var(--c-yellow-hover), 0 6px 14px rgba(43, 31, 18, 0.2);
}
.btn-primary:hover {
    background: var(--c-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--c-yellow-hover), 0 10px 20px rgba(43, 31, 18, 0.25);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.92);
    color: var(--c-navy-dark);
    padding: 15px 26px;
    font-size: 0.88rem;
    border: 2px solid var(--c-navy-dark);
    box-shadow: 0 4px 10px rgba(16, 41, 66, 0.15);
}
.btn-ghost:hover {
    background: var(--c-navy-dark);
    color: var(--c-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.72rem;
}

.btn .chev {
    font-size: 1.1em;
    line-height: 1;
}
.btn .pin {
    font-size: 0.9em;
    color: var(--c-red);
}

/* Lang switch */
.lang-switch { position: relative; }
.lang-btn {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    background: var(--c-white);
    border: 1.5px solid rgba(139, 90, 28, 0.3);
    color: var(--c-ink);
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.lang-btn:hover { background: var(--c-cream); }
.lang-btn .chevron { font-size: 0.7em; }

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--c-white);
    border: 1px solid rgba(139, 90, 28, 0.3);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    min-width: 90px;
    padding: 4px 0;
}
.lang-menu li a {
    display: block;
    padding: 8px 14px;
    font-family: var(--f-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--c-ink);
}
.lang-menu li a:hover { background: var(--c-cream); }

/* Nav toggle (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--c-ink);
    border-radius: 2px;
}

/* ====================================================
   HERO — illustrated map with HTML overlays on top
   Height is capped so header + hero + strip-bar fit in the
   viewport at load time (no scrolling needed to see stats).
   ==================================================== */
.hero {
    position: relative;
    width: 100%;
    background: var(--c-cream-light);
    overflow: hidden;
    line-height: 1.55;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-overlay > * { pointer-events: auto; }

/* ---------- Scroll card top-left (title + intro + CTAs) ---------- */
.scroll-card {
    position: absolute;
    top: 3%;
    left: 2.5%;
    width: 44%;
    min-width: 460px;
    max-width: 680px;
    padding: 22px 34px 24px;
    background:
        radial-gradient(ellipse at center, rgba(255, 248, 225, 0.98) 0%, rgba(235, 217, 168, 0.96) 90%),
        var(--c-parchment);
    border: 1.5px solid rgba(139, 90, 28, 0.5);
    border-radius: 4px;
    box-shadow:
        inset 0 0 40px rgba(139, 90, 28, 0.18),
        0 10px 28px rgba(43, 31, 18, 0.3);
    transform: rotate(-0.6deg);
}
.scroll-card::before,
.scroll-card::after {
    content: '';
    position: absolute;
    top: -6px; bottom: -6px;
    width: 14px;
    background:
        repeating-linear-gradient(90deg, rgba(139, 90, 28, 0.55) 0 2px, transparent 2px 5px),
        var(--c-parchment-dk);
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(43, 31, 18, 0.3);
}
.scroll-card::before { left: -10px; transform: skewY(-1.8deg); }
.scroll-card::after  { right: -10px; transform: skewY(1.8deg); }

.hero-title { margin: 0; line-height: 0.95; }

.line-names {
    display: block;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.8vw, 3.6rem);
    letter-spacing: 0.02em;
    color: var(--c-ink);
    -webkit-text-stroke: 0.5px rgba(43, 31, 18, 0.3);
}

.line-sub {
    display: block;
    margin-top: 2px;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.65vw, 1.75rem);
    letter-spacing: 0.05em;
    color: var(--c-ink);
}

.scroll-intro {
    position: relative;
    margin: 14px 0 18px;
    padding-right: 42px;
    font-family: var(--f-body);
    font-size: clamp(0.86rem, 1vw, 1rem);
    line-height: 1.5;
    color: var(--c-ink-soft);
    font-style: italic;
}
.scroll-shell {
    position: absolute;
    right: 0;
    bottom: -4px;
    filter: drop-shadow(0 2px 4px rgba(43, 31, 18, 0.3));
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-parchment {
    background: linear-gradient(180deg, rgba(255, 248, 225, 0.98) 0%, rgba(235, 217, 168, 0.98) 100%);
    color: var(--c-ink);
    padding: 14px 22px;
    font-size: 0.82rem;
    border: 1.5px solid rgba(139, 90, 28, 0.45);
    box-shadow: 0 4px 10px rgba(43, 31, 18, 0.18);
}
.btn-parchment:hover {
    background: var(--c-cream-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(43, 31, 18, 0.22);
}

/* ---------- Parchments ---------- */
.parchment {
    position: absolute;
    background:
        radial-gradient(ellipse at center, var(--c-cream-light) 0%, var(--c-parchment) 88%),
        var(--c-parchment);
    border: 1px solid var(--c-parchment-dk);
    padding: 16px 28px;
    color: var(--c-ink-soft);
    font-family: var(--f-body);
    font-style: italic;
    box-shadow:
        inset 0 0 28px rgba(139, 90, 28, 0.18),
        0 6px 18px rgba(43, 31, 18, 0.28);
}

.parchment::before, .parchment::after {
    content: '';
    position: absolute;
    top: -4px; bottom: -4px;
    width: 16px;
    background:
        repeating-linear-gradient(90deg, var(--c-parchment-dk) 0, var(--c-parchment-dk) 2px, transparent 2px, transparent 5px),
        var(--c-parchment);
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(43, 31, 18, 0.25);
}
.parchment::before { left: -12px; transform: skewY(-2deg); }
.parchment::after  { right: -12px; transform: skewY(2deg); }

/* (former .parchment-top / .parchment-bottom / .stats styles were moved to the
   strip-bar at the bottom of the hero; kept intentionally empty) */

/* ---------- Speech bubble ---------- */
.speech-bubble {
    position: absolute;
    top: 11%;
    right: 11%;
    background: var(--c-white);
    border: 2.5px solid var(--c-navy-dark);
    border-radius: 18px;
    padding: 10px 18px;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(0.95rem, 1.25vw, 1.35rem);
    letter-spacing: 0.05em;
    color: var(--c-navy-dark);
    text-align: center;
    line-height: 1.05;
    box-shadow: 0 4px 12px rgba(16, 41, 66, 0.3);
    transform: rotate(-4deg);
}
.speech-bubble p { margin: 0; }
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--c-navy-dark);
}
.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 9px solid var(--c-white);
    z-index: 1;
}

/* ---------- Traveler portraits (departure point) ---------- */
.map-nav {
    position: absolute;
    top: 3%;
    left: 0;
    right: 0;
    height: 5%;
    z-index: 5;
}
.map-nav-link {
    position: absolute;
    top: 0;
    height: 100%;
    display: block;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.map-nav-link:hover,
.map-nav-link:focus-visible {
    background: rgba(245, 196, 71, 0.22);
    outline: 2px solid rgba(245, 196, 71, 0.6);
    outline-offset: 2px;
}
/* Debug : ajouter data-debug-nav sur <section class="hero"> pour voir les zones */
.hero[data-debug-nav] .map-nav-link {
    background: rgba(245, 50, 50, 0.28);
    outline: 2px dashed rgba(245, 50, 50, 0.9);
    outline-offset: 0;
}

.countdown-card {
    position: absolute;
    top: var(--countdown-panel-y, 31%);
    left: var(--countdown-panel-x, 88%);
    z-index: 5;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px 10px;
    background: linear-gradient(180deg, #fbeeca 0%, #f0dda2 100%);
    border: 2px solid #8B5A1C;
    border-radius: 8px;
    box-shadow:
        0 4px 10px rgba(43, 31, 18, 0.3),
        inset 0 0 14px rgba(139, 90, 28, 0.18);
    font-family: var(--f-sans);
    color: var(--c-navy-dark);
    white-space: nowrap;
    text-align: center;
    transform: translate(-50%, -50%) rotate(-1.5deg);
    cursor: help;
    transition: top 0.35s ease, left 0.35s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.countdown-card[hidden] {
    display: none;
}
.countdown-card:hover,
.countdown-card:focus-visible {
    transform: translate(-50%, -50%) rotate(-1.5deg) scale(1.05);
    box-shadow:
        0 6px 16px rgba(43, 31, 18, 0.4),
        inset 0 0 14px rgba(139, 90, 28, 0.22);
    outline: none;
}
.countdown-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px) rotate(1.5deg);
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    font-family: var(--f-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 7;
}
.countdown-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--c-navy-dark);
}
.countdown-card:hover .countdown-tooltip,
.countdown-card:focus-visible .countdown-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(1.5deg);
}
.countdown-card::before,
.countdown-card::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 10px;
    height: 10px;
    background: var(--c-red);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.countdown-card::before { left: 10px; }
.countdown-card::after  { right: 10px; }
.countdown-label {
    font-size: clamp(9px, 0.78vw, 12px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-ink-soft);
}
.countdown-value {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1;
}
.countdown-num {
    font-family: var(--f-display);
    font-size: clamp(18px, 1.8vw, 28px);
    color: var(--c-red);
    letter-spacing: 0.04em;
}
.countdown-unit {
    font-size: clamp(10px, 0.85vw, 13px);
    font-weight: 600;
    color: var(--c-ink);
}

.travelers {
    position: absolute;
    inset: 0;
    z-index: 14;
    pointer-events: none;
    touch-action: none;
}
.travelers.is-dragging .traveler { transition: none; }
.hero-overlay.is-panel-dragging .countdown-card,
.hero-overlay.is-panel-dragging .progress-badge {
    transition: none;
}
.progress-editing [data-panel-drag] {
    z-index: 22;
    cursor: move;
    touch-action: none;
}
.progress-editing [data-panel-drag]::after {
    content: '';
    position: absolute;
    inset: -7px;
    border: 2px dashed rgba(245, 196, 71, 0.75);
    border-radius: 10px;
    pointer-events: none;
}
.travelers.is-walking .traveler img {
    animation: pilgrim-step 0.92s ease-in-out infinite alternate;
}
.travelers.is-walking .traveler-kath img {
    animation-delay: 0.18s;
}
.traveler {
    margin: 0;
    text-align: center;
}
.traveler img {
    width: clamp(34px, 3.6vw, 54px);
    height: clamp(34px, 3.6vw, 54px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    background: var(--c-cream-light);
    border: 2.5px solid var(--c-yellow);
    box-shadow:
        0 0 0 1.5px var(--c-navy-dark),
        0 4px 8px rgba(16, 41, 66, 0.35);
    transition: transform 0.25s ease;
}
.traveler {
    position: absolute;
    top: var(--traveler-y, 48.5%);
    left: var(--traveler-x, 89.5%);
    transform: translate(-50%, -50%) rotate(var(--traveler-rotate, 0deg));
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    pointer-events: auto;
    touch-action: none;
    transition: top 0.35s ease, left 0.35s ease;
}
.traveler-phil {
    --traveler-x: var(--philippe-x, 88.4%);
    --traveler-y: var(--philippe-y, 48.5%);
    --traveler-rotate: -2deg;
}
.traveler-kath {
    --traveler-x: var(--kathleen-x, 90.6%);
    --traveler-y: var(--kathleen-y, 48.5%);
    --traveler-rotate: 2deg;
}
.traveler img { transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
.traveler:hover img,
.traveler:focus-visible img {
    transform: scale(1.45);
    z-index: 5;
}
.traveler:focus-visible { outline: none; }
.traveler-caption {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    font-family: var(--f-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 6;
}
.traveler-caption::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--c-navy-dark);
}
.traveler:hover .traveler-caption,
.traveler:focus-visible .traveler-caption {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.progress-badge {
    display: none;
    position: absolute;
    top: var(--progress-badge-y, 56%);
    left: var(--progress-badge-x, 89.5%);
    z-index: 13;
    min-width: 172px;
    max-width: min(260px, 34vw);
    transform: translate(-50%, 0);
    padding: 8px 12px 9px;
    background: linear-gradient(180deg, #fbeeca 0%, #f0dda2 100%);
    border: 2px solid #8B5A1C;
    border-radius: 8px;
    box-shadow:
        0 5px 14px rgba(43, 31, 18, 0.32),
        inset 0 0 14px rgba(139, 90, 28, 0.18);
    color: var(--c-navy-dark);
    text-align: center;
    font-family: var(--f-sans);
    pointer-events: auto;
    transition: top 0.35s ease, left 0.35s ease;
}
.progress-badge-kicker {
    display: block;
    margin-bottom: 2px;
    font-size: clamp(9px, 0.72vw, 11px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-red);
}
.progress-badge strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: clamp(11px, 0.95vw, 14px);
    line-height: 1.18;
}

.live-dashboard {
    position: absolute;
    left: 15.7%;
    right: 15.7%;
    bottom: 5.35%;
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.45vw, 22px);
    padding: 0;
    color: var(--c-navy-dark);
    font-family: var(--f-sans);
    pointer-events: auto;
}
.live-pill,
.live-tile-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(139, 44, 32, 0.12);
    color: var(--c-red);
    border: 1px solid rgba(139, 44, 32, 0.24);
    font-family: var(--f-sans);
    font-size: clamp(6px, 0.48vw, 9px);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.live-pill.is-local {
    background: rgba(139, 44, 32, 0.12);
}
.live-tile {
    min-height: clamp(78px, 7.15vw, 108px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.92vw, 15px);
    padding: clamp(10px, 0.92vw, 15px) clamp(12px, 1.05vw, 18px);
    border: 2px solid #8B5A1C;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 246, 218, 0.96) 0%, rgba(238, 215, 152, 0.96) 100%),
        radial-gradient(circle at 28% 24%, rgba(139, 90, 28, 0.18), transparent 34%);
    box-shadow:
        0 0 0 2px rgba(250, 242, 223, 0.56) inset,
        0 12px 24px rgba(43, 31, 18, 0.28),
        inset 0 0 24px rgba(139, 90, 28, 0.17);
    text-align: left;
}
.live-tile::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1.5px dashed rgba(43, 31, 18, 0.52);
    border-radius: 5px;
    pointer-events: none;
}
.live-tile {
    position: relative;
}
.live-tile-icon {
    flex: 0 0 clamp(58px, 5.85vw, 88px);
    width: clamp(58px, 5.85vw, 88px);
    height: clamp(58px, 5.85vw, 88px);
    display: grid;
    place-items: center;
    filter: drop-shadow(0 3px 2px rgba(43, 31, 18, 0.28));
}
.live-tile-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.live-tile-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.live-tile strong {
    display: block;
    color: var(--c-navy-dark);
    font-family: var(--f-sans);
    font-size: clamp(13px, 1.05vw, 19px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
}
.live-tile p,
.live-tile time {
    display: block;
    margin: 4px 0 0;
    color: var(--c-ink-soft);
    font-family: var(--f-body);
    font-size: clamp(7px, 0.62vw, 11px);
    font-weight: 700;
    line-height: 1.1;
}
.live-tile--distance strong,
.live-tile--day strong,
.live-tile--night strong {
    white-space: normal;
}
.live-tile--distance strong {
    font-size: clamp(15px, 1.28vw, 22px);
    text-transform: uppercase;
}
.live-tile--day strong,
.live-tile--night strong {
    font-size: clamp(14px, 1.16vw, 20px);
}
.live-tile--night time {
    font-size: clamp(7px, 0.62vw, 11px);
    line-height: 1.08;
}
.live-tile--status strong {
    font-size: clamp(13px, 1.05vw, 19px);
}
.live-tile--status p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.progress-editor {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    width: min(330px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    padding: 14px;
    background: rgba(16, 41, 66, 0.94);
    border: 2px solid rgba(245, 196, 71, 0.78);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
    color: var(--c-cream-light);
    font-family: var(--f-sans);
}
.progress-editor[hidden] { display: none; }
.progress-editor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.progress-editor-row--compact {
    align-items: end;
}
.progress-editor-row--compact .progress-field {
    flex: 1;
    min-width: 0;
}
.progress-editor-row--header {
    position: sticky;
    top: -14px;
    z-index: 2;
    justify-content: space-between;
    margin-top: 0;
    margin-right: -14px;
    margin-left: -14px;
    padding: 14px 14px 10px;
    background: rgba(16, 41, 66, 0.98);
    border-radius: 6px 6px 0 0;
}
.progress-editor-row--header strong {
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    padding-right: 10px;
}
.progress-editor-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-cream-light);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.progress-field {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.progress-field select {
    min-height: 42px;
    width: 100%;
    border: 1px solid rgba(245, 196, 71, 0.64);
    border-radius: 6px;
    background: var(--c-cream-light);
    color: var(--c-navy-dark);
    font: 700 0.92rem var(--f-sans);
    padding: 8px 10px;
}
.progress-field input,
.progress-field textarea {
    width: 100%;
    border: 1px solid rgba(245, 196, 71, 0.64);
    border-radius: 6px;
    background: var(--c-cream-light);
    color: var(--c-navy-dark);
    font: 700 0.86rem var(--f-sans);
    padding: 9px 10px;
}
.progress-field textarea {
    min-height: 70px;
    resize: vertical;
    line-height: 1.35;
}
.progress-chip,
.progress-save,
.progress-reset {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--f-sans);
    font-weight: 800;
}
.progress-chip {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    color: var(--c-cream-light);
    border: 1px solid rgba(245, 196, 71, 0.38);
}
.progress-chip.is-active {
    background: var(--c-yellow);
    color: var(--c-navy-dark);
}
.progress-save {
    flex: 1;
    background: var(--c-yellow);
    color: var(--c-navy-dark);
}
.progress-save.is-confirmed,
.progress-reset.is-confirmed {
    background: #84a85b;
    color: var(--c-navy-dark);
    box-shadow: 0 0 0 3px rgba(132, 168, 91, 0.22);
}
.progress-reset {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    color: var(--c-cream-light);
    border: 1px solid rgba(255, 255, 255, 0.26);
}
.progress-reset:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.progress-editor-note {
    margin: 10px 0 0;
    font-size: 0.74rem;
    line-height: 1.35;
    color: rgba(250, 242, 223, 0.82);
    min-height: 2.1em;
}
.progress-done {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--c-cream-light);
    color: var(--c-navy-dark);
    cursor: pointer;
    font-family: var(--f-sans);
    font-weight: 900;
}
.live-editor {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 196, 71, 0.28);
}
.live-editor > strong {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.live-publish {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--c-red);
    color: var(--c-cream-light);
    cursor: pointer;
    font-family: var(--f-sans);
    font-weight: 900;
}
.live-publish.is-saving {
    opacity: 0.72;
    cursor: wait;
}
.map-indicator-editor {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 196, 71, 0.28);
}
.map-indicator-editor > strong {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.map-stage-button {
    position: absolute;
    z-index: 10;
    width: clamp(24px, 2.6vw, 36px);
    height: clamp(24px, 2.6vw, 36px);
    transform: translate(-50%, -50%);
    border: 2px solid var(--c-navy-dark);
    border-radius: 50%;
    background: var(--c-yellow);
    box-shadow: 0 0 0 3px rgba(245, 230, 200, 0.58), 0 4px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}
.progress-editing .map-stage-button {
    opacity: 0.9;
    pointer-events: auto;
}
.map-stage-button:focus-visible {
    outline: 3px solid var(--c-red);
    outline-offset: 3px;
}
.map-indicator {
    position: absolute;
    z-index: 12;
    left: var(--indicator-x);
    top: var(--indicator-y);
    width: clamp(34px, 3.2vw, 48px);
    height: clamp(42px, 4vw, 58px);
    transform: translate(-50%, -94%);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--c-navy-dark);
    padding: 0;
    display: grid;
    place-items: center;
    cursor: help;
    pointer-events: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.map-indicator:hover,
.map-indicator:focus-visible,
.map-indicator.is-selected {
    z-index: 24;
    transform: translate(-50%, -94%) scale(1.12);
    filter: drop-shadow(0 8px 12px rgba(16, 41, 66, 0.42));
    outline: none;
}
.map-indicator-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.map-indicator-pin-shadow {
    fill: rgba(16, 41, 66, 0.25);
    transform: translate(2px, 3px);
}
.map-indicator-pin {
    fill: var(--indicator-color, var(--c-yellow));
    stroke: var(--c-navy-dark);
    stroke-width: 3.5;
    stroke-linejoin: round;
}
.map-indicator-field {
    fill: rgba(250, 242, 223, 0.72);
    stroke: rgba(16, 41, 66, 0.78);
    stroke-width: 1.8;
}
.map-indicator-symbol {
    fill: none;
    stroke: var(--c-navy-dark);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.map-indicator-symbol circle,
.map-indicator-symbol path[d*="h.1"] {
    fill: var(--c-navy-dark);
}
.map-indicator-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    width: max-content;
    max-width: min(240px, 64vw);
    transform: translateX(-50%) translateY(6px);
    padding: 10px 12px;
    border-radius: 7px;
    background: rgba(16, 41, 66, 0.95);
    color: var(--c-cream-light);
    font-family: var(--f-sans);
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}
.map-indicator-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(16, 41, 66, 0.95);
}
.map-indicator:hover .map-indicator-tooltip,
.map-indicator:focus-visible .map-indicator-tooltip,
.map-indicator.is-selected .map-indicator-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.map-indicator-tooltip strong {
    display: block;
    margin-bottom: 3px;
    color: var(--c-yellow);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.map-indicator-tooltip span {
    display: block;
    font-family: var(--f-body);
    font-size: 0.82rem;
}
.progress-editing .map-indicator {
    cursor: move;
}
.progress-editing .map-indicator::after {
    content: '';
    position: absolute;
    inset: 1px -4px 0;
    border: 2px dashed rgba(245, 196, 71, 0.82);
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
}
.progress-editing .map-indicator:hover::after,
.progress-editing .map-indicator.is-selected::after {
    opacity: 1;
}
.hero-overlay.is-placing-indicator {
    pointer-events: auto;
    cursor: crosshair;
}

@keyframes pilgrim-step {
    from { transform: translateY(0) rotate(-1deg); }
    to   { transform: translateY(-7px) rotate(1deg); }
}

/* ---------- Bio modal ---------- */
.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bio-modal[hidden] { display: none; }
.bio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 33, 56, 0.68);
    backdrop-filter: blur(3px);
    animation: bio-fade-in 0.18s ease;
}
.bio-modal-card {
    position: relative;
    width: min(380px, 92vw);
    background: linear-gradient(180deg, #fbeeca 0%, #f0dda2 100%);
    border: 3px solid #8B5A1C;
    border-radius: 12px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 0 40px rgba(139, 90, 28, 0.18);
    animation: bio-pop-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bio-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-family: var(--f-sans);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--c-ink-soft);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.18s, color 0.18s;
}
.bio-modal-close:hover {
    background: rgba(139, 90, 28, 0.18);
    color: var(--c-red);
}
.bio-modal-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid var(--c-yellow);
    box-shadow: 0 0 0 2px var(--c-navy-dark), 0 6px 14px rgba(0, 0, 0, 0.3);
    margin: 0 auto 14px;
    display: block;
}
.bio-modal-name {
    font-family: 'IM Fell English', 'Lora', Georgia, serif;
    font-size: 1.9rem;
    color: var(--c-navy-dark);
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}
.bio-modal-role {
    font-family: var(--f-hand);
    font-size: 1.1rem;
    color: var(--c-red);
    margin: 0 0 14px;
}
.bio-modal-text {
    font-family: var(--f-body);
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--c-ink);
    margin: 0;
}
.bio-modal-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.bio-modal-links[hidden] {
    display: none;
}
.bio-social-link {
    min-width: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px solid rgba(13, 47, 74, 0.16);
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    font-family: var(--f-sans);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(13, 47, 74, 0.18);
    transition: transform 0.16s ease, background 0.16s ease;
}
.bio-social-link:hover,
.bio-social-link:focus-visible {
    background: var(--c-red);
    transform: translateY(-1px);
    outline: none;
}
@keyframes bio-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes bio-pop-in {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
.traveler-kath img  { margin-top: 4px; }

/* ---------- Bottom strip: stats + Mark Twain quote ---------- */
.strip-bar {
    background:
        linear-gradient(180deg, #f3e0a8 0%, #e6cf8d 100%);
    border-top: 2.5px solid rgba(139, 90, 28, 0.55);
    border-bottom: 2.5px solid rgba(139, 90, 28, 0.55);
    box-shadow: inset 0 0 40px rgba(139, 90, 28, 0.18),
                0 4px 14px rgba(43, 31, 18, 0.1);
    padding: 18px 0;
}
.strip-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}
.strip-stats {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.strip-stats li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.strip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
}
.strip-text {
    font-family: var(--f-body);
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--c-ink);
    font-style: italic;
}
.strip-text strong {
    display: block;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    color: var(--c-navy-dark);
    font-style: normal;
    margin-bottom: 1px;
}

.strip-quote {
    margin: 0;
    padding-left: 22px;
    border-left: 3px solid rgba(139, 90, 28, 0.45);
    max-width: 340px;
}
.strip-quote p {
    margin: 0 0 4px;
    font-family: var(--f-body);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--c-ink);
    line-height: 1.4;
}
.strip-quote cite {
    font-family: var(--f-hand);
    font-size: 1rem;
    color: var(--c-red);
    font-style: normal;
}

/* ---------- Responsive: below 900px, stack overlays below image ---------- */
@media (max-width: 900px) {
    .hero {
        min-height: 520px;
        background:
            linear-gradient(180deg, rgba(13, 33, 56, 0) 0%, rgba(13, 33, 56, 0.12) 40%, rgba(13, 33, 56, 0.18) 100%),
            url("../images/optimized/hero-map3.webp") center 36% / cover no-repeat,
            #0d2138;
    }
    .hero-image {
        width: 100%;
        height: auto;
        object-fit: initial;
        object-position: initial;
    }
    .hero-overlay {
        position: absolute;
        inset: 0;
        padding: 0;
        background: transparent;
    }
    .hero-overlay > * {
        min-width: 0 !important;
        margin: 0 !important;
    }
    .speech-bubble { display: none; }
    .travelers {
        width: auto !important;
    }
    .traveler { transform: translate(-50%, -50%) rotate(var(--traveler-rotate, 0deg)); }
    .traveler img {
        width: clamp(28px, 8.8vw, 44px);
        height: clamp(28px, 8.8vw, 44px);
    }
    body.is-before-departure .traveler-phil {
        --traveler-x: 74%;
        --traveler-y: 48%;
    }
    body.is-before-departure .traveler-kath {
        --traveler-x: 85%;
        --traveler-y: 48%;
    }
    .traveler-caption { display: none; }
    .countdown-card {
        top: 32% !important;
        left: 76% !important;
        padding: 6px 10px 7px;
        max-width: 152px;
    }
    .countdown-tooltip { display: none; }
    .progress-badge {
        min-width: 118px;
        max-width: 150px;
        padding: 6px 8px;
    }
    .live-dashboard {
        left: 14px;
        right: 14px;
        bottom: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .live-tile {
        min-height: 68px;
        padding: 8px 10px;
        border-width: 1px;
        gap: 9px;
    }
    .live-tile--status {
        grid-column: 1 / -1;
        min-height: 76px;
    }
    .live-tile--night {
        grid-column: 1 / -1;
    }
    .live-tile::after {
        inset: 4px;
        border-width: 1px;
    }
    .live-tile-icon {
        flex-basis: clamp(38px, 10vw, 54px);
        width: clamp(38px, 10vw, 54px);
        height: clamp(38px, 10vw, 54px);
    }
    .live-pill,
    .live-tile p,
    .live-tile time { display: none; }
    .live-tile-kicker {
        display: inline-flex;
        margin-bottom: 2px;
        padding: 1px 5px;
        font-size: 6px;
        letter-spacing: 0.08em;
    }
    .live-tile strong {
        font-size: clamp(10px, 2.8vw, 14px);
        line-height: 1.06;
        text-align: left;
        overflow-wrap: anywhere;
    }
    .live-tile--distance strong,
    .live-tile--day strong,
    .live-tile--night strong {
        font-size: clamp(13px, 4.6vw, 22px);
    }
    .live-tile--status strong {
        font-size: clamp(14px, 3.7vw, 20px);
    }
    .progress-editor {
        position: fixed !important;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto !important;
    }

    .strip-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .strip-stats {
        justify-content: center;
        gap: 20px 28px;
    }
    .strip-quote {
        border-left: none;
        border-top: 2px solid rgba(139, 90, 28, 0.4);
        padding: 14px 0 0;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 545px;
    }
    .hero-image {
        height: auto;
    }
    .countdown-card {
        top: 30% !important;
        left: 74% !important;
    }
    body.is-before-departure .traveler-phil {
        --traveler-x: 75%;
        --traveler-y: 45.5%;
    }
    body.is-before-departure .traveler-kath {
        --traveler-x: 86%;
        --traveler-y: 45.5%;
    }
    .live-dashboard {
        left: 12px;
        right: 12px;
        bottom: 14px;
    }
    .stages-preview {
        padding-top: 52px;
    }
}

/* Parchment */
.parchment {
    position: absolute;
    background:
        radial-gradient(ellipse at center, var(--c-cream-light) 0%, var(--c-parchment) 85%),
        var(--c-parchment);
    border: 1px solid var(--c-parchment-dk);
    padding: 18px 28px;
    color: var(--c-ink-soft);
    font-family: var(--f-body);
    font-style: italic;
    box-shadow:
        inset 0 0 30px rgba(139, 90, 28, 0.15),
        0 6px 18px rgba(43, 31, 18, 0.25);
    z-index: 3;
}

.parchment::before, .parchment::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
    background:
        repeating-linear-gradient(90deg, var(--c-parchment-dk) 0, var(--c-parchment-dk) 2px, transparent 2px, transparent 5px),
        var(--c-parchment);
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(43, 31, 18, 0.2);
}
.parchment::before { left: -14px; transform: skewY(-2deg); }
.parchment::after  { right: -14px; transform: skewY(2deg); }

.parchment-top {
    top: 40px;
    left: 40px;
    max-width: 240px;
    transform: rotate(-3deg);
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
}

.parchment-bottom {
    bottom: 40px;
    left: 40px;
    max-width: 560px;
    padding: 14px 40px;
    transform: rotate(-1deg);
}

.stats {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    font-style: normal;
}
.stats li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.stat-text {
    font-size: 0.82rem;
    color: var(--c-ink);
    line-height: 1.25;
}
.stat-text strong {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--c-navy-dark);
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 20px 30px;
}

.hero-shell {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(43, 31, 18, 0.25));
}

.hero-title {
    margin: 0;
    line-height: 0.95;
}

.line-names {
    display: block;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    letter-spacing: 0.01em;
    color: var(--c-navy-dark);
    text-shadow:
        2px 2px 0 var(--c-cream-light),
        3px 3px 0 rgba(43, 31, 18, 0.15);
}

.line-sub {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(0.95rem, 1.8vw, 1.6rem);
    letter-spacing: 0.1em;
    color: var(--c-red);
    text-transform: uppercase;
}
.line-sub .arrow {
    color: var(--c-navy-dark);
    font-size: 0.8em;
    opacity: 0.7;
}

.hero-tagline {
    margin: 20px 0 32px;
    font-family: var(--f-body);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--c-navy-dark);
    font-style: italic;
    line-height: 1.4;
}
.hero-tagline em {
    text-decoration: underline;
    text-decoration-color: var(--c-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Speech bubble */
.speech-bubble {
    position: absolute;
    top: 100px;
    right: 220px;
    background: var(--c-white);
    border: 2px solid var(--c-navy-dark);
    border-radius: 18px;
    padding: 12px 18px;
    font-family: var(--f-hand);
    font-size: 1.4rem;
    color: var(--c-navy-dark);
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 4px 10px rgba(16, 41, 66, 0.2);
    transform: rotate(-3deg);
    z-index: 3;
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 24px;
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--c-navy-dark);
}
.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 26px;
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 11px solid var(--c-white);
    z-index: 1;
}

/* Update card */
.update-card {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 340px;
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    border-radius: 8px;
    padding: 14px 18px 16px;
    box-shadow: var(--shadow-card);
    z-index: 3;
}
.update-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--c-yellow);
    margin-bottom: 10px;
}
.pin-icon { font-size: 0.9rem; }

.update-body {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: start;
}
.update-thumb {
    width: 90px;
    height: 75px;
    border-radius: 4px;
    background:
        linear-gradient(135deg, #5d7a9c 0%, #8da9c4 45%, #d4c088 100%);
    background-size: cover;
    background-position: center;
    border: 1.5px solid rgba(245, 196, 71, 0.3);
}
.update-text h3 {
    margin: 0 0 4px;
    font-family: var(--f-display);
    font-size: 1.15rem;
    color: var(--c-yellow);
}
.update-text p {
    margin: 0 0 10px;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--c-cream-light);
}

/* ====================================================
   STAGES PREVIEW
   ==================================================== */
.stages-preview {
    padding: 80px 0;
    background:
        linear-gradient(180deg, var(--c-cream-light) 0%, var(--c-cream) 100%);
    border-top: 2px solid rgba(139, 90, 28, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-family: var(--f-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--c-navy-dark);
    margin: 0 0 12px;
}
.section-header p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--c-ink-soft);
    font-size: 1.05rem;
    font-style: italic;
}
.stage-progress-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px !important;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(139, 90, 28, 0.26);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--c-navy-dark) !important;
    font-family: var(--f-sans);
    font-size: 0.78rem !important;
    font-style: normal !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stages-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 40px;
    align-items: stretch;
}
.stages-video {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--c-navy-dark);
    box-shadow: var(--shadow-card);
    background: var(--c-navy-dark);
    margin: 0;
}
.stages-video video {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    object-fit: cover;
    background: var(--c-navy-dark);
}
.stages-video-lock {
    flex: 1 1 auto;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 34px;
    text-align: center;
    color: var(--c-cream-light);
    background:
        radial-gradient(circle at 50% 28%, rgba(245, 196, 71, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(13, 47, 74, 0.94), rgba(8, 30, 48, 0.98));
}
.stages-video-lock[hidden] {
    display: none;
}
.stages-video-lock span {
    color: var(--c-yellow);
    font-family: var(--f-sans);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.stages-video-lock strong {
    max-width: 360px;
    font-family: var(--f-title);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.9;
    color: var(--c-cream-light);
    text-transform: uppercase;
}
.stages-video-lock p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 251, 239, 0.86);
    font-family: var(--f-serif);
    font-size: 1rem;
    line-height: 1.45;
}
.stages-video figcaption {
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    font-family: var(--f-hand);
    font-size: 1.05rem;
    text-align: center;
    padding: 10px 14px;
    letter-spacing: 0.03em;
}
@media (max-width: 900px) {
    .stages-grid {
        grid-template-columns: 1fr;
    }
    .stages-video {
        position: static;
        order: -1;
    }
}

.stages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    counter-reset: stages;
}
.stages-list li {
    position: relative;
    z-index: 1;
}
.stages-list li.is-substeps-open {
    z-index: 500;
}
.stages-list li:has(.stage-substeps[open]) {
    z-index: 500;
}
.stage-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 3px;
    width: 100%;
    min-height: 96px;
    padding: 14px 16px 13px;
    overflow: hidden;
    border: 1px solid rgba(139, 90, 28, 0.18);
    border-left: 5px solid var(--c-yellow);
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 250, 240, 0.9) 46%, rgba(246, 226, 164, 0.34) 100%),
        var(--c-white);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.62),
        0 15px 28px rgba(44, 34, 20, 0.1);
    color: inherit;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.stages-list li.has-substeps .stage-card {
    padding-right: 58px;
}
.stage-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(43, 31, 18, 0.18);
    border-radius: 4px;
    pointer-events: none;
}
.stage-card:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 18px 34px rgba(44, 34, 20, 0.14);
}
.stages-list li.is-completed .stage-card {
    border-left-color: #668a4a;
    background:
        linear-gradient(90deg, rgba(102, 138, 74, 0.18), rgba(102, 138, 74, 0) 42%),
        linear-gradient(180deg, #fffaf0 0%, #f3ead0 100%);
    box-shadow:
        inset 0 0 0 1px rgba(102, 138, 74, 0.18),
        var(--shadow-soft);
}
.stages-list li.is-current .stage-card {
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 196, 71, 0.24), transparent 32%),
        linear-gradient(180deg, #fff8e8 0%, #fbeeca 100%);
    border-left-color: var(--c-red);
    box-shadow:
        inset 0 0 0 1px rgba(139, 44, 32, 0.13),
        0 0 0 2px rgba(139, 44, 32, 0.18),
        0 18px 38px rgba(139, 44, 32, 0.16);
}
.stages-list li.is-preparation .stage-card {
    border-left-color: var(--c-navy-dark);
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 196, 71, 0.18), transparent 34%),
        linear-gradient(180deg, #fff7df 0%, #f4e5bd 100%);
    box-shadow:
        inset 0 0 0 1px rgba(12, 46, 74, 0.12),
        0 16px 34px rgba(44, 34, 20, 0.13);
}
.stages-list li.is-upcoming .stage-card {
    opacity: 0.78;
}
.stages-list li.is-completed .stage-card::after,
.stages-list li.is-current .stage-card::after,
.stages-list li.is-upcoming .stage-card::after {
    display: none;
    content: none;
}
.stage-card-status {
    position: absolute;
    right: 14px;
    bottom: 12px;
    min-width: 76px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.84);
    border: 1px solid rgba(139, 90, 28, 0.18);
    color: var(--c-muted);
    font-family: var(--f-sans);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}
.stages-list li.is-completed .stage-card-status {
    background: rgba(102, 138, 74, 0.12);
    border-color: rgba(102, 138, 74, 0.24);
    color: #506f38;
}
.stages-list li.is-current .stage-card-status {
    background: rgba(139, 44, 32, 0.11);
    border-color: rgba(139, 44, 32, 0.24);
    color: var(--c-red);
}
.stages-list li.is-preparation .stage-card-status {
    background: rgba(12, 46, 74, 0.08);
    border-color: rgba(12, 46, 74, 0.18);
    color: var(--c-navy-dark);
}
.stages-list li.is-upcoming .stage-card-status {
    color: var(--c-muted);
}
.stage-num {
    position: relative;
    grid-row: 1 / 4;
    align-self: start;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 250, 240, 0.8);
    border: 1px solid rgba(139, 90, 28, 0.18);
    font-family: var(--f-display);
    font-size: 1.12rem;
    color: var(--c-red);
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(44, 34, 20, 0.08);
}
.stages-list li.is-completed .stage-num {
    background: #668a4a;
    border-color: rgba(80, 111, 56, 0.3);
    color: var(--c-white);
}
.stages-list li.is-completed .stage-num::after {
    content: '✓';
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #506f38;
    border: 2px solid #fff8e8;
    color: var(--c-white);
    font-family: var(--f-sans);
    font-size: 0.82rem;
    line-height: 1;
}
.stages-list strong {
    display: block;
    grid-column: 2 / 4;
    align-self: end;
    font-family: var(--f-display);
    padding-right: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.9rem, 1.2vw, 1.08rem);
    line-height: 1.08;
    color: var(--c-navy-dark);
    margin: 0;
}
.stage-sub {
    grid-column: 2 / 4;
    align-self: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
    color: var(--c-muted);
    font-style: italic;
}
.stage-card-meta {
    grid-column: 2 / 4;
    grid-row: 3;
    align-self: center;
    display: block;
    margin-top: 4px;
    padding: 0 92px 0 0;
    border: 0;
    min-width: 0;
    color: var(--c-ink-soft);
    font-family: var(--f-sans);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.stage-card-meta span {
    display: block;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    background: none;
    border: 0;
}
@media (max-width: 520px) {
    .stage-card {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        min-height: 96px;
        padding: 13px 14px 12px;
    }
    .stages-list li.has-substeps .stage-card {
        padding-right: 52px;
        padding-top: 13px;
    }
    .stages-list strong {
        padding-right: 28px;
    }
    .stage-card-status {
        position: absolute;
        right: 12px;
        bottom: 11px;
        min-width: 62px;
        font-size: 0.55rem;
        letter-spacing: 0.06em;
    }
    .stage-card-meta {
        grid-column: 2 / 4;
        padding-right: 74px;
        font-size: 0.54rem;
    }
}
.stage-substeps {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    margin: 0;
    border-radius: 999px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.stage-substeps-toggle {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid rgba(139, 90, 28, 0.18);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.82);
    color: var(--c-navy-dark);
    font-family: var(--f-sans);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(44, 34, 20, 0.1);
}
.stage-substeps-toggle span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.stage-substeps-toggle::-webkit-details-marker {
    display: none;
}
.stage-substeps-toggle span:last-child {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    font-size: 0.9rem;
    line-height: 1;
}
.stage-substeps[open] .stage-substeps-toggle span:last-child,
.stages-list li.is-substeps-open .stage-substeps-toggle span:last-child {
    transform: rotate(45deg);
}
.stage-substeps[open] {
    z-index: 900;
}
.stage-substeps-list {
    display: none;
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 7px);
    z-index: 950;
    width: min(380px, calc(100vw - 32px));
    overflow: visible;
    list-style: none;
    margin: 0;
    padding: 7px;
    gap: 4px;
    border: 1px solid rgba(139, 90, 28, 0.2);
    border-radius: 7px;
    background: rgba(255, 250, 240, 0.98);
    box-shadow: 0 16px 34px rgba(44, 34, 20, 0.24);
}
.stage-substeps[open] .stage-substeps-list,
.stages-list li.is-substeps-open .stage-substeps-list {
    display: grid;
}
.stage-substeps-list li {
    position: relative;
}
.stage-substep {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 6px 74px 6px 8px;
    border: 0;
    border-left: 3px solid rgba(139, 90, 28, 0.22);
    border-radius: 4px;
    background: transparent;
    color: var(--c-ink);
    font-family: var(--f-sans);
    font-size: 0.78rem;
    text-align: left;
}
.progress-editing .stage-substep {
    cursor: pointer;
}
.stage-substeps-list li::after {
    content: attr(data-substage-state);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-muted);
    font-family: var(--f-sans);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}
.stage-substeps-list li.is-completed .stage-substep {
    background: rgba(102, 138, 74, 0.12);
    border-left-color: #668a4a;
}
.stage-substeps-list li.is-completed::after {
    color: #506f38;
}
.stage-substeps-list li.is-current .stage-substep {
    background: rgba(139, 44, 32, 0.12);
    border-left-color: var(--c-red);
    box-shadow: inset 0 0 0 1px rgba(139, 44, 32, 0.22);
}
.stage-substeps-list li.is-upcoming .stage-substep {
    background: rgba(245, 196, 71, 0.12);
    border-left-color: var(--c-yellow);
}
.stage-substeps-list li.is-current::after,
.stage-substeps-list li.is-walking::after {
    color: var(--c-red);
}
.stage-substep-day {
    color: var(--c-red);
    font-weight: 900;
}
.stage-substeps-list li.is-completed .stage-substep-day {
    color: #506f38;
}
.stage-substep-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}
.stage-substep-km {
    color: var(--c-muted);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    padding: 60px 0 30px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(245, 230, 200, 0.12);
    margin-bottom: 24px;
}
.footer-interest {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(245, 196, 71, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(245, 196, 71, 0.13), rgba(255, 246, 218, 0.04)),
        rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 246, 218, 0.04);
}
.footer-interest-copy span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 3px 10px;
    border: 1px solid rgba(245, 196, 71, 0.4);
    border-radius: 999px;
    color: var(--c-yellow);
    font-family: var(--f-sans);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.footer-interest-copy strong {
    display: block;
    max-width: 780px;
    color: var(--c-cream-light);
    font-family: var(--f-sans);
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: 0;
}
.footer-interest-copy p {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(245, 230, 200, 0.76);
    font-size: 0.95rem;
    line-height: 1.5;
}
.footer-interest-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}
.footer-interest-form .hidden-field {
    display: none;
}
.footer-interest-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.footer-interest-form label span {
    color: rgba(245, 230, 200, 0.72);
    font-family: var(--f-sans);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.footer-interest-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(245, 196, 71, 0.34);
    border-radius: 6px;
    background: rgba(255, 246, 218, 0.96);
    color: var(--c-navy-dark);
    font: 800 0.9rem var(--f-sans);
    padding: 10px 12px;
}
.footer-interest-form input:focus {
    outline: 2px solid var(--c-yellow);
    outline-offset: 2px;
}
.footer-interest-form button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--c-yellow);
    color: var(--c-navy-dark);
    cursor: pointer;
    font: 900 0.78rem var(--f-sans);
    letter-spacing: 0.1em;
    padding: 10px 16px;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.footer-interest-form button:hover,
.footer-interest-form button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}
.footer-interest-form small {
    grid-column: 1 / -1;
    min-height: 18px;
    color: rgba(245, 230, 200, 0.78);
    font-family: var(--f-sans);
    font-size: 0.76rem;
    font-weight: 700;
}
.footer-brand .brand-title {
    font-family: var(--f-display);
    font-size: 1.4rem;
    color: var(--c-yellow);
    letter-spacing: 0.04em;
}
.footer-brand p {
    margin: 14px 0 0;
    max-width: 320px;
    font-size: 0.92rem;
    color: rgba(245, 230, 200, 0.75);
    line-height: 1.5;
}
.footer-links h4 {
    font-family: var(--f-sans);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    color: var(--c-yellow);
    margin: 0 0 14px;
}
.footer-links ul li {
    margin: 8px 0;
}
.footer-links a {
    color: rgba(245, 230, 200, 0.8);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-yellow); }

.footer-quote p {
    margin: 0 0 8px;
    font-family: var(--f-hand);
    font-size: 1.5rem;
    color: var(--c-yellow);
    white-space: nowrap;
}
.footer-quote small {
    color: rgba(245, 230, 200, 0.55);
    font-size: 0.78rem;
}
.footer-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-avatars {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 12px 0 14px;
}
.footer-avatars img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-yellow);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: var(--c-cream);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.footer-avatars img:hover,
.footer-avatars img:focus-visible {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
    outline: none;
}

/* ====================================================
   INNER PAGES (sub-pages)
   ==================================================== */
.page-header {
    background:
        linear-gradient(180deg, rgba(26, 58, 92, 0.75) 0%, rgba(16, 41, 66, 0.88) 100%),
        linear-gradient(180deg, #7fb8dc 0%, #a8c185 60%, #b59e6b 100%);
    color: var(--c-cream-light);
    padding: 80px 24px 60px;
    text-align: center;
    border-bottom: 3px solid var(--c-yellow);
}
.page-header h1 {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    margin: 0 0 10px;
    color: var(--c-yellow);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}
.page-header p {
    margin: 0 auto;
    max-width: 680px;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--c-cream-light);
    opacity: 0.92;
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--f-sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 230, 200, 0.8);
}
.breadcrumb a { color: var(--c-yellow); }

.page-body {
    padding: 60px 0 80px;
}
.page-body .container {
    max-width: 820px;
}
.page-body h2 {
    font-family: var(--f-display);
    color: var(--c-navy-dark);
    font-size: 1.8rem;
    margin: 40px 0 16px;
}
.page-body p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--c-ink-soft);
    margin: 0 0 16px;
}
.page-body ul.plain {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 20px;
}
.page-body ul.plain li {
    margin: 6px 0;
    line-height: 1.6;
}
.page-note {
    background: var(--c-parchment);
    border-left: 4px solid var(--c-yellow);
    padding: 18px 22px;
    border-radius: 4px;
    font-style: italic;
    color: var(--c-ink-soft);
    margin: 30px 0;
}
.page-body p.lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--c-ink);
    font-style: italic;
    margin-bottom: 26px;
}
.page-body p.pullquote {
    font-family: var(--f-hand);
    font-size: 2rem;
    color: var(--c-red);
    text-align: center;
    margin: 36px 0;
    line-height: 1.2;
}

/* ====================================================
   ITINERARY (page itineraire.html)
   ==================================================== */
.itinerary-image {
    background: var(--c-cream-light);
    padding: 0;
    display: flex;
    justify-content: center;
}
.itinerary-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
.itinerary-image--reduced {
    padding: 20px 0;
}
.itinerary-image--reduced img {
    max-width: 94%;
}

/* ====================================================
   GEAR PAGE
   ==================================================== */
.gear-page-header {
    background:
        linear-gradient(180deg, rgba(13, 33, 56, 0.94), rgba(26, 58, 92, 0.88)),
        var(--c-navy-dark);
}

.gear-page-header h1 {
    color: var(--c-yellow);
}

.gear-page-header p,
.gear-page-header .breadcrumb {
    color: var(--c-cream-light);
}

.gear-page {
    padding: 32px 20px 72px;
    background:
        radial-gradient(circle at top left, rgba(245, 196, 71, 0.16), transparent 34%),
        linear-gradient(180deg, var(--c-cream-light) 0%, #efe0bd 100%);
}

.gear-tabs {
    width: min(760px, 100%);
    margin: 0 auto 24px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    background: rgba(16, 41, 66, 0.12);
    border: 1px solid rgba(139, 90, 28, 0.24);
    border-radius: 8px;
}

.gear-tab {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--c-navy-dark);
    font-family: var(--f-sans);
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.gear-tab img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 2px solid rgba(139, 90, 28, 0.4);
}

.gear-tab.is-active {
    background: var(--c-yellow);
    box-shadow: 0 2px 0 var(--c-yellow-hover);
}

.gear-profile {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.gear-profile[hidden] { display: none; }

.gear-poster {
    position: relative;
    min-height: 1260px;
    overflow: hidden;
    padding: 34px;
    background:
        linear-gradient(rgba(245, 230, 200, 0.92), rgba(245, 230, 200, 0.92)),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.65), transparent 28%),
        var(--c-parchment);
    border: 2px solid rgba(139, 90, 28, 0.32);
    border-radius: 8px;
    box-shadow:
        inset 0 0 60px rgba(139, 90, 28, 0.14),
        0 18px 46px rgba(43, 31, 18, 0.2);
}

.gear-poster::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(139, 90, 28, 0.22);
    border-radius: 8px;
    pointer-events: none;
}

.gear-title-block {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.gear-title-block span {
    display: block;
    font-family: var(--f-sans);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-red);
}

.gear-title-block h2 {
    margin: 0;
    font-family: var(--f-display);
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: 0.86;
    color: var(--c-navy-dark);
    letter-spacing: 0.02em;
}

.gear-title-block p {
    margin: 12px 0 0;
    color: var(--c-ink-soft);
    font-size: 1rem;
    line-height: 1.45;
}

.gear-figure {
    position: absolute;
    inset: 128px 31% 330px 33%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.gear-person {
    position: relative;
    width: min(300px, 100%);
    height: 690px;
}

.gear-person--photo {
    width: min(390px, 100%);
    height: 800px;
}

.gear-person img {
    position: absolute;
    left: 50%;
    top: 54px;
    width: 112px;
    height: 112px;
    transform: translateX(-50%);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    background: var(--c-cream-light);
    border: 5px solid var(--c-yellow);
    box-shadow: 0 0 0 3px var(--c-navy-dark), 0 8px 18px rgba(0, 0, 0, 0.26);
    z-index: 5;
}

.gear-person--photo .gear-person-photo {
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    object-position: center bottom;
}

.gear-hat {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 180px;
    height: 46px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #6f5636;
    border: 4px solid #3e2c1b;
    box-shadow: inset 0 12px 0 rgba(255, 255, 255, 0.12);
    z-index: 6;
}

.gear-hat::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 96px;
    height: 74px;
    transform: translateX(-50%);
    border-radius: 50% 50% 36% 36%;
    background: #755b39;
    border: 4px solid #3e2c1b;
}

.gear-pack {
    position: absolute;
    left: 50%;
    top: 170px;
    width: 210px;
    height: 268px;
    transform: translateX(-50%);
    border-radius: 34px 34px 22px 22px;
    background: linear-gradient(135deg, #1a2732, #3b454a);
    border: 4px solid #101820;
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.gear-torso {
    position: absolute;
    left: 50%;
    top: 178px;
    width: 154px;
    height: 260px;
    transform: translateX(-50%);
    border-radius: 52px 52px 18px 18px;
    background: linear-gradient(180deg, #47697a 0%, #1b4a61 55%, #25404b 100%);
    border: 4px solid #142a35;
    z-index: 4;
}

.gear-torso::before,
.gear-torso::after {
    content: '';
    position: absolute;
    top: 22px;
    width: 32px;
    height: 230px;
    border-radius: 22px;
    background: #5f7479;
    border: 3px solid #28373b;
}

.gear-torso::before { left: -30px; transform: rotate(8deg); }
.gear-torso::after { right: -30px; transform: rotate(-8deg); }

.gear-legs {
    position: absolute;
    left: 50%;
    top: 418px;
    width: 144px;
    height: 248px;
    transform: translateX(-50%);
    z-index: 3;
}

.gear-legs::before,
.gear-legs::after {
    content: '';
    position: absolute;
    top: 0;
    width: 58px;
    height: 246px;
    border-radius: 24px 24px 18px 18px;
    background: linear-gradient(180deg, #4c4537, #272923);
    border: 3px solid #1f211c;
}

.gear-legs::before { left: 8px; transform: rotate(2deg); }
.gear-legs::after { right: 8px; transform: rotate(-2deg); }

.gear-poles {
    position: absolute;
    top: 220px;
    width: 5px;
    height: 420px;
    background: #1d1d1b;
    border-radius: 5px;
    z-index: 2;
}

.gear-poles::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -16px;
    width: 26px;
    height: 48px;
    transform: translateX(-50%);
    border-radius: 14px;
    border: 4px solid #1d1d1b;
}

.gear-poles--left { left: 40px; transform: rotate(-6deg); }
.gear-poles--right { right: 40px; transform: rotate(6deg); }

.gear-person--kathleen .gear-torso {
    background: linear-gradient(180deg, #6d6f64 0%, #46594f 55%, #313f39 100%);
}

.gear-person--kathleen .gear-pack {
    background: linear-gradient(135deg, #22343c, #53604e);
}

.gear-total {
    position: absolute;
    left: 50%;
    top: calc(100% + 18px);
    bottom: auto;
    width: 190px;
    transform: translateX(-50%) rotate(-1.2deg);
    padding: 10px 14px;
    text-align: center;
    background: var(--c-yellow);
    border: 3px solid var(--c-navy-dark);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(43, 31, 18, 0.2);
    font-family: var(--f-sans);
    z-index: 5;
}

.gear-total span,
.gear-total small {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gear-total strong {
    display: block;
    font-family: var(--f-display);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--c-red);
}

.gear-callout,
.gear-strip {
    position: absolute;
    z-index: 4;
    background: rgba(250, 242, 223, 0.82);
    border: 1px solid rgba(139, 90, 28, 0.34);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(43, 31, 18, 0.1);
}

.gear-callout { width: 300px; }

.gear-callout h3,
.gear-strip h3,
.gear-detail-grid h3 {
    margin: 0 0 8px;
    font-family: var(--f-display);
    font-size: 1.7rem;
    line-height: 0.95;
    color: var(--c-navy-dark);
    letter-spacing: 0.02em;
}

.gear-callout strong {
    display: block;
    margin-bottom: 7px;
    font-family: var(--f-sans);
    font-size: 0.82rem;
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gear-callout ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    color: var(--c-ink);
    font-size: 0.92rem;
    line-height: 1.45;
}

.gear-callout-line {
    position: absolute;
    height: 1px;
    background: rgba(139, 90, 28, 0.52);
    transform-origin: left center;
    pointer-events: none;
}

.gear-callout--left .gear-callout-line { left: calc(100% - 2px); }
.gear-callout--right .gear-callout-line {
    left: auto;
    right: calc(100% - 2px);
    transform-origin: right center;
}

.gear-callout--clothes { top: 268px; left: 34px; }
.gear-callout--clothes .gear-callout-line { top: 126px; width: 270px; transform: rotate(4deg); }
.gear-callout--pack { top: 268px; right: 34px; }
.gear-callout--pack .gear-callout-line { top: 78px; width: 210px; transform: rotate(8deg); }
.gear-callout--shoes { top: 690px; left: 34px; }
.gear-callout--shoes .gear-callout-line { top: 196px; width: 330px; transform: rotate(6deg); }
.gear-callout--sleep { top: 690px; right: 34px; }
.gear-callout--sleep .gear-callout-line { display: none; }

.gear-strip {
    left: 34px;
    right: 34px;
    bottom: 34px;
    padding: 16px 18px 18px;
}

.gear-strip-items {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.gear-strip-items span {
    min-height: 56px;
    display: grid;
    place-items: center;
    padding: 8px;
    text-align: center;
    border: 1px dashed rgba(139, 90, 28, 0.42);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.32);
    font-family: var(--f-sans);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--c-ink-soft);
}

.gear-mini-grid {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.gear-icon {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.gear-product-img {
    display: block;
    width: min(170px, 100%);
    max-height: 190px;
    object-fit: contain;
    margin: 12px auto 0;
    filter: drop-shadow(0 16px 14px rgba(43, 31, 18, 0.22));
}

.gear-product-img--pack {
    width: min(150px, 88%);
    max-height: 210px;
    margin-top: 10px;
}

.gear-product-img--shoe {
    width: min(230px, 100%);
    max-height: 106px;
    margin-top: 12px;
}

.gear-icon--hat {
    width: 78px;
    height: 32px;
    border-radius: 50%;
    background: #6f5636;
    border: 3px solid #3e2c1b;
}

.gear-icon--hat::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 42px;
    height: 34px;
    transform: translateX(-50%);
    border-radius: 50% 50% 35% 35%;
    background: #755b39;
    border: 3px solid #3e2c1b;
}

.gear-icon--jacket {
    width: 54px;
    height: 74px;
    border-radius: 14px 14px 5px 5px;
    background: #384149;
    border: 3px solid #1f252a;
}

.gear-icon--jacket::before,
.gear-icon--jacket::after {
    content: '';
    position: absolute;
    top: 12px;
    width: 18px;
    height: 58px;
    border-radius: 10px;
    background: #384149;
    border: 3px solid #1f252a;
}

.gear-icon--jacket::before { left: -14px; transform: rotate(8deg); }
.gear-icon--jacket::after { right: -14px; transform: rotate(-8deg); }

.gear-icon--pants {
    width: 58px;
    height: 76px;
}

.gear-icon--pants::before,
.gear-icon--pants::after {
    content: '';
    position: absolute;
    top: 0;
    width: 24px;
    height: 74px;
    border-radius: 10px 10px 5px 5px;
    background: #47513c;
    border: 3px solid #242a20;
}

.gear-icon--pants::before { left: 3px; }
.gear-icon--pants::after { right: 3px; }

.gear-icon--pack {
    width: 88px;
    height: 118px;
    margin: 16px auto 0;
    display: block;
    border-radius: 28px 28px 16px 16px;
    background: linear-gradient(135deg, #161f27, #515a5d);
    border: 4px solid #101820;
}

.gear-icon--pack::before,
.gear-icon--pack::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 14px;
    height: 72px;
    border: 4px solid #101820;
    border-radius: 16px;
}

.gear-icon--pack::before { left: -14px; }
.gear-icon--pack::after { right: -14px; }

.gear-icon--shoe {
    width: 150px;
    height: 62px;
    margin-top: 18px;
    border-radius: 34px 52px 18px 18px;
    background: #1d2328;
    border: 4px solid #0d1114;
    box-shadow: inset 22px 0 0 rgba(255, 255, 255, 0.08);
}

.gear-icon--shoe::after {
    content: '';
    position: absolute;
    left: 8px;
    right: -10px;
    bottom: -14px;
    height: 14px;
    border-radius: 0 0 20px 20px;
    background: #0d1114;
}

.gear-icon--sleep {
    width: 112px;
    height: 56px;
    margin-top: 18px;
    border-radius: 42px 16px 16px 42px;
    background: repeating-linear-gradient(90deg, #7f865b 0 18px, #92996e 18px 36px);
    border: 4px solid #4c5138;
}

.gear-icon--sleep::after {
    content: '';
    position: absolute;
    left: 30px;
    bottom: -24px;
    width: 104px;
    height: 34px;
    transform: skewX(-20deg);
    background: #2c3438;
    border: 3px solid #151a1d;
}

.gear-detail-grid {
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gear-detail-grid article {
    padding: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(139, 90, 28, 0.22);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.gear-detail-grid p {
    margin: 0;
    color: var(--c-ink-soft);
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .gear-poster {
        min-height: 1080px;
    }

    .gear-figure {
        inset: 156px 25% 160px 25%;
    }

    .gear-callout {
        width: min(300px, calc(50% - 52px));
    }

    .gear-callout-line {
        display: none;
    }

    .gear-callout--clothes,
    .gear-callout--pack {
        top: 510px;
    }

    .gear-callout--shoes,
    .gear-callout--sleep {
        bottom: 224px;
    }
}

@media (max-width: 820px) {
    .gear-page {
        padding: 22px 12px 54px;
    }

    .gear-tabs {
        position: static;
    }

    .gear-poster {
        min-height: 0;
        padding: 20px;
        display: grid;
        gap: 16px;
    }

    .gear-poster::before,
    .gear-callout-line {
        display: none;
    }

    .gear-title-block {
        max-width: none;
        text-align: center;
    }

    .gear-title-block h2 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .gear-figure,
    .gear-callout,
    .gear-strip {
        position: relative;
        inset: auto;
        width: 100%;
    }

    .gear-figure {
        min-height: 620px;
        display: flex;
    }

    .gear-person {
        transform: scale(0.82);
        transform-origin: top center;
    }

    .gear-person--photo {
        height: 700px;
    }

    .gear-total {
        bottom: 64px;
    }

    .gear-callout {
        padding: 16px;
    }

    .gear-callout--clothes,
    .gear-callout--pack,
    .gear-callout--shoes,
    .gear-callout--sleep {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .gear-strip {
        left: auto;
        right: auto;
        bottom: auto;
    }

    .gear-strip-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gear-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gear-tab {
        min-height: 52px;
        font-size: 0.82rem;
    }

    .gear-tab img {
        width: 32px;
        height: 32px;
    }

    .gear-poster {
        padding: 16px;
    }

    .gear-figure {
        min-height: 548px;
        overflow: hidden;
    }

    .gear-person {
        transform: scale(0.72);
    }

    .gear-person--photo {
        height: 680px;
    }

    .gear-total {
        bottom: 38px;
    }

    .gear-mini-grid {
        flex-wrap: wrap;
    }
}

.itinerary.page-body .container { max-width: 980px; }

.itinerary-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0 0 48px;
}
.itinerary-meta-item {
    background: var(--c-white);
    border: 1px solid var(--c-parchment-dk);
    border-radius: var(--r-md);
    padding: 16px 14px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.itinerary-meta-item strong {
    display: block;
    font-family: var(--f-display);
    font-size: 1.7rem;
    color: var(--c-navy-dark);
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.itinerary-meta-item span {
    display: block;
    margin-top: 4px;
    font-family: var(--f-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-muted);
}

.itinerary-group {
    position: relative;
    background: var(--c-white);
    border: 1px solid var(--c-parchment-dk);
    border-radius: var(--r-lg);
    padding: 28px 32px 24px;
    margin: 0 0 32px;
    box-shadow: var(--shadow-soft);
    border-left-width: 6px;
    border-left-style: solid;
}
.itinerary-group[data-region="pyrenees"] { border-left-color: #6B8E4E; }
.itinerary-group[data-region="rioja"]    { border-left-color: var(--c-red); }
.itinerary-group[data-region="burgos"]   { border-left-color: #B08A4E; }
.itinerary-group[data-region="meseta"]   { border-left-color: var(--c-yellow); }
.itinerary-group[data-region="montagnes"]{ border-left-color: #5E4B8B; }
.itinerary-group[data-region="galice"]   { border-left-color: #4A8A7B; }
.itinerary-group[data-region="arrivee"]  { border-left-color: var(--c-navy); background: linear-gradient(180deg, #FFFBEF 0%, var(--c-white) 60%); }

.itinerary-group-header {
    padding: 0 0 18px;
    border-bottom: 1px dashed var(--c-parchment-dk);
    margin: 0 0 18px;
}
.itinerary-group-kicker {
    display: inline-block;
    font-family: var(--f-sans);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-muted);
    background: var(--c-cream);
    padding: 5px 12px;
    border-radius: 99px;
    margin: 0 0 10px;
}
.itinerary-group-header h2 {
    font-family: var(--f-display);
    font-size: 1.85rem;
    color: var(--c-navy-dark);
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}
.itinerary-group-header p {
    font-size: 0.98rem;
    color: var(--c-ink-soft);
    font-style: italic;
    margin: 0;
}

.itinerary-stages {
    list-style: none;
    padding: 0;
    margin: 0;
}
.itinerary-stage {
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px dotted rgba(139, 90, 28, 0.22);
    transition: background 0.2s ease;
}
.itinerary-stage:last-child { border-bottom: none; }
.itinerary-stage:hover { background: var(--c-cream-light); }

.stage-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--c-navy);
    color: var(--c-yellow);
    font-family: var(--f-display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(16, 41, 66, 0.25);
}
.stage-route {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-family: var(--f-body);
    color: var(--c-ink);
}
.stage-from, .stage-to {
    font-weight: 600;
    font-size: 1.02rem;
}
.stage-arrow {
    color: var(--c-yellow-hover);
    font-weight: 700;
    font-size: 1.1rem;
}
.stage-distance {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--c-parchment);
    color: var(--c-ink);
    padding: 5px 12px;
    border-radius: 99px;
    white-space: nowrap;
    border: 1px solid var(--c-parchment-dk);
}
.stage-flag {
    font-family: var(--f-sans);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
}
.stage-flag.flag-hard {
    background: #FBE5D6;
    color: var(--c-red-dark);
    border: 1px solid rgba(139, 44, 32, 0.3);
}
.stage-flag.flag-point {
    background: #E8E2F5;
    color: #3E2F66;
    border: 1px solid rgba(94, 75, 139, 0.3);
}
.stage-flag.flag-finale {
    background: var(--c-yellow);
    color: var(--c-navy-dark);
    border: 1px solid var(--c-yellow-hover);
    font-weight: 700;
}

.itinerary-stage.is-hard .stage-day    { background: var(--c-red); color: var(--c-yellow-light); }
.itinerary-stage.is-highlight .stage-day { background: #5E4B8B; }
.itinerary-stage.is-finale {
    margin-top: 4px;
    padding: 16px 12px;
    background: linear-gradient(90deg, rgba(245, 196, 71, 0.18), transparent);
    border-radius: var(--r-md);
}
.itinerary-stage.is-finale .stage-day {
    background: var(--c-yellow);
    color: var(--c-navy-dark);
    box-shadow: 0 0 0 3px rgba(245, 196, 71, 0.35);
}
.itinerary-stage.is-finale .stage-to {
    font-family: var(--f-display);
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    color: var(--c-navy-dark);
}

.itinerary-callout {
    margin: 18px 0 8px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    font-family: var(--f-body);
    font-size: 0.98rem;
    color: var(--c-ink-soft);
}
.itinerary-callout.callout-rest {
    background: #EAF4EC;
    border: 1px solid #B8D6BE;
    color: #2F5C3A;
}
.itinerary-callout.callout-info {
    background: #FFF4D6;
    border: 1px solid var(--c-yellow-hover);
    color: var(--c-ink);
}

@media (max-width: 720px) {
    .itinerary-meta { grid-template-columns: repeat(2, 1fr); }
    .itinerary-group { padding: 22px 18px 18px; }
    .itinerary-group-header h2 { font-size: 1.5rem; }
    .itinerary-stage {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 8px;
    }
    .stage-day { grid-row: 1 / span 2; width: 38px; height: 38px; }
    .stage-route { grid-column: 2; }
    .stage-distance { grid-column: 2; justify-self: start; }
    .stage-flag { grid-column: 2; justify-self: start; }
}

/* ====================================================
   ADMIN
   ==================================================== */
.page-header--admin {
    background:
        linear-gradient(180deg, rgba(16, 41, 66, 0.88), rgba(16, 41, 66, 0.68)),
        url("../images/optimized/hero-map3.webp") center 60% / cover;
    color: var(--c-cream-light);
}
.admin-shell {
    max-width: 1180px;
}
.admin-hero,
.admin-card {
    border: 1px solid rgba(139, 90, 28, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(246, 226, 164, 0.42)),
        var(--c-cream-light);
    box-shadow: 0 18px 36px rgba(44, 34, 20, 0.14);
}
.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    padding: clamp(22px, 3.2vw, 38px);
}
.admin-hero h2,
.admin-card h2 {
    margin: 0;
    color: var(--c-navy-dark);
    font-family: var(--f-display);
    line-height: 1;
}
.admin-hero h2 {
    margin-top: 12px;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
}
.admin-hero p,
.admin-card p {
    color: var(--c-ink-soft);
    line-height: 1.4;
}
.admin-lockbox {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px dashed rgba(77, 62, 41, 0.42);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.62);
}
.admin-lockbox label,
.admin-form label {
    display: grid;
    gap: 7px;
}
.admin-lockbox span,
.admin-form label > span {
    color: var(--c-navy-dark);
    font: 900 0.72rem var(--f-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.admin-lockbox input,
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(139, 90, 28, 0.24);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.9);
    color: var(--c-navy-dark);
    font: 800 1rem var(--f-sans);
    padding: 10px 12px;
}
.admin-form textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.4;
}
.admin-lockbox button,
.admin-actions button,
.admin-actions a {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    cursor: pointer;
    font: 900 0.78rem var(--f-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-grid;
    place-items: center;
    padding: 10px 14px;
    text-align: center;
}
.admin-lockbox p {
    min-height: 1.2em;
    margin: 0;
    font: 800 0.82rem var(--f-sans);
}
.admin-lockbox p[data-status="ok"] {
    color: #4f7d3d;
}
.admin-lockbox p[data-status="warning"] {
    color: #9d6a21;
}
.admin-lockbox p[data-status="error"] {
    color: var(--c-red);
}
.admin-tool-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-tool-row button,
.admin-tool-row a {
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(139, 90, 28, 0.22);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.76);
    color: var(--c-navy-dark);
    cursor: pointer;
    font: 900 0.72rem var(--f-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.admin-preview {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px dashed rgba(139, 90, 28, 0.34);
    border-radius: 8px;
    background: rgba(16, 41, 66, 0.06);
    color: var(--c-ink-soft);
    font-family: var(--f-sans);
}
.admin-preview span {
    color: var(--c-red);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.admin-preview strong {
    color: var(--c-navy-dark);
    font-size: 0.96rem;
    line-height: 1.2;
}
.admin-preview small,
.admin-preview em {
    color: var(--c-muted);
    font-weight: 800;
    line-height: 1.35;
}
.admin-login-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(16, 41, 66, 0.86), rgba(16, 41, 66, 0.72)),
        url("../images/optimized/hero-map3.webp") center / cover;
}
.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.admin-login-card {
    width: min(460px, 100%);
    padding: clamp(24px, 5vw, 40px);
    border: 2px solid #8B5A1C;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(246, 226, 164, 0.88)),
        var(--c-cream-light);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.admin-login-shell {
    width: 76px;
    height: auto;
    margin-bottom: 14px;
}
.admin-login-card h1 {
    margin: 12px 0 8px;
    color: var(--c-navy-dark);
    font: 900 clamp(2.4rem, 8vw, 4rem) / 0.95 var(--f-display);
}
.admin-login-card p {
    color: var(--c-ink-soft);
    line-height: 1.45;
}
.admin-login-error {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(139, 44, 32, 0.12);
    color: var(--c-red) !important;
    font: 900 0.86rem var(--f-sans);
}
.admin-login-card form,
.admin-login-card label {
    display: grid;
    gap: 10px;
}
.admin-login-card form {
    margin-top: 18px;
}
.admin-login-card label span {
    color: var(--c-navy-dark);
    font: 900 0.72rem var(--f-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.admin-login-card input {
    min-height: 50px;
    border: 1px solid rgba(139, 90, 28, 0.28);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.95);
    color: var(--c-navy-dark);
    font: 900 1rem var(--f-sans);
    padding: 10px 12px;
}
.admin-login-card button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--c-yellow);
    color: var(--c-navy-dark);
    cursor: pointer;
    font: 900 0.82rem var(--f-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}
.admin-card {
    padding: clamp(18px, 2.5vw, 28px);
}
.admin-card--journal {
    grid-row: span 2;
}
.admin-card-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}
.admin-step {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-navy-dark);
    color: var(--c-yellow);
    font: 900 1.1rem var(--f-display);
}
.admin-form {
    display: grid;
    gap: 14px;
}
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px;
}
.admin-check input {
    width: 22px;
    min-height: 22px;
}
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-actions button:first-child {
    background: var(--c-yellow);
    color: var(--c-navy-dark);
}
.admin-entry-list {
    display: grid;
    gap: 10px;
}
.admin-entry-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 12px;
    border: 1px solid rgba(139, 90, 28, 0.16);
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.72);
    color: var(--c-navy-dark);
    cursor: pointer;
    text-align: left;
}
.admin-entry-row span {
    grid-row: span 2;
    color: var(--c-red);
    font: 900 0.78rem var(--f-sans);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.admin-entry-row strong {
    overflow: hidden;
    font: 900 1rem var(--f-sans);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-entry-row small {
    color: var(--c-muted);
    font: 800 0.78rem var(--f-sans);
}
.admin-empty {
    margin: 0;
}
.admin-video-list {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}
.admin-video-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 250, 240, 0.72);
}
.admin-video-list span {
    grid-row: span 2;
    color: var(--c-red);
    font: 900 1rem var(--f-display);
}
.admin-video-list strong {
    color: var(--c-navy-dark);
    font: 900 0.9rem var(--f-sans);
}
.admin-video-list code {
    color: var(--c-muted);
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .admin-hero,
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-card--journal {
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .admin-card-head {
        grid-template-columns: 44px minmax(0, 1fr);
    }
    .admin-step {
        width: 42px;
        height: 42px;
    }
}

/* ====================================================
   JOURNAL / PHOTOS / VIDEOS
   ==================================================== */
.journal-shell {
    max-width: 1180px;
}
.journal-switcher {
    position: sticky;
    top: 82px;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: -24px auto 34px;
    padding: 8px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(139, 90, 28, 0.22);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.9);
    box-shadow: 0 12px 24px rgba(44, 34, 20, 0.1);
    backdrop-filter: blur(8px);
}
.journal-switcher a {
    min-width: 88px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--c-navy-dark);
    font: 900 0.72rem var(--f-sans);
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}
.journal-switcher a:hover,
.journal-switcher a:focus {
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
}
.journal-live-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 26px;
}
.journal-live-strip article {
    padding: 16px 18px;
    border: 1px solid rgba(139, 90, 28, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(246, 226, 164, 0.4)),
        var(--c-cream-light);
    box-shadow: 0 14px 28px rgba(44, 34, 20, 0.1);
}
.journal-live-strip span,
.journal-live-strip small {
    display: block;
    font-family: var(--f-sans);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.journal-live-strip span {
    color: var(--c-red);
    font-size: 0.66rem;
}
.journal-live-strip strong {
    display: block;
    margin: 5px 0;
    overflow-wrap: anywhere;
    color: var(--c-navy-dark);
    font: 900 clamp(1.3rem, 2.4vw, 2rem) / 1 var(--f-display);
}
.journal-live-strip small {
    color: var(--c-muted);
    font-size: 0.68rem;
}
.journal-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
    gap: 26px;
    align-items: stretch;
    margin-bottom: 52px;
}
.journal-feature-card,
.journal-section,
.journal-feature-media,
.journal-entry,
.journal-photo-card,
.journal-video-card {
    border: 1px solid rgba(139, 90, 28, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(246, 226, 164, 0.38)),
        var(--c-cream-light);
    box-shadow: 0 16px 34px rgba(44, 34, 20, 0.12);
}
.journal-feature-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3.2vw, 44px);
}
.journal-label,
.journal-meta,
.journal-tags span,
.journal-stats span {
    font-family: var(--f-sans);
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.journal-label {
    width: fit-content;
    padding: 4px 10px;
    border: 1px solid rgba(139, 44, 32, 0.24);
    border-radius: 999px;
    background: rgba(139, 44, 32, 0.1);
    color: var(--c-red);
    font-size: 0.68rem;
}
.journal-meta {
    margin: 14px 0 8px;
    color: var(--c-muted);
    font-size: 0.72rem;
}
.journal-feature h2,
.journal-section-head h2 {
    margin: 0;
    color: var(--c-navy-dark);
    font-family: var(--f-display);
    line-height: 1.02;
}
.journal-feature h2 {
    font-size: clamp(2rem, 4vw, 4rem);
}
.journal-feature p,
.journal-section-head p,
.journal-entry p {
    color: var(--c-ink-soft);
    line-height: 1.45;
}
.journal-feature-card > p {
    max-width: 58ch;
    margin: 16px 0 0;
    font-size: 1.04rem;
}
.journal-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.journal-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.journal-share button,
.journal-share a {
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(139, 90, 28, 0.2);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.76);
    color: var(--c-navy-dark);
    cursor: pointer;
    font: 900 0.68rem var(--f-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.journal-share button:hover,
.journal-share button:focus,
.journal-share a:hover,
.journal-share a:focus {
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
}
.journal-share button[data-share-native] {
    background: var(--c-yellow);
    border-color: var(--c-yellow-hover);
}
.journal-share small {
    min-height: 1em;
    color: var(--c-red);
    font: 800 0.72rem var(--f-sans);
}
.journal-share--compact {
    margin-top: 14px;
}
.journal-share--compact button,
.journal-share--compact a {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.62rem;
}
.journal-stats span,
.journal-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.72);
    border: 1px solid rgba(139, 90, 28, 0.16);
    color: var(--c-navy-dark);
    font-size: 0.68rem;
}
.journal-feature-media {
    overflow: hidden;
    margin: 0;
    background: var(--c-navy-dark);
}
.journal-feature-media video,
.journal-feature-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    background: var(--c-navy-dark);
}
.journal-feature-media figcaption,
.journal-video-card strong {
    display: block;
    padding: 12px 14px;
    background: var(--c-navy-dark);
    color: var(--c-cream-light);
    font-family: var(--f-hand);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-align: center;
}
.journal-section {
    margin: 0 0 44px;
    padding: clamp(22px, 3vw, 34px);
    scroll-margin-top: 110px;
}
.journal-section-head {
    display: grid;
    gap: 8px;
    max-width: 760px;
    margin-bottom: 22px;
}
.journal-section-head h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}
.journal-section-head p {
    margin: 0;
}
.journal-timeline {
    display: grid;
    gap: 14px;
}
.journal-entry {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    background: rgba(255, 250, 240, 0.74);
    box-shadow: none;
}
.journal-entry-day {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-navy-dark);
    color: var(--c-yellow);
    font: 900 1.1rem var(--f-display);
}
.journal-entry h3 {
    margin: 0 0 8px;
    color: var(--c-navy-dark);
    font: 900 1.25rem var(--f-sans);
}
.journal-entry p {
    margin: 0;
}
.journal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.journal-photo-grid,
.journal-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.journal-photo-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    margin: 0;
    background: var(--c-navy-dark);
}
.journal-photo-card--wide {
    grid-column: span 2;
}
.journal-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}
.journal-photo-card figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(16, 41, 66, 0.86);
    color: var(--c-cream-light);
}
.journal-photo-card strong,
.journal-photo-card span {
    display: block;
}
.journal-photo-card strong {
    font: 900 0.9rem var(--f-sans);
}
.journal-photo-card span {
    margin-top: 2px;
    color: rgba(250, 242, 223, 0.78);
    font-size: 0.82rem;
}
.journal-video-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.journal-video-card {
    overflow: hidden;
    background: var(--c-navy-dark);
}
.journal-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--c-navy-dark);
}
.journal-video-card--empty {
    grid-column: 1 / -1;
}
.journal-video-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 28px;
    text-align: center;
    color: var(--c-cream-light);
    background:
        radial-gradient(circle at 50% 30%, rgba(245, 196, 71, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(13, 47, 74, 0.96), rgba(8, 30, 48, 0.98));
}
.journal-video-empty span {
    color: var(--c-yellow);
    font: 900 0.78rem var(--f-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.journal-video-empty p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 251, 239, 0.86);
}

@media (max-width: 900px) {
    .journal-feature {
        grid-template-columns: 1fr;
    }
    .journal-live-strip {
        grid-template-columns: 1fr;
    }
    .journal-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .journal-switcher {
        top: 68px;
        width: 100%;
        border-radius: 8px;
    }
    .journal-switcher a {
        min-width: 0;
        flex: 1;
        padding-inline: 8px;
        font-size: 0.62rem;
    }
    .journal-feature-card,
    .journal-section {
        padding: 18px;
    }
    .journal-entry {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 14px;
    }
    .journal-entry-day {
        width: 40px;
        height: 40px;
        font-size: 0.92rem;
    }
    .journal-photo-grid {
        grid-template-columns: 1fr;
    }
    .journal-photo-card--wide {
        grid-column: auto;
    }
}

/* ====================================================
   REVEAL ANIMATIONS
   ==================================================== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1100px) {
    .main-nav ul { gap: 18px; }
    .main-nav a { font-size: 0.74rem; letter-spacing: 0.08em; }
    .brand-subtitle { display: none; }
}

@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-cream);
        border-bottom: 2px solid rgba(139, 90, 28, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.open { max-height: 420px; }
    .main-nav ul {
        flex-direction: column;
        padding: 12px 24px 20px;
        gap: 4px;
    }
    .main-nav a { display: block; padding: 12px 4px; }

    .btn-support { display: none; }
    .speech-bubble { right: 20px; top: 60px; }
    .update-card { position: static; width: auto; max-width: 380px; margin: 20px auto 0; }
    .parchment-top { max-width: 180px; padding: 12px 22px; font-size: 0.88rem; left: 16px; top: 16px; }
    .parchment-bottom {
        position: static;
        transform: none;
        margin: 24px auto 0;
        max-width: 92%;
    }
    .hero { min-height: auto; padding-bottom: 40px; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-interest {
        grid-template-columns: 1fr;
    }
    .footer-interest-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner { gap: 12px; padding: 10px 16px; }
    .brand-title { font-size: 1.05rem; }
    .hero { padding: 0; }
    .stats { justify-content: center; gap: 18px 22px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p { margin-inline: auto; }
    .footer-interest {
        padding: 18px;
        text-align: left;
    }
    .footer-interest-copy strong {
        font-size: 1.25rem;
    }
}

/* Final mobile hero pass: keep this after the generic responsive rules. */
@media (max-width: 900px) {
    .hero {
        min-height: 520px !important;
        padding: 0 !important;
        background:
            linear-gradient(180deg, rgba(13, 33, 56, 0) 0%, rgba(13, 33, 56, 0.12) 40%, rgba(13, 33, 56, 0.18) 100%),
            url("../images/optimized/hero-map3.webp") center 36% / cover no-repeat,
            #0d2138;
    }
    .hero-image {
        width: 100%;
        height: auto !important;
        object-fit: initial !important;
        object-position: initial !important;
    }
    .live-dashboard {
        left: 14px;
        right: 14px;
        bottom: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .live-tile--status,
    .live-tile--night {
        grid-column: 1 / -1;
    }
    .countdown-card {
        top: 32% !important;
        left: 76% !important;
    }
    body.is-before-departure .traveler-phil {
        --traveler-x: 74%;
        --traveler-y: 48%;
    }
    body.is-before-departure .traveler-kath {
        --traveler-x: 85%;
        --traveler-y: 48%;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 545px !important;
    }
    .live-dashboard {
        left: 12px;
        right: 12px;
        bottom: 14px;
    }
    .countdown-card {
        top: 30% !important;
        left: 74% !important;
    }
    body.is-before-departure .traveler-phil {
        --traveler-x: 75%;
        --traveler-y: 45.5%;
    }
    body.is-before-departure .traveler-kath {
        --traveler-x: 86%;
        --traveler-y: 45.5%;
    }
    .stages-preview {
        padding-top: 52px;
    }
}
