/* ================================================
   Asfalt — Standard Kids Birthday Theme
   A race-day birthday on night asphalt.
   Palette: asphalt · road yellow · race red · white
   Fonts:   Barlow Condensed italic (display / name) + Barlow (body)
   Style:   Road-sign photo frame, a glossy side-view car parked on a kerb
            stripe, the party plan laid out as a route.
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --asphalt:      #1b1c21;
    --asphalt-alt:  #23252b;
    --asphalt-deep: #101114;
    --panel:        rgba(14, 15, 18, .84);
    --red:          #d62828;
    --red-deep:     #9c1a1a;
    --white:        #ffffff;
    --ink:          #f4f2ea;
    --text:         #cfd2da;
    --muted:        #9a9ea9;
    --border:       rgba(255, 255, 255, .13);
    --accent-color: #f5c518;
    --radius:       14px;
    --btn-radius:   10px;

    --ff-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    --ff-body:    'Barlow', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --kerb: repeating-linear-gradient(90deg, var(--red) 0 24px, var(--white) 24px 48px);

    --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .35);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    color: var(--text);
    background: var(--asphalt);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-color); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

/* ── Containers ─────────────────────────────── */
.ba-container     { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.ba-container--sm { max-width: 680px; }

/* Alternating section backgrounds, computed from what actually renders. */
.ba-alt-sections > * { background: var(--asphalt); }
.ba-alt-sections > *:nth-child(even) { background: var(--asphalt-alt); }

.ba-alt-sections .ba-countdown,
.ba-alt-sections .ba-audio,
.ba-alt-sections .ba-story,
.ba-alt-sections .ba-gallery,
.ba-alt-sections .ba-program,
.ba-alt-sections .ba-dress-code,
.ba-alt-sections .ba-good-to-know,
.ba-alt-sections .ba-location,
.ba-alt-sections .ba-accommodation,
.ba-alt-sections .ba-gallery-upload,
.ba-alt-sections .ba-guest-wall,
.ba-alt-sections .ba-album,
.ba-alt-sections .ba-closing,
.ba-alt-sections .ba-rsvp {
    padding: 4.5rem 1rem;
}

/* ── Section helpers ─────────────────────────── */
.ba-section-title {
    position: relative;
    font-family: var(--ff-display);
    font-style: italic;
    font-size: clamp(1.9rem, 5vw, 2.7rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--ink);
    text-align: center;
    line-height: 1.1;
    padding-bottom: 1.15rem;
    margin-bottom: 1.1rem;
}
.ba-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 6px;
    background: var(--kerb);
    background-size: 12px 6px;
}

.ba-eyebrow {
    font-family: var(--ff-body);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: .45rem;
}

/* ── Floating topbar ─────────────────────────── */
.ba-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.ba-topbar__brand {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.35rem;
    color: var(--white);
}
@media (min-width: 601px) {
    .ba-topbar.scrolled {
        background: color-mix(in srgb, var(--asphalt-deep) 88%, transparent);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 0 var(--border);
    }
}
.ba-topbar__links { display: flex; gap: 1.6rem; margin-left: auto; }
.ba-topbar__links a {
    position: relative;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--white);
    padding-bottom: .2rem;
}
.ba-topbar__links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}
.ba-topbar__links a:hover { color: var(--white); }
.ba-topbar__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.ba-topbar__toggle { display: none; }

@media (max-width: 600px) {
    .ba-topbar__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 2.4rem;
        height: 2.4rem;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--panel);
        cursor: pointer;
        margin-left: auto;
    }
    .ba-topbar__toggle span {
        display: block;
        width: 17px;
        height: 2px;
        margin: 0 auto;
        background: var(--white);
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
    }
    .ba-topbar__toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .ba-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .ba-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .ba-topbar__links {
        position: absolute;
        top: calc(100% + .5rem);
        right: 1.1rem;
        left: 1.1rem;
        flex-direction: column;
        gap: 0;
        background: var(--asphalt-deep);
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--card-shadow);
        padding: .35rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .ba-topbar__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .ba-topbar__links a { padding: .75rem .85rem; border-radius: 8px; }
    .ba-topbar__links a:hover { background: var(--asphalt-alt); }
    .ba-topbar__links a::after { display: none; }
}

