/* ==========================================================================
   Math Goals — company site
   Palette + type inherited from Math Kicks Academy (the studio's first title).
   Voice: junior-football matchday programme. Navy night match, pitch green
   action, gold for goal moments.
   ========================================================================== */

/* ---- Fonts (self-hosted, copied from the game) --------------------------- */
@font-face {
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/fredoka-one-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/nunito-latin.woff2') format('woff2');
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* brand hexes are canon (from the game's @theme) */
  --navy-950: #0f1a2e;
  --navy-900: #14213c;
  --navy: #1a2b4a;
  --navy-700: #24395f;
  --navy-600: #2e4776;

  --pitch: #2d8a4e;
  --pitch-dark: #226b3c;
  --pitch-deep: #1a5330;
  --pitch-light: #3da963;

  --gold: #ffb300;
  --ball: #f5c518;

  --sky: #e8f4fd;
  --sky-line: #c9dff0;
  --paper: #ffffff;

  --ink: #16233d;        /* body on light */
  --ink-soft: #42536f;   /* muted on light, 7:1 on white */
  --cloud: #cfe0f0;      /* body on navy, ~9:1 */
  --cloud-dim: #9db4cd;  /* muted on navy, ~5.4:1 */

  --font-display: 'Fredoka One', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --fs-hero: clamp(2.5rem, 4.5vw + 1rem, 4.15rem);
  --fs-h2: clamp(1.85rem, 2.4vw + 1rem, 2.9rem);
  --fs-h3: clamp(1.2rem, 0.7vw + 1rem, 1.5rem);
  --fs-lead: clamp(1.07rem, 0.45vw + 1rem, 1.28rem);
  --fs-small: 0.92rem;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  --band-pad: clamp(4.25rem, 9vw, 7.5rem);
  --wrap-max: 1120px;
  --wrap-pad: clamp(1.25rem, 5vw, 2.5rem);

  --shadow-card: 0 2px 6px rgba(22, 35, 61, 0.08), 0 12px 28px rgba(22, 35, 61, 0.10);
  --shadow-lift: 0 6px 14px rgba(22, 35, 61, 0.14), 0 20px 44px rgba(22, 35, 61, 0.16);

  --z-nav: 100;
  --z-skip: 200;
}

/* ---- Reset-lite + base --------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img, video, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--pitch-deep); text-underline-offset: 3px; }
a:hover { color: var(--pitch-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--navy-950); }

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.7rem 1.1rem;
  background: var(--navy-950);
  color: #fff;
  font-weight: 800;
  border-radius: var(--r-s);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; color: #fff; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--gold {
  background: var(--gold);
  color: var(--navy-950);
  box-shadow: 0 3px 0 rgba(15, 26, 46, 0.35), 0 10px 24px rgba(0, 0, 0, 0.28);
}
.btn--gold:hover {
  background: var(--ball);
  color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(15, 26, 46, 0.35), 0 16px 32px rgba(0, 0, 0, 0.32);
}

.btn--pitch {
  background: var(--pitch-dark);
  color: #fff;
  box-shadow: 0 3px 0 var(--pitch-deep), 0 10px 22px rgba(34, 107, 60, 0.28);
}
.btn--pitch:hover {
  background: var(--pitch-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #123c22, 0 14px 28px rgba(34, 107, 60, 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--cloud);
  box-shadow: inset 0 0 0 2px var(--navy-600);
}
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--cloud-dim); transform: translateY(-2px); }

.btn .btn-kick { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn:hover .btn-kick { transform: translateX(4px) rotate(20deg); }

/* ---- Dashed centre-line divider (from the app's .pitch-line) ------------- */
.pitch-line {
  height: 3px;
  background-image: linear-gradient(to right, currentColor 60%, transparent 40%);
  background-size: 24px 3px;
  background-repeat: repeat-x;
  border: 0;
  margin: 0;
  opacity: 0.35;
}

/* ---- Nav ------------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(15, 26, 46, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(232, 244, 253, 0.12);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}
.nav__brand svg { width: 34px; height: auto; }
.nav__links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav__links a {
  color: var(--cloud);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding-block: 0.3rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: left calc(100% - 1px);
  transition: background-size 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
}
.nav__links a:hover { color: #fff; background-size: 100% 3px; }
.nav__cta { flex-shrink: 0; padding: 0.72rem 1.15rem; font-size: 0.95rem; }
.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font: 800 1rem var(--font-body);
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  align-items: center;
  gap: 0.45rem;
}
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 780px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-950);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0 1rem;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a {
    display: block;
    padding: 0.85rem var(--wrap-pad);
    background: none;
  }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav.is-open { background: var(--navy-950); }
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(52rem 30rem at 12% -8%, rgba(232, 244, 253, 0.14), transparent 60%),
    radial-gradient(52rem 30rem at 88% -8%, rgba(232, 244, 253, 0.11), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy) 58%, var(--navy-950) 100%);
  color: #fff;
  overflow: clip;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(6.5rem, 13vh, 9rem) clamp(9rem, 16vw, 13rem);
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: 0.005em;
  max-width: 17ch;
}
.hero h1 .goal-word { color: var(--gold); white-space: nowrap; }
.hero__lead {
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  color: var(--cloud);
  max-width: 46ch;
}
.hero__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  align-items: center;
}
.hero__note {
  margin-top: 1.1rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--cloud-dim);
}

/* turf the hero stands on */
.hero__turf {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: max(160%, 1600px);
  height: clamp(90px, 12vw, 150px);
  border-radius: 100% 100% 0 0;
  background: linear-gradient(180deg, var(--pitch-dark), var(--pitch-deep));
  z-index: 1;
}
.hero__turf::before {
  content: '';
  position: absolute;
  inset: 22px 0 auto 0;
  height: 3px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.55) 60%, transparent 40%);
  background-size: 24px 3px;
  background-repeat: repeat-x;
}

