@font-face {
  font-family: Marcellus;
  src: url("assets/marcellus-regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat-regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101713;
  --cream: #fff3e6;
  --muted: #c3ccc4;
  --coral: #ff6d6c;
  --gold: #f0c99a;
  --paper: #f7f1e8;
  --paper-ink: #1d2720;
  --paper-muted: #47574d;
  --paper-accent: #9c2f35;
  --line: rgb(255 243 230 / 15%);
  --display-font: Marcellus, Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 4.8rem;
  font-family: Montserrat, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: calc(var(--header-height) + 1.15rem); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 { font-size: clamp(2.4rem, 5.5vw, 5.35rem); }
h2 em { font-weight: inherit; }
h3 { font-size: clamp(1.48rem, 2.45vw, 2.15rem); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.shell {
  width: min(100% - clamp(2rem, 8.4vw, 9.5rem), 84rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 4;
  inset: 0.7rem auto auto 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 0.3rem;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: none; }

.masthead {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(16 23 19 / 95%);
  backdrop-filter: blur(18px);
}

.masthead-inner, .footer-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 3.2vw, 3rem);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: clamp(0.38rem, 0.9vw, 0.75rem);
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(0.83rem, 1.26vw, 1.08rem);
  letter-spacing: 0.105em;
}

.brand img { width: clamp(2.28rem, 4.1vw, 3.5rem); height: auto; }
.brand strong { font-weight: 600; }

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 3vw, 3rem);
  margin-inline-start: auto;
}

.navigation a, .footer-inner > a:last-child {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.navigation a {
  position: relative;
  padding-block: 0.5rem;
  transition: color 200ms ease;
}

.navigation a::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-out);
}

.navigation a:hover, .footer-inner > a:last-child:hover { color: var(--cream); }
.navigation a:hover::after, .navigation a:focus-visible::after { transform: scaleX(1); }

.reading-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  pointer-events: none;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

.action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 250ms ease, color 200ms ease, translate 250ms var(--ease-out);
}

