/* =========================================================
   Header, mobile menu, app bar & footer
   ========================================================= */
html { scroll-padding-top: 110px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 3000;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 800;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ---------- announcement bar ---------- */
.announce {
  position: relative; z-index: 905;
  background: linear-gradient(90deg, #d4a63a, #f5d77a 45%, #c8ff3d);
  color: var(--ink); font-size: 13px; font-weight: 700;
}
.announce .container { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.announce-badge {
  flex: none; background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; padding: 3px 9px; border-radius: 6px; text-transform: uppercase;
}
.announce-msgs { position: relative; flex: 1; min-width: 0; height: 22px; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.announce-msgs li {
  position: absolute; inset: 0; display: block; line-height: 22px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(100%); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.announce-msgs li.on { opacity: 1; transform: none; }
.announce-msgs li.out { opacity: 0; transform: translateY(-100%); }
.announce-link { flex: none; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 800; }
.announce-link:hover { text-decoration: underline; }
.announce-link svg { width: 14px; height: 14px; }
.announce-close {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(10,14,31,.12);
  color: var(--ink); cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.announce-close:hover { background: var(--ink); color: var(--lime); }
.announce.closed { display: none; }

/* ---------- floating glass header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900; padding: 14px 0;
  transition: transform .45s var(--ease), padding .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-scrolled { padding: 8px 0; }
.nav-shell {
  display: flex; align-items: center; gap: 18px; height: 72px; padding: 0 10px 0 12px;
  border-radius: 22px;
  background: rgba(18, 24, 49, .55);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px -30px rgba(0,0,0,.9);
  transition: height .35s var(--ease), background .35s;
}
.is-scrolled .nav-shell { height: 62px; background: rgba(10, 14, 31, .88); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { background: var(--white); border-radius: 14px; padding: 4px 8px; display: flex; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.04); }
.brand-logo img { height: 46px; width: auto; transition: height .35s var(--ease); }
.is-scrolled .brand-logo img { height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.brand-text span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--lime); text-transform: uppercase; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.menu { position: relative; display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.04); }
.menu a {
  position: relative; z-index: 1; display: block; padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #c9cfe6; white-space: nowrap; transition: color .25s;
}
.menu a.lit { color: var(--ink); }
.nav-indicator {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: var(--lime); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--white); background: rgba(255,255,255,.03);
  transition: background .25s, color .25s, transform .25s var(--ease); cursor: pointer;
}
.icon-btn:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }
.btn-register {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 14px;
  background: var(--coral); color: var(--white); font-weight: 800; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px -10px var(--coral); transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn-register::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { left: 130%; } }
.btn-register:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.btn-register .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.2s infinite; }

.burger {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; color: var(--white);
}
.burger i { position: absolute; left: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 16px; width: 20px; }
.burger i:nth-child(2) { top: 22px; width: 14px; }
.burger i:nth-child(3) { top: 28px; width: 18px; }
.burger:hover i { width: 20px; }

/* ---------- mobile menu: full-screen drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 1500; visibility: hidden; pointer-events: none; transition: visibility 0s .55s; }
.drawer.open { visibility: visible; pointer-events: auto; transition: none; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(5,7,16,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; gap: 20px; padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(139,92,246,.35), transparent 60%),
    radial-gradient(400px 300px at 0% 100%, rgba(255,75,43,.22), transparent 60%),
    var(--ink);
  border-left: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .55s var(--ease);
}
.drawer-panel > * { flex-shrink: 0; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-head .brand-logo img { height: 40px; }
.drawer-close { font-size: 24px; line-height: 1; }

.drawer-event {
  position: relative; overflow: hidden; border-radius: 20px; padding: 16px 18px;
  background: linear-gradient(135deg, #f5d77a, #d4a63a); color: var(--ink);
}
.drawer-event::after { content: "9.0"; position: absolute; right: -4px; bottom: -28px; font-family: var(--display); font-size: 110px; opacity: .14; }
.drawer-event small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.drawer-event strong { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; text-transform: uppercase; margin: 4px 0 10px; }
.drawer-event .tags { position: relative; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.drawer-event .tags span { background: var(--ink); color: #f5d77a; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

.drawer-nav { list-style: none; margin: 0; padding: 0; counter-reset: dn; }
.drawer-nav li {
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(30px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.drawer.open .drawer-nav li { opacity: 1; transform: none; }
.drawer.open .drawer-nav li:nth-child(1) { transition-delay: .08s; }
.drawer.open .drawer-nav li:nth-child(2) { transition-delay: .12s; }
.drawer.open .drawer-nav li:nth-child(3) { transition-delay: .16s; }
.drawer.open .drawer-nav li:nth-child(4) { transition-delay: .20s; }
.drawer.open .drawer-nav li:nth-child(5) { transition-delay: .24s; }
.drawer.open .drawer-nav li:nth-child(6) { transition-delay: .28s; }
.drawer.open .drawer-nav li:nth-child(7) { transition-delay: .32s; }
.drawer-nav a {
  display: flex; align-items: center; gap: 16px; padding: 13px 4px;
  font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1;
  transition: color .25s, padding .3s var(--ease);
}
.drawer-nav a::before { counter-increment: dn; content: counter(dn, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); width: 22px; }
.drawer-nav a svg { margin-left: auto; width: 20px; height: 20px; opacity: .35; transition: transform .3s var(--ease), opacity .3s; }
.drawer-nav a:hover, .drawer-nav a.lit { color: var(--lime); padding-left: 10px; }
.drawer-nav a:hover svg, .drawer-nav a.lit svg { opacity: 1; transform: translateX(4px); }

.drawer-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: center;
  transition: background .25s, color .25s;
}
.quick svg { width: 22px; height: 22px; color: var(--lime); }
.quick:hover { background: var(--lime); color: var(--ink); }
.quick:hover svg { color: var(--ink); }
.drawer-cta { justify-content: center; width: 100%; }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--muted); font-size: 13px; }

/* ---------- mobile bottom app bar ---------- */
.app-bar { display: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: #070a17; overflow: hidden; }
.finish {
  height: 28px;
  background: conic-gradient(var(--white) 25%, var(--ink) 0 50%, var(--white) 0 75%, var(--ink) 0) 0 0 / 28px 28px;
}
.footer-cta {
  position: relative; margin-top: 70px; border-radius: 30px; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 30px;
  padding: 44px 48px;
  background:
    linear-gradient(100deg, rgba(10,14,31,.96) 35%, rgba(10,14,31,.55)),
    url("../images/2026/bhm-9-banner-night.jpg") center / cover;
  border: 1px solid var(--line);
}
.footer-cta h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4.6vw, 64px); line-height: .95; margin: 10px 0 12px; }
.footer-cta h2 em { font-style: normal; color: var(--lime); }
.footer-cta p { margin: 0; color: #c9cfe6; }
.footer-cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.footer-cta .perks { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.footer-cta .perks span { font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; background: rgba(10,14,31,.5); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 40px; padding: 70px 0 50px; }
.f-brand .brand-logo { display: inline-flex; margin-bottom: 18px; }
.f-brand .brand-logo img { height: 58px; }
.f-brand p { color: var(--muted); font-size: 15px; margin: 0 0 20px; max-width: 340px; }
.f-col h4 {
  margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
  display: flex; align-items: center; gap: 10px;
}
.f-col h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-links a { color: #c9cfe6; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; transition: color .25s, transform .25s var(--ease); }
.f-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .25s; }
.f-links a:hover { color: var(--white); transform: translateX(4px); }
.f-links a:hover::before { background: var(--lime); }
.f-races { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-races li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 15px; color: #c9cfe6; }
.f-races b { color: var(--white); font-family: var(--mono); font-size: 14px; }
.f-contact { display: grid; gap: 14px; }
.f-contact a, .f-contact span { display: flex; gap: 12px; align-items: flex-start; color: #c9cfe6; font-size: 15px; word-break: break-word; }
.f-contact a:hover { color: var(--lime); }
.f-contact svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--lime); }

.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--white); background: rgba(255,255,255,.03);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.social a:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }

.footer-big {
  font-family: var(--display); text-transform: uppercase; white-space: nowrap; user-select: none;
  font-size: clamp(44px, 12.5vw, 200px); line-height: .82; text-align: center; margin-bottom: -0.1em;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.footer-bottom a { color: var(--lime); font-weight: 700; }
.footer-bottom .heart { color: var(--coral); }
.f-top {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent;
  color: var(--white); padding: 8px 14px; border-radius: 999px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.f-top:hover { background: var(--white); color: var(--ink); }
.f-top svg { width: 14px; height: 14px; }

/* ---------- race-day card (BHM 9.0) ---------- */
.raceday .reg-date { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.raceday .offer { display: flex; gap: 8px; flex-wrap: wrap; }
.raceday .offer span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.raceday .offer span.hot { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.raceday .tba { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #dcd2ff; }
.raceday .tba b { color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .brand-text { display: none; }
  .menu a { padding: 9px 12px; font-size: 13.5px; }
}
@media (max-width: 1080px) {
  .main-nav, .nav-actions .hide-md { display: none; }
  .burger { display: block; }
  .nav-shell { justify-content: space-between; }
  .brand-text { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-template-columns: 1fr; padding: 36px 30px; }
  .footer-cta-actions { align-items: flex-start; }
  .footer-cta .perks { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .announce .container { gap: 10px; }
  .announce-link span { display: none; }
  .site-header { padding: 10px 0; }
  .nav-shell { height: 62px; border-radius: 18px; padding: 0 8px; gap: 10px; }
  .brand-logo img { height: 38px; }
  .brand-text strong { font-size: 17px; }
  .brand-text span { font-size: 9.5px; }
  .btn-register { display: none; }

  .float-cta, .to-top { display: none; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .app-bar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 960;
    height: 64px; padding: 0 4px; border-radius: 22px;
    background: rgba(18,24,49,.9); border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.7);
    transition: transform .4s var(--ease);
  }
  .menu-open .app-bar { transform: translateY(140%); }
  .app-bar a, .app-bar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: 64px; color: var(--muted); font: 700 10px var(--body); letter-spacing: .04em; text-transform: uppercase;
    background: none; border: 0; cursor: pointer; transition: color .25s;
  }
  .app-bar svg { width: 21px; height: 21px; }
  .app-bar a.lit { color: var(--lime); }
  .app-bar .fab { color: var(--white); justify-content: flex-end; padding-bottom: 8px; }
  .app-bar .fab .ring {
    width: 56px; height: 56px; margin-top: -34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--coral); color: var(--white); border: 5px solid var(--ink);
    box-shadow: 0 10px 24px -6px var(--coral); animation: ring 2.4s infinite;
  }
  .app-bar .fab .ring svg { width: 22px; height: 22px; }

  .footer-cta { margin-top: 50px; padding: 30px 22px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 50px 0 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer-nav li { opacity: 1; transform: none; }
  .btn-register::after { display: none; }
}

/* ---------- Follow Us card ---------- */
.c-card.follow {
  position: relative; padding: 26px; display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(214, 41, 118, .28), transparent 65%),
    radial-gradient(380px 260px at 0% 100%, rgba(24, 119, 242, .25), transparent 65%),
    var(--ink-2);
}
.follow-head { display: flex; align-items: center; gap: 16px; }
.follow-avatar {
  flex: none; width: 74px; height: 74px; border-radius: 50%; padding: 3px;
  background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  animation: spin 8s linear infinite;
}
.follow-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: var(--white);
  border: 3px solid var(--ink-2); padding: 6px; animation: spin 8s linear infinite reverse;
}
.c-card.follow h3 { margin: 0; }
.follow .handle { margin: 2px 0 0; font-family: var(--mono); font-size: 13px; color: var(--lime); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: 16px; overflow: hidden; }
.ig-tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--ink); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ig-tile span {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--white);
  background: linear-gradient(135deg, rgba(150,47,191,.75), rgba(250,126,30,.75));
  opacity: 0; transition: opacity .35s;
}
.ig-tile span svg { width: 28px; height: 28px; transform: scale(.6); transition: transform .35s var(--ease); }
.ig-tile:hover img { transform: scale(1.1); }
.ig-tile:hover span { opacity: 1; }
.ig-tile:hover span svg { transform: none; }
.follow-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.platform {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; color: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.platform.fb { background: linear-gradient(135deg, #1877f2, #0b4fb3); box-shadow: 0 12px 26px -14px #1877f2; }
.platform.ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); box-shadow: 0 12px 26px -14px #dd2a7b; }
.platform:hover { transform: translateY(-4px); }
.p-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.p-ico svg { width: 20px; height: 20px; }
.p-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.p-text strong { font-size: 15px; font-weight: 800; }
.p-text small { font-size: 12px; opacity: .85; }
.p-go { margin-left: auto; flex: none; }
.p-go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.platform:hover .p-go svg { transform: translate(3px, -3px); }
.follow-tags { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 420px) {
  .follow-platforms { grid-template-columns: 1fr; }
  .c-card.follow { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .follow-avatar, .follow-avatar img { animation: none; } }

/* ---------- Developed By: PACEWALK badge ---------- */
.footer-bottom a.dev-badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: linear-gradient(135deg, #f7b52c, #f59e0b 55%, #ffcf5c);
  color: var(--ink); font-weight: 800;
  box-shadow: 0 10px 30px -10px rgba(247, 181, 44, .8), 0 0 0 1px rgba(255,255,255,.25) inset;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.dev-badge::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite;
}
.footer-bottom a.dev-badge:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px -10px rgba(247, 181, 44, 1); }
.dev-logo { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fdfdfd; box-shadow: 0 0 0 2px rgba(10,14,31,.85); display: grid; place-items: center; overflow: hidden; }
.dev-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .5s var(--ease); }
.dev-badge:hover .dev-logo img { transform: scale(1.12) rotate(-12deg); }
.dev-text { display: flex; flex-direction: column; line-height: 1.05; }
.dev-text small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.dev-text strong { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .06em; }
.dev-badge svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.dev-badge:hover svg { transform: translate(3px, -3px); }
@media (prefers-reduced-motion: reduce) { .dev-badge::after { display: none; } }
@media (min-width: 681px) { .footer-bottom { padding-bottom: 96px; } }
@media (max-width: 680px) {
  .footer-bottom { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .footer-bottom > span:first-child { flex-basis: 100%; }
  .footer-bottom .f-top { margin-left: auto; }
}

/* footer: sitemap link beside copyright */
.footer-bottom .f-sep { margin: 0 6px; opacity: .5; }
.footer-bottom a.f-sitemap { color: #c9cfe6; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(200,255,61,.5); text-underline-offset: 4px; transition: color .25s, text-decoration-color .25s; }
.footer-bottom a.f-sitemap:hover { color: var(--lime); text-decoration-color: var(--lime); }

/* header brand without logo image */
.brand-mark {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--lime); color: var(--ink);
  box-shadow: 0 8px 22px -10px var(--lime);
  transition: transform .4s var(--ease), border-radius .4s var(--ease);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); border-radius: 50%; }
.is-scrolled .brand-mark { width: 40px; height: 40px; }
.site-header .brand-text, .drawer-head .brand-text { display: flex; }
@media (max-width: 1240px) {
  .nav-actions .hide-md { display: none; }
}
@media (max-width: 680px) {
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-mark svg { width: 22px; height: 22px; }
}

/* =========================================================
   Address Info — "Race HQ pass"
   ========================================================= */
.c-card.hq {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(160deg, #d8ff5c, var(--lime) 55%, #a8e01f);
  color: var(--ink); border: 0; overflow: hidden;
}


.hq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hq-tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--lime); padding: 4px 10px; border-radius: 6px; margin-bottom: 8px;
}
.c-card.hq h3 { margin: 0; color: var(--ink); }
.hq-clock { text-align: right; flex: none; }
.hq-clock small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.hq-clock strong { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }

/* mini map */
.hq-map {
  position: relative; display: block; height: 150px; border-radius: 18px; overflow: hidden; color: var(--white);
  background: #0f1530;
  box-shadow: 0 18px 30px -18px rgba(10,14,31,.8);
  transition: transform .35s var(--ease);
}
.hq-map:hover { transform: translateY(-3px); }
.hq-roads {
  position: absolute; inset: 0; opacity: .55;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.18) 47% 49%, transparent 49%),
    linear-gradient(0deg, transparent 58%, rgba(255,255,255,.18) 58% 60%, transparent 60%),
    linear-gradient(35deg, transparent 48%, rgba(255,255,255,.12) 48% 49.5%, transparent 49.5%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px);
}
.hq-route {
  position: absolute; left: 8%; right: 30%; top: 30%; bottom: 22%;
  border: 3px dashed var(--coral); border-left: 0; border-bottom: 0; border-radius: 0 60px 0 0; opacity: .9;
}
.hq-pin {
  position: absolute; right: 26%; top: 18%; width: 38px; height: 38px; display: grid; place-items: center;
  color: var(--ink); background: var(--lime); border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  box-shadow: 0 0 0 0 rgba(200,255,61,.6); animation: hq-ping 2s infinite;
}
.hq-pin svg { width: 20px; height: 20px; transform: rotate(45deg); }
@keyframes hq-ping { 70% { box-shadow: 0 0 0 18px rgba(200,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,61,0); } }
.hq-place { position: absolute; left: 16px; bottom: 14px; display: flex; flex-direction: column; line-height: 1.1; }
.hq-place small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.hq-place strong { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.hq-place em { font-style: normal; font-size: 13px; color: #c9cfe6; }
.hq-dir {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--ink); font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 999px;
}
.hq-dir svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.hq-map:hover .hq-dir svg { transform: translate(2px, -2px); }

/* contact tiles */
.hq-tiles { display: grid; gap: 8px; }
.hq-tile {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 8px; border-radius: 16px;
  background: rgba(10,14,31,.08); transition: background .25s;
}
.hq-tile:hover { background: rgba(10,14,31,.14); }
.hq-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.hq-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--lime); display: grid; place-items: center; transition: transform .3s var(--ease); }
.hq-ico svg { width: 18px; height: 18px; }
.hq-tile:hover .hq-ico { transform: rotate(-8deg); }
.hq-main > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hq-main small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.hq-main strong { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-card.hq .hq-copy {
  flex: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.c-card.hq .hq-copy:hover { background: var(--ink); color: var(--lime); }
.c-card.hq .hq-copy.done { background: var(--ink); color: var(--lime); }

/* perforation */
.hq-perf { position: relative; height: 0; border-top: 3px dashed rgba(10,14,31,.3); margin: 4px 6px; }
/* ticket notches, aligned to the tear line */
.hq-perf::before, .hq-perf::after {
  content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink);
}
.hq-perf::before { left: -44px; }
.hq-perf::after { right: -44px; }

/* social chips */
.hq-social small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-bottom: 8px; }
.hq-chips { display: flex; flex-direction: column; gap: 6px; }
.hq-chips a {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink);
  padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--white); word-break: break-all;
  transition: transform .3s var(--ease), background .25s;
}
.hq-chips a svg { flex: none; width: 16px; height: 16px; color: var(--lime); }
.hq-chips a:hover { transform: translateX(4px); background: #1b2347; }
@media (prefers-reduced-motion: reduce) { .hq-pin { animation: none; } }

/* Race HQ ticket stub */
.hq-stub {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 4px 4px 6px; color: var(--ink);
}
.hq-stub > span:first-child { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hq-stub small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.hq-stub strong { font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.hq-stub-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--lime); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  transition: background .25s, color .25s;
}
.hq-stub-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.hq-stub:hover .hq-stub-btn { background: var(--coral); color: var(--white); }
.hq-stub:hover .hq-stub-btn svg { transform: translateX(3px); }

/* only one back-to-top at a time */
.to-top.show.at-footer { opacity: 0; pointer-events: none; }

/* =========================================================
   Floating Register — compact spinning badge
   ========================================================= */
.float-cta {
  width: 84px; height: 84px; padding: 0; gap: 0; border-radius: 50%;
  display: grid; place-items: center; right: 22px; bottom: 22px;
  background: radial-gradient(circle at 30% 25%, #ff7a5c, var(--coral) 60%, #d9361b);
  box-shadow: 0 14px 34px -10px var(--coral), 0 0 0 4px rgba(10,14,31,.85);
  font-size: 0; letter-spacing: 0; text-transform: none;
}
.float-cta .fc-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: var(--white); font: 800 9.5px var(--mono); letter-spacing: .5px;
  animation: spin 9s linear infinite;
}
.float-cta .fc-core {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  transition: transform .35s var(--ease);
}
.float-cta .fc-core svg { width: 22px; height: 22px; }
.float-cta .fc-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%;
  white-space: nowrap; background: var(--ink); color: var(--white); border: 1px solid var(--line);
  font: 800 12px var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 10px;
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.float-cta:hover { background: radial-gradient(circle at 30% 25%, #ff7a5c, var(--coral) 60%, #d9361b); transform: translateY(-3px) scale(1.05); }
.float-cta:hover .fc-core { transform: scale(1.1) rotate(-10deg); }
.float-cta:hover .fc-ring { animation-duration: 3s; }
.float-cta:hover .fc-tip, .float-cta:focus-visible .fc-tip { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .float-cta .fc-ring { animation: none; } }
@media (max-width: 680px) { .float-cta { display: none; } }

/* =========================================================
   Footer v3 — organised 5-column layout
   ========================================================= */
.footer-grid.fx {
  grid-template-columns: 1.5fr .8fr .8fr 1.15fr 1.25fr; gap: 36px;
  padding: 64px 0 44px; position: relative;
}
.fx h4 {
  margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
  display: flex; align-items: center; gap: 10px;
}
.fx h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* brand */
.fx-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.fx-mark { display: inline-flex; align-items: center; gap: 12px; }
.fx-mark .brand-mark { width: 52px; height: 52px; border-radius: 16px; }
.fx-mark .brand-mark svg { width: 28px; height: 28px; }
.fx-word { display: flex; flex-direction: column; line-height: 1.05; }
.fx-word strong { font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; letter-spacing: .02em; }
.fx-word span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--lime); text-transform: uppercase; }
.fx-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(200,255,61,.1); border: 1px solid rgba(200,255,61,.35); color: var(--lime);
  font-size: 12.5px; font-weight: 800; letter-spacing: .03em; transition: background .25s, color .25s;
}
.fx-live svg { width: 14px; height: 14px; }
.fx-live:hover { background: var(--lime); color: var(--ink); }
.fx-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.2s infinite; }
.fx-brand p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 330px; }

