:root {
  --bg-top: #6f90cf;
  --bg-mid: #285089;
  --bg-bottom: #022e64;
  --cream: #f7ecd3;
  --cream-border: #2a2440;
  --navy: #1c2138;
  --navy-soft: #2a3252;
  --muted: #4c5568;
  --accent: #f9ae38;
  --accent-2: #60c5ff;
  --accent-3: #8ddc7d;
  --gold: #d99a2b;
  --radius: 22px;
  --shadow-lift: 0 14px 30px rgba(10, 26, 46, 0.28);
  --hero-container-width: 1920px;
  --hero-container-pad: clamp(28px, 5vw, 110px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background-color: var(--bg-bottom);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, #496eaa 35%, var(--bg-mid) 65%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.pixel-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

/* Retro film-grain texture — a tiny tiled fractal-noise SVG, blended so it
   reads as grain/dither rather than a visible repeating tile. */
.grain-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 0;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

.pixel-heading {
  font-family: 'Press Start 2P', cursive;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: clamp(14px, 2vw, 22px) 20px 14px;
}

.site-header-inner {
  max-width: var(--hero-container-width);
  margin: 0 auto;
  padding: 0 var(--hero-container-pad);
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 1.8vw, 24px);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 59px;
  padding: 16px 30px;
  background: rgba(247, 236, 211, 0.95);
  color: var(--navy);
  border: 2px solid var(--cream-border);
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(0.87rem, 1.06vw, 1.03rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(20, 20, 30, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(20, 20, 30, 0.25);
}

.nav-pill:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(20, 20, 30, 0.25);
}

.nav-pill-primary {
  background: var(--navy);
  color: #fff9ec;
  border-color: var(--navy);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--cream-border);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 6px 0 rgba(20, 20, 30, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(20, 20, 30, 0.3);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(20, 20, 30, 0.3);
}

.btn-large {
  padding: 16px 34px;
  font-size: 0.95rem;
}

/* Layout helpers */

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

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-center {
  text-align: center;
}

.section-tight-bottom {
  padding-bottom: 10px;
}

.section-tight-top {
  padding-top: 10px;
}

/* Extra top clearance for the section right after the hero, since the cat
   strip straddles the seam and paints above it (z-index) while walking. */
.section-cat-clearance {
  padding-top: clamp(90px, 7vw, 120px);
}

.eyebrow {
  display: inline-block;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #f77f3d);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(247, 127, 61, 0.28);
}

.eyebrow-alt {
  background: linear-gradient(135deg, var(--accent-2), #3fa3e0);
  box-shadow: 0 6px 14px rgba(63, 163, 224, 0.3);
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  /* Scales with viewport WIDTH (like the rest of the composition), not vh —
     that way the whole section compacts together as the window narrows or
     shortens, instead of staying pinned to a near-100vh height while the
     content shrinks inside it and leaves a growing dead zone above the cat.
     Bottom padding is deliberately modest so the next section's heading
     peeks into view on load instead of the fold landing exactly on the
     seam. */
  min-height: clamp(360px, 38vw, 860px);
  padding: clamp(20px, 3vw, 60px) 0 clamp(50px, 5vw, 90px);
}

.hero-inner {
  width: 100%;
  max-width: var(--hero-container-width);
  margin: 0 auto;
  padding: 0 var(--hero-container-pad);
  display: grid;
  grid-template-columns: minmax(360px, min(620px, 46vw)) 1fr;
  grid-template-areas:
    'text  image'
    'cta   image';
  gap: clamp(10px, 2.5vw, 40px);
  align-items: center;
}

.hero-text {
  grid-area: text;
}

.hero-scene {
  grid-area: image;
}

.hero-cta {
  grid-area: cta;
  justify-self: start;
  margin-left: clamp(10px, 1.8vw, 32px);
}

.hero-text h1 {
  font-size: clamp(2.5rem, 4.4vw, 5.2rem);
  color: #ffffff;
  text-shadow: 0 3px 0 rgba(19, 42, 68, 0.4);
  margin-bottom: 6px;
}

.hero-text .hero-sub {
  font-size: clamp(0.8rem, 1.26vw, 1.5rem);
  color: var(--accent);
  opacity: 0.96;
  text-shadow: 0 3px 0 rgba(19, 42, 68, 0.4);
  margin-bottom: 22px;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-text {
  margin-left: clamp(10px, 1.8vw, 32px);
  margin-top: 14px;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.1vw, 1.3rem);
  line-height: 1.72;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.25);
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-lead-first {
  margin-bottom: 10px;
}

.hero-lead-last {
  margin-bottom: 40px;
}

.hero-cta {
  padding: 22px 48px;
  font-size: 1rem;
}

/* Pinned to the seam between the hero and the next section (half in each)
   so it reads as a connecting element between the two screens, full
   viewport width. Absolute (rather than a normal-flow block) so it never
   competes with hero-inner for flex space — the one exception the layout
   allows itself to position outright, since it's purely decorative. */
.hero-cat-strip {
  --cat-track-h: clamp(96px, 7.7vw, 150px);
  width: 100vw;
  position: absolute;
  left: 50%;
  bottom: calc(var(--cat-track-h) / -2);
  transform: translateX(-50%);
  z-index: 2;
}

.hero-cat-track {
  width: 100%;
  height: var(--cat-track-h);
  position: relative;
  overflow: hidden;
}

.cat-patrol {
  --cat-w: clamp(140px, 12.2vw, 234px);
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--cat-w);
  animation: cat-walk-loop 26s linear infinite;
}

.cat-patrol img {
  width: 100%;
  display: block;
}

/* Cat walks fully across the viewport left-to-right, continues past each
   edge (track has overflow:hidden) and only turns around once it's
   completely out of view — the flip itself is never seen. */
@keyframes cat-walk-loop {
  0% {
    transform: translateX(calc(-1 * var(--cat-w))) scaleX(1);
  }
  48% {
    transform: translateX(100vw) scaleX(1);
  }
  50% {
    transform: translateX(100vw) scaleX(-1);
  }
  98% {
    transform: translateX(calc(-1 * var(--cat-w))) scaleX(-1);
  }
  100% {
    transform: translateX(calc(-1 * var(--cat-w))) scaleX(1);
  }
}

.hero-scene {
  position: relative;
}

.hero-scene-float {
  /* Capped by height (not just column width) so it can't balloon taller
     than the text block on very wide screens and shove everything below
     it — including the cat — down past the fold. Whichever limit (column
     width or this height cap) is tighter wins; aspect ratio is preserved
     either way since neither dimension is forced. */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 710px);
  margin-right: clamp(-60px, -3.5vw, -24px);
  animation: hero-float 7s ease-in-out infinite;
  transform-origin: 50% 85%;
  will-change: transform;
  justify-self: end;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

/* Course-fit cards */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 8px;
}

.fit-card {
  background: var(--cream);
  border: 2px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 18px 18px 22px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(60px) rotate(-4deg);
  transition: opacity 1.3s cubic-bezier(0.16, 0.6, 0.16, 1), transform 1.3s cubic-bezier(0.16, 0.6, 0.16, 1);
}

.fit-card:nth-child(2) {
  transform: translateY(60px) rotate(0deg);
}

.fit-card:nth-child(3) {
  transform: translateY(60px) rotate(4deg);
}

.fit-card.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.fit-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(42, 36, 64, 0.15);
}

