/* =========================================================================
   BIOGEN 21K 2027 — retro-modern race identity
   Red / blue / white. Condensed heavyweight type. No boxes: rhythm comes
   from hairlines, colour bands and scale.
   ========================================================================= */

:root {
  --red:    #E12023;
  --red-2:  #B8151A;
  --blue:   #1A2C4B;
  --blue-2: #12213A;
  --white:  #FFFFFF;
  --grey:   #F2F2F2;
  --grey-2: #E4E6EA;
  --line:   rgba(26,44,75,.14);
  --line-w: rgba(255,255,255,.22);
  --muted:  rgba(26,44,75,.64);
  --muted-w: rgba(255,255,255,.72);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 10px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: .9; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
strong { font-weight: 700; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: var(--white); padding: 12px 18px;
  font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: .08em;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- helpers ---------- */
.wrap { width: min(var(--wrap), 100% - (2 * var(--gutter))); margin-inline: auto; }
.wrap--narrow { width: min(900px, 100% - (2 * var(--gutter))); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: var(--grain); mix-blend-mode: overlay; opacity: .35;
}

/* type scale */
.display, .section__title, .page-hero h1, .hero__title, .card__title, .faq summary, .tl-row__day, .route-card h3, .stub__price, .countdown span {
  font-family: var(--font); font-weight: 900; text-transform: uppercase;
}
.display { font-stretch: 62%; letter-spacing: -.02em; line-height: .88; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 11.5px/1 var(--font); text-transform: uppercase; letter-spacing: .2em;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: repeating-linear-gradient(90deg, var(--red) 0 3px, transparent 3px 5.5px, currentColor 5.5px 8.5px, transparent 8.5px 11px, var(--red) 11px 14px);
}
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg); border-radius: 999px;
  font: 700 13px/1 var(--font); text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red   { --btn-bg: var(--red); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--blue); }
.btn--grey  { --btn-bg: var(--grey); --btn-fg: var(--blue); }
.section--white .btn--white, .page-hero .btn--white { --btn-bg: var(--grey); }
.btn--outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn--outline:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.hero .btn--outline:hover, .section--blue .btn--outline:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 11.5px; }
.btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); color: var(--blue);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 22px; min-height: 92px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: clamp(189px, 21vw, 240px); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 10px 12px;
  font: 600 12.5px/1 var(--font); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; color: var(--blue); white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; }
.nav a.btn { color: var(--btn-fg); }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 42px; padding: 0;
  background: transparent; color: var(--blue); border: 0; border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px; display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 15px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 18px 0 0; }
}

/* ---------- racing stripe mark ---------- */
.stripes {
  height: 14px;
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 5.5px / 100% 3px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 11px / 100% 3px no-repeat;
}
.stripes--w {
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--white), var(--white)) 0 5.5px / 100% 3px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 11px / 100% 3px no-repeat;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--blue); color: var(--white);
  min-height: min(880px, calc(100svh - 92px));
  display: flex; flex-direction: column;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; filter: saturate(1.05);
}
.hero__tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26,44,75,.25) 0%, rgba(26,44,75,0) 30%, rgba(26,44,75,.55) 100%),
    linear-gradient(90deg, rgba(26,44,75,.94) 0%, rgba(26,44,75,.78) 38%, rgba(26,44,75,.30) 72%, rgba(26,44,75,.18) 100%);
}
.hero__inner {
  position: relative; z-index: 3; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; gap: 0;
}
.hero__copy { padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 4vw, 48px); }
.hero .eyebrow { color: var(--white); }
.hero .eyebrow::before {
  background: repeating-linear-gradient(90deg, var(--red) 0 3px, transparent 3px 5.5px, var(--white) 5.5px 8.5px, transparent 8.5px 11px, var(--red) 11px 14px);
}
.hero__title {
  font-size: clamp(88px, 16.5vw, 236px); font-stretch: 62%; font-style: italic;
  line-height: .82; letter-spacing: -.035em;
  margin: 26px 0 18px; text-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.hero__title span { display: block; }
.hero__title .k { color: var(--red); -webkit-text-stroke: 0; }
.hero__sub {
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; font-stretch: 75%; text-transform: uppercase;
  letter-spacing: -.01em; line-height: 1; margin-bottom: 22px;
}
.hero__lead { max-width: 44ch; color: var(--muted-w); font-size: 17px; margin-bottom: 30px; }
.hero__actions { margin-bottom: clamp(30px, 4vw, 54px); }
.hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-w);
}
.hero__facts div { padding: 18px 18px 0 0; }
.hero__facts div + div { padding-left: 18px; border-left: 1px solid var(--line-w); }
.hero__facts span { display: block; font-weight: 900; font-stretch: 62%; font-size: clamp(30px, 3.6vw, 48px); line-height: .9; }
.hero__facts small { display: block; margin-top: 8px; font: 700 10.5px/1.35 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--muted-w); }
.hero__crew {
  position: relative; align-self: end; justify-self: end;
  width: min(118%, 980px); margin-right: -12%; margin-bottom: -1px;
  line-height: 0;
}
.hero__crew img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
@media (max-width: 1000px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 8px; }
  .hero__crew { width: min(100%, 720px); margin: 26px auto 0; justify-self: center; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__facts div:nth-child(n+3) { border-top: 1px solid var(--line-w); margin-top: 14px; padding-top: 16px; }
}

