/* ============================================================
   1440Sports — Event Guide
   Built on the Mission Control editorial system (dark register).
   Rules honoured from docs/style-guide.md:
   • tokens only, never raw hex
   • 2px editorial-sharp radius on cards/buttons, 999 on pills
   • flat surfaces — hairline borders, no card shadows
   • Montserrat throughout; gold eyebrow + 2px×32 gold rule
   ============================================================ */

/* ── Layout primitives ───────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--bg-2); }
.section + .section { border-top: 1px solid var(--line); }

/* Editorial section header: gold rule + eyebrow, then big title */
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.section-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.section-intro {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
}

/* ── Card primitive ──────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: var(--sp-base);
}
.card--tight { padding: var(--sp-tight); }

/* ── Icon chip ───────────────────────────────────── */
.icon { width: 18px; height: 18px; stroke-width: 1.6; }
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--card-radius);
  background: var(--gold-softer-bg);
  border: 1px solid var(--tone-gold-line);
  color: var(--gold);
  flex: none;
}
.icon-chip .icon { width: 20px; height: 20px; }

/* ── Pills / badges ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--pill-radius);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tone-gold-bg);
  border: 1px solid var(--tone-gold-line);
  color: var(--gold);
}
.badge--cyan { background: var(--tone-cyan-bg); border-color: var(--tone-cyan-line); color: var(--aveva); }
.badge--live { background: var(--tone-live-bg); border-color: var(--tone-live-line); color: var(--live); }
.badge--live .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--live);
  box-shadow: 0 0 0 0 var(--live);
  animation: livePulse 1.8s var(--ease) infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(91,192,190,0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(91,192,190,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,192,190,0); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 240ms var(--ease), border-color 240ms var(--ease),
              backdrop-filter 240ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 14, 36, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  border-radius: var(--card-radius);
  transition: color 120ms ease, background 120ms ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--gold); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--card-radius);
}
.hamburger span {
  height: 1.5px; width: 100%;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 240ms var(--ease), opacity 160ms ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(11,14,36,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms var(--ease), border-color 280ms var(--ease);
}
.mobile-menu.open { max-height: 80vh; overflow-y: auto; border-bottom-color: var(--line); }
.mobile-menu a {
  display: block;
  padding: 15px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center 30%;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,36,0.55) 0%, rgba(11,14,36,0.72) 45%, rgba(11,14,36,0.97) 100%),
    radial-gradient(120% 80% at 18% 20%, rgba(11,14,36,0.30), transparent 60%);
}
.hero-eyebrow {
  display: flex; flex-direction: column; gap: 3px;
  margin-bottom: clamp(20px, 3vw, 30px);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow .sub { color: var(--fg-2); letter-spacing: 0.14em; }
.hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 8.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--fg);
  text-wrap: balance;
}
.hero h1 .accent { color: var(--gold); }
.hero h1 .line { display: block; }
.hero-sub {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--fg-2);
  font-weight: 400;
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 22px;
  font-size: 12.5px; color: var(--fg-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--gold); width: 15px; height: 15px; }
.hero-meta .sep { width: 1px; height: 13px; background: var(--line-2); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 1;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3);
}
.scroll-cue .mouse {
  width: 22px; height: 34px; border: 1px solid var(--line-2);
  border-radius: 999px; position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 3px; height: 6px; border-radius: 999px; background: var(--gold);
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 10px); }
  100% { opacity: 0; }
}

/* ============================================================
   WELCOME + stat cards
   ============================================================ */
.welcome-copy p {
  margin: 0 0 16px;
  font-size: 15px; line-height: 1.7; color: var(--fg-2);
  max-width: 64ch;
}
.welcome-copy p:last-child { margin-bottom: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}
.stat-card { display: flex; flex-direction: column; gap: 14px; }
.stat-card .label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
}
.stat-card .value { font-size: 14px; font-weight: 500; color: var(--fg); line-height: 1.35; }

