@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-800-normal.woff2) format('woff2'); }
/* Metric-matched fallback keeps text from jumping when Montserrat arrives (CLS). */
@font-face { font-family: MontFallback; src: local(Arial); size-adjust: 112%; ascent-override: 86%; descent-override: 22%; }

:root {
  --bg: #0b1220; --panel: #12203a; --ink: #ffffff; --ink-2: #c5d0e0; --ink-3: #9aabc4;
  --cta: #1172D9; --cta-hover: #0e62bb; --gold: #c9a227; --line: #2c3d5c; --focus: #9fc4ff; --error: #ffb4a8;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 Montserrat, MontFallback, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--focus); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

html { scroll-padding-top: 88px; }
/* Fixed header: solid by default; scroll-driven browsers start it transparent over the photo (see Scroll motion). */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; height: 72px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 clamp(16px, 5vw, 80px); background: rgba(11, 18, 32, 0.97); }
.logo { height: 36px; width: auto; display: block; }
.logo.sm { height: 28px; }

/* Hero: full screen. Photo fills the right side on desktop and the top of the screen on phones, fading into navy. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 104px clamp(16px, 5vw, 80px) 72px; }
.hero-copy { max-width: 640px; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
h1 { font-size: clamp(34px, 5.2vw, 76px); line-height: 0.98; letter-spacing: -0.02em; text-transform: uppercase; }
h1 span { display: block; }
.hero .eyebrow { display: inline-block; padding: 5px 10px; border-radius: 6px; background: rgba(11, 18, 32, 0.85); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero h1, .hero .sub, .eyebrow, .done h2, .done > .sub-sm { text-shadow: 0 2px 18px rgba(11, 18, 32, 0.6); }
.gold { color: var(--gold); }
.sub { font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-2); max-width: 34ch; margin: 20px 0 0; }
.ref-note { margin: 16px 0 0; color: var(--gold); font-weight: 800; }
.join { margin-top: 28px; }
.join:focus { outline: none; }
.label { display: block; font-size: 14px; color: #e6ecf5; margin: 0 0 8px; }
.field-row { display: flex; gap: 12px; }
input[type=email], input[readonly], select {
  width: 100%; min-width: 0; height: 56px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: #fff; color: var(--bg); font: 500 16px Montserrat, MontFallback, sans-serif; padding: 0 16px; }
input[aria-invalid=true] { border-color: var(--error); box-shadow: 0 0 0 2px var(--error); }
select:disabled { background: #e8edf5; color: #556; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px;
  border-radius: var(--radius); border: 0; background: var(--cta); color: #fff; font: 800 16px Montserrat, MontFallback, sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--cta-hover); color: #fff; } .btn.ghost:hover { background: rgba(255,255,255,0.06); } }
.btn.ghost { background: transparent; border: 1.5px solid #5b6f8f; }
.btn[aria-busy=true] { opacity: 0.75; cursor: progress; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 10px; font-size: 14px; color: #e6ecf5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cta); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 0; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.msg:empty { margin: 0; }
.msg.error { color: var(--error); }
.msg button.linkish { background: none; border: 0; padding: 0; color: var(--focus); font: inherit; text-decoration: underline; cursor: pointer; min-height: 24px; }
.fine { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
#turnstile:empty { display: none; }

/* After signup */
.done h2 { font-size: clamp(28px, 3vw, 40px); }
.done:focus { outline: none; }
.sub-sm { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.card { margin-top: 20px; padding: 20px; border-radius: 20px; background: var(--panel); display: flex; flex-direction: column; gap: 4px;
  animation: up 350ms var(--ease-out) both; }
.card .label { margin-top: 12px; }
.card-title { font-weight: 800; font-size: 17px; margin: 0; }
.muted { color: var(--ink-3); font-weight: 500; }
.gold-note { color: var(--gold); font-weight: 800; font-size: 14px; margin: 16px 0 0; }
.gold-note:empty { display: none; }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.share-grid .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
.share-grid .btn:last-child:nth-child(odd) { grid-column: span 2; }  /* native Share (phones only) is last and spans the row */
#prefs .btn { margin-top: 16px; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Slideshow */
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
/* Crowd photos are busy: navy fade behind the text on the left keeps headline and form readable (WCAG contrast). */
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.82) 38%, rgba(11, 18, 32, 0.25) 70%, rgba(11, 18, 32, 0.1) 100%),
              linear-gradient(to bottom, rgba(11, 18, 32, 0.55), transparent 20%, transparent 75%, var(--bg)); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 600ms ease; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.slide.on { opacity: 1; }
