/* ============================================================
   LANDING PAGE — public portal (index.html)
   "Field guide, not dashboard." Warm paper, forest green,
   campfire amber for the reward moments. Route lines everywhere.

   Contents:
     1.  Anchors & shared section utilities
     2.  Sticky glass nav
     3.  Hero (route draw, map card, chips)
     4.  Road marquee
     5.  Features bento
     6.  Spotlights (+ floating chips)
     7.  Gallery strip
     8.  How it works — the journey line
     9.  Pull quote
     10. Mission
     11. Final CTA (night sky)
     12. Footer
     13. Signup modal
     14. Responsive
   ============================================================ */

/* ============================================================
   1. Anchors & shared section utilities
   ============================================================ */
#features, #visualize, #scout, #convoy, #trips, #how-it-works {
    scroll-margin-top: 84px;
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--green-700);
    margin-bottom: 14px;
}

/* Little stretch of dotted road before every eyebrow */
.section-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    flex-shrink: 0;
    background: repeating-linear-gradient(90deg,
        currentColor 0 4px, transparent 4px 9px);
    opacity: 0.75;
}

.section-eyebrow--light { color: var(--green-300); }
.section-eyebrow--amber { color: var(--sun-400); }

.section-head h2 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 620;
    line-height: 1.08;
    letter-spacing: -0.022em;
    font-variation-settings: 'opsz' 90;
    margin-bottom: 18px;
}

.section-head h2 em,
.spotlight-body h2 em,
.about-content h2 em {
    font-style: italic;
    font-weight: 580;
    color: var(--green-700);
}

.section-sub {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ============================================================
   2. Sticky glass nav
   ============================================================ */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background var(--duration-base) var(--ease-swift),
        box-shadow var(--duration-base) var(--ease-swift),
        border-color var(--duration-base) var(--ease-swift),
        height var(--duration-base) var(--ease-swift);
}

.landing-nav.scrolled {
    height: 62px;
    background: rgba(254, 252, 247, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom-color: var(--cream-200);
    box-shadow: 0 1px 0 rgba(38, 32, 15, 0.03), 0 8px 28px rgba(38, 32, 15, 0.07);
}

.nav-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 680;
    letter-spacing: -0.018em;
    color: var(--brown-900);
    text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo-mark {
    color: var(--green-700);
    transition: transform var(--duration-base) var(--ease-spring);
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-8deg) translateY(-1px); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    position: relative;
    color: var(--brown-700);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--duration-fast) ease;
}

/* Hover underline is a little dotted road */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg,
        var(--green-700) 0 4px, transparent 4px 9px);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-out);
}

.nav-links a:hover { color: var(--green-800); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-btn { padding: 9px 20px; font-size: 0.9rem; }

/* Hamburger */
.nav-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--cream-300);
    border-radius: 12px;
    background: var(--cream-50);
    padding: 11px 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}
.nav-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--brown-700);
    border-radius: 2px;
    transition: transform var(--duration-base) var(--ease-spring-soft), opacity 0.2s;
}
.nav-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links-login,
.nav-links-signup { display: none; }

/* ============================================================
   3. Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 128px 40px 96px;
    overflow: hidden;
}

/* Ambient dotted route drawing itself behind everything */
.hero-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-route-line {
    stroke: var(--green-300);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 0.0001 0.013;
    opacity: 0.65;
}

.hero-route-drawer {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: route-draw 2.6s var(--ease-swift) 0.35s forwards;
}

.hero-route-stop {
    fill: var(--green-300);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: pin-pop 0.55s var(--ease-spring) var(--pin-delay, 1s) forwards;
}
.hero-route-stop--end { fill: var(--sun-400); }

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

@keyframes pin-pop {
    0%   { opacity: 0; transform: scale(0); }
    70%  { opacity: 1; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: center;
}

/* --- Copy column --- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--green-700);
    margin-bottom: 22px;
}
.hero-eyebrow svg { color: var(--sun-500); }

.hero-headline {
    font-size: clamp(2.7rem, 6vw, 4.7rem);
    font-weight: 620;
    line-height: 1.03;
    letter-spacing: -0.028em;
    font-variation-settings: 'opsz' 144;
    color: var(--brown-900);
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    font-weight: 580;
    color: var(--green-700);
    /* hand-drawn dotted amber underline */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 30 2 60 5 T 118 3' fill='none' stroke='%23e0862f' stroke-width='2.6' stroke-linecap='round' stroke-dasharray='0.5 6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0 98%;
    background-size: 100% 0.13em;
    padding-bottom: 0.1em;
}

