/* Overseas Cricket pre-launch page: W-00 Coming soon + globe scene + about sections. */

/* ======================================================================
   Fonts and tokens (from W-00)
   ====================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
}

:root {
  --navy: #14173a; --navy-2: #23285a; --teal: #36c3c9; --card: #ffffff;
  --font-display: 'Instrument Sans', Inter, sans-serif; --font-body: Inter, system-ui, sans-serif;
  --r-2: 14px; --r-3: 20px; --r-pill: 999px; --focus-ring: 3px solid var(--teal);
  --motion-ambient: 40s;

  /* W-00's own text and field colours */
  --text: #d6d8ea;
  --text-2: #b9bcd6;
  --text-3: #9a9ec0;
  --link: #8fe0e3;
  --field: #1c2050;
  --line: #3a4078;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); }
a:hover { color: #ffffff; }

:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

[hidden] { display: none !important; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; color: var(--navy); }

/* ======================================================================
   GlobeScene (change-globe-holding, designer 2026-10-24), copied as-is.
   Mask paths: artwork/ -> art/, with -webkit-mask twins.
   Scene coordinates: the .globe box is 1200 x 800 units. Globe centre (600, 400), radius 300.
   ====================================================================== */

.gs {
  --gs-ink: color-mix(in srgb, var(--card) 40%, var(--navy));
  --gs-faint: color-mix(in srgb, var(--card) 16%, var(--navy));
  --gs-disc: color-mix(in srgb, var(--card) 4%, var(--navy));
  --gs-limb: color-mix(in srgb, var(--card) 12%, var(--navy));
  --gs-scale: 1;
  --gs-floor: 120px;          /* kept clear at the bottom for the flag strip */
  --gs-flag-w: 72px;
  --gs-flag-h: 48px;
  --gs-flag-gap: 88px;        /* one copy = 10 x (72 + 88) = 1,600px */
  --gs-strip-bottom: 40px;
  --gs-strip-fade: 96px;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--card);
}

/* ---------- the decorative layer (aria-hidden, nothing focusable, no text) ---------- */
.gs-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gs-globe {
  position: absolute;
  left: 50%;
  top: calc((100% - var(--gs-floor)) / 2);
  width: 1200px;
  height: 800px;
  margin: -400px 0 0 -600px;
  transform: scale(var(--gs-scale));   /* static: never animated */
}

.gs-disc,
.gs-land {
  position: absolute;
  left: 300px;
  top: 100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
}

.gs-disc {
  background: var(--gs-disc);
  box-shadow: inset 0 0 0 1.5px var(--gs-limb);
}

/* dotted land: a 10-unit dot grid, shown only where the land mask is */
.gs-land {
  background: radial-gradient(circle, var(--gs-faint) 1.7px, transparent 2.3px) 0 0 / 10px 10px;
  -webkit-mask: url('art/globe-land.svg') center / 100% 100% no-repeat;
  mask: url('art/globe-land.svg') center / 100% 100% no-repeat;
}

/* inline SVG: stroke and dots use currentColor */
.gs-routes {
  position: absolute;
  inset: 0;
  width: 1200px;
  height: 800px;
  color: var(--gs-faint);
  overflow: visible;
}

.gs-passport {
  position: absolute;
  left: 318px;
  top: 548px;
  width: 40px;
  height: 52.5px;
  transform: rotate(-14deg);
  background: var(--gs-ink);
  -webkit-mask: url('art/passport.svg') center / 100% 100% no-repeat;
  mask: url('art/passport.svg') center / 100% 100% no-repeat;
}

/* ---------- the plane: an arm turning about the route circle's centre ----------
   Circle centre (636.1, 475.9), radius 303.7; start angle 11deg, end angle -116.8deg. */
.gs-arm {
  position: absolute;
  left: 636.1px;
  top: 475.9px;
  width: 0;
  height: 0;
  transform: rotate(11deg);
  opacity: 0;
  animation: gs-fly var(--motion-ambient) linear infinite;
}

