/* Pop Rampage: Balloon Blast — playful “sticker” UI, thick outlines, soft peach + lavender */

:root {
  --ink: #0f172a;
  --cream: #fff7f0;
  --cream-2: #ffe8dc;
  --lavender: #c4b5fd;
  --purple-deep: #7c3aed;
  --purple-soft: #ede9fe;
  --sky: #7dd3fc;
  --sky-dark: #38bdf8;
  --fire: #ff6b3d;
  --fire-dark: #ea580c;
  --sun: #fde047;
  --lime: #86efac;
  --card: #ffffff;
  --shadow-pop: 0 10px 0 rgba(15, 23, 42, 0.92);
  --shadow-soft: 0 18px 40px rgba(76, 29, 149, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --max: 1120px;
  /* Section vertical rhythm: ~+20% breathing room */
  --module-y: 1.2;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, #fff 38%, var(--purple-soft) 100%);
  line-height: 1.6;
  min-height: 100vh;
}

#main {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

/* --- Decorative background --- */
.bg-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-stage__halftone {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55) 0 1.5px, transparent 2px) 0 0/18px 18px,
    linear-gradient(165deg, #a78bfa 0%, #fbcfe8 45%, #fef3c7 100%);
  opacity: 0.35;
  filter: saturate(1.05);
}

.bg-stage__cloud {
  position: absolute;
  width: min(420px, 70vw);
  height: 120px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  filter: blur(0.5px);
  border: 3px solid rgba(15, 23, 42, 0.08);
}

.bg-stage__cloud--1 {
  bottom: 6%;
  left: -8%;
  transform: rotate(-4deg);
}

.bg-stage__cloud--2 {
  top: 14%;
  right: -10%;
  transform: rotate(5deg);
  opacity: 0.85;
}