.hero-sub {
    font-size: clamp(1.02rem, 1.6vw, 1.16rem);
    color: var(--brown-500);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.hero-proof {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--brown-500);
}
.hero-proof svg { color: var(--green-700); flex-shrink: 0; }

/* --- Hero buttons --- */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 16px 30px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(180deg, var(--green-600) 0%, var(--green-700) 55%, #38724d 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: 0.004em;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 1px 2px rgba(26, 52, 37, 0.28),
        0 6px 18px rgba(42, 83, 57, 0.26);
    transition: transform var(--duration-base) var(--ease-spring),
        box-shadow var(--duration-base) var(--ease-out),
        filter var(--duration-fast) ease;
}
.btn-hero-primary svg { transition: transform var(--duration-base) var(--ease-spring); }
.btn-hero-primary:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.06) saturate(1.05);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow-primary);
}
.btn-hero-primary:hover svg { transform: translateX(3px); }
.btn-hero-primary:active {
    transform: translateY(1px) scale(0.97);
    transition-duration: 0.06s;
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    padding: 15px 26px;
    border: 1.5px solid var(--brown-300);
    border-radius: 15px;
    background: transparent;
    color: var(--brown-700);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--duration-fast) ease,
        border-color var(--duration-fast) ease,
        transform var(--duration-base) var(--ease-spring),
        color var(--duration-fast) ease;
}
.btn-hero-ghost:hover {
    background: var(--cream-200);
    border-color: var(--brown-500);
    color: var(--brown-900);
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-hero-ghost:active { transform: translateY(1px) scale(0.98); }

/* Amber — the one warm reward CTA on the page */
.btn-hero-accent {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 17px 34px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--sun-400) 0%, var(--sun-500) 60%, #d3792a 100%);
    color: var(--brown-900);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--shadow-accent);
    transition: transform var(--duration-base) var(--ease-spring),
        box-shadow var(--duration-base) var(--ease-out),
        filter var(--duration-fast) ease;
}
.btn-hero-accent svg { transition: transform var(--duration-base) var(--ease-spring); }
.btn-hero-accent:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 12px rgba(194, 106, 37, 0.28),
        0 12px 34px rgba(194, 106, 37, 0.32);
}
.btn-hero-accent:hover svg { transform: translateX(3px); }
.btn-hero-accent:active { transform: translateY(1px) scale(0.97); transition-duration: 0.06s; }

/* --- Staggered hero entrance (gated on .js so no-JS still shows all) --- */
.js .hero-eyebrow,
.js .hero-headline,
.js .hero-sub,
.js .hero-actions,
.js .hero-proof {
    opacity: 0;
    transform: translateY(22px);
    animation: hero-rise 0.85s var(--ease-out) forwards;
}
.js .hero-eyebrow  { animation-delay: 0.05s; }
.js .hero-headline { animation-delay: 0.14s; }
.js .hero-sub      { animation-delay: 0.26s; }
.js .hero-actions  { animation-delay: 0.38s; }
.js .hero-proof    { animation-delay: 0.5s; }

@keyframes hero-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Stage: layered trip card --- */
.hero-stage {
    position: relative;
    justify-self: end;
    width: min(100%, 500px);
}

.js .hero-stage {
    opacity: 0;
    transform: translateY(30px) rotate(1.5deg);
    animation: stage-in 1s var(--ease-spring-soft) 0.35s forwards;
}
@keyframes stage-in {
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.hero-card {
    position: relative;
    background: var(--cream-50);
    border: 1px solid var(--cream-300);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px 16px;
    transform: rotate(-1.2deg);
}

/* Torn-paper backing sheet for layered depth */
.hero-card::before {
    content: '';
    position: absolute;
    inset: 14px -12px -14px 12px;
    z-index: -1;
    border-radius: var(--radius-xl);
    background: var(--cream-200);
    border: 1px dashed var(--cream-300);
    transform: rotate(2deg);
}

.hero-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.hero-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brown-700);
}

.hero-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: 0 0 0 3px var(--green-100);
    flex-shrink: 0;
}

.hero-card-badge {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-800);
    background: var(--green-100);
    border-radius: 999px;
    padding: 4px 10px;
}

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

.hero-map-topo path {
    stroke: var(--cream-200);
    stroke-width: 2;
    fill: none;
}

