:root {
  --ink: #101516;
  --muted: #5f686c;
  --paper: #f5f7f7;
  --white: #ffffff;
  --red: #ef4c4f;
  --red-dark: #c9353a;
  --aqua: #5bd5d4;
  --blue: #315dff;
  --lime: #c6e96e;
  --charcoal: #20252b;
  --line: #dce2e4;
  --shadow: 0 24px 60px rgba(16, 21, 22, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 226, 228, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

.brand strong,
.brand em {
  display: block;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.brand em {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.brand.inverse {
  color: var(--white);
}

.brand.inverse .brand-mark {
  background: var(--white);
  color: var(--red);
}

.brand.inverse em {
  color: rgba(255, 255, 255, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white) !important;
  background: var(--ink);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1fr);
  min-height: 720px;
  background:
    radial-gradient(circle at 16% 20%, rgba(239, 76, 79, 0.32), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(91, 213, 212, 0.35), transparent 30%),
    linear-gradient(135deg, #f7fbfb 0%, #ffffff 48%, #eef4f4 100%);
}

.hero-copy {
  align-self: center;
  min-width: 0;
  padding: 72px clamp(24px, 5vw, 76px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6.4vw, 6.4rem);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.hero-copy > p:not(.eyebrow),
.section-heading h2 + p,
.split-section p,
.register-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(239, 76, 79, 0.26);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.dark {
  color: var(--white);
  background: var(--ink);
  box-shadow: none;
}

.hero-collage {
  min-width: 0;
  display: grid;
  grid-template-columns: 0.9fr 0.85fr 1.15fr;
  grid-template-rows: 1.05fr 0.75fr 1fr;
  gap: 0;
  min-height: 720px;
  overflow: hidden;
}

@media (min-width: 921px) and (max-width: 1320px) {
  .hero {
    grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1fr);
  }

  .hero-copy {
    padding-right: 36px;
  }

  h1 {
    font-size: clamp(3.8rem, 5.15vw, 5.8rem);
    max-width: 560px;
  }
}

.tile {
  position: relative;
  margin: 0;
  min-height: 180px;
}

.tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(16, 21, 22, 0.24));
  pointer-events: none;
}

.swim-tile {
  grid-row: span 2;
}

.bike-tile {
  grid-column: span 2;
}

.run-tile {
  grid-column: span 2;
}

.river-tile {
  grid-column: span 1;
}

.race-badge,
.date-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.48), transparent 24%),
    linear-gradient(135deg, var(--red), var(--blue) 65%, var(--aqua));
}

.date-tile {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.52), transparent 20%),
    linear-gradient(135deg, var(--charcoal), var(--red));
}

.race-badge::after,
.date-tile::after {
  display: none;
}

.race-badge span {
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  font-weight: 950;
  line-height: 0.9;
}

.race-badge strong,
.date-tile strong {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.date-tile span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-facts article {
  padding: 28px clamp(18px, 4vw, 48px);
  border-right: 1px solid var(--line);
  background: var(--white);
}

.quick-facts article:last-child {
  border-right: 0;
}

.quick-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 10vw, 132px) clamp(20px, 5vw, 56px);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 34px;
}

.section-heading.compact {
  max-width: 820px;
  text-align: center;
}

.course-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}

.course-card {
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.course-card img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.course-card div {
  padding: 22px;
}

.course-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--aqua);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.tall-card {
  transform: translateY(28px);
}

.race-section {
  background: var(--paper);
}

.race-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.race-card {
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
}

.race-card.featured {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 12%, rgba(198, 233, 110, 0.9), transparent 18%),
    linear-gradient(135deg, var(--ink), #2e3a3c);
  border-color: transparent;
}

.race-label {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.featured .race-label {
  color: var(--lime);
}

.race-card h3 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.race-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 26px 0;
}

.race-card dl div {
  padding: 14px 10px;
  background: var(--paper);
}

.featured dl div {
  background: rgba(255, 255, 255, 0.11);
}

.race-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured dt {
  color: rgba(255, 255, 255, 0.6);
}

