/* ==========================================================
   Flight School - The Birdhouse
   The free five-part course. Same hand-built vintage-cartoon
   system as the playbook microsites (base lifted from
   founders.thebirdhouse.co on 2026-11-18):
   sky #DEF3FF · ink #04324D · brand blue #00ACEE
   pastels: peach #FFECDE · mint #E2FFDE · lilac #F3DEFF · pink #FFDEDF
   type: Instrument Serif (display) + Roboto (body)
   ========================================================== */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --sky: #DEF3FF;
  --ink: #04324D;
  --blue: #00ACEE;
  --peach: #FFECDE;
  --mint: #E2FFDE;
  --lilac: #F3DEFF;
  --pink: #FFDEDF;
  --gold: #FFB13D;
  --paper: #FFFDF8;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Roboto', -apple-system, sans-serif;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --r: 18px;      /* soft radius system */
  --r-lg: 28px;
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1); /* springy pop */
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

/* misregistered-print paper grain, fixed + inert */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--blue); color: #fff; }

img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---------- shared ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }

.section { padding: 110px 0; position: relative; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 21ch;
  padding-bottom: 4px; /* italic descender reserve */
}
.h2 em { font-style: italic; }
.accent-ink {
  background-image: linear-gradient(transparent 68%, rgba(0,172,238,0.45) 68%);
  border-radius: 4px;
}

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.1rem;
  max-width: 58ch;
  margin: 18px 0 48px;
  color: rgba(4, 50, 77, 0.78);
}

.footnote {
  margin-top: 48px;
  font-size: 1.02rem;
  max-width: 62ch;
  color: rgba(4, 50, 77, 0.75);
}
.footnote em, .footnote strong { color: var(--ink); }

/* buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border: var(--border);
  border-radius: 999px;
  padding: 14px 30px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--blue); color: var(--ink); }
.btn--small { padding: 9px 20px; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--big { font-size: 1.2rem; padding: 18px 44px; }
.btn--ghost { background: var(--paper); font-weight: 500; }

/* reveal-on-scroll */
/* uses the standalone translate property so a revealed card keeps its tilt */
.reveal { opacity: 0; translate: 0 26px; }
.reveal.is-in {
  opacity: 1; translate: 0 0;
  transition: opacity 0.7s ease, translate 0.7s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  transition-delay: var(--stagger, 0s), var(--stagger, 0s), 0s, 0s;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 28px;
  background: rgba(222, 243, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--ink); text-decoration: none;
}
.nav__mark { width: 30px; height: 30px; }
.nav__title {
  margin-left: auto; margin-right: 18px;
  font-size: 0.9rem; font-weight: 500;
  color: rgba(4, 50, 77, 0.6);
}
@media (max-width: 720px) { .nav__title { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 480px) {
  .nav { padding: 10px 16px; gap: 10px; }
  .nav__brand { font-size: 1.1rem; }
  .nav__mark { width: 24px; height: 24px; }
  .nav .btn--small { padding: 8px 14px; font-size: 0.82rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100dvh - 62px), 880px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__cloud { position: absolute; pointer-events: none; opacity: 0.85; filter: brightness(1.35) contrast(0.85); }
.hero__cloud--1 { top: 4%; left: -80px; width: 420px; animation: drift 46s linear infinite alternate; }
.hero__cloud--2 { top: 12%; right: -60px; width: 330px; animation: drift 38s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(70px); } }

.hero__inner {
  max-width: 1160px; margin: 0 auto; padding: 40px 24px 70px;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 30px;
  align-items: center; position: relative; z-index: 2;
}

.ticket {
  display: inline-block;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--paper);
  border: var(--border); border-radius: 10px;
  padding: 7px 16px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero__word { position: relative; display: inline-block; font-style: italic; padding-bottom: 6px; }
.squiggle {
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 14px;
}
.squiggle path {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw 1s ease 0.6s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__sub {
  font-size: 1.22rem; max-width: 44ch;
  margin: 26px 0 34px;
  color: rgba(4, 50, 77, 0.8);
}
.hero__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__time { font-size: 0.92rem; color: rgba(4, 50, 77, 0.6); font-weight: 500; }

.hero__art { display: flex; justify-content: center; }
.birdhouse-hero { width: min(100%, 340px); }

.bh-sway { transform-origin: 170px 260px; animation: sway 5.5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.bh-blink { animation: blink 4.6s infinite; transform-origin: 170px 168px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96%, 98% { transform: scaleY(0.08); } }
.bh-bird { transform-origin: 170px 207px; animation: peek 7s ease-in-out infinite; }
@keyframes peek { 0%, 20%, 100% { transform: translateY(26px) scale(0.6); opacity: 0; } 30%, 80% { transform: translateY(0) scale(1); opacity: 1; } 90% { transform: translateY(26px) scale(0.6); opacity: 0; } }
.bh-wing--l { transform-origin: 70px 200px; animation: flapL 5.5s ease-in-out infinite; }
.bh-wing--r { transform-origin: 270px 200px; animation: flapR 5.5s ease-in-out infinite; }
@keyframes flapL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes flapR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(9deg); } }
.sparkle { animation: twinkle 3s ease-in-out infinite; transform-origin: center; }
.sparkle--2 { animation-delay: 1.4s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; padding-bottom: 40px; }
  .hero__art { order: -1; }
  .birdhouse-hero { width: 190px; }
  .hero { min-height: auto; }
}