.fit-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 600;
}

.carousel-controls.fit-mobile-controls {
  display: none;
}

/* Difference section */

.difference-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-areas:
    "heading key"
    "copy    key";
  column-gap: 30px;
  align-items: center;
}

.difference-grid .difference-heading {
  grid-area: heading;
  align-self: end;
}

.difference-copy {
  grid-area: copy;
  align-self: start;
}

.difference-grid .key-wrap {
  grid-area: key;
}

.difference-heading {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
  line-height: 1.6;
  margin-bottom: 22px;
}

.difference-heading .hl {
  color: var(--accent);
}

.difference-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.25);
  margin: 0 0 16px;
  max-width: 620px;
}

.difference-text strong {
  color: var(--accent);
}

.difference-text .hl {
  color: var(--accent);
  font-weight: 700;
}

.key-wrap {
  justify-self: center;
  width: 360px;
  opacity: 0;
  transform: translateY(40px) scale(0.6) rotate(-15deg);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2), transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

@media (min-width: 961px) {
  .key-wrap {
    width: 430px;
  }
}

.key-wrap.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-8deg);
}

.key-wrap img {
  transform-origin: 50% 12%;
  animation: key-glint 4.5s ease-in-out infinite, key-sway 5s ease-in-out infinite;
}

@keyframes key-sway {
  0%, 100% {
    transform: scaleX(-1) rotate(-4deg);
  }
  50% {
    transform: scaleX(-1) rotate(4deg);
  }
}

