.surf-home {
  color: var(--surf-ink);
  background: var(--surf-lilac);
}

.surf-home main { margin-block-start: calc(-1 * var(--surf-nav-height)); }

.surf-wrap {
  width: min(100% - 4rem, 1280px);
  margin-inline: auto;
}

.surf-home main :is(h1, h2, h3, p) { margin: 0; }
.surf-home main :is(h2, h3) {
  font-family: var(--surf-display);
  font-stretch: 120%;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}
.surf-home main h2 { font-size: 3.5rem; }
.surf-home main h3 { font-size: 1.8rem; }
.surf-home main p { line-height: 1.5; }

.surf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--surf-ink);
  background: var(--surf-lime);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease;
}

.surf-button:hover { background: var(--surf-paper); }
.surf-button-outline { border-color: currentColor; color: white; background: rgb(21 16 28 / 22%); }
.surf-button-outline:hover { color: var(--surf-ink); }
.surf-home main a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.surf-home main section[id] { scroll-margin-top: 74px; }

.surf-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  inline-size: 100%;
  min-inline-size: 0;
  min-height: 30rem;
  aspect-ratio: 2 / 1;
  overflow: clip;
  background: #334b64;
  color: white;
}

.surf-hero-image, .surf-club > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surf-hero-image { object-position: center; }
.surf-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(0deg, rgb(26 13 26 / 58%), transparent 55%),
              linear-gradient(180deg, rgb(34 16 22 / 18%), transparent 30%);
  pointer-events: none;
}

.surf-hero::before {
  --checker-tile: 2rem;
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 2% var(--checker-tile);
  height: var(--checker-tile);
  background-image: conic-gradient(var(--surf-lilac) 0 25%, transparent 25% 50%, var(--surf-lilac) 50% 75%, transparent 75%);
  background-size: var(--checker-tile) var(--checker-tile);
  background-repeat: repeat-x;
  pointer-events: none;
}

.surf-hero-layout {
  z-index: 1;
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding-block: calc(var(--surf-nav-height) + 2.5rem) 5rem;
}

.surf-hero-kicker {
  justify-self: start;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}
.surf-home main .surf-hero-kicker { line-height: 1.15; }

.surf-shell {
  display: block;
  background: currentColor;
  mask: var(--surf-mark) center / contain no-repeat;
}

.surf-shell {
  --surf-mark: url("../assets/chia-tag-shell.png");
  width: 5rem;
  aspect-ratio: 144 / 121;
}

.surf-hero-shell { position: absolute; inset: calc(var(--surf-nav-height) + 2.5rem) 0 auto auto; width: 4.8rem; height: auto; transform: rotate(-12deg); }
.surf-hero-ink { filter: brightness(0) saturate(100%) invert(95%) sepia(91%) saturate(715%) hue-rotate(12deg) brightness(103%); }
.surf-hero-copy { width: 100%; text-align: center; }
.surf-hero-copy h1 { display: flex; justify-content: center; }
.surf-wordmark {
  display: block;
  width: min(40%, 29rem);
  height: auto;
}

.surf-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.surf-home .surf-hero-copy > p { margin-top: 0.45rem; font-size: 1.25rem; font-weight: 600; text-transform: uppercase; word-spacing: 0.25em; }
.surf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.5rem; margin-top: 1.25rem; }
.surf-actions .surf-button { min-width: 13.5rem; gap: 0.5rem; text-transform: uppercase; }

.surf-story {
  padding-block: calc(3rem + 30px) calc(3.5rem + 30px);
  background: var(--surf-lilac);
}
.surf-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 1.5rem 3rem;
  padding-inline: 1rem;
  margin-bottom: 2.25rem;
}
.surf-home .surf-section-heading h2 {
  padding-bottom: 0.25em;
  font-size: 4rem;
  font-stretch: 125%;
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}
.surf-section-heading p { max-width: 29rem; font-size: 1.2rem; }
.surf-story-stroke { position: relative; display: inline-block; }
.surf-story-stroke::after {
  content: "";
  position: absolute;
  inset: auto -5% -0.23em -5%;
  height: 0.2em;
  background: var(--surf-lime);
  clip-path: polygon(0 88%, 9% 65%, 29% 41%, 58% 23%, 79% 18%, 100% 20%, 99% 42%, 84% 53%, 69% 72%, 84% 64%, 85% 82%, 61% 92%, 62% 68%, 23% 81%, 1% 100%);
  transform: rotate(-3deg);
  pointer-events: none;
}