.gs-plane {
  position: absolute;
  left: 287.7px;              /* radius 303.7 minus half the plane */
  top: -16px;
  width: 32px;
  height: 32px;
  transform: rotate(-90deg);
  background: var(--gs-ink);
  -webkit-mask: url('art/plane.svg') center / 100% 100% no-repeat;
  mask: url('art/plane.svg') center / 100% 100% no-repeat;
}

@keyframes gs-fly {
  0% { transform: rotate(11deg); opacity: 0; }
  6% { opacity: 1; }
  64% { opacity: 1; }
  70% { transform: rotate(-116.8deg); opacity: 0; }
  100% { transform: rotate(-116.8deg); opacity: 0; }
}

/* ---------- the flag strip: a band no wider than one copy, so the loop never shows a gap ---------- */
.gs-strip {
  position: absolute;
  left: 50%;
  bottom: var(--gs-strip-bottom);
  width: min(100%, calc(10 * (var(--gs-flag-w) + var(--gs-flag-gap))));
  height: var(--gs-flag-h);
  transform: translateX(-50%);   /* static */
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, black var(--gs-strip-fade), black calc(100% - var(--gs-strip-fade)), transparent);
  mask: linear-gradient(90deg, transparent, black var(--gs-strip-fade), black calc(100% - var(--gs-strip-fade)), transparent);
}

.gs-track {
  display: flex;
  width: max-content;
  animation: gs-strip var(--motion-ambient) linear infinite;
}

.gs-flag {
  flex: none;
  width: var(--gs-flag-w);
  height: var(--gs-flag-h);
  margin-right: var(--gs-flag-gap);
  border-radius: 4px;
  background: var(--gs-flag-src) center / 100% 100% no-repeat;
  opacity: .4;   /* white artwork at 40% = the kit's ink colour on navy */
}

/* order in the strip: alphabetical by English name (Australia … Wales), so no country leads */
.gs-flag.f-au { --gs-flag-src: url('art/flag-au.svg'); }
.gs-flag.f-gb-eng { --gs-flag-src: url('art/flag-gb-eng.svg'); }
.gs-flag.f-in { --gs-flag-src: url('art/flag-in.svg'); }
.gs-flag.f-ie { --gs-flag-src: url('art/flag-ie.svg'); }
.gs-flag.f-nz { --gs-flag-src: url('art/flag-nz.svg'); }
.gs-flag.f-pk { --gs-flag-src: url('art/flag-pk.svg'); }
.gs-flag.f-gb-sct { --gs-flag-src: url('art/flag-gb-sct.svg'); }
.gs-flag.f-za { --gs-flag-src: url('art/flag-za.svg'); }
.gs-flag.f-lk { --gs-flag-src: url('art/flag-lk.svg'); }
.gs-flag.f-gb-wls { --gs-flag-src: url('art/flag-gb-wls.svg'); }

@keyframes gs-strip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- page content sits above the scene ---------- */
.gs-content {
  position: relative;
  z-index: 1;
}

/* ---------- reduced motion: the still, from the first paint ---------- */
@media (prefers-reduced-motion: reduce) {
  .gs-track,
  .gs-arm {
    animation: none;
  }

  .gs-arm {
    transform: rotate(-52.9deg);   /* the route's middle angle: plane shown mid-flight */
    opacity: 1;
  }
}

/* ---------- sizes ---------- */
@media (max-width: 1199px) {
  .gs {
    --gs-scale: 0.8;
  }
}

@media (max-width: 759px) {
  .gs {
    --gs-scale: 0.62;
    --gs-floor: 96px;
    --gs-flag-w: 48px;
    --gs-flag-h: 32px;
    --gs-flag-gap: 56px;       /* one copy = 10 x 104 = 1,040px */
    --gs-strip-bottom: 32px;
    --gs-strip-fade: 40px;
  }
}

/* ---------- the "side" layout (W-00) ----------
   From 1200px the globe sits on the right of the text column.
   Below 1200px it sits above the hero as a small picture (the page keeps a 330px gap for it at 390). */