@keyframes key-glint {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(249, 174, 56, 0));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(249, 174, 56, 0.55));
  }
}

/* Tagline */

.tagline-heading {
  text-align: center;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 18px;
}

.tagline-heading .hl {
  color: var(--accent);
}

.tagline-lead {
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.25);
  max-width: 820px;
  margin: 0 auto;
}

/* Console / drag-drop */

.console-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  user-select: none;
}

.console-frame-img {
  width: 100%;
  pointer-events: none;
}

.console-chart-zone {
  position: absolute;
  left: 21%;
  top: 24%;
  width: 57%;
  height: 53.5%;
}

[data-planet='saturn'] {
  --pw: 74px;
  --ph: 74px;
}

[data-planet='moon'] {
  --pw: 66px;
  --ph: 64px;
}

[data-planet='jupiter'] {
  --pw: 48px;
  --ph: 48px;
}

[data-planet='venus'] {
  --pw: 56px;
  --ph: 56px;
}

[data-planet='mars'] {
  --pw: 58px;
  --ph: 58px;
}

[data-planet='mercury'] {
  --pw: 84px;
  --ph: 56px;
}

[data-planet='sun'] {
  --pw: 51px;
  --ph: 51px;
}

.draggable-planet {
  position: absolute;
  width: var(--pw);
  height: var(--ph);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25));
  animation: planet-bob 4s ease-in-out infinite;
  transition: filter 0.15s ease;
}

.draggable-planet:active,
.draggable-planet.is-dragging {
  cursor: grabbing;
  animation: none;
  transition: filter 0.15s ease;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.3));
  z-index: 5;
}

@keyframes planet-bob {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-4px);
  }
}

.console-caption-heading {
  text-align: center;
  color: var(--accent);
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.3);
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  line-height: 1.6;
  margin: 22px 0 8px;
}

.console-caption {
  text-align: center;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.3);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0;
}

@media (min-width: 961px) {
  .section-tight-bottom {
    padding-bottom: 0;
  }

  .section-tight-top {
    padding-top: 0;
  }

  /* Pull the text into the console-frame illustration's own transparent
     padding (it isn't drawn edge-to-edge) so it reads as tight to the
     console art itself, not just to the image's bounding box. */
  .tagline-lead {
    margin-bottom: -45px;
  }

  .console-caption-heading {
    margin-top: -40px;
  }
}

/* Depth / iceberg */

.depth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "intro  ice"
    "outro  ice";
  column-gap: 48px;
  row-gap: 24px;
  align-items: center;
}

.depth-intro {
  grid-area: intro;
  align-self: end;
}

.depth-outro {
  grid-area: outro;
  align-self: start;
}

.iceberg-visual {
  grid-area: ice;
}

.depth-heading {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
  margin-bottom: 20px;
}

.depth-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.25);
  margin: 0 0 14px;
}

.depth-text strong {
  color: var(--accent);
}

.iceberg-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iceberg-swing {
  position: relative;
  width: 90%;
  animation: iceberg-pendulum 5.5s ease-in-out infinite;
  transform-origin: 50% 20%;
}

.iceberg-img {
  width: 100%;
  display: block;
}