/* hero — video layout (no team image) */
.hero--video .hero__tint {
  background:
    linear-gradient(180deg, rgba(26,44,75,.62) 0%, rgba(26,44,75,.28) 34%, rgba(26,44,75,.55) 62%, rgba(26,44,75,.94) 100%),
    linear-gradient(90deg, rgba(26,44,75,.55) 0%, rgba(26,44,75,0) 60%);
}
.hero--video .hero__inner { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding-top: clamp(48px, 7vw, 96px); }
.hero--video .hero__title {
  font-size: clamp(84px, 20.5vw, 330px); line-height: .8; margin: 22px 0 clamp(22px, 3vw, 44px);
  white-space: nowrap; text-shadow: 0 12px 50px rgba(0,0,0,.4);
}
.hero--video .hero__title span { display: inline; }
.hero--video .hero__title .k { margin-left: .06em; }
.hero--video .eyebrow { align-self: flex-start; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 80px); align-items: end; }
.hero--video .hero__copy { padding: 0; }
.hero--video .hero__facts { padding-bottom: clamp(22px, 3vw, 36px); }
.hero--video .hero__actions { margin-bottom: clamp(28px, 4vw, 48px); }
.hero__row .hero__date {
  margin: 0 0 clamp(28px, 4vw, 48px); padding-top: 16px; border-top: 3px solid var(--red);
  display: flex; align-items: baseline; gap: .28em; white-space: nowrap;
  font-weight: 900; font-stretch: 62%; font-style: italic; text-transform: uppercase;
  font-size: clamp(40px, 5.2vw, 84px); line-height: .85; letter-spacing: -.02em; color: var(--white);
}
.hero__date b { color: var(--red); font-weight: 900; }
@media (max-width: 1000px) {
  .hero--video { min-height: min(760px, calc(100svh - 92px)); }
  .hero--video .hero__copy { padding: 0; }
}
@media (max-width: 760px) {
  .hero--video .hero__title { white-space: normal; font-size: clamp(88px, 30vw, 200px); }
  .hero--video .hero__title span { display: block; }
  .hero--video .hero__title .k { margin-left: 0; }
  .hero__row { grid-template-columns: 1fr; gap: 0; }
  .hero__row .hero__date { order: -1; justify-self: start; margin-bottom: 26px; font-size: clamp(34px, 10.4vw, 56px); }
}