.arc { position: absolute; top: 0; bottom: 0; left: 48%; width: 52%; height: 100%; pointer-events: none; }  /* right half: keeps clear of the headline */
.arc path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400; stroke-dashoffset: 0; animation: arc 1100ms var(--ease-in-out) 400ms both; opacity: 0.9; }
@keyframes arc { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.pause { position: absolute; z-index: 1; right: 16px; bottom: 16px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(11,18,32,0.72); color: #fff; font: 800 13px Montserrat, MontFallback, sans-serif; cursor: pointer; }

/* Entrance */
.rise { animation: rise 500ms var(--ease-out) both; }
.r1 { animation-delay: 120ms; } .r2 { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Competitions: identical white tiles, every logo PNG is the same 480x240 canvas, so all line up at one size */
.comps { max-width: 1120px; margin: 0 auto; padding: 56px clamp(16px, 5vw, 80px) 48px; text-align: center; }
.comps .eyebrow { margin-bottom: 24px; text-shadow: none; }
.comp-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.comp-logos li { flex: 0 0 168px; background: #fff; border-radius: 14px; padding: 18px 24px; }
.comp-logos img { display: block; width: 100%; height: auto; }
.comps-note { margin: 24px auto 0; max-width: 60ch; font-size: 12px; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; padding: 32px clamp(16px, 5vw, 80px); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot p { margin: 0; }

/* Mobile: photo fills the top of the screen, copy and form sit on the navy fade below it (form above the fold) */
@media (max-width: 959px) {
  html { scroll-padding-top: 72px; }
  .top { height: 60px; } .logo { height: 28px; }
  /* Copy starts ~480px above the bottom so face stays clear, while button and 18+ box stay above the fold; fine print may fall just below. */
  .hero { --copy-h: 480px; --copy-top: max(150px, calc(100svh - var(--copy-h))); display: block; padding: var(--copy-top) 16px 28px; }
  .hero-media { bottom: auto; height: calc(var(--copy-top) + 150px); }
  .hero-media::after { background: linear-gradient(to bottom, rgba(11, 18, 32, 0.55), transparent 18%, transparent 55%, var(--bg) 100%); }
  .slide img { object-position: 50% 12%; }
  .arc { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: 0.2em; margin-bottom: 12px; }
  h1 { font-size: clamp(30px, 9.6vw, 52px); }
  .sub { margin-top: 12px; }
  .join { margin-top: 20px; }
  .pause { top: 72px; bottom: auto; right: 10px; padding: 0 12px; font-size: 12px; }
  .comp-logos { gap: 10px; }
  .comp-logos li { flex-basis: calc((100% - 20px) / 3); max-width: 168px; padding: 12px 14px; }  /* never larger than on desktop */
  .comps { padding-top: 40px; }
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
}

/* Short phones (iPhone SE): drop eyebrow and subline so the photo keeps the face clear. */
@media (max-width: 959px) and (max-height: 700px) { .hero { --copy-h: 385px; } .hero .eyebrow, .hero .sub { display: none; } }

/* Landscape phones: short screens. Full photo behind (desktop-style fade), compact headline, form row above the fold. */
@media (max-width: 959px) and (orientation: landscape) and (max-height: 500px) {
  .hero { --copy-top: 72px; padding-bottom: 20px; }
  .hero-media { height: auto; bottom: 0; }
  .hero-media::after { background: linear-gradient(to right, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.82) 45%, rgba(11, 18, 32, 0.3) 80%); }
  .hero-copy { max-width: 560px; }
  h1 { font-size: 30px; }
  .join { margin-top: 14px; }
  .field-row { flex-direction: row; }
  .field-row .btn { width: auto; }
}

/* Scroll motion: CSS scroll-driven, never pins or hijacks the scroll. Browsers without support, and reduced motion, get the static page. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .top { animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0 50vh; }
    .slides { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-lead { animation: lift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes header-solid { from { background: rgba(11, 18, 32, 0); } to { background: rgba(11, 18, 32, 0.97); } }
@keyframes drift { from { transform: scale(1.08); } to { transform: translateY(14%) scale(1); } }
@keyframes lift { to { opacity: 0; transform: translateY(-48px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .card { animation: none; }
  .arc path { animation: none; }
  .slide { transition: none; }
  .btn { transition: none; }
}