.gs-side .gs-globe {
  left: calc(100% - 380px);
}

@media (max-width: 1199px) {
  .gs-side {
    --gs-scale: 0.5;
  }

  .gs-side .gs-globe {
    left: 50%;
    top: 222px;
  }
}

/* ======================================================================
   Hero (W-00 Coming soon)
   ====================================================================== */
.hero { color: var(--text); }

.hero-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 36px 80px var(--gs-floor);
  gap: 32px;   /* keeps the tag clear of the logo when the club form makes the hero taller */
}

.hero-head {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: #ffffff;
}
.logo-word span { color: var(--teal); }

.hero-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  /* the text column stays clear of the globe's plane route between 1200 and 1440 */
  max-width: min(720px, calc(100% - 500px));
  padding: 0 0 24px;
}

.tag {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--navy-2);
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #ffffff;
}
.hero h1 span { color: var(--teal); }

.lede {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  max-width: 620px;
}

.sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 620px;
}

/* ---------- the form ---------- */
.join { max-width: 620px; }
.join:focus { outline: none; }

.join-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sides-pick {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.pill { position: relative; display: block; }

.pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
  cursor: pointer;
}

.pill:hover > span { border-color: color-mix(in srgb, var(--card) 35%, var(--line)); }

.pill input:checked + span {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
}

.pill input:focus-visible + span {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.pill .short { display: none; }

/* words that change with the side picked */
.join-form:not(.is-club) .for-club,
.join-form.is-club .for-player { display: none; }

.q-label {
  display: block;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-2);
}
.q-hint { font-weight: 400; color: var(--text-3); }

.roles,
.reach,
.country-list { margin: 0; padding: 0; border: 0; min-width: 0; }

/* ---------- role tiles (players pick one, clubs pick any) ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.role { position: relative; display: block; }
.role input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.role > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 80px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.role-ico { color: var(--teal); transition: color .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.role:hover > span { border-color: color-mix(in srgb, var(--card) 35%, var(--line)); }
.role input:checked + span { background: #ffffff; border-color: #ffffff; color: var(--navy); }
.role input:checked + span .role-ico { color: var(--navy); transform: scale(1.1); }
.role input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; }
.roles[aria-invalid="true"] .role > span { border-color: #ff9aa2; }

/* ---------- country and opportunity (appear once a role is picked) ---------- */
.join-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
}
.join-more:not([hidden]) { animation: join-more .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes join-more {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.country-field { grid-column: 1; grid-row: 1; }
.reach { grid-column: 2; grid-row: 1; }
.country-list { grid-column: 1 / -1; grid-row: 2; }
.country-other { grid-column: 1; }   /* under the dropdown, below the list when it is open */

.input.country-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}
.country-btn[aria-invalid="true"] { border-color: #ff9aa2; }
.country-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-btn.is-empty .country-value { color: var(--text-3); }
.chev { flex: none; color: var(--text-2); transition: transform .2s; }
.country-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.flag {
  flex: none;
  display: block;
  width: 30px;
  height: 20px;
  border-radius: 2px;
  background: var(--flag) center / 100% 100% no-repeat;   /* white artwork, a plain image */
}
.flag-none { background: none; border: 1.5px dashed var(--line); }
.flag.f-gb { --flag: url('art/flag-gb.svg'); }
.flag.f-au { --flag: url('art/flag-au.svg'); }
.flag.f-nz { --flag: url('art/flag-nz.svg'); }
.flag.f-za { --flag: url('art/flag-za.svg'); }
.flag.f-other { --flag: url('art/flag-other.svg'); }

/* the open list: in the page flow (so nothing is cut off), two columns of flags */
.country-list:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--navy-2);
  animation: join-more .25s cubic-bezier(.2, .8, .2, 1) both;
}
.c-opt { position: relative; display: block; }
.c-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.c-opt > span {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-2);
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
  cursor: pointer;
}
.c-opt:hover > span { background: color-mix(in srgb, var(--card) 8%, var(--navy-2)); }
.c-opt input:checked + span { background: #ffffff; color: var(--navy); font-weight: 600; }
.c-opt input:checked + span .flag { filter: brightness(0); opacity: .85; }   /* dark flag on the white chosen row */
.c-opt input:focus-visible + span { outline: var(--focus-ring); outline-offset: -2px; }
.c-opt .flag { animation: flag-in .3s cubic-bezier(.3, 1.5, .5, 1) both; }
.c-opt:nth-child(2) .flag { animation-delay: .02s; }
.c-opt:nth-child(3) .flag { animation-delay: .04s; }
.c-opt:nth-child(4) .flag { animation-delay: .06s; }
.c-opt:nth-child(5) .flag { animation-delay: .08s; }
@keyframes flag-in {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: none; }
}

