/* ==========================================================================
   Story post type: two-zone route animation (Texas Builder Trip pattern)
   Palette: AIVI brief, style section (50 Foot sample booklet values).
     navy  #1D1E48  story panel          teal  #00D4C2  line, pins, active
     slate #353746  plate (brief: "nearest brand dark for the plate")
     deep teal #006B8B  timeline line on the light plate
     grays #7F7F7F / #D1D3D4 / #E0E0E0  rules, empty states
   Type: Manrope (brief: free fallback for Roobert), self-hosted.
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope/manrope-variable-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.story {
    --navy: #1D1E48;
    --navy-up: #25275A;      /* navy lifted 6% toward white, for cards */
    --navy-deep: #15163A;    /* navy dropped 6% toward black, for casing/shadows */
    --slate: #353746;
    --teal: #00D4C2;
    --deep-teal: #006B8B;
    --ink: #F4F5F8;
    --ink-soft: rgba(244, 245, 248, 0.72);
    --ink-mute: rgba(244, 245, 248, 0.68);   /* AA on navy and navy-up (see report) */
    --line-gray: #7F7F7F;
    --plate: var(--slate);
    --plate-ink: var(--ink);
    --route: var(--teal);
    --route-case: var(--navy-deep);
    --grid: rgba(255, 255, 255, 0.06);
    --track: rgba(209, 211, 212, 0.32);
    --pin-ring: #FFFFFF;
    --chip-bg: rgba(29, 30, 72, 0.72);
    --chip-line: rgba(255, 255, 255, 0.14);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --panel-w: clamp(420px, 35vw, 560px);
    --shadow-card: 0 1px 1px rgba(8, 9, 30, 0.18), 0 6px 14px -4px rgba(8, 9, 30, 0.35), 0 22px 40px -18px rgba(8, 9, 30, 0.55);
    --shadow-float: 0 1px 2px rgba(8, 9, 30, 0.2), 0 10px 28px -6px rgba(8, 9, 30, 0.45);
    font-family: var(--font);
    color: var(--ink);
}

/* Light plate variant (CSS switch: data-plate="light"). White with the
   booklet's pale-teal wash; route in deep teal for contrast on white. */
.story[data-plate="light"] {
    --plate: #FFFFFF;
    --plate-ink: #1D1E48;
    --route: #00D4C2;
    --route-case: #006B8B;
    --grid: rgba(29, 30, 72, 0.055);
    --track: rgba(127, 127, 127, 0.45);
    --pin-ring: #FFFFFF;
    --chip-bg: rgba(255, 255, 255, 0.9);
    --chip-line: #D1D3D4;
}

/* ---------- page chrome on story posts ---------- */
.story-template .site-content { padding: 0; }
.story-template .site-primary { min-width: 0; width: 100%; }
.story-pill { display: none; }
/* The stage is the whole desktop view: site footer and post extras never sit on it. */
@media (min-width: 861px) {
    .story-js .story-template .gh-foot,
    .story-js .story-template .story-main > :not(.story) { display: none; }
}

.story-js .story-template .gh-head,
.story-js .story-template .home-head,
.story-js .story-template .browse-nav-mobile-bar { display: none; }

