/* ==========================================================================
   Back Bay Ball — Master Stylesheet
   Palette: Midnight Base (#0B1519), Deep Slate (#162930), Brand Teal (#42717F),
            Champagne Gold (#F4A261), Burnished Amber (#D9823B), Warm Ivory (#F7F4EE)
   ========================================================================== */

:root {
    /* Core Palette */
    --bg-midnight:      #0B1519;
    --bg-slate:         #162930;
    --bg-slate-hover:   #1C333C;
    --brand-teal:       #42717F;
    --brand-teal-deep:  #2B4D57;
    --brand-gold:       #F4A261;
    --brand-amber:      #D9823B;
    --brand-gold-soft:  #F8C291;

    /* Text & Surfaces */
    --text-ivory:       #F7F4EE;
    --text-mist:        #A9BCC2;
    --text-muted:       #7B929A;
    --ivory-surface:    #F7F4EE;
    --ivory-card:       #FFFFFF;
    --ivory-ink:        #101E24;
    --ivory-ink-muted:  #465A62;

    /* Borders & Lighting */
    --border-gold:      rgba(244, 162, 97, 0.28);
    --border-gold-strong: rgba(244, 162, 97, 0.58);
    --border-teal:      rgba(66, 113, 127, 0.35);
    --border-subtle:    rgba(247, 244, 238, 0.09);
    --glow-gold:        0 10px 30px rgba(244, 162, 97, 0.18);
    --shadow-card:      0 18px 44px rgba(3, 8, 10, 0.42);

    /* Typography */
    --font-display:     'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout & Motion */
    --container-max:    1200px;
    --container-narrow: 860px;
    --header-height:    82px;
    --radius-sm:        4px;
    --radius-md:        8px;
    --radius-lg:        14px;
    --ease:             cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg-midnight);
    color: var(--text-ivory);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-is-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand-gold);
    text-decoration: none;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

a:hover {
    color: var(--brand-gold-soft);
}

h1, h2, h3, h4 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    color: var(--text-ivory);
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1rem;
    color: var(--text-mist);
}

p:last-child {
    margin-bottom: 0;
}

[hidden] {
    display: none !important;
}

/* Accessible Focus & Skip Link */
:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--brand-gold);
    color: var(--bg-midnight);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 1rem;
}

/* ==========================================================================
   Layout & Reusable Section Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
    padding-block: clamp(4rem, 7vw, 6.5rem);
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-surface {
    background-color: var(--bg-slate);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* Warm Ivory Editorial Break (ideal for Menu & print-inspired sections) */
.section-ivory {
    background-color: var(--ivory-surface);
    color: var(--ivory-ink);
}

.section-ivory h1,
.section-ivory h2,
.section-ivory h3,
.section-ivory h4 {
    color: var(--ivory-ink);
}

.section-ivory p {
    color: var(--ivory-ink-muted);
}

.section-ivory .eyebrow {
    color: var(--brand-teal-deep);
}

.section-ivory .eyebrow::before {
    background-color: var(--brand-amber);
}

/* Eyebrow & Section Headers */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-gold);
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background-color: var(--brand-gold);
}

.section-header {
    max-width: 720px;
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-header.is-centered {
    margin-inline: auto;
    text-align: center;
}

.section-header.is-centered .eyebrow::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background-color: var(--brand-gold);
}

.section-lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.75;
}

.divider-gold {
    width: 100%;
    height: 1px;
    border: 0;
    margin: 2.25rem 0;
    background: linear-gradient(90deg, transparent, var(--border-gold-strong), transparent);
}

/* Inner Page Hero (Shared across Menu, Venue, FAQ, Sponsors, Contact, Terms) */
.page-hero {
    padding-top: calc(var(--header-height) + clamp(3.5rem, 6vw, 5.5rem));
    padding-bottom: clamp(3rem, 5vw, 4.5rem);
    background:
        radial-gradient(circle at 80% 10%, rgba(66, 113, 127, 0.26), transparent 52%),
        radial-gradient(circle at 15% 85%, rgba(244, 162, 97, 0.10), transparent 48%),
        var(--bg-midnight);
    border-bottom: 1px solid var(--border-gold);
    text-align: center;
}