/* link groups */
.f-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 0;
  color: #c9cfe6; font-weight: 600; font-size: 15px; transition: color .25s, transform .3s var(--ease);
}
.f-nav a::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); transition: width .3s var(--ease), background .25s; }
.f-nav a:hover, .f-nav a[aria-current="page"] { color: var(--white); transform: translateX(3px); }
.f-nav a:hover::before, .f-nav a[aria-current="page"]::before { width: 22px; background: var(--lime); }

/* race bibs */
.fx-bibs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-bibs a {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 12px; border-radius: 14px;
  background: var(--white); color: var(--ink); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.fx-bibs a::before, .fx-bibs a::after { content: ""; position: absolute; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #070a17; }
.fx-bibs a::before { left: 7px; }
.fx-bibs a::after { right: 7px; }
.fx-bibs b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.fx-bibs b small { font-family: var(--mono); font-size: 10px; margin-left: 3px; color: #6a7190; }
.fx-bibs span { font-size: 12px; font-weight: 800; color: #5b6280; text-transform: uppercase; letter-spacing: .04em; }
.fx-bibs em { position: absolute; right: 10px; bottom: 10px; font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 12px; background: var(--coral); color: var(--white); padding: 2px 7px; border-radius: 6px; }
.fx-bibs li:nth-child(2) a { background: var(--lime); }
.fx-bibs a:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 16px 30px -18px rgba(200,255,61,.7); }

/* contact stack */
.fx-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-contact a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #e3e7f5; font-size: 14px; font-weight: 700;
  transition: border-color .25s, background .25s, transform .3s var(--ease);
}
.fx-contact a > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; word-break: break-word; }
.fx-contact small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fx-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(200,255,61,.12); color: var(--lime); transition: background .25s, color .25s; }
.fx-ico svg { width: 16px; height: 16px; }
.fx-contact a:hover { border-color: var(--lime); background: rgba(200,255,61,.06); transform: translateX(3px); }
.fx-contact a:hover .fx-ico { background: var(--lime); color: var(--ink); }