.race-card dd {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.race-card p:not(.race-label) {
  color: var(--muted);
}

.featured p:not(.race-label) {
  color: rgba(255, 255, 255, 0.76);
}

.banner {
  padding: clamp(34px, 6vw, 72px) clamp(22px, 6vw, 78px);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 35%, rgba(255, 255, 255, 0.74), transparent 16%),
    radial-gradient(circle at 52% 20%, rgba(91, 213, 212, 0.95), transparent 24%),
    radial-gradient(circle at 90% 78%, rgba(49, 93, 255, 0.9), transparent 24%),
    linear-gradient(110deg, var(--red), #f06a5e 34%, var(--aqua) 64%, var(--blue));
}

.banner div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.banner span,
.banner strong {
  display: block;
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
}

.banner span {
  font-size: clamp(2.4rem, 6vw, 6rem);
}

.banner strong {
  max-width: 340px;
  font-size: clamp(1.5rem, 3vw, 3.4rem);
  text-align: right;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.split-section figure {
  margin: 0;
  aspect-ratio: 1.3 / 1;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  content: "";
}

.gallery-section {
  position: relative;
  overflow: hidden;
  padding-top: 86px;
  background: var(--paper);
}

.gallery-word {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 0;
  transform: translateX(-50%);
  color: rgba(16, 21, 22, 0.06);
  font-size: clamp(6rem, 19vw, 18rem);
  font-weight: 950;
  line-height: 1;
}

.image-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.75fr;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: end;
}

.image-strip img {
  height: clamp(220px, 33vw, 430px);
  box-shadow: var(--shadow);
}

.image-strip img:nth-child(2) {
  height: clamp(170px, 24vw, 310px);
}

.image-strip img:nth-child(3) {
  height: clamp(145px, 20vw, 260px);
}

.register-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  max-width: var(--max);
  margin: 0 auto;
}

.interest-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(91, 213, 212, 0.36);
  border-color: var(--aqua);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--red-dark);
  font-weight: 800;
}

.faq-section {
  display: none;
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

details {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

summary {
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 44px clamp(20px, 5vw, 56px);
  color: rgba(255, 255, 255, 0.7);
  background: #121718;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer p {
  justify-self: end;
  max-width: 320px;
  margin: 0;
  font-size: 0.84rem;
  text-align: right;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    background: var(--ink);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
  }

  .nav {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding-top: 56px;
  }

  .hero-collage {
    min-height: 520px;
  }

  .quick-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-facts article:nth-child(2) {
    border-right: 0;
  }

  .quick-facts article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .course-grid,
  .race-grid,
  .split-section,
  .register-section,
  .faq-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .tall-card {
    transform: none;
  }

  .banner div {
    display: block;
  }

  .banner strong {
    margin-top: 14px;
    text-align: left;
  }

  .footer p {
    justify-self: start;
    text-align: left;
  }
}

/* Final winning layer: polished, professional revision. */
body::before {
  display: none !important;
}

.hero {
  height: clamp(420px, 38vw, 560px) !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #15191a !important;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E") !important;
  background-size: 180px 180px !important;
  content: "" !important;
  mix-blend-mode: soft-light !important;
  opacity: 0.22 !important;
  pointer-events: none !important;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(16, 21, 22, 0.52), transparent 36%, rgba(16, 21, 22, 0.2)),
    linear-gradient(180deg, rgba(16, 21, 22, 0.16), rgba(16, 21, 22, 0.42)) !important;
}

.hero-collage {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  opacity: 1 !important;
}

.race-badge::before,
.date-tile::before,
.banner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E") !important;
  background-size: 160px 160px !important;
  mix-blend-mode: soft-light !important;
  opacity: 0.2 !important;
}

.hero-copy {
  bottom: 34px !important;
  left: clamp(28px, 5vw, 72px) !important;
  width: min(410px, calc(100vw - 56px)) !important;
}

.hero-copy h1 {
  margin-bottom: 8px !important;
  font-size: clamp(1.45rem, 2.15vw, 2.35rem) !important;
}

.hero-copy > p:not(.eyebrow) {
  margin-bottom: 16px !important;
  font-size: clamp(0.86rem, 1vw, 1rem) !important;
  line-height: 1.35 !important;
}

.countdown {
  right: clamp(28px, 5vw, 72px) !important;
  bottom: 34px !important;
  left: auto !important;
  grid-template-columns: repeat(3, 82px) !important;
  color: var(--white) !important;
}