/* ---------- stats ---------- */
.stats { padding: 30px 0 80px; }
.stats__grid {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  background: var(--paper);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 26px 20px 22px;
  text-align: center;
  transform: rotate(var(--tilt, -1deg));
}
.stat:nth-child(2) { --tilt: 1deg; }
.stat:nth-child(3) { --tilt: -0.6deg; }
.stat:nth-child(4) { --tilt: 1.2deg; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--blue);
  -webkit-text-stroke: 1.5px var(--ink);
  margin-bottom: 8px;
}
.stat__label { font-size: 0.92rem; font-weight: 500; color: rgba(4, 50, 77, 0.75); }
.stats__kicker {
  text-align: center; margin-top: 44px;
  font-family: var(--serif); font-size: 1.5rem;
}
.stats__kicker em { font-style: italic; color: var(--blue); -webkit-text-stroke: 0.6px var(--ink); }
@media (max-width: 880px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- marquee ---------- */
.marquee {
  border-top: var(--border); border-bottom: var(--border);
  background: var(--ink); color: var(--sky);
  overflow: hidden; padding: 13px 0;
  transform: rotate(-1deg) scale(1.02);
}
.marquee__track {
  display: flex; width: max-content;
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
  animation: marquee 30s linear infinite;
}
.marquee__track span { white-space: nowrap; padding-right: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- who ---------- */
.section--who { background: var(--paper); border-top: var(--border); border-bottom: var(--border); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.who-card {
  border: var(--border); border-radius: var(--r);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.who-card--yes { background: var(--mint); transform: rotate(-0.8deg); }
.who-card--no { background: var(--pink); transform: rotate(0.8deg); }
.who-card__title { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 18px; }
.who-list { list-style: none; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; flex: 1; }
.who-list li { position: relative; padding-left: 36px; }
.who-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  border: 2.5px solid var(--ink); border-radius: 7px;
  background: #fff center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 l5 5 L20 6' fill='none' stroke='%2304324D' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.who-list--no li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6 L18 18 M18 6 L6 18' fill='none' stroke='%2304324D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (max-width: 820px) { .who { grid-template-columns: 1fr; } }

/* ---------- hook sample ---------- */
.hook-sample {
  margin-top: 26px;
  background: var(--paper);
  border: var(--border); border-radius: 14px;
  padding: 20px 24px;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.35;
  box-shadow: var(--shadow-sm);
  transform: rotate(-0.6deg);
}
.hook-sample__note {
  display: block; margin-top: 10px;
  font-family: var(--sans); font-size: 0.9rem;
  color: rgba(4, 50, 77, 0.68);
}

/* ---------- check list ---------- */
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.check-list li { position: relative; padding-left: 32px; font-size: 0.98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--blue) center / 11px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 l5 5 L20 6' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- numbered cards ---------- */
.magnet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.magnet-card {
  background: var(--tint);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  transform: rotate(var(--tilt, -0.7deg));
}
.magnet-card:nth-child(2) { --tilt: 0.5deg; }
.magnet-card:nth-child(3) { --tilt: -0.4deg; }
.magnet-card__no {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 14px;
  font-family: var(--serif); font-size: 1.4rem;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 50%;
}
.magnet-card p { font-size: 0.98rem; }
@media (max-width: 820px) { .magnet-grid { grid-template-columns: 1fr; } }

/* ---------- why cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: var(--tint);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 30px 28px;
  transform: rotate(var(--tilt, -0.5deg));
}
.why-card:nth-child(2) { --tilt: 0.5deg; }
.why-card:nth-child(3) { --tilt: -0.3deg; }
.why-card p { font-size: 0.98rem; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- promise ---------- */
.promise {
  margin-top: 40px;
  background: var(--ink);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 44px 46px;
  text-align: center;
  color: var(--sky);
}
.promise__kicker {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
  border: 2.5px solid var(--paper); border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.promise__text {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.2;
  color: #fff;
  max-width: 30ch; margin: 0 auto 12px;
}
.promise__sub { color: rgba(222,243,255,0.75); max-width: 52ch; margin: 0 auto; }

/* ---------- two paths ---------- */
.paths { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.path-card {
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 38px 38px;
}
.path-card--diy { background: var(--paper); transform: rotate(-0.4deg); }
.path-card--dfy { background: var(--sky); transform: rotate(0.4deg); }
.path-card__title { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 18px; }
.path-steps { list-style: none; counter-reset: ps; display: grid; gap: 14px; margin-bottom: 18px; }
.path-steps li { counter-increment: ps; position: relative; padding-left: 46px; font-size: 0.98rem; line-height: 1.5; }
.path-steps li::before {
  content: counter(ps);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.15rem;
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 50%;
}
.path-card--dfy p { margin-bottom: 16px; }
.path-card__note { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-top: 6px; }
@media (max-width: 880px) { .paths { grid-template-columns: 1fr; } }

/* ---------- cta / footer ---------- */
.cta {
  position: relative;
  padding: 130px 24px 200px;
  text-align: center;
  overflow: hidden;
  border-top: var(--border);
  background: linear-gradient(#DEF3FF, #C9EBFF);
}
.cta__cloud { position: absolute; top: 40px; right: 6%; width: 240px; opacity: 0.85; animation: drift 40s linear infinite alternate; }
.cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }
.cta__bird { width: 110px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.cta__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; padding-bottom: 6px; }
.cta__sub { font-size: 1.15rem; max-width: 44ch; color: rgba(4, 50, 77, 0.78); }
.cta__grass {
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 150px;
  background: url('assets/grass.webp') bottom center / cover no-repeat;
  pointer-events: none;
}
.footer {
  background: #2E7D32;
  color: #EAF7EC;
  text-align: center;
  padding: 44px 24px 54px;
}
.footer__brand { font-family: var(--serif); font-size: 1.6rem; }
.footer__tag { font-size: 0.95rem; opacity: 0.85; margin: 6px 0 14px; }
.footer__link { color: #fff; font-weight: 700; text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
.cta__alt { font-size: 0.98rem; color: rgba(4,50,77,0.75); }
.cta__alt a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2.5px; text-underline-offset: 3px; }

/* ==========================================================
   Flight School additions
   Everything below is new for the course. Same system:
   3px ink borders, solid offset shadows, slight tilts,
   Instrument Serif display, pastel tints.
   ========================================================== */

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* state switches, set before first paint by the inline head script */
html[data-gate="off"] [data-when="locked"],
html[data-enrolled="1"] [data-when="locked"] { display: none !important; }
html[data-gate="on"]:not([data-enrolled="1"]) [data-when="open"] { display: none !important; }

/* ---------- nav: course progress ---------- */
.nav__title a { color: inherit; text-decoration: none; }
.nav__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nav__dots { display: flex; align-items: center; gap: 7px; margin-right: 20px; }
.nav__dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--paper);
  transition: transform 0.15s var(--ease), background 0.2s ease;
}
.nav__dot:hover { transform: scale(1.25); }
.nav__dot.is-done { background: var(--blue); }
.nav__dot.is-here { background: var(--gold); transform: scale(1.2); }
@media (max-width: 720px) { .nav__dots { margin-left: auto; margin-right: 12px; } .nav--course .btn { margin-left: 0; } }
@media (max-width: 560px) { .nav__dots { display: none; } .nav--course .btn { margin-left: auto; } }

/* ---------- hero: flight school ---------- */
.hero--course { min-height: min(calc(100dvh - 62px), 900px); }
.hero--course .hero__title { font-size: clamp(3.6rem, 9vw, 7rem); line-height: 0.98; }
.hero__line { display: block; }
.hero--course .hero__sub { margin: 28px 0 30px; max-width: 46ch; }
.hero--course .birdhouse-hero { width: min(100%, 360px); }

.bh-plane { animation: glide 6s ease-in-out infinite; }
@keyframes glide { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(7px, -11px); } }
.bh-trail { animation: trail 1.6s linear infinite; }
@keyframes trail { to { stroke-dashoffset: -26; } }
.bh-tassel { transform-origin: 108px 18px; animation: tassel 5.5s ease-in-out infinite; }
@keyframes tassel { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-6deg); } }

@media (max-width: 880px) {
  .hero--course .birdhouse-hero { width: 200px; }
  .hero--course .hero__inner { padding-top: 26px; }
}

/* social preview capture (og.html, never deployed) */
.hero--og { min-height: 568px; }
.hero--og .hero__inner { padding-top: 30px; padding-bottom: 50px; }

/* ---------- enroll ---------- */
.enroll {
  max-width: 560px;
  background: var(--paper);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  transform: rotate(-0.5deg);
  text-align: left;
}
.enroll__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.enroll__field { display: grid; gap: 6px; }
.enroll__field span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(4, 50, 77, 0.7);
}
.enroll__field input {
  width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.enroll__field input::placeholder { color: rgba(4, 50, 77, 0.36); }
.enroll__field input:focus-visible { box-shadow: 3px 3px 0 var(--blue); transform: translate(-1px, -1px); border-radius: 12px; }
.enroll__field input[aria-invalid="true"] { background: var(--pink); }
.enroll .btn { grid-column: 1 / -1; text-align: center; margin-top: 4px; font-size: 1.05rem; padding: 15px 30px; }
.enroll .btn[disabled] { opacity: 0.7; cursor: progress; }
.enroll__fine { margin-top: 13px; font-size: 0.86rem; color: rgba(4, 50, 77, 0.65); text-align: center; }
.enroll__error {
  margin-top: 12px; padding: 8px 12px;
  font-size: 0.9rem; font-weight: 700; text-align: center;
  background: var(--pink); border: 2px solid var(--ink); border-radius: 10px;
}
.enroll__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) { .enroll__row { grid-template-columns: 1fr; } .enroll { padding: 18px 16px 16px; } }