.reach-pick { display: flex; gap: 8px; }
.reach-pick .pill > span { height: 56px; padding: 0 20px; }
.is-club .reach-pick .pill:nth-child(2) { order: -1; }   /* clubs: Overseas, Local, Both */
.reach[aria-invalid="true"] .pill > span { border-color: #ff9aa2; }

@media (prefers-reduced-motion: reduce) {
  .join-more:not([hidden]),
  .country-list:not([hidden]),
  .c-opt .flag { animation: none; }
  .role > span, .role-ico, .chev { transition: none; }
}

.join-row {
  display: flex;
  gap: 10px;
}

.join-names {
  display: flex;
  gap: 10px;
}
.join-names .field { flex: 1 1 0; min-width: 0; }

.input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 22px;
  background: var(--field);
  font-family: var(--font-body);
  font-size: 16px;
  color: #ffffff;
}
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: #ff9aa2; }
.join-row .input { flex: 1 1 auto; width: auto; }

.btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--teal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-join:hover { background: color-mix(in srgb, var(--card) 18%, var(--teal)); color: var(--navy); }
.btn-join:focus-visible { outline-color: #ffffff; }
.btn-join[aria-disabled="true"] { opacity: .7; cursor: progress; }

/* honeypot: off-screen, never seen or reached by people */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile shows itself only if it needs the visitor to click */
.ts:empty { display: none; }

.join-error {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffb3b9;
}
.join-error:empty { display: none; }

.join-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- "You're on the list" ---------- */
.done-card {
  background: var(--field);
  border-radius: var(--r-3);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.done-card:focus { outline: none; }
.done-card:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.done-tick {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.done-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; }
.done-text b { color: #ffffff; font-size: 15px; font-weight: 600; }

/* ---------- success animation: plays once when the card appears (it starts hidden) ----------
   card rises in → circle pops → tick draws → ring ripples and dots burst out → text slides in */
.done-card:not([hidden]) { animation: done-card .45s cubic-bezier(.2, .8, .2, 1) both; }
.done-card:not([hidden]) .done-tick { animation: done-pop .5s cubic-bezier(.3, 1.6, .5, 1) .12s both; }
.done-tick { position: relative; }
.done-tick svg { position: relative; z-index: 1; }
.done-tick path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.done-card:not([hidden]) .done-tick path { animation: done-draw .4s ease-out .4s both; }

.done-ring,
.done-burst { position: absolute; inset: 0; pointer-events: none; }
.done-ring { border-radius: 50%; border: 2px solid var(--teal); opacity: 0; }
.done-card:not([hidden]) .done-ring { animation: done-ring .7s ease-out .35s both; }

.done-burst i {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0;
  --a: 0deg;
  --d: 42px;
}
.done-burst i:nth-child(3n + 2) { background: #ffffff; width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.done-burst i:nth-child(3n) { background: #f6c445; border-radius: 1px; }
.done-burst i:nth-child(1)  { --a: 0deg;   --d: 42px; }
.done-burst i:nth-child(2)  { --a: 36deg;  --d: 52px; }
.done-burst i:nth-child(3)  { --a: 72deg;  --d: 40px; }
.done-burst i:nth-child(4)  { --a: 108deg; --d: 50px; }
.done-burst i:nth-child(5)  { --a: 144deg; --d: 44px; }
.done-burst i:nth-child(6)  { --a: 180deg; --d: 54px; }
.done-burst i:nth-child(7)  { --a: 216deg; --d: 41px; }
.done-burst i:nth-child(8)  { --a: 252deg; --d: 51px; }
.done-burst i:nth-child(9)  { --a: 288deg; --d: 42px; }
.done-burst i:nth-child(10) { --a: 324deg; --d: 48px; }
.done-card:not([hidden]) .done-burst i { animation: done-burst .75s cubic-bezier(.15, .7, .3, 1) .4s both; }

.done-card:not([hidden]) .done-text > * { animation: done-text .45s cubic-bezier(.2, .8, .2, 1) .3s both; }
.done-card:not([hidden]) .done-text > span { animation-delay: .42s; }

@keyframes done-card {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes done-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
@keyframes done-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes done-ring {
  0%   { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.4); }
}
@keyframes done-burst {
  0%   { opacity: 0; transform: rotate(var(--a)) translateX(10px) scale(1); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.4); }
}
@keyframes done-text {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

/* less motion: the card simply appears, tick already drawn */
@media (prefers-reduced-motion: reduce) {
  .done-card:not([hidden]),
  .done-card:not([hidden]) .done-tick,
  .done-card:not([hidden]) .done-tick path,
  .done-card:not([hidden]) .done-text > * { animation: none; }
  .done-ring,
  .done-burst { display: none; }
}

/* ======================================================================
   Sections below the hero
   ====================================================================== */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.sec { padding: 96px 0 0; }

.h2 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #ffffff;
}
.h2 span { color: var(--teal); }

.intro {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}

.aud {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--link);
}
.ico { flex: none; }

/* the same questions */
.q-cols,
.s-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.q-col,
.s-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q-card {
  background: var(--field);
  border: 1px solid color-mix(in srgb, var(--card) 6%, var(--field));
  border-radius: var(--r-3);
  padding: 28px;
}
.q-card p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.q-card .q { color: #ffffff; }
.q-card .a { color: var(--teal); margin-top: 4px; }

/* two sides, one season */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--field);
  border-radius: var(--r-2);
  padding: 16px 18px;
}
.steps b {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.steps strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.steps li > span > span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}

/* three points */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.points li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border-radius: var(--r-3);
  background: var(--navy-2);
}
.tile {
  width: 48px; height: 48px;
  margin-bottom: 8px;
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--teal) 16%, var(--navy-2));
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.points h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.015em;
  color: #ffffff;
}
.points p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