.countdown span {
  min-height: 76px !important;
  padding: 12px !important;
  background: rgba(16, 21, 22, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(8px) !important;
}

.countdown strong {
  font-size: 1.9rem !important;
}

.course-section {
  padding-top: clamp(78px, 8vw, 126px) !important;
  padding-bottom: clamp(92px, 9vw, 140px) !important;
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1160px !important;
  gap: 24px !important;
}

.course-card {
  min-height: 560px !important;
}

.course-card img {
  aspect-ratio: 1 / 0.78 !important;
}

.course-card div {
  min-height: 230px !important;
  padding: 30px !important;
}

.course-card span {
  margin-bottom: 14px !important;
  font-size: 0.76rem !important;
}

.course-card h3 {
  max-width: 360px !important;
  margin-bottom: 16px !important;
  font-size: clamp(1.32rem, 2vw, 1.82rem) !important;
  line-height: 1.04 !important;
}

.course-card p {
  max-width: 360px !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

#register {
  padding-top: clamp(72px, 8vw, 112px) !important;
  padding-bottom: 44px !important;
}

#register > div,
#register > form {
  width: min(1180px, calc(100vw - 64px)) !important;
}

.register-section h2 {
  font-size: clamp(2rem, 3.6vw, 4rem) !important;
}

.register-section p {
  max-width: 760px !important;
  font-size: clamp(1rem, 1.4vw, 1.28rem) !important;
  line-height: 1.45 !important;
}

.interest-form {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(210px, 1fr) auto !important;
  gap: 14px !important;
  align-items: start !important;
  margin-top: 34px !important;
}

input,
select {
  min-height: 58px !important;
  padding: 16px 18px !important;
  background: var(--white) !important;
  border: 1px solid rgba(16, 21, 22, 0.16) !important;
  color: var(--ink) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

input::placeholder {
  color: #7d878b !important;
  opacity: 1 !important;
}

select:invalid {
  color: #7d878b !important;
}

.interest-form .button {
  min-height: 58px !important;
  padding-right: 30px !important;
  padding-left: 30px !important;
  font-size: 0.86rem !important;
}

.form-note {
  grid-column: 1 / -1 !important;
  text-align: center !important;
}

.partners {
  padding-top: 30px !important;
  padding-bottom: clamp(82px, 9vw, 128px) !important;
}

.partners h2 {
  margin-bottom: 36px !important;
  font-size: 1rem !important;
}

.partner-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 22px 44px !important;
  max-width: 1040px !important;
}

.partner-grid span {
  display: inline-flex !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: rgba(16, 21, 22, 0.58) !important;
  border: 0 !important;
  font-size: clamp(0.9rem, 1.3vw, 1.2rem) !important;
  text-transform: uppercase !important;
}

.partner-grid .partner-primary {
  color: var(--ink) !important;
  font-size: clamp(1.08rem, 1.7vw, 1.55rem) !important;
}

@media (max-width: 920px) {
  .hero {
    height: auto !important;
    min-height: 690px !important;
  }

  .hero-collage {
    height: 460px !important;
  }

  .hero-copy {
    top: 490px !important;
    bottom: auto !important;
    color: var(--ink) !important;
  }

  .hero-copy h1,
  .hero-copy > p:not(.eyebrow) {
    color: var(--ink) !important;
  }

  .countdown {
    top: 594px !important;
    right: 28px !important;
    bottom: auto !important;
    left: 28px !important;
    grid-template-columns: repeat(3, 1fr) !important;
    color: var(--ink) !important;
  }

  .countdown span {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(16, 21, 22, 0.12) !important;
  }

  .course-grid,
  .race-grid,
  .interest-form {
    grid-template-columns: 1fr !important;
  }

  .course-card {
    min-height: 0 !important;
  }
}

/* Final art direction pass. */
:root {
  --paper: #f1f4f5;
  --charcoal: #292a32;
}

body {
  font-family: "Archivo", "Arial Narrow", Arial, sans-serif;
  font-stretch: 90%;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100vw;
  height: 100vh;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 64%, rgba(16, 21, 22, 0.07) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  content: "";
  mix-blend-mode: overlay;
  opacity: 0.32;
  pointer-events: none;
}

h1,
h2,
h3,
.brand,
.nav,
.button,
.race-label,
.partner-grid span {
  letter-spacing: 0;
}

.hero {
  min-height: 510px;
  max-height: 570px;
}

.hero::before,
.banner::before,
.race-badge::before,
.date-tile::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, rgba(16, 21, 22, 0.18) 0 1px, transparent 1.5px);
  background-size: 4px 4px, 6px 6px;
  content: "";
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
}