/* Goal frame around the hero video */
.goal {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}
.goal__frame {
  position: relative;
  border: 10px solid #fff;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--navy-950);
  overflow: hidden;
}
/* net glimpse in the top corners of the goal mouth */
.goal__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.14) 0 1.5px, transparent 1.5px 13px),
    repeating-linear-gradient(-65deg, rgba(255, 255, 255, 0.14) 0 1.5px, transparent 1.5px 13px);
  -webkit-mask-image: radial-gradient(130% 120% at 50% 82%, transparent 58%, #000 84%);
  mask-image: radial-gradient(130% 120% at 50% 82%, transparent 58%, #000 84%);
  opacity: 0.9;
}
.goal__media {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--navy-950);
}
/* play / pause control on the hero video */
.goal__playbtn {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: var(--navy-950);
  background: var(--gold);
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.18s ease, opacity 0.25s ease;
}
.goal__playbtn svg { width: 46%; height: 46%; }
.goal__playbtn:hover { background: var(--ball); transform: translate(-50%, -50%) scale(1.06); }
.goal__icon-play { margin-left: 8%; } /* optical centring of the triangle */
.goal__icon-pause { display: none; }

/* paused: big centred play button over a soft scrim */
.goal__frame.is-paused .goal__media { filter: brightness(0.82); }
.goal__frame.is-paused .goal__playbtn {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 12vw, 82px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.goal__frame.is-paused .goal__playbtn:hover { transform: translate(-50%, -50%) scale(1.06); }
.goal__frame.is-paused .goal__icon-play { display: block; }
.goal__frame.is-paused .goal__icon-pause { display: none; }

/* playing: small pause tab, bottom-right, reveals on hover / focus */
.goal__frame:not(.is-paused) .goal__playbtn {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  opacity: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.goal__frame:not(.is-paused) .goal__playbtn:hover { transform: scale(1.06); }
.goal:hover .goal__frame:not(.is-paused) .goal__playbtn,
.goal__frame:not(.is-paused) .goal__playbtn:focus-visible { opacity: 1; }
.goal__frame:not(.is-paused) .goal__icon-play { display: none; }
.goal__frame:not(.is-paused) .goal__icon-pause { display: block; }

/* sponsor hoarding under the goal */
.goal__board {
  margin-inline: 14px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  letter-spacing: 0.14em;
  text-align: center;
  padding: 0.55rem 0.75rem 0.62rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 0 rgba(15, 26, 46, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .goal { max-width: 560px; }
}

/* ---- Shared band scaffolding --------------------------------------------- */
.band { padding-block: var(--band-pad); position: relative; }
section[id] { scroll-margin-top: 5.25rem; }
.band--sky { background: var(--sky); }
.band--navy { background: var(--navy); color: #fff; }

.band h2 {
  font-size: var(--fs-h2);
  color: var(--navy);
  letter-spacing: 0.004em;
}
.band--navy h2 { color: #fff; }
.band .lead {
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 58ch;
}
.band--navy .lead { color: var(--cloud); }

/* ---- Product band --------------------------------------------------------- */
.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.phone {
  justify-self: center;
  width: min(310px, 78vw);
  border-radius: 44px;
  border: 10px solid var(--navy-950);
  background: var(--navy-950);
  box-shadow: var(--shadow-lift);
  transform: rotate(-2.5deg);
  overflow: hidden;
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: var(--navy-950);
  border-radius: 12px;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 800;
  object-fit: cover;
  border-radius: 34px;
}
.phone__caption {
  margin-top: 1.1rem;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-soft);
}

/* team-sheet fact list */
.teamsheet {
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--navy);
}
.teamsheet li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.85rem 0.15rem;
  border-bottom: 2px dashed var(--sky-line);
  font-weight: 600;
}
.teamsheet li strong { color: var(--navy); font-weight: 800; }
.teamsheet .tick {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--pitch-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  transform: translateY(0.2rem);
}
.product__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.product__hint { font-size: var(--fs-small); font-weight: 700; color: var(--ink-soft); }

@media (max-width: 860px) {
  .product__grid { grid-template-columns: 1fr; }
  .product__grid > div:first-child { order: 2; margin-top: 1.5rem; }
}

/* ---- Squad band ------------------------------------------------------------ */
.squad__head { max-width: 62ch; }
.squad {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
  list-style: none;
  padding: 0;
}
.squad li { display: grid; }
.sticker {
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: var(--r-m);
  padding: 8px 8px 0;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.squad li:nth-child(6n + 1) .sticker { transform: rotate(-2.2deg); }
.squad li:nth-child(6n + 2) .sticker { transform: rotate(1.6deg); }
.squad li:nth-child(6n + 3) .sticker { transform: rotate(-1.1deg); }
.squad li:nth-child(6n + 4) .sticker { transform: rotate(2.1deg); }
.squad li:nth-child(6n + 5) .sticker { transform: rotate(-1.7deg); }
.squad li:nth-child(6n + 6) .sticker { transform: rotate(1.2deg); }
.squad li:hover .sticker,
.squad li:focus-within .sticker {
  transform: rotate(0deg) translateY(-7px);
  box-shadow: var(--shadow-lift);
}
.sticker img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.sticker figcaption { padding: 0.65rem 0.35rem 0.75rem; }
.sticker .sticker__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.15;
}
.sticker .sticker__role {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.35;
}
.squad__foot {
  margin-top: 2.2rem;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 60ch;
}
.squad__foot a { font-weight: 800; }

/* ---- Rain claim band ------------------------------------------------------- */
.rain {
  position: relative;
  background: var(--navy-950);
  color: #fff;
  overflow: clip;
  min-height: clamp(340px, 48vh, 460px);
  display: grid;
  place-items: center;
  text-align: center;
}
.rain__media,
.rain canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rain__media { opacity: 0; transition: opacity 0.8s ease; }
.rain__media.is-playing { opacity: 0.5; }
.rain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90rem 30rem at 50% 120%, rgba(45, 138, 78, 0.25), transparent 70%);
  pointer-events: none;
}
.rain__copy { position: relative; z-index: 2; padding-block: 4.5rem; }
.rain__copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  color: #fff;
  max-width: 18ch;
  margin-inline: auto;
}
.rain__copy h2 em { font-style: normal; color: var(--gold); }
.rain__copy p {
  margin: 1.15rem auto 0;
  max-width: 52ch;
  color: var(--cloud);
  font-size: var(--fs-lead);
  font-weight: 600;
}

