:root {
  --ink: #eef5ff;
  --muted: #b9c8de;
  --night: #07152e;
  --navy: #0e2b5e;
  --blue: #58a6ff;
  --sky: #a9d6ff;
  --coral: #f4a184;
  --line: rgba(231, 242, 255, .19);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #030a18; }
body { overflow: hidden; }
button, a { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.deck {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
}
.topbar, .deck-nav { position: absolute; z-index: 10; left: clamp(1rem, 3vw, 3rem); right: clamp(1rem, 3vw, 3rem); display: flex; align-items: center; justify-content: space-between; }
.topbar { top: clamp(1rem, 3vw, 2.25rem); }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.035em; }
.wordmark span { color: var(--blue); padding: 0 .25rem; }
.nav-button { color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.stage { width: 100%; height: 100%; touch-action: pan-y; }
.slide {
  position: absolute; inset: 0; min-height: 100%; overflow: hidden;
  display: grid; align-items: center; isolation: isolate;
  background: var(--night); opacity: 0; transform: translateX(2.5%); transition: opacity .38s ease, transform .38s ease;
}
.slide.is-active { opacity: 1; transform: none; }
.slide[hidden] { display: none; }
.slide__content { position: relative; z-index: 2; width: min(1150px, calc(100% - clamp(3rem, 14vw, 14rem))); margin: 2rem auto 0; }
.eyebrow { margin: 0 0 1.1rem; font-size: clamp(.85rem, 1.2vw, 1.1rem); color: var(--sky); font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.064em; line-height: .98; }
h1 { max-width: 8ch; font-size: clamp(4.5rem, 11vw, 10rem); margin-bottom: 1.8rem; }
h1 em { color: var(--blue); font-style: normal; }
h2 { max-width: 15ch; margin-bottom: 1.75rem; font-size: clamp(2.8rem, 6.3vw, 6.4rem); }
.lede { max-width: 57ch; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.55rem); line-height: 1.55; }

.slide--welcome { background: radial-gradient(circle at 68% 44%, #133e77 0%, var(--navy) 23%, var(--night) 62%); }
.welcome__content { align-self: center; }
.welcome-title { max-width: 12ch; margin: 0; }
.welcome-course-name { max-width: 38ch; margin: 1.4rem 0 0; color: var(--sky); font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 650; letter-spacing: -.03em; }
.welcome__details { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.15rem); }
.work-photo img, .cycling-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats-art { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.stats-art__grid { fill: none; stroke: rgba(169, 214, 255, .08); stroke-width: 1; }
.stats-art__histogram { fill: rgba(88, 166, 255, .1); }
.stats-art__trend { fill: none; stroke: rgba(169, 214, 255, .42); stroke-linecap: round; stroke-width: 5; }
.stats-art__points { fill: rgba(244, 161, 132, .72); }

.slide--path { background: #0d2350; }
.split-layout, .work-layout, .family-layout, .beyond-layout, .facts-layout, .together-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 8vw, 9rem); align-items: center; }
.timeline { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 1.75rem 1fr; column-gap: .5rem; align-items: baseline; padding: 1.15rem 0 1.15rem .9rem; }
.timeline-bullet { width: .58rem; height: .58rem; margin-top: .45rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 .18rem rgba(244, 161, 132, .14); }
.timeline strong { font-size: clamp(1.2rem, 2vw, 2rem); letter-spacing: -.04em; }
.timeline small { grid-column: 2; color: var(--muted); margin-top: .2rem; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.grid-art, .contact-grid { position: absolute; inset: 0; z-index: 0; opacity: .32; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: min(9vw, 120px) min(9vw, 120px); mask-image: linear-gradient(90deg, transparent, #000 48%, transparent); }

.slide--work { background: linear-gradient(120deg, #06142e 0%, #123d78 100%); }
.work-photo { width: min(30vw, 410px); aspect-ratio: 4 / 5; margin: 0; justify-self: end; overflow: hidden; border: 1px solid rgba(231, 242, 255, .2); border-radius: 0 8rem 0 8rem; background: rgba(3, 10, 24, .24); box-shadow: 1.25rem 1.25rem 0 rgba(0, 0, 0, .16); }
.work-photo img { object-position: center; }

.slide--teach { background: #f4a184; color: #0a2450; }
.slide--teach .eyebrow { color: #153762; }
.teach-layout { width: min(1050px, calc(100% - clamp(3rem, 14vw, 14rem))); }
.teach-statement { position: relative; z-index: 1; max-width: 19ch; margin: 0; color: #0a2450; letter-spacing: -.06em; line-height: 1.02; font-size: clamp(2.8rem, 5.8vw, 6.4rem); font-weight: 760; }
.teach-statement span { display: block; color: #153762; }

.slide--family { background: #18384a; }
.family-copy { position: relative; z-index: 2; }
.family-gallery { width: min(29vw, 400px); justify-self: end; }
.family-photo { position: relative; width: 100%; aspect-ratio: var(--photo-ratio, 3 / 4); margin: 0; overflow: hidden; border: 1px solid rgba(231, 242, 255, .2); border-radius: 8rem 8rem 0 0; background: rgba(3, 10, 24, .24); box-shadow: 1rem 1rem 0 rgba(0, 0, 0, .13); transition: aspect-ratio .45s ease; }
.family-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: opacity .35s ease; }
.family-photo img.is-changing { opacity: 0; }

.slide--beyond { background: #122b3f; }
.outdoors-gallery { width: min(35vw, 480px); justify-self: end; }
.cycling-photo { position: relative; width: 100%; margin: 0; overflow: hidden; aspect-ratio: var(--bike-photo-ratio, 3 / 2); box-shadow: 1.25rem 1.25rem 0 rgba(0, 0, 0, .16); border-radius: 0 9rem 0 9rem; transition: aspect-ratio .45s ease; }
.cycling-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: opacity .35s ease; }
.cycling-photo img.is-changing { opacity: 0; }

.slide--facts { background: #264d3f; }
.facts-list { list-style: none; max-width: 38ch; margin: 0; padding: 0; }
.facts-list li { display: grid; grid-template-columns: .9rem 1fr; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: clamp(1.1rem, 1.65vw, 1.45rem); line-height: 1.35; }
.facts-list li::before { width: .62rem; height: .62rem; margin-top: .48rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 .2rem rgba(244, 161, 132, .14); content: ''; }
.facts-photo { width: min(33vw, 460px); aspect-ratio: 4 / 3; margin: 0; justify-self: end; overflow: hidden; border: 1px solid rgba(231, 242, 255, .2); border-radius: 8rem 0 8rem 0; box-shadow: 1rem 1rem 0 rgba(0, 0, 0, .13); }
.facts-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }

.slide--together { background: #0d1d3f; }
.together-message { position: relative; min-height: clamp(10rem, 17vw, 14rem); margin-top: 1.4rem; }
.daughter-quote, .together-message__replacement { position: absolute; inset: 0; max-width: 34ch; margin: 0; transition: clip-path .55s ease, opacity .45s ease, transform .45s ease; }
.daughter-quote { color: var(--sky); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-style: italic; line-height: 1.35; }
.daughter-quote span { display: block; margin-top: .45rem; color: var(--muted); font-size: .78em; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.together-message__replacement { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-.7rem); }
.slide--together.is-revealed .daughter-quote { opacity: 0; transform: translateY(-.5rem); }
.slide--together.is-revealed .together-message__replacement { opacity: 1; clip-path: inset(0); transform: none; transition-delay: .22s; }
.expectations { list-style: none; margin: 0; padding: 0; }
.expectations li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.expectations strong { font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -.035em; }
.expectations p { color: var(--muted); margin: .23rem 0 0; font-size: clamp(1.05rem, 1.45vw, 1.25rem); }

.slide--questions { background: radial-gradient(circle at 50% 45%, #174b8c 0%, #0d2350 35%, var(--night) 100%); }
.questions-layout { display: grid; place-items: center; }
.questions-layout h2 { max-width: none; margin: 0; font-size: clamp(5rem, 13vw, 14rem); text-align: center; }

.slide--contact { background: #173b70; }
.contact-layout { width: min(1000px, calc(100% - clamp(3rem, 14vw, 14rem))); }
.contact-layout h2 { max-width: 14ch; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 820px; margin-top: 2rem; border: 1px solid var(--line); background: var(--line); }
.contact-cards > * { min-width: 0; padding: clamp(.85rem, 2vw, 1.35rem); background: #173b70; color: var(--ink); text-decoration: none; }
.contact-cards a:hover { background: #204a86; }
.contact-cards small { display: block; margin-bottom: .4rem; color: var(--sky); text-transform: uppercase; letter-spacing: .09em; font-size: .68rem; font-weight: 750; }
.contact-cards strong { display: block; overflow-wrap: anywhere; letter-spacing: -.025em; font-size: clamp(.85rem, 1.25vw, 1.05rem); }
.contact-signoff { margin: 2rem 0 0; color: var(--sky); font-size: clamp(1rem, 1.5vw, 1.3rem); }
.contact-grid { opacity: .14; mask-image: linear-gradient(135deg, transparent 20%, #000); }

.deck-nav { bottom: clamp(1rem, 3vw, 2.2rem); gap: 1rem; }
.nav-button { display: inline-flex; gap: .55rem; align-items: center; justify-content: center; min-width: 7.8rem; padding: .75rem 1.1rem; font-size: .95rem; font-weight: 700; transition: background .2s, color .2s; }
.nav-button:hover:not(:disabled) { background: var(--ink); color: var(--night); }
.nav-button:disabled { cursor: not-allowed; opacity: .35; }
.progress-wrap { display: flex; align-items: center; gap: .8rem; }
.slide-counter { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.progress { overflow: hidden; width: min(18vw, 150px); height: 2px; background: var(--line); }
.progress span { display: block; width: 14.285%; height: 100%; background: var(--blue); transition: width .28s ease; }

@media (max-width: 740px), (max-height: 620px) {
  .slide__content, .teach-layout, .contact-layout { width: calc(100% - 3rem); margin-top: .5rem; }
  .topbar { top: 1rem; }
  .wordmark { font-size: 1rem; }
  h1 { font-size: clamp(3.8rem, 17vw, 6.5rem); margin-bottom: 1rem; }
  h2 { font-size: clamp(2.25rem, 10vw, 4.5rem); margin-bottom: 1rem; }
  .lede { font-size: 1.06rem; line-height: 1.5; }
  .slide--welcome .welcome__content { align-self: center; margin-top: 2rem; }
  .split-layout, .work-layout, .family-layout, .beyond-layout, .together-layout { grid-template-columns: 1fr; gap: 1.15rem; }
  .facts-layout { grid-template-columns: minmax(0, 1fr) minmax(145px, 30vw); gap: 1.5rem; }
  .timeline { max-width: 450px; }
  .work-photo { position: absolute; right: 1.5rem; bottom: 5.3rem; width: min(31vw, 220px); }
  .family-gallery { position: relative; right: auto; bottom: auto; width: min(42vw, 260px); min-height: 0; opacity: 1; }
  .facts-photo { width: 100%; }
  .outdoors-gallery { position: absolute; z-index: 0; right: 0; bottom: 4.2rem; width: 55vw; min-height: 0; opacity: .55; }
  .cycling-photo { width: 100%; right: auto; left: auto; }
  .beyond-copy { z-index: 1; }
  .teach-statement { max-width: 18ch; font-size: clamp(2.4rem, 9vw, 4.4rem); }
  .expectations { max-width: 500px; }
  .expectations li { padding: .72rem 0; }
  .contact-cards { grid-template-columns: 1fr; margin-top: 1.15rem; }
  .contact-cards > * { padding: .65rem .85rem; }
  .contact-cards small { display: inline; margin: 0 .5rem 0 0; }
  .contact-cards strong { display: inline; }
  .contact-signoff { margin-top: 1rem; }
  .deck-nav { bottom: .9rem; }
  .nav-button { min-width: auto; padding: .58rem .75rem; }
  .progress { width: min(19vw, 100px); }
}

@media (max-width: 450px) {
  .slide--welcome { background: linear-gradient(140deg, #07152e, #174b8c); }
  .work-photo, .outdoors-gallery { opacity: .42; }
  .facts-layout { grid-template-columns: 1fr; }
  .facts-photo { position: absolute; right: 1.5rem; bottom: 5.3rem; width: min(32vw, 180px); opacity: .48; }
  .nav-button span { display: none; }
  .nav-button { min-width: 2.7rem; }
}

/* Fill larger projection screens without changing the compact classroom layout. */
@media (min-width: 1440px) and (min-height: 800px) {
  .topbar, .deck-nav { left: clamp(2rem, 3vw, 4rem); right: clamp(2rem, 3vw, 4rem); }
  .topbar { top: clamp(1.5rem, 3vw, 3.25rem); }
  .wordmark { font-size: clamp(1.05rem, 1.15vw, 1.35rem); }
  .slide__content { width: min(84vw, 2000px); margin-top: clamp(2rem, 3vh, 4rem); }
  .teach-layout { width: min(78vw, 1720px); }
  .eyebrow { font-size: clamp(1.1rem, 1.15vw, 1.35rem); }
  h1 { font-size: clamp(7rem, 10.5vw, 13.5rem); }
  h2 { font-size: clamp(5.6rem, 6.3vw, 10rem); }
  .lede { font-size: clamp(1.55rem, 1.8vw, 2.25rem); }
  .welcome-course-name { font-size: clamp(1.6rem, 2vw, 2.25rem); }
  .welcome__details { font-size: clamp(1.1rem, 1.3vw, 1.45rem); }
  .timeline strong { font-size: clamp(1.8rem, 2vw, 2.5rem); }
  .timeline small { font-size: clamp(1.15rem, 1.35vw, 1.4rem); }
  .work-photo { width: min(32vw, 560px); }
  .teach-statement { max-width: 20ch; font-size: clamp(5.2rem, 6.2vw, 9.5rem); }
  .family-gallery { width: min(31vw, 540px); }
  .outdoors-gallery { width: min(38vw, 680px); }
  .facts-list li { font-size: clamp(1.35rem, 1.65vw, 1.75rem); }
  .facts-photo { width: min(36vw, 640px); }
  .daughter-quote { font-size: clamp(1.25rem, 1.5vw, 1.6rem); }
  .expectations strong { font-size: clamp(1.45rem, 2vw, 2rem); }
  .expectations p { font-size: clamp(1.2rem, 1.45vw, 1.45rem); }
  .nav-button { min-width: 9.4rem; padding: .9rem 1.35rem; font-size: 1.1rem; }
  .slide-counter { font-size: 1.05rem; }
  .progress { width: min(18vw, 190px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
