@font-face {
  font-family: Anybody;
  src: url("brand/fonts/Anybody-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

:root {
  --midnight: #141b38;
  --cobalt: #243acf;
  --chalk: #f5f4ef;
  --volt: #d8ef44;
  --gutter: clamp(24px, 4.3vw, 80px);
  color: var(--chalk);
  background: var(--midnight);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: max(700px, 100svh);
}

.hero-photo, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -3; object-fit: cover; object-position: 54% center; }
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, #141b38c0, transparent 14.5% 85%, #141b385a),
    linear-gradient(90deg, var(--cobalt), #243acfeb 32%, #243acf6b 49%, transparent 68%);
}
.hero-ball-position {
  position: absolute;
  z-index: -1;
  left: 59.65%;
  top: 55.49%;
  width: clamp(68px, 6.11vw, 104px);
  transform: translate3d(var(--ball-x, 0px), var(--ball-y, 0px), 0) translate(-50%, -50%);
  pointer-events: none;
}
.hero-ball { display: block; width: 100%; height: auto; }

.header {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 89px;
  padding-inline: var(--gutter);
}
.brand, .brand img { display: block; }
.brand img { width: 228px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(22px, 3.5vw, 52px); }
.nav button:not(.tour-button), .menu-toggle {
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: inherit;
}
.nav button:not(.tour-button):hover { text-decoration: underline; text-underline-offset: .28em; }
.nav .tour-button { margin-left: clamp(10px, 6.5vw, 100px); }
.menu-toggle { display: none; }
.menu-icon { width: 15px; height: 10px; border-block: 1px solid currentColor; }

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: clamp(126px, calc(20vh - 4px), 220px) var(--gutter) 92px;
}
.hero h1 {
  margin: 0 0 clamp(62px, 9.4vh, 86px);
  font: 850 clamp(66px, 8.1vw, 143px)/.9 Anybody, system-ui, sans-serif;
  font-stretch: 104%;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.hero h1 span { color: var(--volt); }
.hero p { max-width: 445px; margin: 0 0 46px; font-size: 21px; line-height: 1.44; }
.tour-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 186px;
  min-height: 53px;
  border: 0;
  padding: 13px 16px;
  background: var(--volt);
  color: var(--midnight);
  font-size: 15px;
  font-weight: 750;
  transition: background-color .2s ease;
}
.tour-button:hover { background: #e6fb81; }
.tour-button:focus-visible { outline-color: var(--chalk); }

.club-dialog {
  width: min(480px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  border: 1px solid #ffffff45;
  padding: 36px;
  background: var(--midnight);
  color: var(--chalk);
}
.club-dialog::backdrop { background: #090f26b8; }
.club-dialog h2 { margin: 0 32px 12px 0; font: 850 31px/1.05 Anybody, system-ui, sans-serif; }
.club-dialog p { line-height: 1.5; }
.close-form { position: absolute; right: 14px; top: 12px; }
.close { background: transparent; border: 0; color: inherit; inline-size: 39px; block-size: 39px; font-size: 26px; }
.tour-form { display: grid; gap: 16px; margin-top: 20px; }
.tour-form label, .tour-form input { display: block; width: 100%; }
.tour-form input { padding: 10px; margin-top: 6px; }
.tour-status:empty, [hidden] { display: none !important; }

@media (max-width: 940px) {
  .header { min-height: 70px; }
  .brand img { width: min(202px, 53vw); }
  .menu-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
  .nav {
    display: none;
    position: absolute;
    top: 65px;
    inset-inline: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 19px;
    background: var(--midnight);
    border: 1px solid #ffffff45;
  }
  .nav.is-open { display: flex; }
  .nav button:not(.tour-button) { text-align: left; }
  .nav .tour-button { margin: 6px 0 0; }
}

@media (max-width: 650px) {
  :root { --gutter: clamp(18px, 5.65vw, 27px); }
  .hero { min-height: max(760px, 100svh); background: var(--cobalt); }
  .hero-photo { object-position: 82% center; }
  .hero-shade {
    background:
      linear-gradient(180deg, transparent 43%, #243acfec 64%, var(--cobalt)),
      linear-gradient(180deg, #141b38d4, #141b380f 19%, transparent 54%, #141b3819);
  }
  .hero-ball-position { left: 40.25%; top: 43.36%; width: clamp(48px, 13.6vw, 63px); }
  .hero-content { padding: clamp(362px, calc(57.6svh - 70px), 470px) var(--gutter) 68px; }
  .hero h1 { font-size: clamp(38px, 13.05vw, 70px); line-height: 1.02; margin-bottom: 33px; }
  .hero p { max-width: 340px; margin-bottom: 37px; font-size: 16px; line-height: 1.5; }
  .desktop-copy { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-ball { animation: ball-reveal 850ms cubic-bezier(.2, .7, .2, 1) 150ms both; }
  .hero-content { animation: copy-reveal 620ms cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes ball-reveal {
  from { opacity: 0; transform: rotate(-24deg) scale(.8); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes copy-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
