/* ============================================================
   Glass Frog Academy Pitch Competition Landing Page
   Minimal, monochrome-first, with a soft frog-green accent.
   ============================================================ */

:root {
  --bg: #f5f9ee;
  --surface: #ffffff;
  --surface-alt: #eaf2dd;
  --ink: #131512;
  --ink-soft: #5c6852;
  --border: #dbe4cd;
  --accent: #7cc73e;          /* frog green */
  --accent-soft: #eaf6df;
  --main: #b1e57f;            /* pastel lime, primary button fill */
  --sticker: #aadcf7;         /* pastel sky, hero CTA sticker */
  --shadow-hard: 4px 4px 0 0 var(--ink);   /* neobrutalist offset shadow */
  --radius: 16px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 106.25%;   /* 17px base; everything sized in rem scales up with it */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: "Nunito", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* edge doodles nudged by the pointer can't cause a scrollbar */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

/* rounded display face for everything that should feel soft and chunky */
h1, h2, h3,
.brand, .btn, .chip,
.stat-value, .date-value, .prize-value,
.contact-email, .looping-words {
  font-family: "Baloo 2", "Nunito", sans-serif;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.01em; }

h2 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
}

h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.accent { color: var(--accent); }

/* ---------- Buttons (neobrutalism style, ported from the shadcn button) ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* hover = the button presses into the page, sliding into its shadow's spot */
.btn:hover { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--ink); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn-primary { background: var(--main); }
.btn-ghost { background: var(--surface); }

.btn-large { padding: 13px 30px; font-size: 1.05rem; }
.btn-small, .btn-nav {
  padding: 8px 20px;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.btn-small:hover, .btn-nav:hover { transform: translate(3px, 3px); }

/* attention magnet on the hero Register */
.cta-wrap {
  display: inline-block;
  animation: cta-wiggle 4.5s ease-in-out 1.5s infinite;
}

.btn-cta {
  position: relative;
  font-size: 1.25rem;
  padding: 16px 42px;
}

.cta-sticker {
  position: absolute;
  top: -16px;
  right: -20px;
  background: var(--sticker);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 0 var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  transform: rotate(8deg);
  pointer-events: none;
}

@keyframes cta-wiggle {
  0%, 84%, 100% { transform: rotate(0) scale(1); }
  87% { transform: rotate(-2.5deg) scale(1.04); }
  90% { transform: rotate(2deg) scale(1.06); }
  93% { transform: rotate(-1.5deg) scale(1.04); }
  96% { transform: rotate(1deg) scale(1.01); }
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(245, 249, 238, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-logo { height: 40px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

/* fills the first viewport exactly, so the About section stays below the fold */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 32px) 0 48px;
  text-align: center;
}

.hero-inner { position: relative; z-index: 1; }

/* ---------- Hero doodles
   (sketchy builder tools and frog things in the margins; they drift and
   shy away from the pointer via initHeroDoodles() in script.js) ---------- */

.hero-doodles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.doodle {
  position: absolute;
  transform: translate(-50%, -50%);
}
.doodle svg { display: block; width: 100%; height: auto; }

@media (max-width: 880px) {
  .hero-doodles { display: none; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 32px;
}
.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(3.2rem, 10vw, 6.2rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.hero-tagline strong { color: var(--ink); }

/* ---------- Looping words (ported from Osmo's GSAP resource, osmo.supply) ---------- */

.loop-sentence { margin: 4px 0 40px; }

.loop-lead {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.looping-words {
  position: relative;
  margin: 0 auto;
  width: min(92%, 640px);
  height: 2.7em;                 /* shows 3 lines of 0.9em; middle one is "selected" */
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.9;
}

.looping-words__container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.looping-words__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}

.looping-words__item { height: 0.9em; }

.looping-words__p { margin: 0; line-height: 0.9; }

/* the word that just locked into the brackets: neon flicker, then steady glow */
.looping-words__p.is-locked {
  color: var(--accent);
  text-shadow:
    0 0 14px rgba(124, 199, 62, 0.5),
    0 0 42px rgba(124, 199, 62, 0.25);
  animation: word-flicker 0.75s linear;
}

@keyframes word-flicker {
  0%   { opacity: 0.5;  color: var(--ink); text-shadow: none; }
  8%   { opacity: 1;    color: var(--accent); }
  16%  { opacity: 0.35; text-shadow: none; }
  24%  { opacity: 1; }
  34%  { opacity: 0.6;  text-shadow: 0 0 8px rgba(124, 199, 62, 0.3); }
  48%  { opacity: 1;    text-shadow: 0 0 20px rgba(124, 199, 62, 0.6); }
  62%  { opacity: 0.85; }
  100% { opacity: 1; }
}

/* Fades the previous/next words into the page background */
.looping-words__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--bg) 8%,
    transparent 42%,
    transparent 58%,
    var(--bg) 92%
  );
}

/* Corner brackets that resize to hug the current word */
.looping-words__selector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 0.9em;   /* matches one word line so the brackets hug the current word */
  pointer-events: none;
}