.page-hero .container-narrow > .eyebrow::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background-color: var(--brand-gold);
}

.page-hero-lead {
    max-width: 640px;
    margin: 1rem auto 0;
    font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}

/* Reusable Grids & Cards */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: linear-gradient(180deg, rgba(22, 41, 48, 0.92), rgba(15, 29, 35, 0.96));
    border: 1px solid var(--border-teal);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
}

.card-gold {
    border-color: var(--border-gold-strong);
    box-shadow: var(--glow-gold);
}

/* Subtle Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.85rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-gold {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #EA944E 55%, var(--brand-amber) 100%);
    color: var(--bg-midnight);
    box-shadow: 0 8px 24px rgba(244, 162, 97, 0.22);
}

.btn-gold:hover {
    color: var(--bg-midnight);
    background: linear-gradient(135deg, var(--brand-gold-soft) 0%, var(--brand-gold) 65%, var(--brand-amber) 100%);
    box-shadow: 0 12px 30px rgba(244, 162, 97, 0.34);
}

.btn-outline-gold {
    background: transparent;
    border-color: var(--border-gold-strong);
    color: var(--text-ivory);
}

.btn-outline-gold:hover {
    background: rgba(244, 162, 97, 0.12);
    border-color: var(--brand-gold);
    color: var(--brand-gold-soft);
}

.btn-teal {
    background-color: var(--brand-teal);
    color: var(--text-ivory);
}

.btn-teal:hover {
    background-color: #4E8392;
    color: var(--text-ivory);
}

.btn-sm {
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1.05rem 2.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Brand Lockup (includes/logo.php)
   ========================================================================== */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-ivory);
}

.brand-lockup:hover {
    color: var(--text-ivory);
}

.brand-crest {
    flex-shrink: 0;
    transition: transform 0.35s var(--ease);
}

.brand-lockup:hover .brand-crest {
    transform: scale(1.04);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-ivory);
}

.brand-sub {
    margin-top: 0.2rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-gold);
}

/* ==========================================================================
   Sticky Header & Mobile Drawer (includes/header.php)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(11, 21, 25, 0.92) 0%, rgba(11, 21, 25, 0.72) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(244, 162, 97, 0.14);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(11, 21, 25, 0.96);
    border-bottom-color: var(--border-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.primary-nav {
    margin-left: auto;
    margin-right: 1.25rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    padding-block: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mist);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: var(--brand-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text-ivory);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    background: rgba(22, 41, 48, 0.75);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-ivory);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Slide-Down Drawer */
.mobile-drawer {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(11, 21, 25, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.mobile-drawer-inner {
    padding-block: 1.5rem 2rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-ivory);
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link.is-active,
.mobile-nav-link:hover {
    color: var(--brand-gold);
}

/* Mobile Sticky Bottom Conversion Bar */
.mobile-ticket-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(11, 21, 25, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-gold);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}

.mobile-ticket-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mobile-ticket-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-ivory);
}

.mobile-ticket-sub {
    font-size: 0.72rem;
    color: var(--brand-gold);
}

/* ==========================================================================
   Dynamic Percentage FOMO Slider (includes/fomo-slider.php)
   ========================================================================== */
.fomo-band {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(180deg, var(--bg-midnight) 0%, #0F1E24 100%);
}

.fomo-card {
    background:
        radial-gradient(circle at 95% 0%, rgba(244, 162, 97, 0.12), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(66, 113, 127, 0.22), transparent 50%),
        var(--bg-slate);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    box-shadow: var(--shadow-card);
}

.fomo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.fomo-title {
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    margin-bottom: 0;
}

.fomo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: rgba(11, 21, 25, 0.7);
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-mist);
    white-space: nowrap;
}

.fomo-status-pill strong {
    color: var(--brand-gold);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-gold);
    box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.7);
    animation: pulse-gold 2.2s infinite;
}

@keyframes pulse-gold {
    0%   { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.65); }
    70%  { box-shadow: 0 0 0 9px rgba(244, 162, 97, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0); }
}

.fomo-track-wrap {
    margin-bottom: 2rem;
}