@keyframes iceberg-pendulum {
  0%, 100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

/* The labels sit on the iceberg artwork itself (inside the same rotating
   wrapper as the image) and are split exactly at the image's own waterline
   — measured pixel-for-pixel at 43% down from the top of the source PNG —
   so the divider lines up with where the ice actually meets the water. */
.iceberg-labels-above,
.iceberg-labels-below {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.iceberg-labels-above {
  bottom: 58%;
}

.iceberg-labels-below {
  top: 44%;
}

.iceberg-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.58rem;
  background: rgba(247, 236, 211, 0.95);
  color: var(--navy);
  border: 2px solid var(--cream-border);
  border-radius: 8px;
  padding: 6px 10px;
}

.iceberg-label-below {
  background: rgba(28, 33, 56, 0.85);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.iceberg-waterline {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Character choice — scroll-driven animated scene */

.choose-heading {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
}

.choose-subheading {
  margin: 12px 0 0;
  font-size: clamp(0.72rem, 1.6vw, 1rem);
  color: var(--accent);
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
}

.choose-intro {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.25);
}

.choose-scene {
  position: relative;
  max-width: 900px;
  margin: 44px auto 0;
}

.choose-road {
  position: relative;
  width: clamp(180px, 40vw, 280px);
  margin: 0 auto;
}

.choose-road-img {
  width: 100%;
  display: block;
}

.choose-castle,
.choose-surya,
.choose-chandra,
.choose-meet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: none; /* allow the castle / meeting frame to overflow the road width */
}

.choose-castle {
  top: 20%;
  width: 130%;
  z-index: 5;
}

/* Surya waits on the grassy clearing at the foot of the road. Sized and
   offset so she lines up pixel-for-pixel with the Surya figure inside the
   chandra-surya meeting frame — the swap to that frame must not shift or
   resize her. (Her figure sits left-of-centre in the meeting art.) */
.choose-surya {
  top: 76%;
  left: 38%;
  width: 44%;
  z-index: 2;
  image-rendering: pixelated;
  transition: opacity 0.4s ease;
}

.choose-chandra {
  top: 2%;
  width: 44%;
  z-index: 3;
  image-rendering: pixelated;
  transition: opacity 0.35s ease;
}

/* Chandra + Surya meeting: the two figures kept at the walking-sprite scale
   (the source art places them side by side, so the frame is ~2x as wide).
   The source art leaves ~18% empty space below the figures' feet, so the
   frame sits higher than its nominal top to land them on the clearing. */
.choose-meet {
  top: 72%;
  width: 62%;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.4s ease;
  image-rendering: pixelated;
}

.choose-bubble {
  position: absolute;
  z-index: 10; /* above the castle (5) and the meeting frame (6) */
  width: clamp(210px, 30%, 290px);
  margin: 0;
  padding: 14px 16px;
  background: rgba(247, 236, 211, 0.98);
  border: 2px solid var(--cream-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  text-align: center;
  overflow-wrap: break-word;
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.choose-bubble.is-shown {
  opacity: 1;
  transform: none;
}

.choose-bubble--right {
  right: 0;
  transform: translateX(28px) translateY(10px);
}

.choose-bubble--left {
  left: 0;
  transform: translateX(-28px) translateY(10px);
}

#choose-bubble-1 { top: 4%; }
#choose-bubble-2 { top: 40%; }
#choose-bubble-3 { top: 74%; }

.choose-bubble-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--gold);
  margin-bottom: 8px;
}

.choose-bubble p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--navy);
}

@media (max-width: 760px) {
  /* Callouts staggered down the sides, each next to its own stop on the road
     (like the desktop layout): start → upper right, castle → left, meeting →
     bottom centre. They overlap the artwork but never sit off-screen (body
     has overflow-x: hidden), and the pixel road is narrow enough that each
     side still shows. */
  .choose-scene {
    padding-top: 12px;
    padding-bottom: 92px;
  }

  .choose-road {
    width: min(240px, 62vw);
  }

  .choose-bubble {
    width: 54%;
    padding: 11px 12px;
    background: rgba(247, 236, 211, 0.97);
  }

  .choose-bubble-title {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
  }

  .choose-bubble p {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .choose-bubble--right {
    right: 0;
    left: auto;
    transform: translateX(16px) translateY(10px);
  }

  .choose-bubble--left {
    left: 0;
    right: auto;
    transform: translateX(-16px) translateY(10px);
  }

  #choose-bubble-1 {
    top: 2%;
  }

  #choose-bubble-2 {
    top: 34%;
  }

  #choose-bubble-3 {
    top: auto;
    bottom: 6px;
    left: 50%;
    right: auto;
    width: 74%;
    transform: translateX(-50%) translateY(12px);
  }

  #choose-bubble-3.is-shown {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .choose-bubble {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Teacher */

.teacher-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.teacher-portrait {
  position: relative;
  align-self: start;
}

.teacher-portrait-glow {
  position: absolute;
  inset: 4% 2% 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(96, 197, 255, 0.55), rgba(96, 197, 255, 0) 68%);
  filter: blur(8px);
  pointer-events: none;
}