.hero-collage {
  grid-template-columns: 0.95fr 0.88fr 1.08fr;
  grid-template-rows: 1fr 1fr;
  min-height: 510px;
  max-height: 570px;
}

.swim-tile {
  grid-column: 1;
  grid-row: 1 / 3;
}

.race-badge {
  grid-column: 2;
  grid-row: 1;
}

.bike-tile {
  grid-column: 3;
  grid-row: 1;
}

.date-tile {
  grid-column: 2;
  grid-row: 2;
}

.run-tile {
  grid-column: 3;
  grid-row: 2;
}

.river-tile {
  display: none;
}

.race-badge,
.date-tile,
.banner {
  position: relative;
}

.race-badge > *,
.date-tile > *,
.banner > * {
  position: relative;
  z-index: 2;
}

.race-badge span {
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.hero-copy {
  bottom: 44px;
}

.hero-copy h1 {
  font-size: clamp(1.15rem, 1.65vw, 1.45rem);
}

.countdown {
  position: absolute;
  right: max(24px, calc((100vw - 1080px) / 2));
  bottom: 38px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 8px;
  color: var(--white);
}

.countdown span {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(16, 21, 22, 0.54);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown strong {
  font-size: 1.65rem;
  line-height: 1;
}

.course-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  gap: 18px;
}

.course-card img {
  aspect-ratio: 1 / 0.84;
}

.course-card div {
  min-height: 180px;
  padding: 24px;
}

.course-card h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.05;
}

.course-card p {
  font-size: 0.88rem;
}

.race-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
}

.race-card,
.race-card.featured {
  display: flex;
  flex-direction: column;
  min-height: 330px;
}

.race-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.banner {
  overflow: hidden;
}

.split-section {
  grid-template-columns: minmax(360px, 1.02fr) minmax(320px, 1fr);
  max-width: 980px;
}

.split-section figure {
  aspect-ratio: 1.42 / 1;
}

.split-section figure img {
  object-position: center 34%;
}

.split-section h2 {
  max-width: 520px;
}

.register-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

input::placeholder {
  color: #8d969a;
}

.partner-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 960px;
}

.partner-grid span {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(16, 21, 22, 0.12);
}

.footer {
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.footer p {
  max-width: 430px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .hero,
  .hero-collage {
    min-height: 560px;
    max-height: none;
  }

  .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 0.8fr 0.9fr;
  }

  .swim-tile {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .race-badge {
    grid-column: 2;
    grid-row: 1;
  }

  .bike-tile {
    grid-column: 2;
    grid-row: 2;
  }

  .date-tile {
    grid-column: 1;
    grid-row: 3;
  }

  .run-tile {
    grid-column: 2;
    grid-row: 3;
  }

  .countdown {
    right: 20px;
    left: 20px;
    bottom: 116px;
  }

  .course-grid,
  .race-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .interest-form {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero,
  .hero-collage {
    min-height: 620px;
  }

  .countdown {
    grid-template-columns: repeat(3, 1fr);
  }

  .countdown span {
    padding: 10px;
  }

  .countdown strong {
    font-size: 1.35rem;
  }
}

/* Designer revision: softer texture, tighter hero, stronger cards/forms. */
body::before {
  display: none;
}

.hero {
  height: clamp(420px, 38vw, 560px);
  min-height: 0;
  max-height: none;
  background: #15191a;
}

.hero::before {
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  opacity: 0.28;
}

.hero::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(16, 21, 22, 0.52), transparent 34%, rgba(16, 21, 22, 0.18)),
    linear-gradient(180deg, rgba(16, 21, 22, 0.18), rgba(16, 21, 22, 0.42));
}

.hero-collage {
  height: 100%;
  min-height: 0;
  max-height: none;
  opacity: 1;
}

.tile::after {
  background: linear-gradient(180deg, rgba(16, 21, 22, 0.06), rgba(16, 21, 22, 0.2));
}

.race-badge::before,
.date-tile::before,
.banner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
  opacity: 0.2;
}

.hero-copy {
  bottom: 34px;
  left: clamp(28px, 5vw, 72px);
  width: min(410px, calc(100vw - 56px));
}

.hero-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.15vw, 2.35rem);
}

.hero-copy > p:not(.eyebrow) {
  margin-bottom: 16px;
  font-size: clamp(0.86rem, 1vw, 1rem);
  line-height: 1.35;
}