.looping-words__edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.16em;
  height: 0.16em;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}
.looping-words__edge.is--2 { left: auto; right: 0; transform: rotate(90deg); }
.looping-words__edge.is--3 { top: auto; bottom: 0; left: auto; right: 0; transform: rotate(180deg); }
.looping-words__edge.is--4 { top: auto; bottom: 0; transform: rotate(270deg); }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-prize {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* on shorter screens, tighten the hero stack so it all fits in one viewport */
@media (max-height: 960px) {
  .chip { margin-bottom: 20px; }
  .hero-title { margin-bottom: 14px; }
  .loop-sentence { margin-bottom: 26px; }
  .hero-tagline { margin-bottom: 26px; }
  .hero-cta { margin-bottom: 30px; }
}
.hero-prize strong {
  color: var(--ink);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */

.section { padding: 100px 0; }
.section-alt { background: var(--surface-alt); }

/* ---------- Scroll reveals
   (elements get .reveal + a variant class from initScrollReveals() in
   script.js; .in-view triggers the entrance, --d staggers it) ---------- */

.reveal {
  opacity: 0;
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}

.reveal--up    { transform: translateY(26px); }
.reveal--left  { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--pop   { transform: translateY(18px) scale(0.93); }

/* headings sweep in from the left with a slight tilt */
.reveal--sweep { transform: translateX(-44px) rotate(-1.5deg); }

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Wavy heading underline
   (ported from the animated-underline-text-one React component to plain
   SVG; the draw-in rides the same .in-view class the reveals toggle) ---------- */

.h2-underline-wrap {
  position: relative;
  display: inline-block;
}

.h2-underline {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 20px;
  overflow: visible;
  color: var(--accent);
  pointer-events: none;
}

.h2-underline path {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  /* pathLength="1" on the path makes these unit-based: 1 = fully hidden */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition:
    stroke-dashoffset 1.5s ease-in-out 0.35s,
    opacity 0.4s ease 0.35s;
}

h2.in-view .h2-underline path {
  stroke-dashoffset: 0;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .looping-words__p.is-locked { animation: none; }
  .cta-wrap { animation: none; }
  .track-line-fill { transform: scaleX(1); transition: none; }
  .h2-underline path { stroke-dashoffset: 0; opacity: 1; transition: none; }
  .scene-stars path { animation: none; }
}

/* ---------- Spotlight glow on boxes
   (ported from the spotlight-card React component to plain CSS;
   --x/--y/--xp are set on :root by a pointermove listener) ---------- */

[data-glow] {
  position: relative;
  z-index: 0;
  /* green drifting toward teal as the pointer moves right, like the
     original component's hue spread */
  --glow-hue: calc(95 + var(--xp, 0.5) * 50);
}

[data-glow]::before,
[data-glow]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* soft wash of light inside the box, centered on the pointer */
[data-glow]::before {
  z-index: -1; /* above the box background, below its text */
  background-image: radial-gradient(
    240px 240px at calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(var(--glow-hue) 65% 45% / 0.1),
    transparent 70%
  );
  background-attachment: fixed;
}

/* glowing border ring that follows the pointer */
[data-glow]::after {
  inset: -1.5px;
  border: 1.5px solid transparent;
  background-image: radial-gradient(
    180px 180px at calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(var(--glow-hue) 70% 40% / 0.9),
    transparent 100%
  );
  background-origin: border-box;
  background-attachment: fixed;
  /* show the gradient only in the border area */
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* ---------- About: flag scene and stat boxes ---------- */

/* staking the claim: frog, hill, and flag beside the mission copy */
.flag-scene { flex: 0 0 190px; width: 190px; }
.flag-scene svg { display: block; width: 100%; height: auto; }

/* planting dirt stays hidden until the GSAP timeline fires it */
.flag-sparks circle { opacity: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- Moonshot formula ---------- */

.mission-head,
.moonshot-head,
.prizes-head,
.rules-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.mission-head-copy,
.moonshot-head-copy,
.prizes-head-copy,
.rules-head-copy { flex: 1 1 auto; min-width: 0; }

/* the frog's launch site: a strip of sky between the grass and the moon */
.frog-scene { flex: 0 0 170px; width: 170px; }
.frog-scene svg { display: block; width: 100%; height: auto; }

/* smoke, exhaust trail, dust, and landing sparks stay hidden until fired */
.frog-smoke circle,
.frog-trail circle,
.frog-dust circle,
.moon-sparks path { opacity: 0; }

.scene-stars path { animation: star-twinkle 2.6s ease-in-out infinite; }
.scene-stars path:nth-child(2) { animation-delay: 0.9s; }
.scene-stars path:nth-child(3) { animation-delay: 1.6s; }
.scene-stars path:nth-child(4) { animation-delay: 0.5s; }
.scene-stars path:nth-child(5) { animation-delay: 2s; }

@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

.timeline-track { margin: 48px 0 26px; }

.track-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.track-line {
  height: 4px;
  border-radius: 999px;
  background: rgba(19, 21, 18, 0.08);
  overflow: hidden;
}

.track-line-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

/* the track animates its own fill bar; the element itself stays visible */
.reveal--track { opacity: 1; }
.reveal--track.in-view .track-line-fill { transform: scaleX(1); }

.moonshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.moonshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.moonshot-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.moonshot-card h3 { margin-bottom: 8px; }
.moonshot-card p { color: var(--ink-soft); font-size: 0.95rem; }

.moonshot-result {
  grid-column: span 2;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.moonshot-result h3 { font-size: 1.7rem; margin-bottom: 0; }

/* ---------- Prizes & Dates ---------- */

/* the grind: a frog carefully building a swaying house of cards */
.build-scene { flex: 0 0 200px; width: 200px; }
.build-scene svg { display: block; width: 100%; height: auto; }

/* sweat beads and the placed top card stay hidden until GSAP fires them */
.build-sweat circle,
.card-top { opacity: 0; }

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 48px 0 18px;
}

.date-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.date-value { font-size: 1.3rem; font-weight: 700; }

.prize-note {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.prize-note strong { color: var(--ink); }

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.prize-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prize-first {
  grid-column: 1 / -1;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.prize-first .prize-place { color: var(--accent); }

.prize-place {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.prize-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.prize-first .prize-value { font-size: 2.5rem; }

/* ---------- Rules ---------- */

/* the whole team, hard at "work" beside the rules heading */
.team-scene { flex: 0 0 300px; width: 300px; }
.team-scene svg { display: block; width: 100%; height: auto; }

/* the nerd's sweat stays hidden until GSAP flicks it off */
.team-sweat circle { opacity: 0; }

.rule-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.rule-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.rule-item h3 { margin-bottom: 8px; }
.rule-item p { color: var(--ink-soft); }
.rule-item p + p { margin-top: 8px; }

/* ---------- Sponsors & Partners ---------- */

.sponsor-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 880px;
}

.sponsor-slot img,
.sponsor-slot svg {
  max-height: 72px;
  max-width: 88%;
  object-fit: contain;
}

.sponsor-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  color: #a9b0a1;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 8px;
}

.sponsor-cta {
  margin-top: 48px;
  color: var(--ink-soft);
}
.sponsor-cta a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

/* ---------- Contact ---------- */

.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }

.contact-email {
  display: inline-block;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  margin: 10px 0 40px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--ink); }

.footer-legal { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; }
  .nav-links .btn-nav { text-align: center; margin-top: 8px; }

  .section { padding: 72px 0; }

  .stat-grid,
  .date-grid,
  .prize-grid,
  .moonshot-grid,
  .rule-list { grid-template-columns: 1fr; }
  .moonshot-result { grid-column: auto; }
  .track-labels { display: none; }

  .mission-head,
  .moonshot-head,
  .prizes-head,
  .rules-head { flex-direction: column; align-items: center; }
  .mission-head-copy,
  .moonshot-head-copy,
  .prizes-head-copy,
  .rules-head-copy { width: 100%; }
  .frog-scene { flex-basis: auto; width: 136px; }
  .build-scene { flex-basis: auto; width: 160px; }
  .flag-scene { flex-basis: auto; width: 150px; }
  .team-scene { flex-basis: auto; width: 240px; }

  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; text-align: center; }
}