.teacher-head {
  position: relative;
  width: 100%;
  display: block;
  filter: drop-shadow(0 20px 34px rgba(10, 26, 46, 0.42));
  animation: teacher-float 6.5s ease-in-out infinite;
}

@keyframes teacher-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.teacher-name {
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
  line-height: 1.55;
  margin: 6px 0 22px;
}

.teacher-name-alt {
  color: var(--accent);
}

.teacher-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.teacher-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 112px;
  padding: 12px 16px;
  background: rgba(247, 236, 211, 0.95);
  border: 2px solid var(--cream-border);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(20, 20, 30, 0.22);
}

.teacher-stat b {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  color: var(--navy);
  white-space: nowrap;
}

.teacher-stat span {
  margin-top: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.teacher-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.25);
  margin: 0 0 16px;
  max-width: 640px;
}

.teacher-text .hl {
  color: var(--accent);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .teacher-head {
    animation: none;
  }
}

/* FAQ */

.faq-section {
  text-align: center;
}

.faq-heading {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
  margin-bottom: 30px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: rgba(247, 236, 211, 0.96);
  border: 2px solid var(--cream-border);
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(20, 20, 30, 0.2);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--navy);
  transition: background 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.35);
}

.faq-q {
  flex: 1;
  font-size: 1rem;
  line-height: 1.45;
}

.faq-mark {
  flex-shrink: 0;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 3px 0 rgba(20, 20, 30, 0.22);
}

.faq-mark::before,
.faq-mark::after {
  content: '';
  position: absolute;
  inset: 50% 4px auto 4px;
  height: 2.5px;
  background: #ffffff;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-mark::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] .faq-mark::after {
  transform: translateY(-50%) rotate(90deg) scaleX(0);
  opacity: 0;
}

.faq-a {
  padding: 0 20px 20px;
}

.faq-a p {
  margin: 0 0 12px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-item[open] summary .faq-q {
  color: var(--gold);
}

/* Roadmap */

.roadmap-section {
  text-align: center;
}

.roadmap-heading {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
  margin-bottom: 16px;
}

.roadmap-lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(19, 42, 68, 0.25);
}

.roadmap {
  list-style: none;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 0 0 0 62px;
  text-align: left;
  position: relative;
}

/* the winding path */
.roadmap::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 14px;
  bottom: 26px;
  border-left: 3px dotted rgba(249, 174, 56, 0.5);
}

.roadmap-step {
  position: relative;
  margin-bottom: 16px;
}

.roadmap-num {
  position: absolute;
  left: -62px;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.78rem;
  z-index: 1;
}

.is-open .roadmap-num {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 0 0 5px rgba(249, 174, 56, 0.22), 0 4px 0 rgba(20, 20, 30, 0.28);
}

.is-locked .roadmap-num {
  background: var(--navy-soft);
  color: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.roadmap-card {
  background: rgba(247, 236, 211, 0.96);
  border: 2px solid var(--cream-border);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 0 rgba(20, 20, 30, 0.2);
}

.is-open .roadmap-card {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(249, 174, 56, 0.3), 0 4px 0 rgba(20, 20, 30, 0.26);
}

.is-locked .roadmap-card {
  background: rgba(247, 236, 211, 0.55);
}

.roadmap-name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 5px;
  font-size: 1.06rem;
  color: var(--navy);
}

.is-locked .roadmap-name {
  color: rgba(28, 33, 56, 0.55);
}

.roadmap-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.is-locked .roadmap-desc {
  color: rgba(28, 33, 56, 0.5);
}

/* small drawn padlock */
.roadmap-lock {
  width: 13px;
  height: 11px;
  position: relative;
  display: inline-block;
  background: currentColor;
  border-radius: 3px;
  opacity: 0.7;
}

.roadmap-lock::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 9px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  transform: translateX(-50%);
}

.roadmap-status {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(28, 33, 56, 0.45);
}

.roadmap-status--open {
  color: #2f7d33;
}

.roadmap-cta {
  margin-top: 14px;
  padding: 12px 24px;
  font-size: 0.82rem;
  background: var(--accent);
  color: var(--navy);
  border-color: var(--cream-border);
  box-shadow: 0 5px 0 rgba(20, 20, 30, 0.28);
}

.roadmap-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(20, 20, 30, 0.28);
}

@media (max-width: 640px) {
  .roadmap {
    padding-left: 52px;
  }

  .roadmap::before {
    left: 19px;
  }

  .roadmap-num {
    left: -52px;
    width: 40px;
    height: 40px;
    font-size: 0.68rem;
  }
}