.countdown {
  right: clamp(28px, 5vw, 72px);
  bottom: 34px;
  grid-template-columns: repeat(3, 82px);
  color: var(--white);
}

.countdown span {
  min-height: 76px;
  padding: 12px;
  background: rgba(16, 21, 22, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.countdown strong {
  font-size: 1.9rem;
}

.course-section {
  padding-top: clamp(78px, 8vw, 126px);
  padding-bottom: clamp(92px, 9vw, 140px);
}

.course-grid {
  max-width: 1160px;
  gap: 24px;
}

.course-card {
  min-height: 560px;
}

.course-card img {
  aspect-ratio: 1 / 0.78;
}

.course-card div {
  min-height: 230px;
  padding: 30px;
}

.course-card span {
  margin-bottom: 14px;
  font-size: 0.76rem;
}

.course-card h3 {
  max-width: 360px;
  margin-bottom: 16px;
  font-size: clamp(1.32rem, 2vw, 1.82rem);
  line-height: 1.04;
}

.course-card p {
  max-width: 360px;
  font-size: 1rem;
  line-height: 1.55;
}

#register {
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: 44px;
}

#register > div,
#register > form {
  width: min(1180px, calc(100vw - 64px));
}

.register-section h2 {
  font-size: clamp(2rem, 3.6vw, 4rem);
}

.register-section p {
  max-width: 760px;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.45;
}