.surf-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.surf-route {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  inline-size: 100%;
  min-inline-size: 0;
  aspect-ratio: 16 / 9;
  min-height: 16rem;
  border-radius: 8px;
  overflow: clip;
  color: white;
  background: #71404d;
}
.surf-route-custom { background: #694944; }
.surf-route > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 400ms ease;
}
.surf-route::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(33 19 30 / 64%), rgb(33 19 30 / 35%) 40%, transparent 76%);
  pointer-events: none;
}
.surf-route-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding-block: 1.25rem;
  margin-inline-start: 8%;
  width: 39%;
}
.surf-home .surf-route h3 {
  font-size: 2.15rem;
  font-stretch: 100%;
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}
.surf-home .surf-route p { max-width: 13rem; line-height: 1.35; }
.surf-route-copy :is(h3, p) { overflow-wrap: anywhere; }
.surf-route-arrow {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  margin-top: 0.55rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}
.surf-home main .surf-route:focus-visible { outline-color: var(--surf-ink); }
.surf-route:is(:hover, :focus-visible) .surf-route-arrow {
  background: var(--surf-lime);
  border-color: var(--surf-lime);
  color: var(--surf-ink);
}
.surf-route:is(:hover, :focus-visible) img { scale: 1.035; }

.surf-club {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 29rem;
  background: #40535c;
  color: white;
}
.surf-club > img { object-position: 52% 51%; }
.surf-club::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(36 24 40 / 82%), rgb(36 24 40 / 9%) 75%);
}
.surf-club-layout { position: relative; z-index: 1; padding-block: 3.5rem; }
.surf-club-copy { display: grid; max-width: 26rem; justify-items: start; gap: 0.9rem; }
.surf-club-copy .surf-shell { width: 3rem; }
.surf-club-copy :is(h2, .surf-shell) { color: var(--surf-lime); }

@media (prefers-reduced-motion: no-preference) {
  .surf-home [data-reveal].is-visible { animation: surf-reveal 500ms ease-out both; }
  @keyframes surf-reveal {
    from { opacity: 0.72; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1100px) {
  .surf-home .surf-section-heading h2 { font-size: 3.15rem; }
  .surf-home .surf-route h3 { font-size: 1.7rem; }
}

@media (max-width: 900px) {
  .surf-home main h2 { font-size: 2.75rem; }
  .surf-home .surf-section-heading h2 { font-size: 2.55rem; }
  .surf-section-heading { padding-inline: 0; gap: 1.25rem 1.5rem; }
  .surf-section-heading p { font-size: 1rem; }
  .surf-routes { gap: 0.875rem; }
}

@media (max-width: 720px) {
  .surf-section-heading { grid-template-columns: minmax(0, 1fr); margin-bottom: 1.5rem; }
  .surf-routes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .surf-wrap { width: min(100% - 2rem, 1280px); }
  .surf-home main h2 { font-size: 2.2rem; }
  .surf-home main h3 { font-size: 1.5rem; }
  .surf-hero { aspect-ratio: auto; min-height: clamp(30rem, 74svh, 40rem); }
  .surf-hero::before { --checker-tile: 1.25rem; }
  .surf-hero::after { background: linear-gradient(0deg, rgb(18 16 24 / 76%), transparent 68%), linear-gradient(180deg, rgb(18 16 24 / 40%), transparent 24%); }
  .surf-hero-layout { padding-block: calc(var(--surf-nav-height) + 1.35rem) 3.6rem; }
  .surf-hero-shell { width: 3.25rem; inset-block-start: calc(var(--surf-nav-height) + 1.35rem); }
  .surf-wordmark { width: min(68%, 17rem); }
  .surf-actions { gap: 0.5rem; }
  .surf-actions .surf-button { min-width: 0; padding-inline: 0.75rem; font-size: 0.78rem; }
  .surf-story { padding-block: calc(2rem + 30px) calc(2.5rem + 30px); }
  .surf-route > img { object-position: 65% center; }
  .surf-route-custom > img { object-position: 47% center; }
  .surf-route-copy { margin-inline-start: 6%; width: 44%; }
  .surf-home .surf-route h3 { font-size: 1.5rem; }
  .surf-home .surf-route p { font-size: 0.9rem; }
  .surf-club { min-height: 26rem; }
  .surf-club-layout { padding-block: 2rem; }
  .surf-club > img { object-position: 58% 51%; }
  .surf-club::after { background: linear-gradient(0deg, rgb(36 24 40 / 86%), transparent 88%); }
}

@media (max-width: 420px) {
  .surf-home .surf-section-heading h2 { font-size: 1.95rem; }
  .surf-route::after { background: linear-gradient(90deg, rgb(33 19 30 / 78%), rgb(33 19 30 / 47%) 43%, transparent 82%); }
}

@media (prefers-reduced-motion: reduce) {
  .surf-home { scroll-behavior: auto; }
  .surf-home main :is(a, img, .surf-route-arrow) { transition: none; }
  .surf-route:is(:hover, :focus-visible) img { scale: 1; }
}