/* returning student */
.resume {
  max-width: 560px;
  background: var(--paper);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px 26px 26px;
  transform: rotate(-0.5deg);
}
.resume__hi { font-family: var(--serif); font-size: 1.8rem; line-height: 1.12; }
.resume__sub { font-size: 0.96rem; color: rgba(4, 50, 77, 0.72); margin: 6px 0 18px; }
.resume__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* five little progress badges */
.wings { display: flex; align-items: center; gap: 7px; }
.wing {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: #fff center / 13px no-repeat;
}
.wing.is-done {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 l5 5 L20 6' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.wing.is-here { background-color: var(--gold); }

/* ---------- syllabus: the flight path ---------- */
.section--modules { padding-top: 130px; }
.modules-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.modules-head > div:first-child { flex: 1 1 520px; }
.modules-head .lead { margin-bottom: 0; }
.h2, .hero__title, .lesson-hero__title, .leg__title, .cta__title, .promise__text, .player__title, .attach__title { text-wrap: balance; }
.lead, .hero__sub, .lesson-hero__sub, .cta__sub, .promise__sub { text-wrap: pretty; }
.tally { display: flex; align-items: baseline; gap: 12px; padding-bottom: 6px; }
.tally strong {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1;
  background-image: linear-gradient(transparent 60%, var(--gold) 60%);
  padding: 0 4px;
}
.tally span { font-weight: 700; font-size: 0.95rem; color: rgba(4, 50, 77, 0.7); max-width: 12ch; line-height: 1.3; }

.flight { list-style: none; position: relative; display: grid; gap: 46px; margin-top: 64px; }
/* dotted flight line from each stop down to the next one */
.leg:not(:last-child)::after {
  content: ""; position: absolute; left: 33px; top: 118px; bottom: -72px; width: 6px;
  background: radial-gradient(circle, var(--ink) 0 2.5px, transparent 3px) center top / 6px 16px repeat-y;
}
.leg { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 32px; align-items: start; }
.leg__marker {
  position: relative; z-index: 1;
  width: 72px; height: 72px; margin-top: 34px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.9rem; line-height: 1;
  background: #fff center / 34px no-repeat;
  border: var(--border); border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}
.leg.is-here .leg__marker { background-color: var(--gold); }
.leg.is-done .leg__marker {
  background-color: var(--blue); color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 l5 5 L20 6' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.leg__plane {
  position: absolute; right: -26px; top: -42px; width: 52px;
  opacity: 0; transform: translate(-14px, 14px) scale(0.6);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
  pointer-events: none;
}
.leg.is-here .leg__plane { opacity: 1; transform: none; }
.leg.is-here .leg__plane svg { animation: glide 5s ease-in-out infinite; }
.leg__plane svg { display: block; width: 100%; height: auto; overflow: visible; }

.leg__card {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center;
  background: var(--tint);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 40px 42px;
  transform: rotate(var(--tilt, -0.4deg));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.leg:nth-child(2n) .leg__card { --tilt: 0.4deg; }
.leg__card:hover { transform: rotate(0deg) translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.leg__eyebrow {
  display: inline-block;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 16px;
}
.leg__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 3.8vw, 3rem); line-height: 1.04; letter-spacing: -0.01em;
  margin-bottom: 12px; padding-bottom: 2px;
}
.leg__title em { font-style: italic; }
.leg__title a { color: inherit; text-decoration: none; }
.leg__desc { max-width: 44ch; color: rgba(4, 50, 77, 0.82); margin-bottom: 18px; }
.leg__card .check-list li { font-size: 0.96rem; }
.leg__card .check-list li::before { background-color: var(--ink); }
.leg__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.leg__meta { font-size: 0.88rem; font-weight: 500; color: rgba(4, 50, 77, 0.66); }
.leg__media { display: grid; gap: 16px; }
.leg__cap { font-size: 0.86rem; font-weight: 700; color: rgba(4, 50, 77, 0.68); text-align: center; }
.leg__cap b { color: var(--ink); }

/* browser-frame preview of the attached playbook */
.shot {
  display: block; text-decoration: none; color: var(--ink);
  background: #fff;
  border: var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--shot-tilt, 2deg));
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.shot:hover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.shot__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: var(--paper);
  border-bottom: var(--border);
}
.shot__bar i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--pink); flex: none; }
.shot__bar i:nth-child(2) { background: var(--gold); }
.shot__bar i:nth-child(3) { background: var(--mint); }
.shot__url {
  flex: 1; margin-left: 8px; min-width: 0;
  font-size: 0.72rem; font-weight: 700; text-align: center;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-stack { position: relative; padding-bottom: 24%; }
.shot-stack .shot { width: 84%; }
.shot-stack .shot:first-child { --shot-tilt: -3deg; }
.shot-stack .shot:last-child { position: absolute; right: 0; bottom: 0; --shot-tilt: 3deg; }

@media (max-width: 980px) {
  .leg__card { grid-template-columns: 1fr; gap: 30px; padding: 34px 30px; }
  .leg__media { max-width: 460px; }
}
@media (max-width: 720px) {
  .flight { gap: 58px; margin-top: 70px; }
  .leg:not(:last-child)::after { display: none; }
  .leg { grid-template-columns: 1fr; gap: 0; }
  .leg__marker { position: absolute; top: -30px; left: 22px; z-index: 3; width: 58px; height: 58px; margin: 0; font-size: 1.5rem; background-size: 28px; }
  .leg__plane { right: -26px; top: -28px; width: 44px; }
  .leg__card { padding: 44px 22px 28px; transform: none; }
  .leg__card:hover { transform: translate(-2px, -2px); }
}

/* ---------- how it works ---------- */
.section--how { background: var(--lilac); border-top: var(--border); border-bottom: var(--border); }
.section--how .magnet-card__no { background: var(--gold); }
.section--how .promise { margin-top: 56px; }
.promise { box-shadow: 8px 8px 0 var(--blue); }

/* graduation */
.grad { margin-top: 64px; }
.grad .promise { margin-top: 0; background: var(--ink); box-shadow: 8px 8px 0 var(--blue); }
.grad .btn { margin-top: 24px; }
/* buttons sitting on an ink card trade the ink outline for paper so the offset shadow still reads */
.promise .btn { border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.promise .btn:hover { box-shadow: 6px 6px 0 var(--paper); }
.promise .btn:active { box-shadow: 2px 2px 0 var(--paper); }

/* ---------- lesson header ---------- */
.lesson-hero { position: relative; overflow: hidden; padding: 70px 0 46px; }
.lesson-hero__inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end;
  position: relative; z-index: 2;
}
.lesson-hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.9rem, 7.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.015em;
}
.lesson-hero__title .hero__word { padding-bottom: 6px; }
.lesson-hero__sub { font-size: 1.2rem; max-width: 50ch; margin: 24px 0 0; color: rgba(4, 50, 77, 0.8); }
.lesson-hero__no {
  font-family: var(--serif);
  font-size: clamp(7.5rem, 19vw, 15rem); line-height: 0.78;
  color: var(--blue);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 7px 7px 0 var(--ink);
  transform: rotate(5deg);
  padding: 0 22px 8px 0;
  user-select: none;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  font-size: 0.84rem; font-weight: 700;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 5px 14px;
  box-shadow: 2px 2px 0 var(--ink);
}
.pill--tint { background: var(--tint); }
@media (max-width: 820px) {
  .lesson-hero { padding: 44px 0 34px; }
  .lesson-hero__inner { grid-template-columns: 1fr; }
  .lesson-hero__no { order: -1; font-size: 6.4rem; -webkit-text-stroke-width: 2.5px; text-shadow: 5px 5px 0 var(--ink); justify-self: start; transform: rotate(-4deg); padding: 6px 0 6px 6px; }
}