.action:hover { translate: 0 -2px; }
.action-primary { background: var(--coral); color: #281413; }
.action-primary:hover { background: #ff9390; box-shadow: 0 0.4rem 1.65rem rgb(255 109 108 / 26%); }
.action-outline { border-color: rgb(255 243 230 / 27%); background: rgb(255 243 230 / 3%); }
.action-outline:hover { border-color: var(--coral); color: #ffb1a7; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.75rem, 5.8vw, 6.3rem) 0;
  background:
    radial-gradient(ellipse at 87% 17%, rgb(143 51 49 / 30%), transparent 57%),
    radial-gradient(ellipse at 5% 90%, rgb(51 92 69 / 31%), transparent 58%),
    #111914;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse at 57% 33%, #000, transparent 75%);
  pointer-events: none;
  content: "";
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.7rem, 3.7vw, 4rem);
}

.hero-copy { container-type: inline-size; }

.hero h1 {
  font-size: clamp(3rem, 6.2vw, 7rem);
  font-size: clamp(2.65rem, 15.4cqw, 7.25rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
}

.hero-line { display: block; }
.hero-accent {
  margin-block-start: 0.19em;
  color: var(--coral);
  font-size: 0.77em;
  font-weight: inherit;
  letter-spacing: -0.062em;
}

.hero-accent span { color: var(--gold); }

.hero-lead {
  max-width: 33rem;
  margin-block-start: clamp(1.2rem, 3.2vw, 1.9rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block-start: 1.7rem;
}

.hero-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.02;
  border: 1px solid rgb(244 200 169 / 36%);
  border-start-end-radius: 1.1rem;
  border-end-start-radius: 1.1rem;
  background: #27382f;
  box-shadow: 0 1.65rem 5.5rem rgb(0 0 0 / 36%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  filter: saturate(0.84) brightness(0.91);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgb(117 33 33 / 17%), transparent 50%),
    linear-gradient(0deg, rgb(5 13 10 / 65%), transparent 44%);
  pointer-events: none;
  content: "";
}

.hero-routes {
  position: absolute;
  z-index: 1;
  right: -4%;
  bottom: 17%;
  width: 53%;
  height: 4.5rem;
  color: var(--coral);
  transform: rotate(-24deg);
  pointer-events: none;
}

.route-track {
  position: absolute;
  right: 0;
  bottom: var(--lane-offset, 0);
  width: var(--lane-width, 100%);
  border-top: 1px solid currentColor;
  transform-origin: right;
}

.route-track:nth-child(2) { --lane-width: 80%; --lane-offset: 1.25rem; color: var(--gold); }
.route-track:nth-child(3) { --lane-width: 58%; --lane-offset: 2.5rem; color: #c2e3d2; }

.route-track::before, .route-track::after {
  position: absolute;
  top: 0;
  border-radius: 50%;
  content: "";
  translate: 0 -50%;
}

.route-track::before {
  left: 0;
  width: 0.46rem;
  height: 0.46rem;
  background: currentColor;
  box-shadow: 0 0 0 0.25rem rgb(17 25 20 / 34%), 0 0 1rem currentColor;
}

.route-track::after {
  right: 12%;
  width: 0.35rem;
  height: 0.35rem;
  background: #fff7eb;
  box-shadow: 0 0 1.05rem 0.2rem currentColor;
}

.hero-details {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding: 0;
  color: var(--cream);
  list-style: none;
  font-size: clamp(0.9rem, 1.2vw, 1.03rem);
  font-weight: 600;
}

.hero-details li {
  display: flex;
  min-height: clamp(3.55rem, 6.2vw, 5rem);
  align-items: center;
  gap: 0.7rem;
  padding-inline: clamp(0.7rem, 2.7vw, 2.25rem);
}

.hero-details li:first-child { padding-inline-start: 0; }
.hero-details li + li { border-inline-start: 1px solid var(--line); }

.hero-details li::before {
  width: 0.44rem;
  height: 0.44rem;
  flex: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  content: "";
}

.section { padding-block: clamp(3.7rem, 8.1vw, 7.55rem); }

.section-label {
  margin-block-end: 0.85rem;
  color: var(--coral);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.club-section, .scope-section {
  color-scheme: light;
  background: var(--paper);
  color: var(--paper-ink);
}

.club-section .section-label, .scope-section .section-label, .club-section h2 em { color: var(--paper-accent); }

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(1.1rem, 6vw, 6.2rem);
}

.club-section .split-heading > p {
  max-width: 35rem;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.65vw, 1.45rem);
  margin-block-start: clamp(1.7rem, 4.3vw, 3.4rem);
}

.club-card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 15.5rem;
  border: 1px solid rgb(74 89 78 / 55%);
  border-radius: 0.8rem;
  padding: clamp(1.25rem, 2.55vw, 2.2rem);
  background: #18251e;
  color: var(--cream);
  transition: border-color 280ms ease, box-shadow 340ms var(--ease-out), translate 340ms var(--ease-out);
}

.club-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 95% 3%, var(--club-color), transparent 58%);
  opacity: 0.13;
  content: "";
  transition: opacity 400ms ease;
}