/* ---- Story band ------------------------------------------------------------ */
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.story__pair { position: relative; justify-self: center; width: min(340px, 82vw); padding-bottom: 3.2rem; }
.story__pair img {
  width: 62%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--navy);
  border-radius: var(--r-m);
  background: var(--paper);
  padding: 7px;
  box-shadow: var(--shadow-card);
}
.story__pair img:first-child { transform: rotate(-3deg); }
.story__pair img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: rotate(2.4deg);
}
.story__pair figcaption {
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 24ch;
}
.story__copy p + p { margin-top: 1.05rem; }
.story__copy p { max-width: 58ch; color: var(--ink); font-weight: 600; }
.story__copy .lead { margin-top: 1.4rem; }
.mark {
  background: linear-gradient(to top, rgba(245, 197, 24, 0.55) 0 42%, transparent 42%);
  padding-inline: 0.1em;
  border-radius: 3px;
}

@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__pair { order: 2; margin-top: 0.5rem; }
}

/* ---- Tactics board (How we play) ------------------------------------------- */
.plan__head { max-width: 62ch; margin-bottom: 2.8rem; }
.board {
  background:
    radial-gradient(60rem 24rem at 85% -10%, rgba(232, 244, 253, 0.08), transparent 60%),
    var(--navy);
  border-radius: var(--r-l);
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.board__pitchlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
  pointer-events: none;
}
.play {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding-block: 1.6rem;
  max-width: 46rem;
}
.play + .play { border-top: 2px dashed rgba(232, 244, 253, 0.22); }
.play:nth-child(2) { margin-left: clamp(0rem, 6vw, 5rem); }
.play:nth-child(3) { margin-left: clamp(0rem, 3vw, 2.5rem); }
.play__glyph { width: 84px; height: 84px; flex: none; }
.play h3 { font-size: var(--fs-h3); color: var(--gold); letter-spacing: 0.01em; }
.play p { margin-top: 0.5rem; color: var(--cloud); font-weight: 600; max-width: 52ch; }