.fomo-track {
    position: relative;
    height: 10px;
    background: rgba(11, 21, 25, 0.85);
    border: 1px solid var(--border-teal);
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.fomo-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-gold) 70%, var(--brand-gold-soft) 100%);
    transition: width 0.8s var(--ease);
}

.fomo-marker {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--text-ivory);
    border: 3px solid var(--brand-gold);
    box-shadow: 0 0 18px rgba(244, 162, 97, 0.7);
}

.fomo-milestones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.fomo-step {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    background: rgba(11, 21, 25, 0.42);
    border: 1px solid transparent;
    transition: border-color 0.25s var(--ease);
}

.fomo-step.is-reached .step-pct {
    color: var(--text-ivory);
}

.fomo-step.is-current {
    background: rgba(244, 162, 97, 0.1);
    border-color: var(--border-gold-strong);
}

.fomo-step.is-current .step-pct {
    color: var(--brand-gold);
}

.step-pct {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-muted);
}

.step-name {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mist);
}

.fomo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.fomo-urgency-note {
    font-size: 0.95rem;
    color: var(--text-mist);
}

.fomo-urgency-note strong {
    color: var(--text-ivory);
}

/* ==========================================================================
   Site Footer (includes/footer.php)
   ========================================================================== */
.site-footer {
    background-color: #070E11;
    border-top: 1px solid var(--border-gold);
    padding-top: clamp(3.5rem, 6vw, 5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.85fr 1.15fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-tagline {
    margin-top: 1.15rem;
    max-width: 340px;
    font-size: 0.95rem;
    color: var(--text-mist);
}

.footer-age-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-teal);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-gold);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-gold);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--text-mist);
}

.footer-links a:hover {
    color: var(--brand-gold);
}

.footer-address {
    font-style: normal;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-mist);
}

.footer-address strong {
    color: var(--text-ivory);
    font-weight: 600;
}

.footer-address span {
    display: inline-block;
    margin-top: 0.45rem;
    color: var(--brand-gold-soft);
    font-weight: 500;
}

.footer-cta-wrap {
    margin-top: 1.25rem;
}

/* Bottom Copyright & Legal Bar */
.footer-legal {
    border-top: 1px solid var(--border-subtle);
    padding-block: 1.35rem;
    background-color: #050A0C;
}

.footer-legal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.copyright a {
    color: var(--text-mist);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.copyright a:hover {
    color: var(--brand-gold);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.legal-links a:hover {
    color: var(--brand-gold);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
    .primary-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .fomo-header,
    .fomo-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }

    .header-actions .btn {
        display: none; /* Handled cleanly by mobile drawer + sticky bottom bar */
    }

    .mobile-ticket-bar {
        display: flex;
    }

    .site-footer {
        padding-bottom: 4.75rem; /* Prevent sticky mobile bar from overlapping legal links */
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .fomo-milestones {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-legal-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.2rem;
    }

    .brand-sub {
        font-size: 0.58rem;
        letter-spacing: 0.16em;
    }

    .brand-crest svg {
        width: 36px;
        height: 36px;
    }
}

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .status-dot {
        animation: none;
    }
}

/* Inner Page Hero (Supports per-page background via --page-hero-bg) */
.page-hero {
    position: relative;
    padding-top: calc(var(--header-height) + clamp(4rem, 7vw, 6.25rem));
    padding-bottom: clamp(3.5rem, 6vw, 5.25rem);
    background:
        linear-gradient(180deg, rgba(11, 21, 25, 0.78) 0%, rgba(11, 21, 25, 0.68) 55%, var(--bg-midnight) 100%),
        radial-gradient(circle at 80% 10%, rgba(66, 113, 127, 0.28), transparent 52%),
        radial-gradient(circle at 15% 85%, rgba(244, 162, 97, 0.14), transparent 48%),
        var(--page-hero-bg, none) center / cover no-repeat,
        var(--bg-midnight);
    border-bottom: 1px solid var(--border-gold);
    text-align: center;
    overflow: hidden;
}

.page-hero .container-narrow {
    position: relative;
    z-index: 1;
}