/* Demo-only Basic/Standard switch + close + cart — shared look, positioned here. */
.dpb-switch, .dpb-fab { position: fixed; bottom: 1rem; z-index: 9999; }
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}

/* The demo colour-picker panel is a white surface; its label ink must be dark (this theme's --ink is light). */
html .dcp { --dcp-ink: #1b1c21; }

/* ── Kerb stripe (hero foot + footer head) ───── */
.ba-kerb {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 22px;
    background: var(--kerb);
    z-index: 3;
}

/* ── Hero (pattern A: road-sign photo + text on a dark panel) ── */
.ba-hero {
    position: relative;
    padding: 7.5rem 0 5.5rem;
    background:
        linear-gradient(180deg, rgba(10, 10, 14, .55), rgba(10, 10, 14, .15) 40%, rgba(10, 10, 14, .55)),
        url('road.jpg') center / cover no-repeat,
        var(--asphalt);
    overflow: hidden;
}
.ba-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 2rem;
}

.ba-hero__panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.4rem 1.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
    z-index: 3;
}

.ba-hero__media {
    position: relative;
    width: 13.2rem;
    height: 13.2rem;
    margin: 0 auto .4rem;
}
.ba-hero__sign {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9.4rem;
    height: 9.4rem;
    margin: -4.7rem 0 0 -4.7rem;
    transform: rotate(45deg);
    border-radius: 1.1rem;
    overflow: hidden;
    background: var(--accent-color);
    border: 5px solid #14141a;
    box-shadow: 0 0 0 4px var(--accent-color), 0 16px 30px rgba(0, 0, 0, .55);
}
.ba-hero__img,
.ba-hero__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transform: rotate(-45deg) scale(1.5);
}
.ba-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    background: linear-gradient(150deg, #3a3d46, #23252b);
}
.ba-hero__roundel {
    position: absolute;
    right: -.2rem;
    top: .9rem;
    width: 4.3rem;
    height: 4.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, #ff6a5c, var(--red) 55%, var(--red-deep));
    border: 3px solid var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .5), inset 0 -4px 8px rgba(0, 0, 0, .25);
    transform: rotate(-6deg);
    z-index: 3;
}
.ba-hero__roundel-num {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--white);
}

.ba-hero__eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: .2rem;
}
.ba-hero__name {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(3.4rem, 10vw, 5rem);
    line-height: .95;
    color: var(--accent-color);
}
.ba-hero__tagline {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: clamp(1.1rem, 3.4vw, 1.4rem);
    color: var(--white);
    margin: .2rem 0 .9rem;
}
.ba-hero__date {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: var(--white);
}
.ba-hero__date span {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.ba-hero__date b {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    padding: 0 .85rem;
    border-inline: 2px solid rgba(255, 255, 255, .3);
    font-variant-numeric: lining-nums;
}
.ba-hero__meta {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    margin-top: .5rem;
    font-size: .95rem;
    color: var(--text);
}
.ba-hero__meta strong { color: var(--accent-color); font-size: 1rem; }

.ba-hero__stage { position: relative; z-index: 2; align-self: end; }
.ba-hero__ride {
    position: relative;
    width: min(100%, 34rem);
    margin-left: auto;
}
.ba-hero__car {
    position: relative;
    width: 100%;
    filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .55));
    z-index: 2;
}
/* drive-in extras: only shown when motion is allowed (see the animation block) */
.ba-hero__speed,
.ba-hero__dust { display: none; }
.ba-hero__shadow {
    position: absolute;
    left: 8%;
    right: 2%;
    bottom: 5%;
    height: 7%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
    filter: blur(3px);
}