@media (max-width: 640px) {
  .play { grid-template-columns: 1fr; gap: 0.9rem; }
  .play__glyph { width: 72px; height: 72px; }
  .play:nth-child(2), .play:nth-child(3) { margin-left: 0; }
}

/* ---- Contact ---------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__copy p { margin-top: 1.1rem; max-width: 44ch; color: var(--ink); font-weight: 600; }
.contact__copy .contact__alt { font-size: 1rem; color: var(--ink-soft); font-weight: 700; }
.contact__ball { width: 74px; height: 74px; border-radius: 50%; margin-bottom: 1.4rem; box-shadow: var(--shadow-card); }

.form-card {
  background: var(--paper);
  border-radius: var(--r-l);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--sky-line);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 600 1rem/1.5 var(--font-body);
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--sky-line);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pitch);
  box-shadow: 0 0 0 4px rgba(45, 138, 78, 0.18);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316233d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-soft);
  min-height: 1.5em;
}
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: var(--pitch-deep); }
.form-card .btn { width: 100%; justify-content: center; }

.form-done { text-align: center; padding-block: 2.5rem; }
.form-done h3 { font-size: 1.6rem; color: var(--pitch-dark); }
.form-done p { margin-top: 0.7rem; color: var(--ink-soft); font-weight: 700; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---- Footer ------------------------------------------------------------------ */
.footer {
  background: var(--navy-950);
  color: var(--cloud-dim);
  padding-block: 3.25rem 2.75rem;
}
.footer .pitch-line { color: var(--sky); margin-bottom: 2.5rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-decoration: none;
}
.footer__brand svg { width: 30px; height: auto; }
.footer__tag { margin-top: 0.8rem; font-weight: 600; font-size: var(--fs-small); max-width: 34ch; }
.footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer nav a { color: var(--cloud); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.footer nav a:hover { color: var(--gold); }
.footer__legal {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(180, 199, 219, 0.9);
}

/* ---- Entrance + scroll motion (enhance-only; content visible without JS) ---- */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero h1,
  html.js .hero__lead,
  html.js .hero__cta,
  html.js .hero__note {
    opacity: 0;
    transform: translateY(22px);
  }
  html.js .hero .goal {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  html.js.is-loaded .hero h1,
  html.js.is-loaded .hero__lead,
  html.js.is-loaded .hero__cta,
  html.js.is-loaded .hero__note,
  html.js.is-loaded .hero .goal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js.is-loaded .hero__lead { transition-delay: 0.12s; }
  html.js.is-loaded .hero__cta { transition-delay: 0.22s; }
  html.js.is-loaded .hero__note { transition-delay: 0.3s; }
  html.js.is-loaded .hero .goal { transition-delay: 0.24s; }

  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
  }
  html.js [data-reveal].in {
    opacity: 1;
    transform: none;
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js .squad [data-reveal].in:nth-child(2) { transition-delay: 0.07s; }
  html.js .squad [data-reveal].in:nth-child(3) { transition-delay: 0.14s; }
  html.js .squad [data-reveal].in:nth-child(4) { transition-delay: 0.21s; }
  html.js .squad [data-reveal].in:nth-child(5) { transition-delay: 0.28s; }
  html.js .squad [data-reveal].in:nth-child(6) { transition-delay: 0.35s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticker, .nav__links a { transition: none; }
  .rain__media { transition: none; }
}

/* QA: ?static=1 — everything settled, zero motion (screenshot-friendly) */
html.is-static * { transition: none !important; animation: none !important; }
html.is-static .hero h1,
html.is-static .hero__lead,
html.is-static .hero__cta,
html.is-static .hero__note,
html.is-static .hero .goal,
html.is-static [data-reveal] { opacity: 1 !important; transform: none !important; }
html.is-static { scroll-behavior: auto; }