/* ============================================================
   AGENDA timeline
   ============================================================ */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 62px;
  width: 1px; background: var(--line-2);
}
.agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  padding: 14px 0;
}
.agenda-time {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500; color: var(--gold);
  text-align: right; padding-top: 2px;
  letter-spacing: -0.02em;
}
.agenda-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 14px 18px;
}
/* node on the spine */
.agenda-content::before {
  content: ""; position: absolute; left: -22px; top: 18px;
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--bg); border: 2px solid var(--gold);
  transform: translateX(-50%);
}
.agenda-title { font-size: 14px; font-weight: 600; color: var(--fg); }
.agenda-note { margin-top: 4px; font-size: 12.5px; color: var(--fg-2); line-height: 1.5; }
.agenda-content .badge { margin-top: 10px; }

/* ============================================================
   TICKET / SEAT
   ============================================================ */
.ticket {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  overflow: hidden;
}
.ticket-main { padding: clamp(24px, 4vw, 36px); }
.ticket-type-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px;
}
.ticket-type-name {
  font-size: clamp(20px, 3vw, 26px); font-weight: 500;
  letter-spacing: -0.02em; color: var(--fg);
}
.ticket-desc { margin: 16px 0 0; font-size: 14px; line-height: 1.7; color: var(--fg-2); }
.ticket-features {
  border-left: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 2px;
}
.ticket-features .label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px;
}
.feature {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 13px; color: var(--fg-2);
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: none; }
.feature .icon { color: var(--gold); width: 16px; height: 16px; margin-top: 2px; flex: none; }

/* ── Location cards (live in the Transport section) ── */
.locations-block { margin-top: clamp(28px, 4vw, 40px); }
.group-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px;
}
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.loc-card { display: flex; flex-direction: column; gap: 12px; }
.loc-head { display: flex; align-items: center; gap: 12px; }
.loc-name { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.loc-venue { font-size: 17px; font-weight: 600; color: var(--fg); }
.loc-addr { font-size: 13px; color: var(--fg-2); line-height: 1.55; }
.loc-link {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-top: 2px; padding: 8px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--tone-gold-line);
  border-radius: var(--card-radius);
  background: var(--gold-softer-bg);
  transition: background 120ms ease, border-color 120ms ease;
}
.loc-link:hover { background: var(--gold-soft-bg); border-color: var(--gold); }
.loc-link .icon { width: 14px; height: 14px; }

/* ============================================================
   TRANSPORT
   ============================================================ */
.transport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.transport-card { display: flex; flex-direction: column; gap: 14px; }
.transport-card .t-title { font-size: 15px; font-weight: 600; color: var(--fg); }
.transport-card .t-body { font-size: 13px; line-height: 1.6; color: var(--fg-2); }
.transport-card .t-body strong { color: var(--gold); font-weight: 600; }
.note-strip {
  margin-top: 16px;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--gold-softer-bg);
  border: 1px solid var(--tone-gold-line);
  border-radius: var(--card-radius);
  font-size: 13px; line-height: 1.6; color: var(--fg-2);
}
.note-strip .icon { color: var(--gold); flex: none; margin-top: 1px; }
.note-strip strong { color: var(--fg); font-weight: 600; }

/* ============================================================
   WEATHER
   ============================================================ */