.bg-stage__confetti {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #f472b6 0 3px, transparent 4px),
    radial-gradient(circle, #34d399 0 3px, transparent 4px),
    radial-gradient(circle, #fbbf24 0 3px, transparent 4px);
  background-size: 260px 260px, 320px 320px, 280px 280px;
  background-position: 10% 20%, 70% 10%, 40% 80%;
  opacity: 0.22;
}

@media (prefers-reduced-motion: reduce) {
  .bg-stage__confetti {
    opacity: 0.12;
  }
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(0.75rem * var(--module-y)) clamp(1rem, 3vw, 1.5rem) 0;
}

.navbar {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.navbar.is-scrolled {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(1rem * var(--module-y));
  padding: calc(0.55rem * var(--module-y)) calc(0.85rem * var(--module-y)) calc(0.55rem * var(--module-y)) calc(1rem * var(--module-y));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: calc(0.65rem * var(--module-y));
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  background: rgba(124, 58, 237, 0.08);
}

.brand:focus-visible {
  outline: 3px solid var(--sky-dark);
  outline-offset: 3px;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand__mark img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  object-fit: cover;
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.85);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand__tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fire-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--cream-2);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--sky-dark);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  height: 3px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 999px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: calc(1rem * var(--module-y));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links__a {
  display: inline-flex;
  align-items: center;
  padding: calc(0.55rem * var(--module-y)) calc(0.85rem * var(--module-y));
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links__a:hover {
  background: rgba(125, 211, 252, 0.35);
}

.nav-links__a:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 2px;
}

.nav-cta {
  white-space: nowrap;
}

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

  .nav-panel {
    position: absolute;
    left: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
    top: calc(100% + 0.5rem * var(--module-y));
    flex-direction: column;
    align-items: stretch;
    padding: calc(0.75rem * var(--module-y));
    border-radius: var(--radius-lg);
    border: 3px solid var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links__a {
    justify-content: center;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.5rem * var(--module-y));
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: calc(0.75rem * var(--module-y)) calc(1.1rem * var(--module-y));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.btn:active {
  transform: translateY(2px);
}

.btn:focus-visible {
  outline: 3px solid var(--sky-dark);
  outline-offset: 3px;
}

.btn__icon {
  flex-shrink: 0;
}

.btn--pop {
  background: linear-gradient(180deg, var(--lime) 0%, #4ade80 100%);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}

.btn--pop:hover {
  filter: brightness(1.03);
}

.btn--store {
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  color: #fff;
  box-shadow: var(--shadow-pop);
}

.btn--store:hover {
  filter: brightness(1.06);
}

.btn--store-alt {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-dark) 100%);
  color: var(--ink);
}

.btn--wide {
  width: min(100%, 260px);
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(calc(1.25rem * var(--module-y)), calc(3vw * var(--module-y)), calc(2.5rem * var(--module-y))) clamp(1rem, 3vw, 1.5rem) clamp(calc(2rem * var(--module-y)), calc(5vw * var(--module-y)), calc(3rem * var(--module-y)));
}

.hero__wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(calc(1.25rem * var(--module-y)), calc(3vw * var(--module-y)), calc(2.75rem * var(--module-y)));
  align-items: center;
  /* Taller hero row: more vertical room above the banner card */
  min-height: clamp(calc(26rem * var(--module-y)), 56svh, calc(38rem * var(--module-y)));
  padding-block: clamp(calc(1.25rem * var(--module-y)), calc(3.5vw * var(--module-y)), calc(2.75rem * var(--module-y)));
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .hero__wrap {
    grid-template-columns: 1fr;
    min-height: clamp(calc(20rem * var(--module-y)), 48svh, calc(32rem * var(--module-y)));
    padding-block: clamp(calc(1rem * var(--module-y)), calc(3vw * var(--module-y)), calc(2rem * var(--module-y)));
  }
}

.hero__copy {
  padding: calc(0.25rem * var(--module-y)) 0;
}

.hero__ribbon {
  display: inline-flex;
  align-items: center;
  gap: calc(0.45rem * var(--module-y));
  margin: 0 0 calc(0.85rem * var(--module-y));
  padding: calc(0.45rem * var(--module-y)) calc(0.85rem * var(--module-y));
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 0 rgba(15, 23, 42, 0.85);
}

.icon-inline {
  flex-shrink: 0;
}

.hero__title {
  margin: 0 0 calc(1rem * var(--module-y));
  display: flex;
  flex-direction: column;
  gap: calc(0.15rem * var(--module-y));
}

.hero__title-line {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.02;
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  text-transform: none;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    4px 4px 0 rgba(15, 23, 42, 0.95),
    0 0 0 rgba(0, 0, 0, 0);
}

.hero__title-line--sky {
  color: #bae6fd;
  background: linear-gradient(180deg, #e0f2fe 0%, #7dd3fc 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero__title-line--fire {
  color: transparent;
  background: linear-gradient(180deg, #ffedd5 0%, #fb923c 45%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 2px var(--ink);
}

.hero__lead {
  margin: 0 0 calc(1.25rem * var(--module-y));
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  max-width: 52ch;
  color: #1e293b;
  font-weight: 600;
}

.hero__platform-note {
  margin: 0 0 calc(0.65rem * var(--module-y));
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(0.75rem * var(--module-y));
  margin-bottom: calc(1rem * var(--module-y));
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(320px, 86vw);
}

.phone-frame__bezel {
  position: relative;
  border-radius: 36px;
  border: 4px solid var(--ink);
  background: #0b1220;
  padding: calc(12px * var(--module-y)) calc(12px * var(--module-y)) calc(16px * var(--module-y));
  box-shadow: var(--shadow-pop), 0 30px 70px rgba(124, 58, 237, 0.25);
  overflow: hidden;
}

.phone-frame__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 22px;
  background: #0b1220;
  border-radius: 0 0 16px 16px;
  border: 3px solid var(--ink);
  border-top: 0;
  z-index: 2;
}

.phone-frame__img {
  border-radius: 26px;
  width: 100%;
  height: auto;
  border: 3px solid rgba(255, 255, 255, 0.12);
}

.phone-frame__glow {
  position: absolute;
  inset: auto -20% -30%;
  height: 55%;
  background: radial-gradient(closest-side, rgba(253, 224, 71, 0.55), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

/* Hero media: stacked cards (banner vs screenshots) */
.hero__media-stack {
  max-width: var(--max);
  margin: clamp(calc(1.5rem * var(--module-y)), calc(4vw * var(--module-y)), calc(2.5rem * var(--module-y))) auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(calc(1.25rem * var(--module-y)), calc(3vw * var(--module-y)), calc(2rem * var(--module-y)));
}

.hero__gallery {
  position: relative;
  margin: 0;
  padding: clamp(calc(1rem * var(--module-y)), calc(3vw * var(--module-y)), calc(1.5rem * var(--module-y)));
  border-radius: var(--radius-xl);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero__gallery--banner {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px) 0 0/14px 14px,
    linear-gradient(165deg, #eef2ff 0%, #fff 48%, #e0e7ff 100%);
}

.hero__gallery--shots {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.65) 0 2px, transparent 3px) 0 0/14px 14px,
    linear-gradient(180deg, #fff 0%, #fff1f2 100%);
}

.hero__gallery-lights {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(253, 224, 71, 0.35);
  pointer-events: none;
}

.hero__gallery-head {
  text-align: center;
  margin-bottom: calc(0.85rem * var(--module-y));
}

.hero__gallery-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}

.hero__gallery-sub {
  margin: calc(0.35rem * var(--module-y)) auto 0;
  max-width: 52ch;
  font-weight: 700;
  color: #334155;
}

.hero__gallery-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #fff;
}

.hero__gallery-figure img {
  width: 100%;
}

.hero__gallery-figure--banner img {
  display: block;
}

/* Portrait shots grid (images/2.png … 5.png), own card under banner */
.hero__shot-grid {
  list-style: none;
  margin: calc(0.35rem * var(--module-y)) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(0.75rem * var(--module-y));
}

@media (max-width: 900px) {
  .hero__shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.hero__shot-item {
  margin: 0;
}

.hero__shot-figure {
  margin: 0;
  height: 100%;
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 8px 0 rgba(15, 23, 42, 0.85);
}

.hero__shot-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Gameplay snapshots (below Features) */
.snapshots__shell {
  max-width: var(--max);
  margin: 0 auto;
}

.section--snapshots {
  padding-top: clamp(calc(1.5rem * var(--module-y)), calc(4vw * var(--module-y)), calc(2.25rem * var(--module-y)));
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(calc(2rem * var(--module-y)), calc(5vw * var(--module-y)), calc(3.25rem * var(--module-y))) clamp(1rem, 3vw, 1.5rem);
}

.section__head {
  max-width: var(--max);
  margin: 0 auto calc(1.5rem * var(--module-y));
  text-align: center;
}

.section__title {
  margin: 0 0 calc(0.5rem * var(--module-y));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: 0.01em;
}

.section__sub {
  margin: 0 auto;
  max-width: 60ch;
  color: #334155;
  font-weight: 600;
}

.feature-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(1rem * var(--module-y));
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.feature-card {
  border-radius: var(--radius-lg);
  border: 3px solid var(--ink);
  background: var(--card);
  padding: calc(1.1rem * var(--module-y)) calc(1.1rem * var(--module-y)) calc(1.2rem * var(--module-y));
  box-shadow: 0 10px 0 rgba(15, 23, 42, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 0 rgba(15, 23, 42, 0.85);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 3px solid var(--ink);
  background: linear-gradient(180deg, var(--lavender), #ddd6fe);
  color: var(--ink);
  margin-bottom: calc(0.75rem * var(--module-y));
}

.feature-card__title {
  margin: 0 0 calc(0.45rem * var(--module-y));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
}

.feature-card__text {
  margin: 0;
  color: #334155;
  font-weight: 600;
}

/* --- Download strip (jagged “banner” feel) --- */
.download-strip {
  position: relative;
  z-index: 1;
  padding: clamp(calc(2rem * var(--module-y)), calc(5vw * var(--module-y)), calc(3rem * var(--module-y))) clamp(1rem, 3vw, 1.5rem) clamp(calc(2.5rem * var(--module-y)), calc(6vw * var(--module-y)), calc(3.5rem * var(--module-y)));
}

.download-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(calc(1.25rem * var(--module-y)), calc(3vw * var(--module-y)), calc(2rem * var(--module-y)));
  border-radius: var(--radius-xl);
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px) 0 0/16px 16px,
    linear-gradient(135deg, #fb7185 0%, #f97316 55%, #f59e0b 100%);
  color: #0b1220;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: calc(1.25rem * var(--module-y));
  align-items: center;
  box-shadow: var(--shadow-pop);
  clip-path: polygon(
    0% 4%,
    3% 0%,
    7% 5%,
    12% 0%,
    18% 6%,
    24% 0%,
    30% 5%,
    36% 0%,
    42% 6%,
    48% 0%,
    54% 5%,
    60% 0%,
    66% 6%,
    72% 0%,
    78% 5%,
    84% 0%,
    90% 6%,
    96% 0%,
    100% 4%,
    100% 100%,
    0% 100%
  );
}

@media (max-width: 900px) {
  .download-strip__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-strip__actions {
    justify-content: center;
  }
}

.download-strip__title {
  margin: 0 0 calc(0.5rem * var(--module-y));
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.55);
}

.download-strip__text {
  margin: 0;
  font-weight: 800;
  max-width: 62ch;
}

.download-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(0.75rem * var(--module-y));
  justify-content: flex-end;
}

.download-strip__actions--single {
  justify-content: center;
}

@media (min-width: 901px) {
  .download-strip__actions--single {
    justify-content: flex-end;
  }
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: calc(2rem * var(--module-y)) clamp(1rem, 3vw, 1.5rem) calc(2.5rem * var(--module-y));
  border-top: 3px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: calc(1rem * var(--module-y));
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: calc(0.35rem * var(--module-y));
}

.site-footer__note {
  margin: 0;
  color: #334155;
  font-weight: 600;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: calc(0.75rem * var(--module-y)) calc(1.25rem * var(--module-y));
}

.site-footer__links a {
  color: var(--purple-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.site-footer__links a:hover {
  color: var(--fire-dark);
}

.site-footer__links a:focus-visible {
  outline: 3px solid var(--sky-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Modal --- */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: calc(1.25rem * var(--module-y));
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  border-radius: var(--radius-xl);
  border: 3px solid var(--ink);
  background: #fff;
  padding: clamp(calc(1.25rem * var(--module-y)), calc(3vw * var(--module-y)), calc(1.75rem * var(--module-y)));
  box-shadow: var(--shadow-pop);
}

.modal__close {
  position: absolute;
  top: calc(0.75rem * var(--module-y));
  right: calc(0.75rem * var(--module-y));
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal__close:hover {
  background: var(--cream-2);
}

.modal__close:focus-visible {
  outline: 3px solid var(--sky-dark);
  outline-offset: 2px;
}

.modal__title {
  margin: 0 0 calc(0.5rem * var(--module-y));
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
}

.modal__body {
  margin: 0 0 calc(1rem * var(--module-y));
  color: #334155;
  font-weight: 650;
}

.modal__action {
  width: 100%;
}