.hero-map-route {
    stroke: var(--green-700);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 0.0001 0.022;
}

.hero-map-drawer {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: route-draw 1.7s var(--ease-swift) 0.55s forwards;
}

.hero-map-pin,
.hero-map-stop {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: pin-pop 0.55s var(--ease-spring) var(--pin-delay, 0.6s) forwards;
}
.hero-map-pin--b { transform-origin: center bottom; }
.hero-map-pin-a { fill: var(--green-700); }
.hero-map-pin--b path { fill: var(--sun-500); }
.hero-map-stop {
    fill: var(--green-300);
    stroke: var(--cream-50);
    stroke-width: 2;
}

.hero-card-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--cream-300);
}
.hero-card-foot span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brown-500);
}
.hero-card-foot strong {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 660;
    letter-spacing: 0;
    color: var(--brown-900);
    font-variant-numeric: tabular-nums;
    margin-right: 2px;
}
.hero-card-foot i {
    width: 1px;
    height: 18px;
    background: var(--cream-300);
}

/* --- Floating chips over the stage --- */
.hero-chip {
    position: absolute;
    z-index: 2;
    opacity: 0;
    animation:
        fade-in 0.6s var(--ease-out) var(--chip-delay, 1.2s) forwards,
        chip-drift 7s ease-in-out calc(var(--chip-delay, 1.2s) + 0.6s) infinite;
}

@keyframes chip-drift {
    0%, 100% { transform: translateY(0) rotate(var(--chip-rot, 0deg)); }
    50%      { transform: translateY(-8px) rotate(var(--chip-rot, 0deg)); }
}

.hero-chip--scout {
    --chip-rot: -1.6deg;
    /* Sits over the quiet left side of the map, like Scout annotating the route */
    top: 32%;
    left: -30px;
    width: 232px;
    background: var(--green-900);
    color: var(--cream-100);
    border: 1px solid rgba(254, 252, 247, 0.12);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 6px;
    padding: 12px 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(14, 32, 21, 0.35);
    transform: rotate(var(--chip-rot));
}

.hero-chip-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sun-400);
    margin-bottom: 4px;
}

.hero-chip--route {
    --chip-rot: 1.4deg;
    bottom: -22px;
    right: -26px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cream-50);
    border: 1px solid var(--cream-300);
    border-radius: 999px;
    padding: 10px 18px 10px 12px;
    box-shadow: var(--shadow-md);
    transform: rotate(var(--chip-rot));
}

.hero-chip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-800);
    flex-shrink: 0;
}

.hero-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.hero-chip-text strong { font-size: 0.88rem; color: var(--brown-900); }
.hero-chip-text span { font-size: 0.75rem; color: var(--color-text-muted); }

/* --- Scroll hint --- */
.hero-scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--brown-300);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    text-decoration: none;
    animation: scroll-bounce 2.6s ease-in-out infinite;
}
.hero-scroll-hint:hover { color: var(--green-700); text-decoration: none; }
@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   4. Road marquee — a strip of night highway
   ============================================================ */
.feature-marquee {
    position: relative;
    background: var(--green-950);
    overflow: hidden;
    padding: 20px 0;
}

/* Lane lines top + bottom */
.feature-marquee::before,
.feature-marquee::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg,
        rgba(254, 252, 247, 0.16) 0 22px, transparent 22px 44px);
}
.feature-marquee::before { top: 7px; }
.feature-marquee::after { bottom: 7px; }

.marquee-track {
    display: flex;
    align-items: center;
    gap: 26px;
    width: max-content;
    animation: marquee-scroll 42s linear infinite;
}
.feature-marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--cream-200);
    white-space: nowrap;
}

/* Amber road-reflector dots between phrases */
.marquee-track .marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sun-400);
    box-shadow: 0 0 8px rgba(242, 168, 84, 0.5);
    flex-shrink: 0;
}

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

/* ============================================================
   5. Features — field-notes bento
   ============================================================ */
.features-section {
    padding: 120px 0 110px;
    background: var(--cream-50);
}

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.bento-cell {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 30px 28px 28px;
    transition: transform var(--duration-base) var(--ease-spring-soft),
        box-shadow var(--duration-base) var(--ease-out),
        border-color var(--duration-fast) ease;
}
.bento-cell:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brown-300);
}

.bento-cell--wide { grid-column: span 4; }