.weather-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.weather-updated { font-size: 11px; color: var(--fg-3); }
.weather-block { margin-top: 24px; }
.weather-sublabel {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 14px;
}
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.weather-day {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 16px 12px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.weather-day.race-day { border-color: var(--tone-gold-line); background: var(--gold-softer-bg); }
.race-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 2px 9px; border-radius: var(--pill-radius);
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gold); color: var(--navy); white-space: nowrap;
}
.w-day-name { font-size: 12px; font-weight: 600; color: var(--fg); }
.w-day-date { font-size: 10.5px; color: var(--fg-3); }
.w-icon { color: var(--gold); margin: 6px 0 2px; }
.w-icon svg { width: 34px; height: 34px; stroke-width: 1.5; }
.w-temp { display: flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.w-hi { font-size: 18px; font-weight: 600; color: var(--fg); }
.w-lo { font-size: 13px; color: var(--fg-3); }
.w-precip { font-size: 11px; color: var(--aveva); display: inline-flex; align-items: center; gap: 4px; }
.w-cond { font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.w-placeholder {
  max-width: 280px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--card-radius); padding: 24px; text-align: center;
}
.w-placeholder .w-icon { display: inline-flex; justify-content: center; }
.w-placeholder .pt { font-size: 14px; font-weight: 600; color: var(--fg); margin-top: 8px; }
.w-placeholder .px { font-size: 12.5px; color: var(--fg-2); line-height: 1.6; margin-top: 6px; }
.w-placeholder strong { color: var(--fg); }
.weather-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 24px; padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--card-radius);
  font-size: 12px; line-height: 1.6; color: var(--fg-3);
}
.weather-note .icon { color: var(--gold); flex: none; margin-top: 1px; width: 16px; height: 16px; }
.weather-loading { display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 13px; padding: 20px 0; }
.spinner {
  width: 16px; height: 16px; border-radius: 999px;
  border: 2px solid var(--line-2); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   DRESS CODE
   ============================================================ */
.dress-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.dress-card { display: flex; flex-direction: column; gap: 12px; }
.dress-card .d-title { font-size: 14px; font-weight: 600; color: var(--fg); }
.dress-card .d-body { font-size: 12.5px; line-height: 1.6; color: var(--fg-2); }
.mclaren-note {
  margin-top: 16px;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px;
  background: var(--tone-mclaren-bg);
  border: 1px solid var(--tone-mclaren-line);
  border-radius: var(--card-radius);
}
.mclaren-note .icon-chip {
  background: var(--tone-mclaren-bg); border-color: var(--tone-mclaren-line); color: var(--mclaren);
}
.mclaren-note .m-body { font-size: 13.5px; line-height: 1.65; color: var(--fg-2); }
.mclaren-note .m-body strong { color: var(--mclaren); font-weight: 600; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 28px 22px;
}
.contact-avatar {
  width: 84px; height: 84px; border-radius: 999px; overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold); background: var(--gold-softer-bg);
}
.contact-name { font-size: 16px; font-weight: 600; color: var(--fg); }
.contact-role { font-size: 12px; color: var(--fg-2); line-height: 1.4; max-width: 24ch; }
.contact-company { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.contact-wa {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 9px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--fg);
  background: var(--tone-ok-bg);
  border: 1px solid var(--tone-ok-line);
  border-radius: var(--pill-radius);
  transition: background 120ms ease;
}
.contact-wa:hover { background: rgba(91,192,143,0.18); }
.contact-wa .icon { color: var(--ok); width: 15px; height: 15px; }

.partners {
  display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 56px);
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.partners img { height: 34px; width: auto; opacity: 0.92; }
.partners .partner-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); width: 100%; text-align: center; margin-bottom: -8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; margin-bottom: 28px; }
.footer-nav a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--fg-3);
  padding: 6px 10px; border-radius: var(--card-radius);
  transition: color 120ms ease;
}
.footer-nav a:hover { color: var(--gold); }
.footer-title { text-align: center; font-size: 15px; font-weight: 600; color: var(--fg); }
.footer-title .accent { color: var(--gold); }
.footer-event { text-align: center; font-size: 12px; color: var(--fg-3); margin-top: 6px; }
.footer-copy { text-align: center; font-size: 11px; color: var(--fg-4); margin-top: 20px; }

/* ============================================================
   Scroll-reveal animation (IntersectionObserver toggles .visible)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dress-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket { grid-template-columns: 1fr; }
  .ticket-features { border-left: none; border-top: 1px solid var(--line); }
  .locations { grid-template-columns: 1fr; }
  .transport-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 90svh; }
}

@media (max-width: 480px) {
  .stat-grid, .dress-grid { grid-template-columns: 1fr; }
  .agenda-item { grid-template-columns: 50px 1fr; gap: 16px; }
  .timeline::before { left: 50px; }
}