.club-card:hover { border-color: var(--club-color); box-shadow: 0 0.8rem 1.8rem rgb(29 39 32 / 19%); translate: 0 -0.22rem; }
.club-card:hover::before { opacity: 0.23; }
.club-card.standard { --club-color: #ff908a; }
.club-card.gold { --club-color: #f2ce94; }
.club-card.diamond { --club-color: #a4e0ea; }

.club-card h3 {
  margin-block: 1.35rem 0.55rem;
  color: var(--club-color);
}

.club-card p { color: var(--muted); }
.club-card .club-rhythm {
  margin-block-end: 0.72rem;
  color: var(--club-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.club-line {
  display: flex;
  width: 4.1rem;
  height: 1px;
  align-items: center;
  justify-content: space-between;
  margin-block: 0.35rem;
  background: var(--club-color);
  transition: width 420ms var(--ease-out);
}

.club-card:hover .club-line { width: 6rem; }

.club-line::before, .club-line::after {
  width: 0.49rem;
  height: 0.49rem;
  border: 1px solid var(--club-color);
  border-radius: 50%;
  background: #18251e;
  content: "";
}

.club-line::after { background: var(--club-color); box-shadow: 0 0 1rem var(--club-color); }

.benefits-section {
  background: radial-gradient(ellipse at 0% 50%, #304538, transparent 62%), #14201a;
}

.benefits-layout, .join-layout { align-items: start; }
.benefits-layout h2 em, .join-layout h2 em { color: var(--gold); }

.benefits-list {
  border-inline-start: 1px solid rgb(240 201 154 / 44%);
  padding: 0;
  list-style: none;
}

.benefits-list li {
  position: relative;
  padding: 0.12rem 0 1.4rem clamp(1.2rem, 2.55vw, 2.25rem);
}

.benefits-list li + li { padding-block-start: 1rem; }
.benefits-list li:last-child { padding-block-end: 0; }

.benefits-list li::before {
  position: absolute;
  top: 0.65rem;
  left: -0.27rem;
  width: 0.51rem;
  height: 0.51rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #1c2b21;
  content: "";
}

.benefits-list li + li::before { top: 1.58rem; }

.benefits-list p, .join-copy p {
  margin-block-start: 0.6rem;
  color: var(--muted);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: 2rem;
  border-top: 1px solid #aca79b;
}

.scope-item { position: relative; padding: 1.4rem clamp(0.9rem, 3vw, 2.6rem) 0 0; }
.scope-item + .scope-item { border-inline-start: 1px solid #aca79b; padding-inline-start: clamp(0.9rem, 3vw, 2.6rem); }

.scope-item::before {
  position: absolute;
  top: -0.265rem;
  left: 0;
  width: 0.47rem;
  height: 0.47rem;
  border: 1px solid var(--paper-accent);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.scope-item:first-child::before { background: var(--paper-accent); }
.scope-item p { max-width: 32rem; margin-block-start: 0.6rem; color: var(--paper-muted); }

.join-section {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 12% 10%, #613432, transparent 66%), #24221b;
}

.join-copy p:first-child { margin-block-start: 0; }
.join-copy .action { margin-block-start: 1.5rem; }
.footer-inner { min-height: 5.6rem; }

@media (max-width: 55rem) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 43rem; }
  .hero h1 { font-size: clamp(2.65rem, 13.55cqw, 6rem); }
  .hero-photo { max-height: 31rem; aspect-ratio: 1.35; }
}

@media (max-width: 45rem) {
  :root { --header-height: 4.15rem; }
  .navigation { display: none; }
  .masthead-action { min-height: 2.65rem; padding-inline: 0.74rem; }
  .club-grid, .split-heading, .scope-grid { grid-template-columns: 1fr; }
  .club-card { min-height: 0; }
  .scope-grid { gap: 1.5rem; }
  .scope-item + .scope-item { border-inline-start: 0; border-top: 1px solid #aca79b; padding-inline-start: 0; }
}

@media (max-width: 29rem) {
  .action { font-size: 0.875rem; }
  .hero-details { grid-template-columns: 1fr; padding-block: 0.55rem; }
  .hero-details li, .hero-details li + li { min-height: 2.55rem; border-inline-start: 0; padding-inline: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-line { animation: rise 750ms var(--ease-out) backwards; }
  .hero-line:nth-child(2) { animation-delay: 80ms; }
  .hero-line:nth-child(3) { animation-delay: 160ms; }
  .hero-lead { animation: rise 680ms 240ms var(--ease-out) backwards; }
  .hero-actions { animation: rise 650ms 305ms var(--ease-out) backwards; }
  .hero-photo { animation: photo-arrival 1.15s var(--ease-out) backwards; }
  .hero-details { animation: rise 650ms 360ms var(--ease-out) backwards; }
  .route-track { animation: trace 1.25s 250ms var(--ease-out) backwards; }
  .route-track:nth-child(2) { animation-delay: 380ms; }
  .route-track:nth-child(3) { animation-delay: 500ms; }
  .route-track::after { animation: route-signal 1.85s 640ms var(--ease-out) backwards; }
  .route-track:nth-child(2)::after { animation-delay: 790ms; }
  .route-track:nth-child(3)::after { animation-delay: 940ms; }

  [data-reveal].entering { animation: rise 720ms var(--ease-out) backwards; }
  .club-card:nth-child(2).entering, .scope-item:nth-child(2).entering { animation-delay: 80ms; }
  .club-card:nth-child(3).entering { animation-delay: 160ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(1.1rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes photo-arrival {
    from { opacity: 0.32; clip-path: inset(0 0 0 16%); transform: translateX(1.2rem); }
    to { opacity: 1; clip-path: inset(0); transform: translateX(0); }
  }

  @keyframes trace {
    from { opacity: 0; transform: scaleX(0.08); }
    to { opacity: 1; transform: scaleX(1); }
  }

  @keyframes route-signal {
    from { opacity: 0; right: 98%; }
    30% { opacity: 1; }
    to { right: 12%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .action, .club-card, .club-card::before, .club-line, .navigation a::after { transition: none; }
  .action:hover, .club-card:hover { translate: none; }
  .reading-progress { display: none; }
}