.interest-form {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(210px, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-top: 34px;
}

.interest-form label {
  position: relative;
  font-size: 0;
}

input,
select {
  min-height: 58px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid rgba(16, 21, 22, 0.16);
  font-size: 1rem;
  font-weight: 700;
}

input::placeholder {
  color: #7d878b;
  opacity: 1;
}

select:invalid {
  color: #7d878b;
}

.interest-form .button {
  min-height: 58px;
  padding-right: 30px;
  padding-left: 30px;
  font-size: 0.86rem;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 22px;
  text-align: center;
}

.partners {
  padding-top: 30px;
  padding-bottom: clamp(82px, 9vw, 128px);
}

.partners h2 {
  margin-bottom: 36px;
  font-size: 1rem;
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 44px;
  max-width: 1040px;
}

.partner-grid span {
  display: inline-flex;
  min-height: 0;
  padding: 0;
  color: rgba(16, 21, 22, 0.58);
  border: 0;
  font-size: clamp(0.9rem, 1.3vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
}

.partner-grid .partner-primary {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.7vw, 1.55rem);
}

@media (max-width: 920px) {
  .hero {
    height: auto;
    min-height: 680px;
  }

  .hero-collage {
    height: 460px;
  }

  .hero-copy {
    top: 490px;
    bottom: auto;
    color: var(--ink);
  }

  .hero-copy h1,
  .hero-copy > p:not(.eyebrow) {
    color: var(--ink);
  }

  .countdown {
    top: 588px;
    right: 28px;
    bottom: auto;
    left: 28px;
    grid-template-columns: repeat(3, 1fr);
    color: var(--ink);
  }

  .countdown span {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(16, 21, 22, 0.12);
  }

  .course-grid,
  .race-grid,
  .interest-form {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(2.7rem, 16vw, 4.4rem);
  }

  .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .tile,
  .bike-tile,
  .run-tile,
  .river-tile {
    grid-column: auto;
    grid-row: auto;
    min-height: 190px;
  }

  .swim-tile,
  .bike-tile {
    grid-column: span 2;
  }

  .race-badge span {
    font-size: 3.6rem;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .quick-facts article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-facts article:last-child {
    border-bottom: 0;
  }

  .race-card dl {
    grid-template-columns: 1fr;
  }

  .image-strip {
    grid-template-columns: 1fr;
  }

  .image-strip img,
  .image-strip img:nth-child(2),
  .image-strip img:nth-child(3) {
    height: 240px;
  }
}

/* Reference-style pass: tighter Supertri-inspired event page rhythm. */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.site-header .brand,
.site-header .nav {
  color: var(--white);
}

.site-header .brand em,
.site-header .nav {
  color: rgba(255, 255, 255, 0.78);
}

.site-header .nav a:hover {
  color: var(--white);
}

.site-header .nav-cta {
  background: var(--red);
}

.hero {
  position: relative;
  display: block;
  min-height: 610px;
  background: #c8c8cc;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(16, 21, 22, 0.1), rgba(16, 21, 22, 0.28));
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  bottom: 56px;
  left: max(24px, calc((100vw - 920px) / 2));
  z-index: 3;
  width: min(360px, calc(100vw - 48px));
  padding: 0;
  color: var(--white);
}

.hero-copy h1 {
  max-width: 360px;
  margin-bottom: 11px;
  color: var(--white);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1;
}

.hero-copy > p:not(.eyebrow) {
  max-width: none;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-copy .button.secondary,
.hero-copy .hero-actions {
  display: none;
}

.button {
  min-height: 30px;
  padding: 8px 16px;
  font-size: 0.68rem;
}

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 0.86fr 1.05fr;
  grid-template-rows: 0.88fr 0.78fr 0.82fr;
  width: 100%;
  min-height: 610px;
  opacity: 0.8;
}

.tile::after {
  background: linear-gradient(180deg, rgba(16, 21, 22, 0.02), rgba(16, 21, 22, 0.24));
}

.quick-facts {
  display: none;
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 5vw, 56px);
}

.course-section {
  padding-top: 86px;
}

.course-section .section-heading {
  display: none;
}

.course-grid {
  grid-template-columns: 1.08fr 0.84fr 0.84fr;
  gap: 14px;
  max-width: 760px;
}

.course-card {
  background: #2c2d36;
  box-shadow: none;
}

.course-card div {
  padding: 18px;
}

.course-card span {
  color: var(--white);
  font-size: 0.68rem;
}

.course-card h3 {
  font-size: 0.84rem;
}

.course-card p {
  font-size: 0.72rem;
  line-height: 1.45;
}

.tall-card {
  transform: none;
}

.race-section {
  padding-top: 34px;
  background: var(--white);
}

.race-section .section-heading {
  margin-bottom: 28px;
}

.race-section h2 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.race-grid {
  gap: 14px;
  max-width: 760px;
}

.race-card,
.race-card.featured {
  padding: 28px 34px;
  color: var(--ink);
  background: #eef2f4;
  border: 0;
}

.race-label,
.featured .race-label {
  color: var(--ink);
  font-size: 0.64rem;
}

.race-card h3 {
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.race-card dl {
  gap: 12px;
  margin: 20px 0;
}

.race-card dl div,
.featured dl div {
  padding: 0;
  background: transparent;
}

.race-card dt,
.featured dt {
  color: var(--muted);
  font-size: 0.58rem;
}

.race-card dd {
  font-size: 1rem;
}

.race-card p:not(.race-label),
.featured p:not(.race-label) {
  color: var(--muted);
  font-size: 0.8rem;
}

.banner {
  padding: clamp(34px, 6vw, 62px) clamp(22px, 6vw, 78px);
}

.banner span {
  font-size: clamp(2.1rem, 5.8vw, 5.4rem);
}

.split-section {
  max-width: 860px;
}

.split-section figure,
.image-strip img {
  box-shadow: none;
}

.split-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-section {
  padding-top: 70px;
  padding-bottom: 118px;
}

.image-strip {
  max-width: 1060px;
}

#register {
  max-width: none;
  padding-top: 46px;
  padding-bottom: 26px;
  background: var(--paper);
}

#register > div,
#register > form {
  width: min(920px, calc(100vw - 40px));
  margin-right: auto;
  margin-left: auto;
}

.register-section {
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 920px;
  text-align: center;
}

.register-section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.register-section p {
  margin-right: auto;
  margin-left: auto;
  font-size: 0.84rem;
}

.interest-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.interest-form label {
  font-size: 0;
}

input,
select {
  min-height: 34px;
  padding: 9px 11px;
}

.partners {
  padding: 14px clamp(20px, 5vw, 56px) 70px;
  text-align: center;
  background: var(--paper);
}

.partners h2 {
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  align-items: center;
}

.partner-grid span {
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.footer {
  padding-top: 70px;
  padding-bottom: 70px;
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(220, 226, 228, 0.72);
    backdrop-filter: blur(18px);
  }

  .site-header .brand {
    color: var(--ink);
  }

  .site-header .brand em {
    color: var(--muted);
  }

  .site-header .nav {
    color: var(--ink);
  }

  .hero,
  .hero-collage {
    min-height: 520px;
  }

  .course-grid,
  .race-grid,
  .interest-form,
  .partner-grid {
    grid-template-columns: 1fr;
  }
}