/* closing band */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 32px;
  border-radius: 28px;
  background: var(--teal);
  color: var(--navy);
  text-align: center;
}
.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.cta p { margin: 0 0 10px; font-size: 18px; }
.cta .btn-join { background: var(--navy); color: #ffffff; }
.cta .btn-join:hover { background: var(--navy-2); color: #ffffff; }
.cta .btn-join:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* footer */
.foot { padding: 64px 0 40px; }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
  font-size: 14px;
  color: var(--text-3);
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

/* ---------- floating "Tell me when it opens" ---------- */
.float-join {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(6, 8, 28, .45);
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.float-join.is-shown {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .float-join,
  .float-join.is-shown { transition: none; transform: none; }
}

/* ---------- privacy modal ---------- */
.modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--field);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  overflow: auto;
}
.modal::backdrop { background: rgba(8, 10, 30, .72); }
.modal-in {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}
.modal h2 {
  margin: 0;
  padding-right: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -.02em;
  color: #ffffff;
}
.modal p { margin: 0; font-size: 16px; line-height: 1.6; }
.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}
.modal-x:hover { background: var(--navy-2); }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.modal-ok { height: 48px; padding: 0 28px; }
body:has(.modal[open]) { overflow: hidden; }

/* ======================================================================
   Sizes
   ====================================================================== */