.bento-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border-radius: var(--radius-md);
    color: var(--green-700);
    margin-bottom: 20px;
    transition: transform var(--duration-base) var(--ease-spring);
}
.bento-cell:hover .bento-icon { transform: rotate(-6deg) scale(1.08); }

.bento-cell h3 {
    font-size: 1.22rem;
    font-weight: 640;
    letter-spacing: -0.01em;
    margin-bottom: 9px;
}

.bento-cell p {
    color: var(--color-text-muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* Dark cell — Scout, a green night panel with amber icon */
.bento-cell--dark {
    background: linear-gradient(165deg, var(--green-900) 0%, var(--green-950) 100%);
    border-color: var(--green-850);
}
.bento-cell--dark:hover { border-color: var(--green-800); }
.bento-cell--dark h3 { color: var(--cream-50); }
.bento-cell--dark p { color: rgba(239, 231, 213, 0.78); }
.bento-cell--dark .bento-icon {
    background: rgba(242, 168, 84, 0.14);
    color: var(--sun-400);
}

/* Amber cell — levels & badges, the reward feature */
.bento-cell--amber {
    background: linear-gradient(170deg, var(--sun-50) 0%, var(--sun-100) 100%);
    border-color: #f3ddba;
}
.bento-cell--amber:hover { border-color: var(--sun-400); }
.bento-cell--amber .bento-icon {
    background: rgba(224, 134, 47, 0.14);
    color: var(--sun-600);
}

/* Mini route strip inside the wide visualization cell —
   draws itself when the cell scroll-reveals */
.bento-route {
    width: 100%;
    height: auto;
    margin-top: auto;
    padding-top: 20px;
}

.bento-route-line {
    stroke: var(--green-600);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 0.0001 0.02;
}

.bento-route-drawer {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.bento-cell.is-revealed .bento-route-drawer {
    animation: route-draw 1.5s var(--ease-swift) 0.35s forwards;
}
/* If ui-fx.js never loaded, show the route fully drawn */
html:not(.tpfx) .bento-route-drawer { stroke-dashoffset: 0; }

.bento-route-a { fill: var(--green-700); }
.bento-route-b { fill: var(--sun-500); }
.bento-route-stop { fill: var(--green-300); }

.bento-route-a, .bento-route-b, .bento-route-stop {
    transform-box: fill-box;
    transform-origin: center;
}
.bento-cell.is-revealed .bento-route-a { animation: pin-pop 0.5s var(--ease-spring) 0.4s both; }
.bento-cell.is-revealed .bento-route-stop { animation: pin-pop 0.5s var(--ease-spring) 1.1s both; }
.bento-cell.is-revealed .bento-route-b { animation: pin-pop 0.5s var(--ease-spring) 1.85s both; }

/* ============================================================
   6. Spotlights — editorial, alternating, layered
   ============================================================ */
.spotlight {
    padding: 112px 0;
    background: var(--color-bg);
    overflow: hidden;
}

.spotlight--dark {
    background:
        radial-gradient(ellipse 70% 55% at 50% 115%, rgba(224, 134, 47, 0.10), transparent),
        var(--green-950);
}

.spotlight-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 76px;
    align-items: center;
}

.spotlight--reverse .spotlight-media { order: 2; }

.spotlight-media {
    position: relative;
    height: 460px;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    transform: rotate(-1.3deg);
    transition: transform var(--duration-slow) var(--ease-spring-soft);
}
.spotlight--reverse .spotlight-media { transform: rotate(1.3deg); }
.spotlight-media:hover { transform: rotate(0deg) scale(1.012); }

/* Dashed field-guide frame offset behind each photo */
.spotlight-media::before {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    z-index: -1;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--green-200);
}
.spotlight--reverse .spotlight-media::before {
    inset: 16px 16px -16px -16px;
}
.spotlight--dark .spotlight-media::before {
    border-color: rgba(140, 199, 161, 0.28);
}

.spotlight-body h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    font-weight: 620;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 80;
    color: var(--brown-900);
    margin: 10px 0 20px;
    line-height: 1.1;
}

.spotlight--dark .spotlight-body h2 { color: var(--cream-50); }
.spotlight--dark .spotlight-body h2 em { color: var(--sun-400); }

.spotlight-body > p {
    color: var(--color-text-muted);
    font-size: 1.04rem;
    line-height: 1.8;
    margin-bottom: 26px;
}
.spotlight--dark .spotlight-body > p { color: rgba(239, 231, 213, 0.8); }

.spotlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spotlight-list li {
    position: relative;
    padding-left: 34px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brown-700);
    line-height: 1.5;
}
.spotlight--dark .spotlight-list li { color: var(--cream-100); }

.spotlight-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--green-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%232a5339' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.spotlight--dark .spotlight-list li::before {
    background-color: rgba(140, 199, 161, 0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%238cc7a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---- Floating chips over spotlight media ---- */
.chip {
    position: absolute;
    background: var(--color-surface);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    animation: chip-float 6s ease-in-out infinite;
}

@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

/* Route chip */
.chip-route {
    right: -16px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chip-route-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.chip-route-start { background: var(--green-600); }
.chip-route-end { background: var(--sun-500); }
.chip-route-line {
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--green-300) 0 5px, transparent 5px 10px);
}
.chip-route-text { display: flex; flex-direction: column; line-height: 1.25; }
.chip-route-text strong { font-size: 0.92rem; color: var(--brown-900); }
.chip-route-text span { font-size: 0.78rem; color: var(--color-text-muted); }

/* Chat chip */
.chip-chat {
    left: -18px;
    bottom: 34px;
    width: 268px;
    max-width: 78%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation-duration: 6.8s;
}
.chip-chat-row {
    font-size: 0.84rem;
    line-height: 1.45;
    padding: 9px 12px;
    border-radius: 12px;
}
.chip-chat-you {
    align-self: flex-end;
    background: var(--green-700);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chip-chat-scout {
    align-self: flex-start;
    background: var(--cream-200);
    color: var(--brown-900);
    border-bottom-left-radius: 4px;
}
.chip-chat-name {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sun-600);
    margin-bottom: 2px;
}

/* Post chip */
.chip-post {
    right: -16px;
    top: 30px;
    width: 250px;
    max-width: 76%;
    animation-duration: 7.2s;
}
.chip-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chip-post-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-700);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chip-post-head strong { display: block; font-size: 0.9rem; color: var(--brown-900); line-height: 1.2; }
.chip-post-tag { font-size: 0.76rem; color: var(--color-text-muted); }
.chip-post-body { font-size: 0.86rem; color: var(--brown-700); line-height: 1.5; margin-bottom: 10px; }
.chip-post-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--green-700);
    border-top: 1px dashed var(--color-border-soft);
    padding-top: 9px;
}

/* Crew chip */
.chip-crew {
    left: -16px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation-duration: 6.4s;
}
.chip-crew-avatars { display: flex; }
.chip-crew-avatars span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-600);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-surface);
    margin-left: -10px;
}
.chip-crew-avatars span:first-child { margin-left: 0; }
.chip-crew-more { background: var(--sun-500) !important; }
.chip-crew-text { display: flex; flex-direction: column; line-height: 1.3; }
.chip-crew-text strong { font-size: 0.9rem; color: var(--brown-900); }
.chip-crew-text span { font-size: 0.78rem; color: var(--color-text-muted); }

/* ============================================================
   7. Gallery strip — hover accordion
   ============================================================ */
.gallery-strip { overflow: hidden; }

.gallery-strip-inner {
    display: flex;
    height: 340px;
    gap: 5px;
}

.gallery-item {
    flex: 1 0 200px;
    background-size: cover;
    background-position: center;
    transition: flex var(--duration-slow) var(--ease-swift),
        filter var(--duration-slow) ease;
    filter: saturate(0.82) brightness(0.95);
}
.gallery-item:hover {
    flex: 2 0 360px;
    filter: saturate(1.1) brightness(1.02);
}

/* ============================================================
   8. How it works — the journey line
   ============================================================ */
.how-section {
    padding: 120px 0;
    background: var(--cream-50);
}

.journey {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 84px;
    padding: 20px 0 30px;
}

/* The dotted road running down the middle… */
.journey-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(180deg,
        var(--cream-300) 0 6px, transparent 6px 15px);
    border-radius: 3px;
}

/* …and the solid green fill that follows your scroll */
.journey-track-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--green-600), var(--green-700));
    border-radius: 3px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-swift);
}

.journey-stop {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 96px 1fr;
    align-items: center;
}

.journey-body {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    text-align: right;
    max-width: 420px;
}