/* Practice carousel */

.practice-heading {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(19, 42, 68, 0.35);
  margin-bottom: 30px;
}

.carousel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 4px 4px 16px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--cream);
  border: 2px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-lift);
  text-align: left;
}

.carousel-slide img {
  width: 100%;
  border-radius: 14px;
}

.carousel-slide p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--navy);
  font-weight: 600;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--cream-border);
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 rgba(20, 20, 30, 0.3);
  transition: transform 0.15s ease;
}

.carousel-arrow:hover {
  transform: translateY(-2px);
}

.carousel-arrow:active {
  transform: translateY(2px);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: #ffffff;
}

/* Placeholder sections (teacher / pricing) */

.placeholder-section {
  text-align: center;
}

.placeholder-card {
  max-width: 640px;
  margin: 30px auto 0;
  background: rgba(247, 236, 211, 0.9);
  border: 2px dashed var(--cream-border);
  border-radius: var(--radius);
  padding: 34px 26px;
}

.placeholder-card img {
  width: 64px;
  margin: 0 auto 16px;
}

.placeholder-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px 44px;
  color: #ffffff;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-emblem {
  width: 44px;
  animation: footer-pulse 3s ease-in-out infinite;
}

@keyframes footer-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(249, 174, 56, 0));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(249, 174, 56, 0.6));
    transform: scale(1.06);
  }
}

.site-footer span {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.62rem;
}

/* Scroll reveal (generic) */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'text'
      'image'
      'cta';
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  /* Mobile reads as one plain flowing paragraph — the manual <br> breaks
     and the extra gap between the two sentences are a desktop-only
     composition choice. */
  .hero-lead br {
    display: none;
  }

  .hero-lead-first,
  .hero-lead-last {
    display: inline;
  }

  .hero-inner {
    row-gap: 12px;
  }

  .hero-scene-float {
    width: 100%;
    max-width: 600px;
    margin-top: 0;
    justify-self: center;
  }

  .hero-cta {
    justify-self: center;
    margin-left: 0;
    margin-top: 24px;
  }

  .hero-cat-strip {
    bottom: calc(var(--cat-track-h) / -2 - 24px);
  }

  .difference-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "key"
      "copy";
    text-align: center;
  }

  .difference-grid .difference-heading,
  .difference-copy {
    align-self: auto;
  }

  .difference-grid .key-wrap {
    width: min(240px, 70%);
    justify-self: center;
  }

  .difference-text {
    margin-left: auto;
    margin-right: auto;
  }

  .depth-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "ice"
      "outro";
    row-gap: 40px;
    text-align: center;
  }

  .depth-intro,
  .depth-outro {
    align-self: auto;
  }

  .iceberg-visual {
    margin-top: 8px;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    justify-items: center;
    text-align: center;
  }

  .teacher-portrait {
    width: min(260px, 66%);
  }

  .teacher-stats {
    justify-content: center;
  }

  .teacher-text {
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

@media (max-width: 640px) {
  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nav-pill {
    font-size: 0.66rem;
    min-height: 40px;
    padding: 10px 14px;
  }

  .hero {
    padding: 34px 0 58px;
  }

  /* Mobile: the 3-card grid becomes a one-at-a-time swipeable carousel */
  .fit-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 16px;
    scrollbar-width: none;
  }

  .fit-grid::-webkit-scrollbar {
    display: none;
  }

  .fit-grid .fit-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .carousel-controls.fit-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
  }

  /* Smaller draggable planets on the console chart — the fixed desktop
     sizes look oversized once the whole console shrinks down. */
  [data-planet='saturn'] {
    --pw: 48px;
    --ph: 48px;
  }

  [data-planet='moon'] {
    --pw: 43px;
    --ph: 42px;
  }

  [data-planet='jupiter'] {
    --pw: 31px;
    --ph: 31px;
  }

  [data-planet='venus'] {
    --pw: 36px;
    --ph: 36px;
  }

  [data-planet='mars'] {
    --pw: 38px;
    --ph: 38px;
  }

  [data-planet='mercury'] {
    --pw: 55px;
    --ph: 36px;
  }

  [data-planet='sun'] {
    --pw: 33px;
    --ph: 33px;
  }
}