/* ---------- intro video: it takes the globe's place at every size ----------
   Laptop and desktop (1200px and up): the text column on the left, the video on the right.
   Phone and tablet: the video sits above the text, where the globe was. */
.gs-side .gs-globe { display: none; }
.hero-body { display: contents; }
.hero-video { order: 1; width: 100%; max-width: 720px; }
.hero-main { order: 2; }

.intro-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-3);
  background: #f3f5f8;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--card) 14%, var(--navy)), 0 24px 60px rgba(0, 0, 0, .45);
}
.intro-video:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }

@media (min-width: 1200px) {
  .hero-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 56px;
  }
  .hero-body .hero-main {
    align-self: stretch;
    flex: 1 1 540px;
    min-width: 0;
    max-width: 640px;
  }
  .hero-video {
    order: 2;   /* same as the text column, so the page order puts the video on the right */
    flex: 1 1 440px;
    min-width: 0;
    max-width: 760px;
    margin-left: auto;
    align-self: flex-start;
    margin-top: 52px;   /* level with the top of the headline (tag 28px + 24px gap) */
  }
  .hero h1 { font-size: clamp(56px, 4.8vw, 72px); }
}

/* below 1200px the video sits above the text */
@media (max-width: 1199px) {
  .hero-content { padding: 28px 40px var(--gs-floor); }
  .hero-main {
    flex-grow: 0;
    justify-content: flex-start;
    max-width: 720px;
    padding-top: 0;
  }
  .wrap { padding: 0 40px; }
  .points { grid-template-columns: 1fr; }
}

/* phone (W-00 at 390) */
@media (max-width: 759px) {
  .hero-content { padding: 20px 16px var(--gs-floor); }
  .hero-head { min-height: 36px; }
  .logo { gap: 8px; }
  .logo-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
  .logo-word { font-size: 17px; }

  .hero-main { gap: 18px; padding-top: 0; }
  .hero-video { margin-top: -8px; }
  .intro-video { border-radius: var(--r-2); }
  .tag { padding: 5px 12px; }
  .hero h1 { font-size: 42px; line-height: 1.05; letter-spacing: -.03em; }
  .lede { font-size: 17px; }
  .sub { font-size: 15px; }

  .join-form { gap: 10px; }
  .sides-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill > span { height: 46px; padding: 0 12px; font-size: 14px; }
  .pill .long { display: none; }
  .pill .short { display: inline; }
  .join-names,
  .join-row { flex-direction: column; }
  .role-grid { gap: 6px; }
  .role > span { height: 72px; gap: 4px; padding: 0 2px; font-size: 11.5px; }
  .role-ico { width: 24px; height: 24px; }
  .join-more { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .country-field, .reach, .country-list, .country-other { grid-column: auto; grid-row: auto; }
  .reach { margin-top: 4px; }
  .reach-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reach-pick .pill > span { height: 50px; padding: 0 8px; }
  .country-list:not([hidden]) { padding: 6px; }
  .c-opt > span { gap: 10px; padding: 0 10px; font-size: 14px; }
  .c-opt .flag { width: 27px; height: 18px; }
  .input,
  .join-row .input { flex: none; width: 100%; height: 54px; padding: 0 20px; }
  .btn-join { height: 54px; width: 100%; }
  .float-join { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; }
  .modal-in { padding: 24px 20px; }
  .modal h2 { font-size: 24px; }
  .modal p { font-size: 15px; }
  .modal-ok { width: 100%; }

  .wrap { padding: 0 16px; }
  .sec { padding-top: 64px; }
  .h2, .cta h2 { font-size: 32px; }
  .intro { font-size: 16px; }
  .q-cols, .s-cols { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
  .q-card { padding: 22px; }
  .q-card p { font-size: 21px; }
  .points li { padding: 22px; }
  .cta { padding: 44px 20px; border-radius: 22px; }
  .cta .btn-join { width: 100%; }
  .foot { padding: 48px 0 96px; }   /* room for the floating button */
  .foot-in { flex-direction: column; align-items: flex-start; font-size: 13px; }
  .foot-in span { order: 3; }
}
