:root {
  color-scheme: light;
  --ink: #101010;
  --navy: #1a1a1a;
  --blue: #292929;
  --accent: #d3163e;
  --accent-light: #ed3e61;
  --ice: #f2f2f2;
  --white: #fff;
  --muted: #595959;
  --rule: #dddddd;
  --body: Roboto, Arial, sans-serif;
  --header-height: 75px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 14px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 600 1rem/1.65 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
b, strong { font-weight: inherit; }
h1, h2, h3, .race-stats dt, .timer strong, .waves dd, .prize-value { font-weight: 700; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #767676; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--accent); }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
h1, h2, h3 { font-family: var(--body); line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2.55rem, 5.1vw, 4.85rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.5rem, 2.55vw, 2.15rem); letter-spacing: -.025em; }
h2 em, h1 em { font-style: inherit; }
.wrap { width: min(100% - clamp(2.5rem, 9.3vw, 9rem), 1312px); margin-inline: auto; }
.section { padding-block: clamp(4.25rem, 8vw, 8rem); }
.eyebrow { font-size: .76rem; letter-spacing: .115em; text-transform: uppercase; }
.section-heading { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-heading p { margin-top: .8rem; color: var(--muted); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 8; padding: .75rem 1rem; background: var(--accent); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 3.3rem;
  padding: .65rem 1.35rem;
  border: 1px solid transparent;
  background: transparent;
  font-size: .85rem;
 
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .055em;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button span { font-size: 1.12rem; line-height: 1; }
.button--accent { background: var(--accent); color: var(--ink); }
.button--accent:hover { background: white; }
.button--navy { background: var(--ink); color: white; }
.button--navy:hover { background: #404040; }
.button:disabled { cursor: default; opacity: .65; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--ink); color: white; border-bottom: 1px solid #ffffff22; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 3rem); min-height: calc(var(--header-height) - 1px); }
.brand { display: inline-block; width: clamp(8.5rem, 13vw, 11.25rem); flex: none; }
.brand img { filter: brightness(0) invert(1); }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.75rem, 1.6vw, 1.6rem); margin-left: auto; }
.site-nav a { color: #f1f1f1; font-size: .8rem; white-space: nowrap; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
.button--header { min-height: 2.65rem; padding-inline: .9rem; border-color: var(--accent); color: var(--accent); gap: .8rem; font-size: .73rem; }
.button--header:hover { background: var(--accent); color: var(--ink); }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: white; }
.hero-image, .hero-shade { position: absolute; z-index: -1; inset: 0; }
.hero-image { left: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade {
  background: linear-gradient(90deg, #101010 0 20%, #101010eb 30%, #101010a8 43%, #10101025 59%, transparent 72%),
              linear-gradient(0deg, #1010101c, transparent 55%);
}
.hero-layout { min-height: clamp(36rem, 45vw, 45rem); display: grid; align-items: center; }
.hero-content { padding-block: clamp(3.4rem, 6vw, 6rem); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; color: #e8e8e8; }
.flag { width: 1.4rem; height: .69rem; margin-right: .17rem; background: repeating-linear-gradient(116deg, var(--accent) 0 4px, transparent 4px 7px); transform: skewX(-10deg); }
.meta-dot { color: var(--accent); }
.hero h1 {
  width: fit-content;
  margin: 1.15rem 0 1.45rem;
  font-size: clamp(4rem, 7vw, 7.3rem);
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: nowrap;
}
.hero h1 em { display: inline-block; margin-top: .04em; color: var(--accent-light); }
.hero-copy { color: #e8e8e8; font-size: clamp(1rem, 1.7vw, 1.25rem); }
.hero-copy strong { color: white; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem clamp(1rem, 2.8vw, 2.4rem); margin-top: 1.5rem; }
.hero-more, .text-link { display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; text-underline-offset: .22em; }
.hero-more:hover { color: var(--accent); }
.hero-more span, .text-link span { font-size: 1.05em; }

.race-strip { border-block: 1px solid var(--rule); background: #fff0f3; }
.race-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.race-stats div { padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(.9rem, 3.3vw, 3rem); border-right: 1px solid #edc8d2; }
.race-stats div:first-child { padding-left: 0; }
.race-stats div:last-child { border-right: 0; padding-right: 0; }
.race-stats dt { font-size: clamp(1.85rem, 3.65vw, 3.55rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.race-stats dt span { font-size: .66em; }
.race-stats dd { margin: .43rem 0 0; font-size: clamp(.67rem, 1.25vw, .89rem); line-height: 1.35; }

.about { background: #fafafa; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-copy h2 { margin-bottom: 1.25rem; font-size: clamp(2.7rem, 5.45vw, 5.15rem); }
.about-copy p + p { margin-top: .85rem; }
.about-copy p { color: #454545; }
.about-copy p strong, .about-copy .lead { color: var(--ink); }
.lead { margin-bottom: .85rem; font-size: clamp(1.13rem, 2vw, 1.46rem); line-height: 1.35; }
.about-prizes { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.6fr); align-items: start; gap: clamp(1.5rem, 4vw, 4.5rem); margin-top: clamp(1.8rem, 4vw, 3.75rem); padding: clamp(1.4rem, 3.4vw, 3rem); border-top: 3px solid var(--accent); background: #fff0f3; }
.about-prizes h3 { margin-bottom: .65rem; font-size: clamp(1.75rem, 3.2vw, 2.9rem); }
.about-prizes-intro p { max-width: 29ch; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.45; }
.about-prizes-copy p { color: #454545; }
.about-prizes-copy p + p { margin-top: .7rem; }
.about-prizes-copy strong { color: var(--ink); }
.course { overflow: hidden; background: var(--ink); color: white; }
.course img { width: 100%; }
.course figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; padding: 1rem 1.3rem; font-size: .8rem; color: #dddddd; }
.course figcaption strong { font-size: 1.12rem; color: white; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; margin-top: 1rem; }
.feature-grid article { padding: clamp(1.4rem, 3vw, 2.65rem); background: var(--blue); color: white; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.section-icon { display: block; width: 2.3rem; height: 2.3rem; margin-bottom: 1rem; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3 { max-width: 23ch; font-size: clamp(1.6rem, 2.7vw, 2.25rem); }
.feature-grid p { margin-top: .8rem; color: #ededed; font-size: .93rem; }

.timing { padding-block: clamp(2.75rem, 5vw, 4.7rem); background: var(--ink); color: white; }
.timing-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
.timing h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
.timing p { margin-top: .7rem; color: #cccccc; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .48rem; }
.timer div { display: grid; justify-items: center; gap: .3rem; padding: .6rem .2rem .65rem; border: 1px solid #ffffff2b; }
.timer strong { color: var(--accent); font-size: clamp(1.8rem, 4.4vw, 3.65rem); line-height: 1; font-variant-numeric: tabular-nums; }
.timer span { color: #f1f1f1; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }

.categories h2 { margin-bottom: 2.4rem; }
.category-grid, .raffle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.category-card { padding: clamp(1.35rem, 2.7vw, 2.25rem); border: 1px solid var(--rule); border-top: 4px solid var(--blue); background: #fafafa; }
.category-card .section-icon { color: #a72a49; }
.category-card .eyebrow { margin: .6rem 0 1.15rem; color: var(--muted); }
.category-card > p:not(.eyebrow) { margin-top: .7rem; font-size: .94rem; }
.data-list { font-size: clamp(.8rem, 1.2vw, .93rem); }
.data-list div { display: flex; justify-content: space-between; align-items: baseline; gap: .55rem; padding-block: .37rem; border-bottom: 1px solid var(--rule); }
.data-list div:last-child { border-bottom: 0; }
.data-list dd { margin: 0; text-align: right; white-space: nowrap; }

.challenge { background: var(--ink); color: white; }
.challenge-layout { position: relative; isolation: isolate; overflow: clip; width: 100%; max-width: none; min-height: clamp(28rem, 45vw, 42rem); display: grid; align-items: center; }
.challenge-image, .challenge-layout::before { position: absolute; inset: 0; }
.challenge-image { z-index: -2; left: 28%; width: 72%; height: 100%; object-fit: cover; object-position: 65% 47%; filter: grayscale(1) brightness(.85); }
.challenge-layout::before { z-index: -1; content: ""; background: linear-gradient(90deg, #101010 0 27%, #101010f0 34%, #1010108c 51%, transparent 76%); }
.challenge-copy { width: min(50rem, 60%); margin-left: max(clamp(1.25rem, 4.65vw, 4.5rem), (100% - 1312px) / 2); padding: clamp(3rem, 6vw, 6rem) 0; }
.challenge .eyebrow { color: var(--accent); }
.challenge em { color: var(--accent-light); }
.challenge h2 { max-width: 19ch; margin: .65rem 0 1.2rem; font-size: clamp(2.65rem, 5.1vw, 5.35rem); }
.challenge ul { padding-left: 1.15rem; margin-top: .3rem; }
.challenge li::marker { color: var(--accent); }
.fine { max-width: 51ch; margin-top: 1.1rem; color: #d9d9d9; font-size: .84rem; }

.entry { background: var(--ice); }
.pass-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.legacy-anchor { position: absolute; top: 0; }
.pass { display: flex; flex-direction: column; padding: clamp(.9rem, 1.6vw, 1.4rem); background: white; border: 1px solid var(--rule); }
.pass-head { border-bottom: 2px solid var(--ink); padding-bottom: .85rem; }
.pass h3 { font-size: clamp(1.65rem, 2.45vw, 2.7rem); }
.pass-head p { margin-top: .55rem; font-size: .79rem; color: var(--muted); }
.waves { padding-block: .65rem; }
.waves div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: .25rem; }
.waves dt { font-size: .78rem; color: var(--muted); }
.waves dd { margin: 0; font-size: clamp(1.08rem, 1.5vw, 1.5rem); line-height: 1.25; }
.perks { padding: .8rem 0 1.3rem; margin-bottom: .1rem; border-top: 1px solid var(--rule); list-style: none; font-size: .8rem; }
.perks li { position: relative; padding-left: .75rem; }
.perks li + li { margin-top: .35rem; }
.perks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .35rem; height: .18rem; background: currentColor; transform: skewX(-24deg); }
.buy { width: 100%; min-height: 2.9rem; margin-top: auto; padding-inline: .75rem; border-color: var(--ink); }
.buy:hover { background: var(--ink); color: white; }
.pass--vip { background: var(--blue); border-color: var(--blue); color: white; }
.pass--vip .pass-head { border-color: var(--accent); }
.pass--vip h3, .pass--vip .waves div:first-child dd { color: var(--accent); }
.pass--vip .pass-head p, .pass--vip dt { color: #dedede; }
.pass--vip .perks { border-color: #ffffff35; }
.pass--vip .buy { color: var(--ink); background: var(--accent); border-color: transparent; }
.pass--vip .buy:hover { background: white; }
.registration-dialog { width: min(100% - 2rem, 31rem); max-height: calc(100% - 2rem); padding: clamp(1.4rem, 5vw, 2.3rem); border: 1px solid var(--rule); background: var(--white); color: var(--ink); box-shadow: 0 18px 80px #08080870; }
.registration-dialog::backdrop { background: #101010bb; }
.registration-dialog h2 { margin-block: .35rem .85rem; font-size: clamp(2.5rem, 9vw, 4rem); }
.registration-dialog .button { margin-top: 1.15rem; }
.dialog-close { position: absolute; inset: .55rem .6rem auto auto; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; color: var(--ink); background: var(--ice); font-size: 1.7rem; line-height: 1; }
.dialog-close:hover { background: var(--accent); }

.prizes { position: relative; isolation: isolate; overflow: clip; background: #ffe7ee; }
.prizes::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 68%; opacity: .22; background: repeating-linear-gradient(123deg, transparent 0 16px, #b4677d 16px 18px, transparent 18px 30px); mask-image: linear-gradient(90deg, transparent, black); }
.prize-layout { display: grid; grid-template-columns: 1.1fr .75fr; align-items: end; gap: clamp(1.4rem, 5vw, 4rem); }
.prizes h2 { font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1; letter-spacing: .035em; }
.prize-value { margin-top: .4rem; font-size: clamp(3.65rem, 8.2vw, 8rem); line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.prize-value span { font-size: .46em; }
.prize-layout > div:last-child { padding-bottom: .4rem; font-size: clamp(1rem, 1.75vw, 1.22rem); }
.prize-layout .text-link { margin-top: 1rem; }

.raffle-card { padding: clamp(1.25rem, 2.6vw, 2.2rem); background: var(--ice); }
.raffle-card h3 { margin-bottom: .8rem; }
.raffle-card p { margin-top: .8rem; color: var(--muted); font-size: .84rem; }

.venue-banner { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(20rem, 42vw, 37rem); padding-block: clamp(2.25rem, 5vw, 4.5rem); background: var(--navy); color: white; }
.venue-banner::before, .venue-banner::after { position: absolute; inset: 0; content: ""; }
.venue-banner::before { z-index: -2; background: url("assets/images/kouty.jpg") center 50% / cover; }
.venue-banner::after { z-index: -1; background: linear-gradient(0deg, #101010ed, #10101022 86%); }
.venue-banner p { margin-top: .8rem; }
.venue-banner .button { margin-top: 1rem; }
.map { display: block; width: 100%; height: clamp(16rem, 34vw, 27rem); border: 0; background: #e5e5e5; }
.contact { background: var(--ice); }
.contact-layout { display: grid; grid-template-columns: .8fr 1fr; align-items: start; gap: 2rem 4rem; }
.contact .text-link { margin-top: 1rem; overflow-wrap: anywhere; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.contact-form label { display: grid; gap: .3rem; font-size: .86rem; }
.contact-form :is(input, textarea) { width: 100%; min-height: 2.85rem; padding: .6rem .7rem; border: 1px solid #b5b5b5; border-radius: 0; color: var(--ink); background: white; font-size: 1rem; }
.contact-form textarea { resize: vertical; }
.contact-form .full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.form-status { font-size: .88rem; color: #383838; }
.form-status[data-error] { color: #942d26; }

.partners { padding-block: 2.5rem; }
.partners-layout { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.partners h2 { font-size: clamp(2.5rem, 4vw, 3.7rem); }
.partner-logos { display: flex; align-items: center; gap: clamp(1.2rem, 5vw, 5rem); }
.partner-logos img { width: clamp(5rem, 12vw, 9rem); max-height: 3.1rem; object-fit: contain; }
.partner-logos a img { filter: brightness(0) saturate(100%); }
.site-footer { padding-block: 2rem .75rem; background: var(--ink); color: white; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.footer-brand .brand { display: block; width: 9rem; overflow: hidden; }
/* Align the visible logo with the text by trimming its built-in transparent margin. */
.footer-brand .brand img { width: 128.5%; max-width: none; margin-inline-start: -23.6%; }
.footer-brand p { margin-top: .45rem; color: #d0d0d0; font-size: .86rem; }
.footer-links { display: flex; align-items: center; gap: .15rem clamp(.75rem, 2.3vw, 2.15rem); }
.footer-links a, .footer-top { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; text-underline-offset: .22em; }
.footer-links a:hover, .footer-top:hover { text-decoration: underline; }
.footer-end { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; border-top: 1px solid #ffffff30; margin-top: 1.3rem; padding-top: .35rem; color: #d0d0d0; }
.footer-top { gap: .35rem; color: white; white-space: nowrap; }

.sub-hero { padding-block: clamp(2.5rem, 6vw, 5rem); background: var(--blue); color: white; }
.sub-hero h1 { max-width: 18ch; margin-top: 1.15rem; font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.sub-back { color: var(--accent); font-size: .86rem; text-underline-offset: .25em; }
.rules-note { width: fit-content; margin-top: 1.1rem; padding-left: .9rem; border-left: 3px solid var(--accent); color: #f0f0f0; }
.legal-layout { display: grid; grid-template-columns: minmax(12rem, .36fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 6rem); }
.legal-nav { position: sticky; top: calc(var(--header-height) + 1rem); max-height: calc(100dvh - var(--header-height) - 2rem); overflow: auto; padding: 1.1rem; background: var(--ice); font-size: .85rem; }
.legal-nav ul { padding: .5rem 0 0; list-style: none; }
.legal-nav li + li { margin-top: .2rem; }
.legal-nav a { display: block; padding: .25rem 0; text-underline-offset: .2em; }
.prose { max-width: 75ch; overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.65rem; font-size: clamp(2rem, 4.2vw, 3.35rem); text-transform: none; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3rem; font-size: 1.75rem; }
.prose p, .prose ul { margin-top: .72rem; }
.prose a { color: #292929; text-underline-offset: .2em; }

@media (max-width: 1100px) {
  .site-nav a { font-size: .74rem; }
  .header-row { gap: .9rem; }
  .site-nav { gap: .75rem; }
  .pass-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  :root { --header-height: 66px; }
  .header-row { flex-wrap: wrap; position: relative; gap: .65rem; }
  .site-nav { order: 4; width: 100%; flex-wrap: wrap; justify-content: flex-start; padding-bottom: .7rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-height: 2.6rem; margin-left: auto; border: 1px solid #ffffff45; background: transparent; color: white; padding: .35rem .65rem; font-size: .78rem; }
  .menu-icon { width: .9rem; height: .68rem; border-block: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
  .menu-toggle[aria-expanded="true"] .menu-icon { height: .85rem; border: 0; background: linear-gradient(45deg, transparent 43%, currentColor 44% 56%, transparent 57%), linear-gradient(-45deg, transparent 43%, currentColor 44% 56%, transparent 57%); }
  .menu-toggle:not([hidden]) + .site-nav { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-height) - 1rem); overflow: auto; width: auto; margin: 0; padding: .65rem; background: var(--ink); border: 1px solid #ffffff38; }
  .menu-toggle[aria-expanded="false"] + .site-nav { display: none; }
  .menu-toggle[aria-expanded="true"] + .site-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .site-nav a { font-size: .86rem; padding: .6rem; }
  .hero-image { left: 0; }
  .hero-shade { background: linear-gradient(90deg, #101010 0%, #101010ef 22%, #10101099 47%, #1010100d 80%); }
  .about-layout { gap: 2rem; }
}

@media (max-width: 700px) {
  .footer-main { align-items: start; flex-direction: column; }
  .footer-links { width: 100%; display: grid; grid-template-columns: 1fr 1.35fr; }
  .hero-layout { align-items: end; min-height: min(42rem, 112vw + 13rem); }
  .hero-image { inset: 0 0 auto; height: 75%; mask-image: linear-gradient(black 68%, transparent); }
  .hero-image img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, #101010 12%, #101010f5 32%, #101010a8 50%, #10101029 69%, transparent 90%); }
  .hero-content { padding-block: 7.5rem 2.35rem; }
  .hero h1 { font-size: clamp(3.2rem, 10.2vw, 5.15rem); }
  .hero-meta { font-size: .67rem; gap: .48rem; }
  .race-stats div { padding-inline: .6rem; }
  .race-stats dt { font-size: clamp(1.45rem, 5.1vw, 2.8rem); }
  .race-stats dd { font-size: .67rem; }
  .about-layout, .about-prizes, .timing-layout, .contact-layout, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .about-prizes { gap: 1rem; }
  .legal-nav { position: static; }
  .feature-grid, .category-grid, .raffle-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid h3 { max-width: 22ch; }
  .challenge-layout { align-items: end; min-height: 35rem; }
  .challenge-image { inset: 0 0 auto; width: 100%; height: 65%; object-position: 62% 42%; }
  .challenge-layout::before { background: linear-gradient(0deg, #101010 28%, #101010f5 40%, #1010108c 65%, transparent 100%); }
  .challenge-copy { width: auto; margin-inline: 1.25rem; padding: 12rem 0 2.5rem; }
  .challenge h2 { max-width: 17ch; font-size: clamp(2.35rem, 7.3vw, 3.7rem); text-wrap: wrap; }
  .pass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prize-layout { grid-template-columns: minmax(0, 1fr); }
  .partners-layout { align-items: flex-start; flex-direction: column; }
  .legal-nav { max-height: none; }
  .legal-nav ul { columns: 2; column-gap: 1.25rem; }
  .legal-nav li { break-inside: avoid; }
}

@media (max-width: 420px) {
  .header-row { gap: .35rem; }
  .header-row .brand { width: 7.15rem; }
  .button--header { gap: .3rem; padding-inline: .55rem; font-size: .66rem; }
  .button--header span { display: none; }
  .menu-toggle:not([hidden]) { gap: .3rem; padding-inline: .45rem; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: clamp(2.8rem, 10.2vw, 3.75rem); }
  .hero-copy { font-size: .92rem; }
  .race-stats dt { font-size: 1.42rem; }
  .race-stats dd { font-size: .61rem; }
  .pass-grid, .contact-form { grid-template-columns: minmax(0, 1fr); }
  .legal-nav ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* Compact photo gallery for the proposed 2026 selection. */
.gallery { background: var(--ink); color: white; }
.gallery--race { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.gallery-heading .eyebrow { color: var(--accent); margin-bottom: .65rem; }
.gallery-heading h2 { font-size: clamp(2.5rem, 4.7vw, 4.4rem); }
.gallery-heading p:not(.eyebrow) { max-width: 62ch; margin-top: .9rem; color: #d0d0d0; }
.gallery-heading .button { flex-shrink: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.gallery-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #292929; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.045); }
.gallery-hint { margin-top: 1rem; font-size: .81rem; color: #bdbdbd; }
.gallery-dialog { width: min(96vw, 1120px); max-height: 96dvh; padding: .8rem; border: 1px solid #444; background: #101010; color: white; }
.gallery-dialog::backdrop { background: #000e; }
.gallery-dialog figure { margin: 0; }
.gallery-close { display: block; margin-left: auto; margin-bottom: .6rem; padding: .4rem .75rem; min-height: 44px; border: 1px solid #777; background: #242424; color: white; }
.gallery-large { width: 100%; max-height: calc(96dvh - 10.5rem); object-fit: contain; }
.gallery-detail { margin-top: .7rem; font-size: .88rem; }
.gallery-controls { display: flex; justify-content: space-between; gap: .8rem; margin-top: .75rem; }
.gallery-controls button { min-height: 44px; padding: .4rem .75rem; border: 1px solid #777; color: white; background: #242424; font-size: .85rem; }
.gallery-close:hover, .gallery-controls button:hover { background: var(--accent); color: var(--ink); }
@media (min-width: 941px) and (max-width: 1280px) { .site-nav { gap: .65rem; } .site-nav a { font-size: .76rem; } }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gallery-photo { grid-column: span 2; }
  .gallery-photo:nth-last-child(-n+2) { grid-column: span 3; }
  .gallery-heading { align-items: start; flex-direction: column; gap: 1.2rem; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .gallery-photo, .gallery-photo:nth-last-child(-n+2) { grid-column: auto; }
  .gallery-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .gallery-photo:first-child img { object-position: center 25%; }
}

/* Ten race photos: balanced rows without isolated tiles on narrow screens. */
@media (min-width: 601px) and (max-width: 900px) {
  .gallery-grid--race { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid--race .gallery-photo { grid-column: auto; }
  .gallery-grid--race .gallery-photo:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}
@media (max-width: 600px) {
  .gallery-grid--race .gallery-photo:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* Open the course map at its full available size. */
.course-preview { position: relative; display: block; cursor: zoom-in; }
.course-zoom { position: absolute; right: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .7rem; background: var(--ink); color: var(--accent); font-size: .8rem; pointer-events: none; }
.course-preview:hover .course-zoom, .course-preview:focus-visible .course-zoom { background: var(--accent); color: var(--ink); }
.course-preview:focus-visible { outline-color: var(--accent); outline-offset: -4px; }
.course-dialog { width: min(96vw, 1400px); }
.course-large { max-height: calc(96dvh - 6rem); }

/* Keep the original five-photo rows and balance the newly added photos. */
@media (min-width: 901px) {
  .gallery-grid { grid-template-columns: repeat(30, minmax(0, 1fr)); }
  .gallery-photo { grid-column: span 6; }
  .gallery-grid--race .gallery-photo:nth-last-child(-n+6) { grid-column: span 10; }
  .gallery-grid--atmosphere .gallery-photo:nth-last-child(-n+2) { grid-column: span 15; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .gallery-grid--atmosphere .gallery-photo { grid-column: span 2; }
  .gallery-grid--atmosphere .gallery-photo:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}

/* Red accents with readable foregrounds on dark and light surfaces. */
::selection { color: white; }
.skip-link, .button--accent, .button--header:hover,
.pass--vip .buy, .gallery-close:hover, .gallery-controls button:hover,
.dialog-close:hover { color: white; }
.button--accent:hover { background: #b90e32; color: white; }
.button--header, .gallery-heading .eyebrow, .challenge .eyebrow,
.sub-back, .site-nav a:hover, .site-footer a:hover, .hero-more:hover,
.course-zoom { color: var(--accent-light); }
.course-preview:hover .course-zoom, .course-preview:focus-visible .course-zoom { color: white; }