.journey-media {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    width: min(100%, 440px);
    height: 300px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
    transform: rotate(1.4deg);
    transition: transform var(--duration-slow) var(--ease-spring-soft),
        box-shadow var(--duration-base) var(--ease-out);
}
.journey-media:hover { transform: rotate(0deg) scale(1.015); box-shadow: var(--shadow-lg); }

/* Alternate sides */
.journey-stop--flip .journey-body {
    grid-column: 3;
    justify-self: start;
    text-align: left;
}
.journey-stop--flip .journey-media {
    grid-column: 1;
    justify-self: end;
    transform: rotate(-1.4deg);
}
.journey-stop--flip .journey-media:hover { transform: rotate(0deg) scale(1.015); }

.journey-marker {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-700);
    color: var(--cream-50);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 680;
    box-shadow: 0 0 0 7px var(--cream-50), 0 0 0 9px var(--green-200), var(--shadow-sm);
}

/* Final stop gets the amber finish-line flag */
.journey-marker--end {
    background: linear-gradient(180deg, var(--sun-400), var(--sun-500));
    color: var(--brown-900);
    box-shadow: 0 0 0 7px var(--cream-50), 0 0 0 9px var(--sun-100), var(--shadow-sm);
}

/* Markers pop springily as their stop reveals */
html.tpfx .journey-stop .journey-marker { opacity: 0; }
html.tpfx .journey-stop.is-revealed .journey-marker {
    animation: pop-in 0.55s var(--ease-spring) 0.25s both;
}

.journey-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px dashed var(--green-200);
    border-radius: 999px;
    padding: 5px 13px;
    margin-bottom: 14px;
}

.journey-body h3 {
    font-size: 1.6rem;
    font-weight: 640;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}

.journey-body p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* ============================================================
   9. Pull quote
   ============================================================ */
.quote-banner {
    position: relative;
    background: var(--green-900);
    padding: 96px 40px;
    overflow: hidden;
}

.quote-banner-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.quote-banner blockquote { position: relative; }

.quote-banner blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.55em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 640;
    line-height: 1;
    color: rgba(242, 168, 84, 0.22);
    pointer-events: none;
}

.quote-banner blockquote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 580;
    color: var(--cream-100);
    line-height: 1.4;
    margin-bottom: 24px;
}

.quote-banner cite {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--green-300);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-style: normal;
    font-weight: 700;
}
.quote-banner cite::before,
.quote-banner cite::after {
    content: '';
    width: 22px;
    height: 2px;
    background: repeating-linear-gradient(90deg,
        rgba(140, 199, 161, 0.5) 0 4px, transparent 4px 9px);
}

/* ============================================================
   10. Mission
   ============================================================ */
.about-section {
    padding: 120px 0;
    background: var(--color-bg);
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: var(--radius-xl);
    height: 520px;
    background-size: cover;
    box-shadow: var(--shadow-lg);
    transform: rotate(-1.4deg);
    transition: transform var(--duration-slow) var(--ease-spring-soft);
}
.about-img:hover { transform: rotate(0deg); }
.about-img::before {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    z-index: -1;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--green-200);
}

.about-content h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 620;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 80;
    margin-bottom: 26px;
}

.about-body {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

/* Editorial drop cap on the opening paragraph */
.about-body:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.6em;
    font-weight: 640;
    line-height: 0.82;
    float: left;
    padding: 6px 10px 0 0;
    color: var(--green-700);
}

/* ============================================================
   11. Final CTA — night at the trailhead
   ============================================================ */
.cta-section {
    position: relative;
    padding: 160px 40px 170px;
    text-align: center;
    background: var(--green-950);
    overflow: hidden;
}

/* Star field */
.cta-sky {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 24%, rgba(254, 252, 247, 0.5), transparent 100%),
        radial-gradient(1px 1px at 28% 60%, rgba(254, 252, 247, 0.35), transparent 100%),
        radial-gradient(1.5px 1.5px at 41% 16%, rgba(254, 252, 247, 0.45), transparent 100%),
        radial-gradient(1px 1px at 57% 42%, rgba(254, 252, 247, 0.3), transparent 100%),
        radial-gradient(1.5px 1.5px at 68% 12%, rgba(254, 252, 247, 0.5), transparent 100%),
        radial-gradient(1px 1px at 79% 55%, rgba(254, 252, 247, 0.35), transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 28%, rgba(254, 252, 247, 0.45), transparent 100%),
        radial-gradient(1px 1px at 20% 44%, rgba(254, 252, 247, 0.3), transparent 100%),
        radial-gradient(1px 1px at 48% 8%, rgba(254, 252, 247, 0.4), transparent 100%),
        radial-gradient(1px 1px at 85% 70%, rgba(254, 252, 247, 0.25), transparent 100%);
}