.story-js .story-template .story-pill {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 16px 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(37, 39, 90, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: var(--shadow-float, 0 10px 28px -6px rgba(8, 9, 30, 0.45));
    font-family: "Manrope", system-ui, sans-serif;
}

.story-menu-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #F4F5F8;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.story-menu-btn:hover,
.story-nav-open .story-menu-btn { background: rgba(0, 212, 194, 0.22); }
.story-menu-btn:focus-visible,
.story-pill-brand:focus-visible { outline: 2px solid #00D4C2; outline-offset: 2px; }
.story-menu-icon { display: grid; gap: 4px; width: 15px; }
.story-menu-icon span { display: block; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, width 0.25s ease; }
.story-menu-icon span:last-child { width: 10px; }
.story-nav-open .story-menu-icon span:first-child { transform: translateY(2.75px) rotate(45deg); }
.story-nav-open .story-menu-icon span:last-child { width: 15px; transform: translateY(-2.75px) rotate(-45deg); }
.story-pill-brand {
    padding: 0 4px 0 10px;
    color: #F4F5F8;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.story-pill-brand:hover { color: #00D4C2; opacity: 1; }

/* Site sidebar becomes a slide-out overlay at every width on story posts. */
.story-js .story-template .site-body { display: block; }
.story-js .story-template .browse-nav {
    position: fixed;
    top: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 110;
    width: min(300px, calc(100vw - 24px));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: #1D1E48;
    color: #F4F5F8;
    box-shadow: 0 2px 4px rgba(8, 9, 30, 0.25), 0 30px 60px -20px rgba(8, 9, 30, 0.7);
    transform: translateX(calc(-100% - 24px));
    visibility: hidden;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.38s;
    font-family: "Manrope", system-ui, sans-serif;
}
.story-js .story-template.story-nav-open .browse-nav {
    transform: none;
    visibility: visible;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
.story-js .story-template .browse-nav-panel {
    position: static;
    height: 100%;
    max-height: none;
    padding: 72px 22px 28px;
    overflow: auto;
}
.story-js .story-template .browse-nav-toolbar { display: none; }
.story-js .story-template .browse-nav-heading { color: rgba(244, 245, 248, 0.5); border-color: rgba(255, 255, 255, 0.1); font-size: 1.1rem; letter-spacing: 0.08em; }
.story-js .story-template .browse-nav-link { color: rgba(244, 245, 248, 0.86); border-radius: 8px; }
.story-js .story-template .browse-nav-link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.story-js .story-template .browse-nav a:focus-visible { outline: 2px solid #00D4C2; outline-offset: 1px; }
.story-js .story-template .browse-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: block;
    background: rgba(10, 11, 34, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.story-js .story-template.story-nav-open .browse-nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.3s ease; }

/* ---------- no-JS / email-like fallback: a plain readable article ---------- */
.story { background: #1D1E48; }
.story-panel-inner { max-width: 72rem; margin: 0 auto; padding: 6rem 2.4rem; }
.story-title { margin: 0; color: var(--ink); font-family: var(--font); font-size: clamp(2.8rem, 1vw + 1.9rem, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.028em; text-wrap: balance; }
.story-dateline { margin-top: 16px; }
.story-date { display: block; color: var(--ink); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.01em; }
.story-rule { display: block; width: 88px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--teal); transform-origin: left; }
.story-narrative { margin-top: 3.2rem; color: var(--ink-soft); font-size: 1.7rem; line-height: 1.65; }
.story-narrative h2 { margin: 3.2rem 0 1rem; color: var(--ink); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.015em; }
.story-narrative p { margin: 0 0 1.2rem; }
.story-narrative a, .story-step-body a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-narrative svg { display: block; width: 100%; height: auto; margin-top: 3.2rem; background: var(--slate); border-radius: 14px; }
.story-plate, .story-steps, .story-stats[hidden] { display: none; }

/* ---------- the stage (JS on) ---------- */
.story-js .story { background: var(--navy); }
.story-js .story-stage {
    position: relative;
    display: grid;
    grid-template-columns: var(--panel-w) minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    min-height: 620px;
    grid-template-rows: minmax(0, 1fr);
}
.story-js .story-panel {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 0;
    background: var(--navy);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06), 18px 0 40px -24px rgba(8, 9, 30, 0.8);
}
.story-js .story-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 88px 0 0;          /* pill ends at 66px: 22px clear space above the title */
    overflow: hidden;
}
.story-js .story-head { flex: none; padding: 0 40px 24px; }
.story-js .story-steps-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 24px 32px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(transparent, #000 8px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(transparent, #000 8px, #000 calc(100% - 32px), transparent);
}
.story-js .story-narrative { display: none; }
.story-js .story-steps { display: flex; }

.story-js .story-title,
.story-js .story-dateline,
.story-js .story-step { opacity: 0; }
.story-ready .story-title { animation: story-slide 0.7s var(--ease-out) 0.1s both; }
.story-ready .story-dateline { animation: story-slide 0.6s var(--ease-out) 0.3s both; }
.story-ready .story-rule { animation: story-wipe 0.7s var(--ease) 0.55s both; }
.story-ready .story-step { animation: story-rise 0.5s var(--ease-out) calc(0.7s + var(--i) * 0.12s) both; }
@keyframes story-slide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes story-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes story-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.story-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 10px; margin-top: 2.4rem; }
.story-stat { margin: 0; padding: 1.4rem 1.6rem; border-radius: 14px; background: var(--navy-up); box-shadow: var(--shadow-card); }
.story-stat-kicker { display: block; color: var(--ink-mute); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.story-stat-value { display: block; margin-top: 0.6rem; color: var(--teal); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- step list (the trip's stop list, as cards) ---------- */
.story-steps {
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.story-step {
    position: relative;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.story-step.is-active {
    border-color: rgba(0, 212, 194, 0.38);
    background: var(--navy-up);
    box-shadow: var(--shadow-card);
}
.story-step-head {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.story-step:not(.is-active) .story-step-head:hover { background: rgba(255, 255, 255, 0.045); }
.story-step-head:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.story-step-dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(244, 245, 248, 0.4);
    border-radius: 50%;
    color: var(--ink-soft);
    font-size: 1.3rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-back);
}
.story-step.is-done .story-step-dot { border-color: transparent; background: rgba(0, 212, 194, 0.22); color: var(--teal); }
.story-step.is-active .story-step-dot { border-color: transparent; background: var(--teal); color: var(--navy); transform: scale(1.06); }
.story-step-text { display: grid; gap: 2px; min-width: 0; }
.story-step-title { color: var(--ink); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.story-step:not(.is-active) .story-step-title { color: rgba(244, 245, 248, 0.88); }
.story-step-sub { color: var(--ink-mute); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.4; }
.story-step.is-active .story-step-sub { color: var(--teal); }
.story-step-chevron {
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-right: 1.5px solid var(--ink-mute);
    border-bottom: 1.5px solid var(--ink-mute);
    transform: rotate(-45deg);
    transition: transform 0.35s var(--ease), border-color 0.2s ease;
}
.story-step-head:hover .story-step-chevron { border-color: var(--ink); }
.story-step.is-active .story-step-chevron { border-color: var(--teal); transform: translateY(-2px) rotate(45deg); }

.story-step-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease);
}
.story-step.is-active .story-step-body { grid-template-rows: 1fr; }
.story-step-body-inner {
    position: relative;
    min-height: 0;
    overflow: hidden;
    padding: 0 24px 0 64px;    /* 16 + 32 dot + 16 gap: copy aligns with the step title */
    color: rgba(244, 245, 248, 0.82);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.3s ease, padding 0.5s var(--ease);
}
.story-step.is-active .story-step-body-inner { padding-bottom: 32px; opacity: 1; transition: opacity 0.45s ease 0.15s, padding 0.5s var(--ease); }
.story-step-copy p { margin: 0 0 8px; }
.story-step-copy p:last-child { margin-bottom: 0; }
.story-js .story-step-copy {
    max-height: var(--copy-max, none);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.story-step.is-capped .story-step-copy {
    padding-bottom: 16px;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 32px), transparent);
}
.story-step-progress {
    position: absolute;
    right: 24px;
    bottom: 16px;
    left: 64px;
    height: 2px;
    border-radius: 2px;
    background: var(--teal);
    opacity: 0.55;
    transform: scaleX(0);
    transform-origin: left;
}
.story-step:not(.is-active) .story-step-progress { visibility: hidden; }

/* ---------- the plate ---------- */
.story-js .story-plate {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(90% 80% at 0% 100%, rgba(21, 22, 58, 0.45), transparent 70%),
        var(--plate);
    color: var(--plate-ink);
}
.story[data-plate="light"] .story-plate {
    background:
        radial-gradient(110% 90% at 90% 0%, rgba(0, 212, 194, 0.08), transparent 60%),
        radial-gradient(90% 80% at 0% 100%, rgba(0, 107, 139, 0.06), transparent 70%),
        var(--plate);
}
.story-plate-texture { /* pixel dither: fine dot screen + static grain */
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.07) 0.8px, transparent 1.2px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 8px 8px, 160px 160px;
    opacity: 0.32;
    -webkit-mask-image: radial-gradient(130% 110% at 70% 30%, #000 30%, rgba(0, 0, 0, 0.35) 100%);
    mask-image: radial-gradient(130% 110% at 70% 30%, #000 30%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}
.story[data-plate="light"] .story-plate-texture {
    background-image:
        radial-gradient(rgba(29, 30, 72, 0.09) 0.8px, transparent 1.2px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .12 0 0 0 0 .28 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.story-plate-glow { /* teal light that follows the head of the route */
    --gx: 50%;
    --gy: 50%;
    position: absolute;
    inset: 0;
    background: radial-gradient(260px 260px at var(--gx) var(--gy), rgba(0, 212, 194, 0.13), transparent 70%);
    pointer-events: none;
}
.story[data-plate="light"] .story-plate-glow { background: radial-gradient(260px 260px at var(--gx) var(--gy), rgba(0, 212, 194, 0.12), transparent 70%); }

.story-route { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.story-grid-line { fill: none; stroke: var(--grid); stroke-width: 1; }
.story-grid { opacity: 0; transition: opacity 1.2s ease; }
.story-ready .story-grid { opacity: 1; }
.story-track-path { fill: none; stroke: var(--track); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0; transition: opacity 1s ease 0.4s; }
.story-ready .story-track-path { opacity: 1; }
.story-case-seg { fill: none; stroke: var(--route-case); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.story-seg { fill: none; stroke: var(--route); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(0, 212, 194, 0.35)); }
.story[data-plate="light"] .story-case-seg { stroke-width: 8; opacity: 0.9; }
.story[data-plate="light"] .story-seg { stroke-width: 3.5; filter: none; }
.story-tip { fill: #FFFFFF; opacity: 0; transition: opacity 0.2s ease; filter: drop-shadow(0 0 8px rgba(0, 212, 194, 0.9)); }
.story-tip.is-on { opacity: 1; }
.story[data-plate="light"] .story-tip { fill: #006B8B; filter: none; }

.story-pin-ghost { fill: var(--plate); stroke: var(--track); stroke-width: 1.5; }
.story-pin-pop { transform: scale(0); opacity: 0; transition: transform 0.5s var(--ease-back), opacity 0.25s ease; }
.story-pin.is-on .story-pin-pop { transform: scale(1); opacity: 1; }
.story-pin-dot { fill: var(--teal); stroke: var(--pin-ring); stroke-width: 3; transition: transform 0.4s var(--ease-back); }
.story-pin.is-on:not(.is-active) .story-pin-dot { transform: scale(0.82); }
.story-pin-num { fill: var(--navy); font-family: var(--font); font-size: 13px; font-weight: 800; transition: font-size 0.4s; }
.story-pin-pulse { fill: none; stroke: var(--teal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.story-pin.is-active .story-pin-pulse { animation: story-pulse 2.4s var(--ease-out) 0.4s infinite; }
@keyframes story-pulse { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* time axis: the four steps in story order, left to right */
.story-axis-line, .story-axis-head { fill: none; stroke: rgba(209, 211, 212, 0.34); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.story-tick { fill: var(--plate); stroke: rgba(209, 211, 212, 0.55); stroke-width: 1.5; transition: fill 0.4s ease, stroke 0.4s ease; }
.story-tick.is-on { fill: var(--teal); stroke: var(--teal); }
.story-drop { fill: none; stroke: rgba(209, 211, 212, 0.3); stroke-width: 1; stroke-dasharray: 2 5; transition: stroke 0.5s ease; }
.story-drop.is-on { stroke: rgba(0, 212, 194, 0.42); }
.story-leader { fill: none; stroke: rgba(0, 212, 194, 0.5); stroke-width: 1.25; stroke-dasharray: 2 4; stroke-linecap: round; opacity: 0; transition: opacity 0.2s ease; }
.story-leader.is-on { opacity: 1; transition: opacity 0.5s ease 0.25s; }
.story-axis, .story-drops, .story-axis-labels { opacity: 0; transition: opacity 1s ease 0.3s; }
.story-ready .story-axis, .story-ready .story-drops, .story-ready .story-axis-labels { opacity: 1; }
.story-axis-labels { position: absolute; inset: 0; pointer-events: none; }
.story-axis-label {
    position: absolute;
    color: rgba(244, 245, 248, 0.66);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
    transition: color 0.4s ease;
}
.story-axis-label.is-on { color: rgba(244, 245, 248, 0.86); }
.story-axis-label.is-on.is-active { color: var(--teal); }
.story[data-plate="light"] .story-axis-line, .story[data-plate="light"] .story-axis-head { stroke: rgba(29, 30, 72, 0.3); }
.story[data-plate="light"] .story-tick { stroke: rgba(29, 30, 72, 0.4); }
.story[data-plate="light"] .story-tick.is-on { fill: #006B8B; stroke: #006B8B; }
.story[data-plate="light"] .story-drop { stroke: rgba(29, 30, 72, 0.22); }
.story[data-plate="light"] .story-drop.is-on, .story[data-plate="light"] .story-leader { stroke: rgba(0, 107, 139, 0.5); }
.story[data-plate="light"] .story-axis-label { color: rgba(29, 30, 72, 0.68); }
.story[data-plate="light"] .story-axis-label.is-on { color: rgba(29, 30, 72, 0.86); }
.story[data-plate="light"] .story-axis-label.is-on.is-active { color: #006B8B; }

/* callout: the trip's "11 min · 7.9 mi" box, as a floating card */
.story-callout {
    position: absolute;
    top: 32px;
    left: 32px;
    z-index: 3;
    display: grid;
    gap: 8px;
    width: max-content;
    max-width: min(400px, calc(100% - 64px));
    padding: 16px 24px 24px;
    border: 1px solid rgba(0, 212, 194, 0.55);
    border-radius: 18px;
    background: rgba(29, 30, 72, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.story-callout.is-on { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.6s var(--ease-back); }
.story-callout:empty { display: none; }
.story-callout-tag { color: var(--teal); font-size: 1.15rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.story-callout-body { display: grid; gap: 2px; color: var(--ink); font-size: 2.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.story-callout-line.is-symbol { color: var(--teal); font-size: 1.7rem; line-height: 1; }
.story-arrow-wrap { display: inline-flex; vertical-align: 0.06em; margin: 0 0.12em; color: var(--teal); }
.story-arrow { width: 0.95em; height: 0.6em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.story-arrow-both { width: 1.4em; }
.is-symbol .story-arrow { height: 0.9em; stroke-width: 1.8; }
.is-symbol .story-arrow-both { width: 2.2em; }
.story[data-plate="light"] .story-arrow-wrap { color: #006B8B; }
.story-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.story[data-plate="light"] .story-callout { border-color: rgba(0, 212, 194, 0.7); background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 2px rgba(29, 30, 72, 0.08), 0 16px 36px -14px rgba(29, 30, 72, 0.3); }
.story[data-plate="light"] .story-callout-tag { color: #006B8B; }
.story[data-plate="light"] .story-callout-body { color: #1D1E48; }
.story[data-plate="light"] .story-callout-line.is-symbol { color: #006B8B; }

.story-play {
    position: absolute;
    bottom: 24px;
    left: 32px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 16px 0 12px;
    border: 1px solid var(--chip-line);
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--plate-ink);
    font: 700 1.2rem/1 var(--font);
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(8, 9, 30, 0.6);
    transition: border-color 0.2s;
}
.story-play[hidden] { display: none; }
.story-play:hover { border-color: rgba(0, 212, 194, 0.7); }
.story-play:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.story-play-icon { position: relative; width: 10px; height: 10px; }
.story-play-icon::before, .story-play-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 10px; border-radius: 1px; background: currentColor; }
.story-play-icon::before { left: 1px; }
.story-play-icon::after { right: 1px; }
.story-play.is-paused .story-play-icon::before { left: 1px; width: 0; height: 0; border-radius: 0; background: none; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 9px solid currentColor; }
.story-play.is-paused .story-play-icon::after { display: none; }

.story-draft-tag {
    position: absolute;
    right: 32px;
    bottom: 24px;
    z-index: 3;
    display: none;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(21, 22, 58, 0.6);
    color: rgba(244, 245, 248, 0.74);
    font: 800 1.2rem/16px var(--font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.story-js .story-draft-tag { display: block; }
.story[data-plate="light"] .story-draft-tag { background: rgba(29, 30, 72, 0.06); color: rgba(29, 30, 72, 0.7); }

/* ---------- mobile: plate on top (sticky), panel below ---------- */
@media (max-width: 860px) {
    .story-js .story-stage { display: flex; flex-direction: column; height: auto; min-height: 0; }
    .story-js .story-plate { order: -1; position: sticky; top: 0; z-index: 1; flex: none; height: min(52vh, 460px); min-height: 320px; }
    .story-js .story-panel { box-shadow: 0 -18px 40px -24px rgba(8, 9, 30, 0.8); }
    .story-js .story-panel-inner { display: block; height: auto; padding: 32px 0 48px; overflow: visible; }
    .story-js .story-head { padding: 0 24px 24px; }
    .story-js .story-steps-scroll { padding: 0 16px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .story-js .story-step-copy { max-height: none; overflow: visible; }
    .story-title { font-size: 2.8rem; }
    .story-callout { top: 72px; right: 16px; left: 16px; width: auto; max-width: none; padding: 12px 16px 16px; border-radius: 14px; gap: 4px; }
    .story-callout-body { font-size: 1.7rem; }
    .story-callout-line.is-symbol { font-size: 1.4rem; }
    .story-play { bottom: 16px; left: 16px; }
    .story-draft-tag { right: 16px; bottom: 16px; padding: 8px 11px; font-size: 1rem; }
    .story-axis-label { font-size: 1.05rem; letter-spacing: 0.06em; }
    .story-step-body-inner { padding-left: 16px; padding-right: 16px; font-size: 1.6rem; }
    .story-step-progress { left: 16px; right: 16px; }
    .story-js .story-template .story-pill { top: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .story *, .story *::before, .story *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .story-js .story-title, .story-js .story-dateline, .story-js .story-step { opacity: 1; }
    .story-js .story-template .browse-nav, .story-js .story-template .browse-nav-backdrop { transition: none; }
}