/* The car drives in from the left and brakes to a stop: fast at first, a long
   ease-out, and a small nose-dip as it settles. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .ba-hero:not(.ba-hero--print) .ba-hero__stage {
        animation: ba-drive-in 2.1s cubic-bezier(.12, .78, .22, 1) .25s both;
    }
    .ba-hero:not(.ba-hero--print) .ba-hero__car {
        transform-origin: 50% 90%;
        animation: ba-brake 2.1s ease-out .25s both;
    }

    /* speed streaks trail behind the car, then fade as it slows */
    .ba-hero__speed {
        display: block;
        position: absolute;
        right: 94%;
        bottom: 14%;
        width: 46%;
        height: 40%;
        z-index: 1;
        animation: ba-streak 2.1s linear .25s both;
    }
    .ba-hero__speed i {
        position: absolute;
        right: 0;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(270deg, rgba(255, 255, 255, .7), transparent);
    }
    .ba-hero__speed i:nth-child(1) { top: 14%; width: 100%; }
    .ba-hero__speed i:nth-child(2) { top: 50%; width: 72%; }
    .ba-hero__speed i:nth-child(3) { top: 84%; width: 88%; }

    /* a puff of dust at the rear tyre as it brakes */
    .ba-hero__dust {
        display: block;
        position: absolute;
        left: 4%;
        bottom: 2%;
        width: 22%;
        height: 16%;
        z-index: 3;
        pointer-events: none;
    }
    .ba-hero__dust i {
        position: absolute;
        bottom: 0;
        width: 46%;
        aspect-ratio: 1;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(226, 220, 208, .55), rgba(226, 220, 208, 0) 68%);
        opacity: 0;
        animation: ba-puff 1.15s ease-out both;
    }
    .ba-hero__dust i:nth-child(1) { left: 20%; animation-delay: 1.15s; }
    .ba-hero__dust i:nth-child(2) { left: 0;   animation-delay: 1.3s; }
    .ba-hero__dust i:nth-child(3) { left: 40%; animation-delay: 1.42s; }
}
@keyframes ba-streak {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    52%  { opacity: .8; }
    78%  { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes ba-puff {
    0%   { opacity: 0;  transform: translate(0, 0) scale(.3); }
    30%  { opacity: .9; }
    100% { opacity: 0;  transform: translate(-70%, -45%) scale(1.9); }
}
@keyframes ba-drive-in {
    from { transform: translateX(-110vw); }
    to   { transform: translateX(0); }
}
@keyframes ba-brake {
    0%, 55% { transform: rotate(0); }
    78%     { transform: rotate(1.4deg); }
    100%    { transform: rotate(0); }
}

@media (max-width: 760px) {
    .ba-hero { padding: 5.4rem 0 3.6rem; }
    .ba-hero__inner { grid-template-columns: 1fr; gap: 1rem; }
    .ba-hero__media { width: 11.6rem; height: 11.6rem; }
    .ba-hero__sign { width: 8.2rem; height: 8.2rem; margin: -4.1rem 0 0 -4.1rem; }
    .ba-hero__roundel { width: 3.8rem; height: 3.8rem; top: .6rem; }
    .ba-hero__roundel-num { font-size: 2.3rem; }
    .ba-hero__stage { max-width: 20rem; margin: 0 auto; }
    .ba-hero__ride { margin: 0 auto; }
}

/* ── Note ──────────────────────────────────── */
.ba-note { background: var(--asphalt); padding: 4.25rem 1rem; }
.ba-note__card {
    position: relative;
    background: var(--asphalt-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}
.ba-note__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--kerb);
    background-size: 12px 6px;
}
.ba-note__text {
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--ink);
    line-height: 1.7;
}