/* ---------- marquee band ---------- */
.marquee { background: var(--red); color: var(--white); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee span {
  font-weight: 900; font-stretch: 62%; font-style: italic; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(42px, 6vw, 84px); line-height: 1; padding: 22px 0; white-space: nowrap;
}
.marquee span::after { content: ""; display: inline-block; width: .22em; height: .22em; margin: 0 .45em; background: var(--white); border-radius: 50%; vertical-align: .22em; }
.marquee--outline span { -webkit-text-stroke: 1.5px var(--white); color: transparent; }
.marquee--outline span:nth-child(odd) { -webkit-text-stroke: 0; color: var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- countdown ---------- */
.scoreboard { background: var(--white); border-bottom: 1px solid var(--line); }
.scoreboard__inner { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr) auto; align-items: center; gap: clamp(20px, 3vw, 48px); padding: clamp(26px, 3vw, 40px) 0; }
.scoreboard__label { font: 700 11.5px/1.5 var(--font); text-transform: uppercase; letter-spacing: .2em; color: var(--red); }
.scoreboard__label b { display: block; color: var(--blue); font-size: 13px; letter-spacing: .1em; margin-top: 6px; }
.countdown { display: flex; }
.countdown div { flex: 1; padding: 0 18px; border-left: 1px solid var(--line); }
.countdown div:first-child { padding-left: 0; border-left: 0; }
.countdown span { display: block; font-stretch: 62%; font-size: clamp(44px, 6vw, 96px); line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown small { display: block; margin-top: 8px; font: 700 10.5px/1 var(--font); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
@media (max-width: 900px) {
  .scoreboard__inner { grid-template-columns: 1fr; gap: 20px; }
  .countdown div { padding: 0 12px; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 128px) 0; }
.section--grey { background: var(--grey); }
.section--blue { background: var(--blue); color: var(--white); }
.section--clip { overflow: hidden; }
.section--blue .eyebrow, .section--blue .section__title { color: var(--white); }
.section--blue .muted { color: var(--muted-w); }
.section--white .eyebrow, .section--grey .eyebrow { color: var(--red); }
.section__head { margin-bottom: clamp(34px, 5vw, 64px); }
.section__head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.section__title { font-stretch: 62%; font-size: clamp(46px, 7.4vw, 112px); line-height: .86; letter-spacing: -.03em; margin: 18px 0 0; }
.section__title .red { color: var(--red); }
.section__lead { font-size: clamp(17px, 1.7vw, 20px); max-width: 58ch; }
.section__head--split .section__lead { margin-bottom: 6px; }
@media (max-width: 860px) { .section__head--split { grid-template-columns: 1fr; gap: 18px; } .section { padding: clamp(56px, 9vw, 128px) 0; } }

/* ---------- editorial grids ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.grid--lines { gap: 0; }
.grid--lines > * { padding: 26px 0; border-top: 1px solid var(--line); }
.section--blue .grid--lines > * { border-color: var(--line-w); }
@media (min-width: 861px) {
  .grid--lines.grid--3 > * { padding-right: 34px; }
  .grid--lines.grid--3 > * + * { padding-left: 34px; border-left: 1px solid var(--line); }
  .section--blue .grid--lines.grid--3 > * + * { border-left-color: var(--line-w); }
}

/* blocks (formerly boxed cards) — now open, hairline-led */
.card { position: relative; padding: 26px 0 0; border-top: 1px solid var(--line); background: transparent; color: inherit; }
.section--blue .card { border-top-color: var(--line-w); }
.card__n { display: block; font: 700 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.card__title { font-stretch: 70%; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; margin-bottom: 14px; }
.card p, .card ul { font-size: 16px; }
.card--panel { padding: clamp(26px, 3vw, 40px); border-top: 0; border-radius: var(--radius); background: var(--grey); }
.card--blue  { padding: clamp(26px, 3vw, 40px); border-top: 0; border-radius: var(--radius); background: var(--blue); color: var(--white); }
.card--red   { padding: clamp(26px, 3vw, 40px); border-top: 0; border-radius: var(--radius); background: var(--red); color: var(--white); }
.card--blue .card__n, .card--red .card__n { color: rgba(255,255,255,.7); }
.card--blue a:not(.btn), .card--red a:not(.btn) { color: var(--white); }
a.card { display: block; text-decoration: none; transition: color .18s ease; }
a.card:hover .card__title { color: var(--red); }

/* numbered perks */
.perk { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.perk:last-child { border-bottom: 1px solid var(--line); }
.perk__icon { font-weight: 900; font-stretch: 62%; font-size: 30px; line-height: 1; color: var(--red); }
.perk p { font-size: 16px; }

/* ---------- price list ---------- */
.stubs { display: block; }
.stub { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.stub:last-child { border-bottom: 1px solid var(--line); }
.stub__label { margin: 0; font-weight: 900; font-stretch: 70%; font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.stub__note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.stub__price { margin: 0; font-stretch: 62%; font-size: clamp(44px, 5vw, 72px); line-height: .85; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 2px; }
.stub__price sup { font-size: .4em; position: relative; top: -.6em; color: var(--red); font-weight: 700; }
.stub--hero .stub__price { color: var(--red); }
.stubs__note { margin: 16px 0 0; font: 700 11px/1.5 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- shirt ---------- */
.shirt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.shirt__frame { position: relative; display: grid; place-items: center; isolation: isolate; }
.shirt__frame::before {
  content: ""; position: absolute; inset: -6% -6%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.07) 0deg 7deg, transparent 7deg 14deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .shirt__frame::before { animation: none; } }
.shirt__frame img { width: min(520px, 100%); filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); }
.shirt__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag { font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .12em; padding: 10px 14px; border: 1px solid currentColor; border-radius: 999px; opacity: .85; }
@media (max-width: 860px) { .shirt { grid-template-columns: 1fr; } }

/* ---------- route / map ---------- */
.map-shell { border-radius: 14px; overflow: hidden; background: var(--grey); }
.map-shell .biogen-route-map { display: block; }
.map-shell .brm-stage { border-radius: 0; box-shadow: none; }
.map-shell .brm-attribution { padding-inline: 14px; }
.map-poster { position: relative; display: grid; place-items: center; min-height: min(62vh, 560px); padding: 40px 24px; text-align: center; background: linear-gradient(#eaf1f3 0%, #f4ecdd 55%, #f6ddc4 100%); }
.route-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(28px, 4vw, 48px); }
.route-card { padding: 26px 0 30px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.route-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.route-card h3 { font-stretch: 70%; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.route-card__dist { font: 700 11px/1 var(--font); letter-spacing: .18em; color: var(--red); text-transform: uppercase; }
.route-card__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- timeline (collection) ---------- */
.timeline { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 200px 150px 1fr auto; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl-row--water { grid-template-columns: 120px 1fr 160px; }
.tl-row__day { font-stretch: 70%; font-size: clamp(22px, 2.4vw, 30px); line-height: 1; letter-spacing: -.01em; }
.tl-row__day small { display: block; font: 700 11px/1.5 var(--font); letter-spacing: .12em; color: var(--red); margin-top: 6px; text-transform: uppercase; }
.tl-row__time { font-weight: 700; font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tl-row__place { font-weight: 600; }
.tl-row__place em { display: block; font-style: normal; font-weight: 400; font-size: 14.5px; color: var(--muted); margin-top: 6px; max-width: 62ch; }
@media (max-width: 780px) {
  .tl-row, .tl-row--water { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .tl-row__day small { display: inline-block; margin-left: 10px; }
  .tl-row__time { font-size: 14px; color: var(--muted); }
  .tl-row > p:last-child { margin-top: 6px; }
}

/* ---------- index list (race-day essentials) ---------- */
.index { border-top: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.2fr) 40px; gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: color .18s ease;
}
.index a:hover { color: var(--red); }
.index__n { font: 700 12px/1 var(--font); letter-spacing: .18em; color: var(--red); }
.index__t { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 52px); line-height: .9; letter-spacing: -.02em; }
.index__d { font-size: 15.5px; color: var(--muted); }
.index a:hover .index__d { color: inherit; }
.index__arrow { font-size: 28px; line-height: 1; text-align: right; transition: transform .18s ease; }
.index a:hover .index__arrow { transform: translateX(6px); }
@media (max-width: 780px) {
  .index a { grid-template-columns: 40px 1fr 28px; gap: 6px 14px; padding: 18px 0; }
  .index__d { grid-column: 2; font-size: 14.5px; }
  .index__arrow { grid-column: 3; grid-row: 1; font-size: 24px; }
}

/* ---------- sponsor grid ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-width: 1px 0; }
.logo-tile { display: grid; place-items: center; min-height: 138px; padding: 26px; background: var(--white); }
.logo-tile img { max-height: 60px; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .18s ease; }
.logo-tile:hover img { transform: scale(1.06); }
@media (max-width: 960px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } .logo-tile { min-height: 112px; padding: 20px; } }
@media (max-width: 520px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } .logo-tile img { max-height: 44px; } }

/* ---------- charities ---------- */
.charity { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.charity__logo { background: var(--white); border-radius: var(--radius); padding: 18px; display: grid; place-items: center; }
.charity__logo img { mix-blend-mode: multiply; }
@media (max-width: 640px) { .charity { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 18px; cursor: pointer; list-style: none;
  padding: 22px 0; font-stretch: 70%; font-size: clamp(20px, 2.4vw, 28px); line-height: 1; letter-spacing: -.01em;
  transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 22px; height: 22px;
  background:
    linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 0 26px; font-size: 16px; max-width: 76ch; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; background: var(--white); color: var(--blue); padding: clamp(46px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero__rays { display: none; }
.page-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.page-hero h1 { font-stretch: 62%; font-size: clamp(60px, 11vw, 168px); line-height: .82; letter-spacing: -.035em; margin: 18px 0 0; }
.page-hero p { max-width: 54ch; font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); margin-bottom: 6px; }
.page-hero .eyebrow { color: var(--red); }
.page-hero .btn-row { margin-top: 24px; }
.crumbs { font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
@media (max-width: 860px) { .page-hero__inner { grid-template-columns: 1fr; } }

/* ---------- prose ---------- */
.prose h2 { font-stretch: 62%; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 64px); line-height: .88; letter-spacing: -.025em; margin: 56px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-stretch: 70%; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); margin: 34px 0 12px; }
.prose p, .prose li { max-width: 72ch; }
.prose ol { counter-reset: item; list-style: none; padding-left: 0; }
.prose ol > li { counter-increment: item; position: relative; padding: 14px 0 14px 64px; margin: 0; border-top: 1px solid var(--line); }
.prose ol > li:last-child { border-bottom: 1px solid var(--line); }
.prose ol > li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-weight: 900; font-stretch: 62%; font-size: 26px; line-height: 1; color: var(--red); }
.prose ol ol { margin: 12px 0 0; }
.prose ol ol > li, .prose ol ol > li:last-child { border: 0; padding: 6px 0 6px 48px; }
.prose ol ol > li::before { content: counters(item, "."); font-size: 16px; top: 9px; color: var(--blue); }
.prose a { color: var(--red); text-underline-offset: 3px; }

.callout { position: relative; padding: 6px 0 6px 28px; margin: 34px 0; border-left: 3px solid var(--red); }
.callout--blue { border-left-color: var(--blue); }
.callout > strong:first-child { display: block; font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 22px; letter-spacing: -.01em; margin-bottom: 8px; }
.callout p { max-width: 68ch; }

/* road chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; padding: 10px 16px; background: var(--grey); border-radius: 999px; font: 600 13.5px/1 var(--font); }
.section--grey .chips li { background: var(--white); }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .16em; }
.field input, .field select, .field textarea {
  font: 400 16px/1.5 var(--font); color: var(--blue); width: 100%;
  padding: 15px 18px; background: var(--white); border: 1px solid var(--grey-2); border-radius: 10px;
  transition: border-color .18s ease;
}
.section--grey .field input, .section--grey .field select, .section--grey .field textarea { border-color: transparent; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); }
.field textarea { min-height: 170px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 10px; padding: 18px 22px; margin-bottom: 26px; font-weight: 600; }
.notice--ok { background: #E4F3E8; color: #1F5B36; }
.notice--bad { background: #FCE4E4; color: #8C1418; }
.notice ul { margin: 8px 0 0; }

/* contact page: form + aside */
.grid--form { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(24px, 3vw, 44px); }
@media (max-width: 860px) { .grid--form { grid-template-columns: 1fr; } }

/* contact strip */
.contact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 32px; }
.contact-strip .card { padding-bottom: 26px; }
.contact-strip a { text-decoration: none; }
.contact-strip .card__title { font-size: clamp(22px, 2vw, 28px); word-break: break-word; }

/* ---------- presented-by band ---------- */
.presented { background: var(--blue); color: var(--white); padding: clamp(34px, 5vw, 56px) 0; border-top: 1px solid var(--line-w); }
.presented__inner { display: grid; justify-items: center; gap: 24px; text-align: center; }
.presented .eyebrow { color: var(--white); }
.presented .eyebrow::before { background: repeating-linear-gradient(90deg, var(--red) 0 3px, transparent 3px 5.5px, var(--white) 5.5px 8.5px, transparent 8.5px 11px, var(--red) 11px 14px); }
.presented__logo { display: block; transition: opacity .18s ease; }
.presented__logo:hover { opacity: .8; }
.presented img { width: min(340px, 70vw); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue); color: var(--white); padding: clamp(48px, 6vw, 80px) 0 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .18em; color: var(--red); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted-w); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--white); }
.site-footer .brand img { width: 240px; margin-bottom: 20px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-w); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font: 600 11px/1.6 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-w); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-column: 1fr; grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
:target { scroll-margin-top: 100px; }

@media print {
  .site-header, .site-footer, .stripes, .btn, .map-shell, .marquee, .hero__video { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- race song player ---------- */
.player { position: fixed; left: 18px; bottom: 18px; z-index: 60; }
.player__btn {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 20px 0 8px;
  background: var(--blue); color: var(--white); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 16px 34px -14px rgba(26,44,75,.7); font: inherit; text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.player__btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(26,44,75,.75); }
.player__icon { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--red); }
.player__icon::before {
  content: ""; position: absolute; left: 15px; top: 12px;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--white);
}
[aria-pressed="true"] .player__icon::before {
  border: 0; left: 13px; top: 12px; width: 12px; height: 14px;
  background: linear-gradient(var(--white), var(--white)) left / 4px 100% no-repeat, linear-gradient(var(--white), var(--white)) right / 4px 100% no-repeat;
}
.player__eq { display: flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.player__eq i { display: block; width: 3px; height: 4px; background: var(--red); border-radius: 1px; }
[aria-pressed="true"] .player__eq i { animation: eq .8s ease-in-out infinite alternate; }
.player__eq i:nth-child(2) { animation-delay: -.25s; }
.player__eq i:nth-child(3) { animation-delay: -.5s; }
.player__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 16px; } }
@media (prefers-reduced-motion: reduce) { [aria-pressed="true"] .player__eq i { animation: none; height: 10px; } }
.player__label small { display: block; font: 700 9.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-w); margin-bottom: 4px; }
.player__label b { display: block; font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 15px; line-height: 1; letter-spacing: -.01em; }
@media (max-width: 480px) { .player { left: 12px; bottom: 12px; } .player__btn { min-height: 50px; padding-right: 16px; } .player__label { display: none; } }

/* ---------- Ask Clarence ---------- */
.clarence { position: fixed; right: 18px; bottom: 18px; z-index: 61; }
.clarence__launch {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 22px 0 66px;
  background: var(--red); color: var(--white); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 16px 34px -14px rgba(225,32,35,.75); font: inherit; text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.clarence__launch:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(225,32,35,.8); }
.clarence__sprite {
  position: absolute; left: 14px; bottom: 6px; width: auto; height: 68px;
  image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35));
  transition: transform .25s cubic-bezier(.2,.7,.2,1); transform-origin: bottom center;
}
.clarence__launch:hover .clarence__sprite { transform: translateY(-3px) rotate(-3deg); }
.clarence__label small { display: block; font: 700 9.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-bottom: 4px; }
.clarence__label b { display: block; font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 16px; line-height: 1; letter-spacing: -.01em; }
.clarence.is-open .clarence__launch { box-shadow: none; }

.clarence__panel {
  position: fixed; right: 18px; bottom: 88px; z-index: 62;
  width: min(400px, calc(100vw - 36px)); height: min(620px, calc(100svh - 120px));
  display: flex; flex-direction: column;
  background: var(--white); color: var(--blue); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(26,44,75,.45), 0 0 0 1px var(--line);
  animation: clarence-in .22s cubic-bezier(.2,.7,.2,1);
}
.clarence__panel[hidden] { display: none; }
@keyframes clarence-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .clarence__panel { animation: none; } }
.clarence__head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--blue); color: var(--white); }
.clarence__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--white); object-fit: cover; flex: none; }
.clarence__who { display: grid; gap: 3px; }
.clarence__who b { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 18px; line-height: 1; letter-spacing: -.01em; }
.clarence__who small { font: 700 10px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-w); }
.clarence__close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.clarence__close:hover { background: var(--red); }
.clarence__log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--grey); overscroll-behavior: contain; }
.clarence__msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.clarence__msg p { margin: 0 0 .6em; }
.clarence__msg p:last-child, .clarence__msg ul:last-child { margin-bottom: 0; }
.clarence__msg ul { margin: 0 0 .6em; padding-left: 1.1em; }
.clarence__msg li { margin-bottom: .25em; }
.clarence__msg a { color: var(--red); }
.clarence__msg--bot { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.clarence__msg--user { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.clarence__msg--typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.clarence__msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: clarence-dot 1s ease-in-out infinite; }
.clarence__msg--typing span:nth-child(2) { animation-delay: .15s; }
.clarence__msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes clarence-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.clarence__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--grey); }
.clarence__chips button { font: 600 12px/1.2 var(--font); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--blue); cursor: pointer; text-align: left; }
.clarence__chips button:hover { border-color: var(--red); color: var(--red); }
.clarence__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 6px; background: var(--grey); }
.clarence__form textarea {
  flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: 12px 14px;
  font: 400 15px/1.4 var(--font); color: var(--blue); background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.clarence__form textarea:focus { outline: 0; border-color: var(--blue); }
.clarence__send { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--red); color: var(--white); cursor: pointer; display: grid; place-items: center; transition: transform .15s ease; }
.clarence__send:hover { transform: scale(1.06); }
.clarence__send:disabled { opacity: .5; cursor: default; transform: none; }
.clarence__send svg { width: 18px; height: 18px; fill: currentColor; }
.clarence__note { margin: 0; padding: 0 16px 12px; background: var(--grey); font: 600 10.5px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .clarence { right: 12px; bottom: 12px; }
  .clarence__launch { min-height: 50px; padding: 0 18px 0 60px; }
  .clarence__sprite { height: 62px; left: 12px; }
  .clarence__label small { display: none; }
  .clarence__panel { right: 0; bottom: 0; left: 0; width: auto; height: min(82svh, 640px); border-radius: 18px 18px 0 0; }
  .clarence.is-open .clarence__launch { visibility: hidden; }
}