/* Campfire glow from below the horizon */
.cta-glow {
    position: absolute;
    left: 50%;
    bottom: -220px;
    width: 900px;
    height: 480px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
        rgba(224, 134, 47, 0.28) 0%,
        rgba(224, 134, 47, 0.10) 45%,
        transparent 72%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    font-weight: 620;
    letter-spacing: -0.025em;
    font-variation-settings: 'opsz' 120;
    color: var(--cream-50);
    margin: 6px 0 20px;
    line-height: 1.08;
}

.cta-content h2 em {
    font-style: italic;
    font-weight: 580;
    color: var(--sun-400);
}

.cta-content > p {
    color: rgba(239, 231, 213, 0.78);
    font-size: 1.1rem;
    margin-bottom: 38px;
    line-height: 1.65;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: rgba(239, 231, 213, 0.55);
}

/* ============================================================
   12. Footer
   ============================================================ */
.site-footer {
    background: var(--brown-900);
    padding: 56px 40px 32px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px dashed rgba(254, 252, 247, 0.14);
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 680;
    color: var(--cream-100);
    margin-bottom: 6px;
}
.footer-logo svg { color: var(--green-300); }

.footer-tagline {
    color: var(--brown-300);
    font-size: 0.875rem;
    font-style: italic;
}

.footer-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav a,
.footer-signup-link {
    color: var(--brown-300);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    padding: 0;
    transition: color var(--duration-fast) ease;
}
.footer-nav a:hover,
.footer-signup-link:hover { color: var(--cream-100); text-decoration: none; }

.footer-copy {
    text-align: center;
    color: var(--brown-500);
    font-size: 0.8rem;
    max-width: 1180px;
    margin: 0 auto;
}

/* ============================================================
   13. Signup modal — premium spring entrance
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(14, 32, 21, 0.52);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-swift);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--color-surface);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 46px 42px;
    width: 100%;
    max-width: 430px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.92);
    transition: transform var(--duration-slow) var(--ease-spring-soft);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brown-500);
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: color var(--duration-fast) ease,
        background var(--duration-fast) ease,
        transform var(--duration-base) var(--ease-spring);
    line-height: 0;
}
.modal-close:hover {
    color: var(--brown-900);
    background: var(--cream-200);
    transform: rotate(90deg);
}

.modal-card .auth-logo { text-align: center; margin-bottom: 30px; }
.modal-card .auth-logo h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 680;
    color: var(--green-700);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.modal-card .auth-logo .tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* A→B dotted route divider under the wordmark */
.modal-card .auth-logo::after {
    content: '';
    display: block;
    width: 88px;
    height: 8px;
    margin: 16px auto 0;
    background-image:
        radial-gradient(circle 4px at 4px 4px, var(--green-600) 99%, transparent),
        radial-gradient(circle 4px at 84px 4px, var(--sun-500) 99%, transparent),
        repeating-linear-gradient(90deg,
            transparent 0 12px,
            var(--green-300) 12px 16px,
            transparent 16px 20px);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: 8px 8px, 8px 8px, 60px 2px;
    background-position: 0 0, 100% 0, center 3px;
}

.modal-card .auth-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 660;
    color: var(--brown-900);
    margin-bottom: 22px;
    text-align: center;
}
.modal-card .auth-switch {
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-top: 22px;
}
.modal-card .auth-switch a { color: var(--green-700); }
.modal-card .auth-legal {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 14px;
    line-height: 1.45;
}
.modal-card .auth-legal a { color: var(--green-700); }

/* ============================================================
   14. Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .hero-inner { gap: 44px; }
    .hero-stage { width: min(100%, 440px); }
    .spotlight-inner { gap: 52px; }
}

/* --- Mobile nav --- */
@media (max-width: 980px) {
    .nav-menu-btn { display: flex; }
    .nav-actions { display: none; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        margin: 0 16px;
        background: rgba(254, 252, 247, 0.94);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--cream-300);
        transform-origin: top center;
    }
    .nav-links.is-open {
        display: flex;
        animation: scale-in var(--duration-base) var(--ease-spring-soft);
    }
    .nav-links a {
        color: var(--brown-700);
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 1rem;
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover {
        background: var(--cream-100);
        color: var(--green-700);
    }
    .nav-links-login,
    .nav-links-signup {
        display: block;
        margin-top: 6px;
    }
    .nav-links-signup {
        width: 100%;
        margin-top: 4px;
    }

    /* Bento reflows to 2-up, wide cell full width */
    .bento { grid-template-columns: repeat(6, 1fr); }
    .bento-cell { grid-column: span 3; }
    .bento-cell--wide { grid-column: span 6; }
}