/* ---------- player ---------- */
.player-wrap { max-width: 1080px; margin: 0 auto; padding: 34px 24px 100px; position: relative; z-index: 2; }
.player { position: relative; }
.player .ticket { position: absolute; z-index: 4; top: -19px; left: 28px; margin: 0; background: var(--gold); }
.player__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: 10px 10px 0 var(--ink);
}
.player__frame iframe, .player__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player__scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center; align-content: center; gap: 20px;
  padding: 30px 24px;
  background: linear-gradient(#DEF3FF, #C3E8FF);
  color: var(--ink); text-align: center;
  overflow: hidden;
}
button.player__scene { cursor: pointer; }
.player__cloud { position: absolute; pointer-events: none; opacity: 0.85; filter: brightness(1.35) contrast(0.85); }
.player__cloud--1 { top: 6%; left: -4%; width: 34%; animation: drift 46s linear infinite alternate; }
.player__cloud--2 { bottom: 8%; right: -3%; width: 27%; animation: drift 38s linear infinite alternate-reverse; }
.player__play {
  position: relative; z-index: 2;
  width: clamp(72px, 11vw, 112px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.player__play::after {
  content: ""; width: 0; height: 0;
  border-style: solid; border-color: transparent transparent transparent var(--ink);
  border-width: clamp(11px, 1.7vw, 18px) 0 clamp(11px, 1.7vw, 18px) clamp(19px, 2.9vw, 30px);
  transform: translateX(12%);
}
button.player__scene:hover .player__play { transform: translate(-3px, -3px) scale(1.05); box-shadow: 9px 9px 0 var(--ink); }
button.player__scene:active .player__play { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.player__plane { position: relative; z-index: 2; width: clamp(130px, 21vw, 230px); height: auto; overflow: visible; animation: glide 6s ease-in-out infinite; }
.player__title { position: relative; z-index: 2; font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2.7rem); line-height: 1.1; max-width: 22ch; }
.player__title em { font-style: italic; }
.player__note { position: relative; z-index: 2; font-size: clamp(0.86rem, 1.4vw, 1rem); font-weight: 500; color: rgba(4, 50, 77, 0.72); max-width: 44ch; }
.player__badge {
  position: relative; z-index: 2;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 6px 16px; box-shadow: 3px 3px 0 var(--ink);
}
/* locked: the frame grows to fit the enroll card instead of holding 16:9 */
html[data-gate="on"]:not([data-enrolled="1"]) .player__frame { aspect-ratio: auto; }
.player__scene--locked { position: relative; padding: 68px 20px 56px; gap: 18px; }
.player__scene--locked .enroll { width: 100%; position: relative; z-index: 2; transform: rotate(0.4deg); margin-top: 8px; }
@media (max-width: 720px) {
  .player-wrap { padding: 30px 16px 76px; }
  .player__frame { box-shadow: 7px 7px 0 var(--ink); }
  .player__scene { gap: 12px; padding: 22px 16px; }
  .player__scene--locked { padding: 58px 14px 28px; }
  .player .ticket { left: 18px; font-size: 0.72rem; }
}

/* ---------- chapters + attached playbook ---------- */
.section--chapters { background: var(--paper); border-top: var(--border); border-bottom: var(--border); }
.lesson-grid { display: grid; grid-template-columns: 1.22fr 0.78fr; gap: 46px; align-items: start; }
.chapters {
  list-style: none; counter-reset: ch;
  background: #fff;
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chapter + .chapter { border-top: 2px dashed rgba(4, 50, 77, 0.2); }
.chapter a {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 26px;
  color: var(--ink); text-decoration: none;
  transition: background 0.2s ease;
}
.chapter a:hover, .chapter a:focus-visible { background: var(--tint); }
.chapter a:focus-visible { outline-offset: -4px; border-radius: 14px; }
.chapter__no {
  counter-increment: ch;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1;
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 50%;
}
.chapter__no::before { content: counter(ch); }
.chapter__body strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.38rem; line-height: 1.15; }
.chapter__body span { display: block; margin-top: 4px; font-size: 0.94rem; line-height: 1.5; color: rgba(4, 50, 77, 0.72); }
.chapter__src {
  display: inline-block; margin-top: 9px;
  font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 2px 10px;
}
.chapter__go {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper) center / 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17 L17 7 M9 7 h8 v8' fill='none' stroke='%2304324D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s ease;
}
.chapter a:hover .chapter__go, .chapter a:focus-visible .chapter__go { background-color: var(--blue); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }

.attach {
  position: sticky; top: 92px;
  background: var(--tint);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 30px 28px 32px;
  transform: rotate(0.6deg);
}
.attach .ticket { font-size: 0.72rem; margin-bottom: 22px; }
.attach__item + .attach__item { margin-top: 30px; padding-top: 30px; border-top: 2px dashed rgba(4, 50, 77, 0.25); }
.attach .shot { --shot-tilt: -1.4deg; }
.attach__item:nth-child(odd) .shot { --shot-tilt: 1.4deg; }
.attach__title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: 24px 0 6px; }
.attach__meta { font-size: 0.84rem; font-weight: 700; color: rgba(4, 50, 77, 0.64); margin-bottom: 12px; }
.attach__desc { font-size: 0.98rem; margin-bottom: 22px; }
@media (max-width: 920px) {
  .lesson-grid { grid-template-columns: 1fr; }
  .attach { position: static; transform: none; max-width: 520px; }
}
@media (max-width: 560px) {
  .chapter a { grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 18px; }
  .chapter__no { width: 34px; height: 34px; font-size: 1.05rem; }
  .chapter__go { display: none; }
}

/* ---------- your move ---------- */
.section--move .promise { margin-top: 0; padding: 54px 46px; }
.section--move .promise__text { max-width: 26ch; }
.wrapup { margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; position: relative; }
.btn--done { background: var(--mint); }
.btn__tick {
  display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: -4px;
  border: 2.5px solid var(--ink); border-radius: 50%; background: #fff center / 12px no-repeat;
}
.btn--done .btn__tick {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 l5 5 L20 6' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.burst i {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px;
  background: var(--c, var(--gold));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: burst 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes burst {
  from { transform: translate(0, 0) scale(0.2) rotate(0deg); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(160deg); opacity: 0; }
}

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 70px; }
.pager__link {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--tint, var(--paper));
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 22px 26px 24px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pager__link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(4, 50, 77, 0.66); }
.pager__title { display: block; font-family: var(--serif); font-size: 1.65rem; line-height: 1.15; margin-top: 4px; }
@media (max-width: 640px) {
  .pager { grid-template-columns: 1fr; }
  .pager__link--next { grid-column: 1; }
  .section--move .promise { padding: 40px 24px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; translate: none; }
  .squiggle path { stroke-dashoffset: 0; }
  .burst { display: none; }
}