/* ── Countdown (traffic lights) ─────────────── */
.ba-countdown { text-align: center; }
.ba-lights {
    display: inline-flex;
    gap: .5rem;
    padding: .45rem .7rem;
    margin-bottom: 1rem;
    border-radius: 99px;
    background: var(--asphalt-deep);
    border: 1px solid var(--border);
}
.ba-lights i { width: .8rem; height: .8rem; border-radius: 50%; display: block; }
.ba-lights i:nth-child(1) { background: #e5483f; box-shadow: 0 0 10px #e5483f; }
.ba-lights i:nth-child(2) { background: #f5c518; box-shadow: 0 0 10px #f5c518; }
.ba-lights i:nth-child(3) { background: #3fbf6a; box-shadow: 0 0 10px #3fbf6a; }

.ba-countdown__timer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.6rem;
}
.ba-countdown__unit {
    min-width: 5.2rem;
    background: var(--asphalt-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem .75rem;
    box-shadow: var(--card-shadow);
}
.ba-countdown__number {
    display: block;
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 800;
    color: var(--accent-color);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.ba-countdown__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Story — kilometre posts + dashcam photos ── */
.ba-alt-sections > * { --ba-bg: var(--asphalt); }
.ba-alt-sections > *:nth-child(even) { --ba-bg: var(--asphalt-alt); }

.ba-story { text-align: center; }
.ba-story__intro { max-width: 34rem; margin: .4rem auto 0; color: var(--text); }

/* base layout: one rail on the left (phones) */
.ba-trail { position: relative; max-width: 42rem; margin: 2.4rem auto 0; text-align: left; }
.ba-trail::before {
    content: '';
    position: absolute;
    top: .5rem;
    bottom: .5rem;
    left: .7rem;
    border-left: 3px dashed color-mix(in srgb, var(--accent-color) 72%, transparent);
}
.ba-stop { position: relative; padding-left: 2.5rem; margin-bottom: 2rem; }
.ba-stop:last-child { margin-bottom: 0; }
.ba-stop::before {
    content: '';
    position: absolute;
    left: .3rem;
    top: 1.1rem;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background: var(--accent-color);
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px var(--ba-bg), 0 0 0 5px color-mix(in srgb, var(--accent-color) 60%, transparent);
}
.ba-stop__mark { margin-bottom: .5rem; }
.ba-stop__mark:empty { display: none; }
.ba-milepost {
    display: inline-block;
    background: #0c6b47;
    color: #fff;
    border-radius: 8px;
    padding: .45rem .8rem;
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.1;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #0c6b47, 0 6px 14px rgba(0, 0, 0, .4);
}
.ba-stop__card {
    background: var(--asphalt-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.ba-stop__body { padding: 1rem 1.15rem 1.15rem; }
.ba-stop__title {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: .3rem;
}
.ba-stop__desc { font-size: .93rem; line-height: 1.6; color: var(--text); }

/* dashcam frame */
.ba-cam { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.ba-cam img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(.95); }
.ba-cam__vf {
    position: absolute;
    inset: 10px;
    pointer-events: none;
    opacity: .85;
    background-repeat: no-repeat;
    background-image:
        linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
        linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
    background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
    background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px;
}
.ba-cam__rec,
.ba-cam__ts {
    position: absolute;
    top: 16px;
    font: 700 .7rem/1 ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .1em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.ba-cam__rec { left: 20px; display: flex; align-items: center; gap: .4rem; }
.ba-cam__rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; display: block; }
.ba-cam__ts { right: 20px; }
.ba-cam__cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.6rem 1.25rem .7rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
    .ba-cam__rec i { animation: ba-rec 1.3s steps(2, jump-none) infinite; }
}
@keyframes ba-rec { to { opacity: .15; } }

/* wide screens: cards alternate either side of the centre line, the milepost sits on it */
@media (min-width: 720px) {
    .ba-trail { max-width: 49rem; }
    .ba-trail::before { left: 50%; margin-left: -1.5px; }
    .ba-stop {
        display: grid;
        grid-template-columns: 1fr 7.75rem 1fr;
        align-items: start;
        padding-left: 0;
        margin-bottom: 2.1rem;
    }
    .ba-stop::before { display: none; }
    .ba-stop__mark {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: center;
        margin: .4rem 0 0;
        position: relative;
        z-index: 1;
    }
    .ba-stop__mark:empty { display: flex; }
    .ba-stop__mark:empty::before {
        content: '';
        width: 13px;
        height: 13px;
        margin-top: .5rem;
        border-radius: 3px;
        background: var(--accent-color);
        transform: rotate(45deg);
        box-shadow: 0 0 0 3px var(--ba-bg), 0 0 0 5px color-mix(in srgb, var(--accent-color) 60%, transparent);
    }
    .ba-milepost { max-width: 7rem; text-align: center; }
    .ba-stop__card { grid-row: 1; }
    .ba-stop:nth-child(odd) .ba-stop__card { grid-column: 1; margin-right: .9rem; }
    .ba-stop:nth-child(even) .ba-stop__card { grid-column: 3; margin-left: .9rem; }
}

/* ── Party plan — the route ────────────────── */
.ba-program { text-align: center; }
.ba-timeline {
    margin: 1.75rem auto 0;
    max-width: 26rem;
    text-align: left;
    border-left: 3px dashed color-mix(in srgb, var(--accent-color) 75%, transparent);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.ba-tl-item { position: relative; display: flex; gap: 1rem; }
.ba-tl-item::before {
    content: '';
    position: absolute;
    left: -2.62rem;
    top: .45rem;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background: var(--accent-color);
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px var(--asphalt), 0 0 0 5px color-mix(in srgb, var(--accent-color) 60%, transparent);
}
.ba-alt-sections > *:nth-child(even) .ba-tl-item::before { box-shadow: 0 0 0 3px var(--asphalt-alt), 0 0 0 5px color-mix(in srgb, var(--accent-color) 60%, transparent); }
.ba-tl-time {
    flex-shrink: 0;
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--accent-color);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    min-width: 3.6rem;
}
.ba-tl-label { font-weight: 700; color: var(--ink); }
.ba-tl-loc { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.ba-tl-loc a { margin-left: .35rem; font-weight: 700; }

/* ── Map — highway sign + dashboard screen ─── */
.ba-location { text-align: center; }
.ba-roadsign {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    margin: 1.4rem 0 1.6rem;
    padding: 1.15rem 1.4rem;
    border-radius: 14px;
    background: #0c6b47;
    color: #fff;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #0c6b47, 0 14px 28px rgba(0, 0, 0, .45);
}
.ba-roadsign__text { flex: 1; min-width: 0; padding-left: .35rem; }
.ba-roadsign__name {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.4rem, 4.4vw, 1.9rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.ba-roadsign__addr { font-size: .95rem; line-height: 1.4; margin-top: .25rem; opacity: .92; }
.ba-roadsign__arrow { flex: none; width: 2.6rem; height: 2.6rem; color: #fff; }

.ba-map {
    position: relative;
    border: 9px solid #0b0c0f;
    border-radius: 22px;
    overflow: hidden;
    background: #0b0c0f;
    box-shadow: 0 0 0 1px var(--border), var(--card-shadow);
    margin-bottom: 1.6rem;
}
.ba-map::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 38%);
}
.ba-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── Good to know — service board ──────────── */
.ba-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
    text-align: left;
}
.ba-info__card {
    position: relative;
    background: var(--asphalt-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.7rem 1.4rem 1.4rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.ba-info__haz {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: repeating-linear-gradient(-45deg, var(--accent-color) 0 10px, #14141a 10px 20px);
}
.ba-info__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.ba-info__gauge {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background: conic-gradient(from 225deg, var(--accent-color) 0 270deg, rgba(255, 255, 255, .14) 0);
}
.ba-info__gauge::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--asphalt-alt);
}
.ba-info__icon { position: relative; width: 1.45rem; height: 1.45rem; color: var(--accent-color); }
.ba-info__title {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--ink);
}
.ba-info__text { font-size: .93rem; line-height: 1.6; color: var(--text); }

/* ── Guest wall — names on licence plates ───── */
.ba-wishes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    text-align: left;
}
.ba-wishes__grid--single { grid-template-columns: minmax(250px, 360px); justify-content: center; }
.ba-wish {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.1rem;
    background: var(--asphalt-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.4rem 1.2rem;
    box-shadow: var(--card-shadow);
}
.ba-wish__text {
    font-size: .98rem;
    line-height: 1.6;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ba-plate {
    align-self: flex-start;
    display: flex;
    align-items: stretch;
    max-width: 100%;
    background: #fff;
    border: 2px solid #14141a;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 3px 0 #14141a;
}
.ba-plate i { flex: none; width: 1rem; background: #1f4fa3; }
.ba-plate b {
    min-width: 0;
    padding: .2rem .8rem;
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: .03em;
    color: #14141a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Album / closing ───────────────────────── */
.ba-album { text-align: center; }
.ba-album__sub { color: var(--muted); margin-bottom: 1.5rem; }
.ba-closing { text-align: center; }
.ba-closing__text {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.4rem;
    color: var(--ink);
}

/* ── Buttons ───────────────────────────────── */
.ba-btn {
    display: inline-block;
    background: var(--accent-color, #f5c518);
    color: #14141a !important;
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .8rem 2.2rem;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0 color-mix(in srgb, var(--accent-color, #f5c518) 55%, #000),
        0 12px 24px rgba(0, 0, 0, .4);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.ba-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 color-mix(in srgb, var(--accent-color, #f5c518) 55%, #000),
        0 16px 28px rgba(0, 0, 0, .45);
    text-decoration: none;
}
.ba-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent-color, #f5c518) 55%, #000); }

/* ── Footer ────────────────────────────────── */
.ba-footer {
    background: var(--asphalt-deep);
    color: rgba(255, 255, 255, .9);
    text-align: center;
    padding: 0 1.25rem 3.25rem;
}
.ba-kerb--footer {
    position: static;
    margin: 0 -1.25rem 3rem;
    height: 18px;
}
.ba-footer__name {
    display: block;
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2.3rem;
    color: var(--accent-color);
}
.ba-footer__date {
    margin-top: .35rem;
    font-size: .95rem;
    letter-spacing: .06em;
    font-variant-numeric: lining-nums;
}
.ba-footer__venue { font-size: .88rem; color: var(--muted); margin-top: .15rem; }
.ba-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.6rem;
}
.ba-footer__cal-icon { width: 1.05rem; height: 1.05rem; }

/* ── RSVP — the finish line ─────────────────── */
.ba-alt-sections .ba-rsvp .rsvp-layout-wrap {
    max-width: 32rem;
    margin: 2.25rem auto 0;
    background: var(--asphalt-deep);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.6rem 1.5rem 1.8rem;
    box-shadow: var(--card-shadow);
    text-align: left;
    position: relative;
}
.ba-alt-sections .ba-rsvp .rsvp-layout-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    border-radius: 18px 18px 0 0;
    background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 16px 16px;
}
.ba-alt-sections .ba-rsvp .rsvp-layout-wrap > :first-child { margin-top: .6rem; }

.ba-alt-sections .ba-rsvp .form__group input,
.ba-alt-sections .ba-rsvp .form__group select,
.ba-alt-sections .ba-rsvp .form__group textarea,
.ba-alt-sections .ba-rsvp .rsvp-stepper {
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    border-color: var(--border);
    color: var(--ink);
}
.ba-alt-sections .ba-rsvp .form__group label { color: var(--ink); font-weight: 600; }

/* ── Shared-component tone tweaks ──────────── */
.ba-gallery .gg-item {
    border: 2px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}
.ba-gallery-upload { text-align: center; }
.ba-gallery-upload .gu-desc {
    text-align: center;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
    .ba-alt-sections .ba-countdown,
    .ba-alt-sections .ba-audio,
    .ba-alt-sections .ba-story,
    .ba-alt-sections .ba-gallery,
    .ba-alt-sections .ba-program,
    .ba-alt-sections .ba-dress-code,
    .ba-alt-sections .ba-good-to-know,
    .ba-alt-sections .ba-location,
    .ba-alt-sections .ba-accommodation,
    .ba-alt-sections .ba-gallery-upload,
    .ba-alt-sections .ba-guest-wall,
    .ba-alt-sections .ba-album,
    .ba-alt-sections .ba-closing,
    .ba-alt-sections .ba-rsvp {
        padding: 3.5rem 1rem;
    }
    .ba-countdown__timer { gap: .6rem; }
    .ba-countdown__unit { min-width: 4.4rem; padding: .9rem .4rem; }
}