@media (max-width: 940px) {
    /* Hero recomposes: copy above, stage below with room for the chips */
    .hero {
        min-height: 0;
        padding: 120px 24px 100px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    .hero-copy { text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-proof { justify-content: center; }
    .hero-stage {
        justify-self: center;
        width: min(100%, 460px);
    }
    .hero-route { opacity: 0.5; }
    .hero-scroll-hint { display: none; }
}

@media (max-width: 900px) {
    .landing-nav { padding: 0 20px; }
    .section-inner { padding: 0 24px; }
    .features-section, .how-section, .about-section { padding: 84px 0; }
    .section-head { margin-bottom: 44px; }

    /* Spotlights stack, media on top */
    .spotlight { padding: 84px 0; }
    .spotlight-inner { grid-template-columns: 1fr; gap: 44px; padding: 0 24px; }
    .spotlight--reverse .spotlight-media { order: 0; }
    .spotlight-media { height: 320px; }

    .about-inner { grid-template-columns: 1fr; padding: 0 24px; gap: 52px; }
    .about-img { height: 320px; }

    /* Journey collapses to a left rail */
    .journey { gap: 56px; padding: 8px 0 16px; }
    .journey-track { left: 23px; transform: none; }
    .journey-stop,
    .journey-stop--flip {
        grid-template-columns: 62px 1fr;
        grid-template-rows: auto auto;
        row-gap: 18px;
        align-items: start;
    }
    .journey-marker,
    .journey-stop--flip .journey-marker {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        width: 46px;
        box-shadow: 0 0 0 6px var(--cream-50), 0 0 0 8px var(--green-200), var(--shadow-sm);
    }
    .journey-marker--end {
        box-shadow: 0 0 0 6px var(--cream-50), 0 0 0 8px var(--sun-100), var(--shadow-sm) !important;
    }
    .journey-body,
    .journey-stop--flip .journey-body {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        text-align: left;
        max-width: none;
        padding-top: 2px;
    }
    .journey-media,
    .journey-stop--flip .journey-media {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        width: 100%;
        height: 240px;
    }
}

@media (max-width: 640px) {
    /* Bento single column */
    .bento { gap: 14px; }
    .bento-cell, .bento-cell--wide { grid-column: span 6; }
    .bento-cell { padding: 26px 22px 24px; }

    /* Hero tightens for 375px */
    .hero { padding: 108px 18px 84px; }
    .hero-headline { font-size: clamp(2.5rem, 11.5vw, 3.1rem); }
    .hero-actions { gap: 10px; }
    .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }
    .hero-proof { gap: 8px 16px; }
    .hero-stage { width: 100%; }
    .hero-chip--scout { left: -4px; top: 30%; width: 210px; }
    .hero-chip--route { right: -4px; bottom: -20px; }
    .hero-card::before { inset: 12px -8px -10px 8px; }

    /* Gallery strip */
    .gallery-strip-inner { height: 200px; }
    .gallery-item { flex: 1 0 140px; }

    /* Spotlight media and chips scale down for phones */
    .spotlight-media { height: 260px; transform: rotate(0deg); }
    .spotlight--reverse .spotlight-media { transform: rotate(0deg); }
    .spotlight-media::before,
    .spotlight--reverse .spotlight-media::before { inset: 10px -10px -10px 10px; }
    .chip { padding: 11px 13px; animation: none; }
    .chip-route { right: 10px; bottom: 12px; }
    .chip-chat { left: 10px; bottom: 12px; width: 220px; }
    .chip-post { right: 10px; top: 12px; width: 210px; }
    .chip-crew { left: 10px; bottom: 12px; }

    /* Other sections */
    .cta-section { padding: 110px 22px 120px; }
    .quote-banner { padding: 72px 24px; }
    .modal-card { padding: 38px 26px; }
    .journey-media { height: 200px; }

    .marquee-track span { font-size: 0.98rem; }
    .marquee-track { gap: 20px; }
}