@media (max-width: 1240px) {
  .footer-grid.fx { grid-template-columns: 1.3fr 1fr 1fr; }
  .fx-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 28px; }
  .fx-brand p { grid-column: 1 / -1; max-width: 640px; }
}
@media (max-width: 1080px) {
  .footer-grid.fx { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .footer-grid.fx { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding: 48px 0 30px; }
  .fx-brand { display: flex; }
  .fx-brand, .fx-col:nth-child(4), .fx-col:nth-child(5) { grid-column: 1 / -1; }
}
.fx-bibs em { position: static; align-self: flex-start; margin-top: 6px; }
.fx-bibs span { line-height: 1.25; }
/* footer without the big wordmark: keep a clean divider above the bottom bar */
.footer-grid.fx + .footer-bottom, .site-footer .container + .footer-bottom { border-top: 1px solid var(--line); }

/* footer race bibs v2 — slim full-width rows (distance | label | price) */
.fx-bibs { grid-template-columns: 1fr; gap: 8px; }
.fx-bibs a {
  flex-direction: row; align-items: center; gap: 12px;
  padding: 10px 12px 10px 22px; border-radius: 12px;
}
.fx-bibs a::before, .fx-bibs a::after { top: 50%; translate: 0 -50%; width: 6px; height: 6px; }
.fx-bibs a::before { left: 8px; }
.fx-bibs a::after { display: none; }
.fx-bibs b { flex: none; width: 74px; font-size: 26px; display: flex; align-items: baseline; }
.fx-bibs b small { font-size: 10px; margin-left: 3px; }
.fx-bibs span { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-bibs em { position: static; flex: none; margin: 0; align-self: center; font-size: 12.5px; padding: 4px 9px; }
.fx-bibs a:hover { transform: translateX(4px); }
@media (max-width: 680px) { .fx-bibs { grid-template-columns: 1fr 1fr; } .fx-bibs b { width: auto; } .fx-bibs a { flex-wrap: wrap; row-gap: 4px; } .fx-bibs span { flex-basis: 100%; order: 3; } }

/* audit fix: let contact cards shrink on phones (long email pushed Copy off-screen) */
.contact-grid > *, .hq-tiles, .hq-tile { min-width: 0; }
@media (max-width: 420px) {
  .c-card.hq { padding: 20px 16px; }
  .hq-main strong { font-size: 14px; }
  .c-card.hq .hq-copy { padding: 6px 10px; }
}