/* ---------- follow us (footer) ---------- */
.follow { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.follow__label { font: 700 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-w); }
.follow__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--blue); transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.follow__icon:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.footer-grid .follow__icon { color: var(--blue); }
.footer-grid .follow__icon:hover { color: var(--white); text-decoration: none; }
.follow__icon svg { width: 22px; height: 22px; fill: currentColor; }
.footer-grid .follow + .btn { margin-top: 22px !important; }

/* ---------- "entries opening soon" pop-up ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18,33,58,.72); backdrop-filter: blur(3px); animation: modal-fade .2s ease; }
.modal__panel {
  position: relative; width: min(520px, 100%); padding: clamp(34px, 5vw, 52px) clamp(26px, 5vw, 48px) clamp(30px, 4vw, 44px);
  background: var(--white); color: var(--blue); border-radius: 18px; text-align: center; outline: 0;
  border-top: 8px solid var(--red); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  animation: modal-in .26s cubic-bezier(.2,.7,.2,1);
}
.modal__panel .eyebrow { justify-content: center; color: var(--red); }
.modal__title { margin: 18px 0 14px; font-weight: 900; font-stretch: 62%; font-style: italic; text-transform: uppercase; font-size: clamp(44px, 9vw, 72px); line-height: .86; letter-spacing: -.03em; }
.modal__text { margin: 0 auto 26px; max-width: 30ch; font-size: 18px; color: var(--muted); }
.modal__fb { padding: 0 24px; white-space: nowrap; }
.modal__fb svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 480px) { .modal__fb { padding: 0 18px; font-size: 12px; letter-spacing: .06em; white-space: nowrap; } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--grey); color: var(--blue); font-size: 24px; line-height: 1; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.modal__close:hover { background: var(--red); color: var(--white); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__panel { animation: none; } }
body.modal-open { overflow: hidden; }
