:root {
  --ink: #183335;
  --dark: #112c2e;
  --cream: #fff2d7;
  --gold: #f3bf65;
  --rust: #9e493a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: clamp(26px, 8.5vw, 145px);
  color: var(--ink);
  background: var(--dark);
  font-family: var(--sans);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
strong, b { font-weight: 750; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
.chapter:focus { outline: none; }

.chapter {
  --enter: 1;
  --progress: 1;
  --gains: 1;
  position: relative;
}

.stage {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  overflow: clip;
  isolation: isolate;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

.scene-stamp {
  position: absolute;
  z-index: 5;
  bottom: 35px;
  right: max(110px, calc(var(--page) * .82));
  padding: 5px 8px;
  color: var(--cream);
  background: #153233;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: .14em;
}

.scene-stamp span { color: var(--gold); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 40px;
  font-weight: 700;
  font-size: 14px;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link span { font-size: 19px; }
.text-link:hover { text-decoration-thickness: 2px; }

.room-stage { background: #2a4d55; }
.room-art, .room-light, .experience-room, .results-decor {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.room-art {
  object-fit: cover;
  filter: brightness(1.14) saturate(1.04);
  transform: translateY(calc(var(--progress) * -1.1%)) scale(1.035);
}

.room-ferry {
  transform: translate(calc(var(--progress) * 15vw), calc(var(--progress) * -1.1%)) scale(1.035);
}
.rates .room-ferry {
  transform: translate(calc(var(--progress) * 8vw), calc(var(--progress) * -1.1%)) scale(1.035);
}

.room-light {
  background: linear-gradient(90deg, #183b4399, #183b432e 48%, transparent 70%);
}

.intro .stage { color: var(--cream); }
.intro-copy {
  width: min(50vw, 630px);
  padding: 56px 0 60px;
  margin-left: var(--page);
  transform: translateY(calc(var(--progress) * -14px));
}

.intro-copy .eyebrow { color: #f2cd92; }
.intro-copy h1 {
  margin: 12px 0 18px;
  font: 700 clamp(90px, 12.7vw, 196px)/.76 var(--serif);
  letter-spacing: -.086em;
  word-spacing: .18em;
  text-shadow: 0 7px 0 #102e2f55;
}
.intro-copy h1 span { color: var(--gold); }
@media (min-width: 1280px) {
  .intro-copy h1 { white-space: nowrap; }
}
.intro-subtitle {
  font-size: clamp(18px, 2.25vw, 34px);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.18;
}
.intro-note {
  margin-top: 11px;
  font-size: clamp(13px, 1.15vw, 17px);
  color: #f9e5c2;
}

.intro-note strong { color: var(--gold); font-size: 1.25em; }

.intro-links { display: flex; align-items: center; gap: 26px; margin-top: 22px; }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--gold);
  font: italic 19px/1.2 var(--serif);
  text-decoration: none;
}
.scroll-cue:hover { text-decoration: underline; text-underline-offset: 4px; }
.scroll-cue svg { transform: translateY(10px); }

.next-scene {
  display: grid;
  position: absolute;
  z-index: 10;
  bottom: 24px;
  right: 29px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #f6e7bd90;
  background: #153637;
  color: var(--cream);
  box-shadow: 0 3px 0 #11272650;
}
.next-scene:hover { background: #2d5150; }
.next-scene:focus-visible { outline-color: #ffda80; }

.experience .stage { background: #c58268; }
.experience-room { transform: translateY(calc(var(--progress) * -1.8%)) scale(1.045); }
.experience-layout {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, .9fr);
  gap: clamp(20px, 4.5vw, 76px);
  width: min(calc(100% - var(--page) * 2), 1100px);
  margin-inline: auto;
  padding-block: 60px 72px;
}
.profile-paper, .course-notes, .rates-paper, .report {
  background-color: var(--cream);
  box-shadow: 10px 13px 0 #13282738;
}

.profile-paper {
  position: relative;
  padding: clamp(24px, 4vw, 57px);
  border: 1px solid #f1d5a4;
  transform: translateY(calc((1 - var(--enter)) * 35px));
}
.profile-paper::before, .course-notes::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 14%;
  width: 90px;
  height: 27px;
  transform: rotate(-6deg);
  background: #f7d486b8;
}
.profile-paper h2, .results h2, .rates h2 {
  font: 700 clamp(35px, 5.5vw, 82px)/.95 var(--serif);
  letter-spacing: -.072em;
}
.profile-paper h2 { margin: 12px 0 21px; }
.profile-paper p:not(.eyebrow) {
  max-width: 45ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.58;
}
.profile-paper p + p { margin-top: 12px; }
.profile-paper .eyebrow, .rates-paper .eyebrow { color: #8a4032; }

.course-notes {
  position: relative;
  justify-self: start;
  width: min(100%, 330px);
  margin-bottom: -19px;
  padding: clamp(18px, 2.8vw, 35px);
  background: #f0ce8f;
  border: 1px solid #b47755;
  transform: translateY(calc((1 - var(--enter)) * 64px)) rotate(2.8deg);
}
.course-notes::before {
  width: 70px;
  height: 22px;
  left: auto;
  right: 12%;
  background: #fcdfaeab;
  transform: rotate(7deg);
}
.course-notes dl { margin-top: 16px; }
.course-notes dl div + div {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #95674870;
}
.course-notes dt { font-size: 15px; font-weight: 750; }
.course-notes dd { font-size: 13px; line-height: 1.4; margin-top: 3px; }

.results .stage {
  background: #275455;
  background-image: radial-gradient(ellipse at 50% 0%, #3e6d6d 0%, transparent 68%),
    repeating-linear-gradient(90deg, #b6b09013 0 1px, transparent 1px 148px);
}
.results-decor { transform: translateY(calc(var(--progress) * -5%)); }
.result-pencil {
  position: absolute;
  top: 20%;
  right: -50px;
  width: 255px;
  transform: rotate(-52deg);
  filter: drop-shadow(0 7px 0 #142f3155);
}
.result-notebook {
  position: absolute;
  bottom: -35px;
  left: -43px;
  width: 197px;
  height: 310px;
  border-radius: 8px 12px 12px 8px;
  border-left: 13px solid #804839;
  border-bottom: 11px solid #ecd4aa;
  background: #b9634e;
  box-shadow: 7px 11px 0 #112d2d50;
  transform: rotate(-24deg);
}
.result-notebook::after {
  content: "";
  display: block;
  width: 77%;
  height: 86%;
  margin: 10% auto;
  border: 1px solid #f4be8666;
}
.result-ring {
  position: absolute;
  top: -35px;
  left: 9%;
  width: 117px;
  aspect-ratio: 1;
  border: 3px solid #c3976b38;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #c3976b20;
}
.results-layout {
  width: min(calc(100% - var(--page) * 2), 1090px);
  margin-inline: auto;
  padding: 42px 0 60px;
}
.results-header { color: var(--cream); margin-bottom: clamp(17px, 3vh, 30px); }
.results-header .eyebrow { color: #f1cc8c; }
.results-header h2 { margin-top: 8px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(13px, 2.5vw, 38px); }

.report {
  --chart-color: #346e68;
  --paper-dark: #28524c;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.75vw, 38px);
  border: 1px solid #d8b98a;
  background-image: repeating-linear-gradient(0deg, #9a714910 0 1px, transparent 1px 25px);
  transform: translate(calc((1 - var(--enter)) * -38px), calc((1 - var(--enter)) * 36px)) rotate(calc((1 - var(--enter)) * -3deg));
}
.report-a {
  --chart-color: #a34c3b;
  --paper-dark: #843f31;
  transform: translate(calc((1 - var(--enter)) * 38px), calc((1 - var(--enter)) * 58px)) rotate(calc((1 - var(--enter)) * 3deg));
}
.report h3 { font-size: clamp(15px, 1.65vw, 24px); line-height: 1.1; letter-spacing: -.035em; }
.report-outcome { display: flex; align-items: center; gap: 17px; margin: 5px 0 9px; }
.report-outcome > strong {
  color: var(--paper-dark);
  font: 700 clamp(59px, 8vw, 114px)/.96 var(--serif);
  letter-spacing: -.09em;
}
.report-outcome > strong span { margin-left: .045em; font-size: .58em; }
.report-outcome > span { font-size: clamp(12px, 1.4vw, 19px); line-height: 1.13; }
.report-outcome b { font-size: 1.22em; }

.ums { margin: 10px 0 0; font-size: clamp(11px, 1.16vw, 15px); line-height: 1.4; }

.gain {
  margin-top: auto;
  padding-top: 13px;
  transform: translateY(calc((1 - var(--gains)) * 8px));
}
.gain-label {
  border-top: 1px solid #92745676;
  padding-top: 9px;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}
.gain-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: var(--paper-dark);
  font: 700 clamp(22px, 2.8vw, 35px)/1 var(--serif);
}
.gain-steps > span:not(.gain-arrow) {
  display: grid;
  min-width: 35px;
  min-height: 37px;
  place-items: center;
  border: 1px solid #96654d85;
}
.gain-steps .gain-end {
  background: var(--chart-color);
  color: #fff9eb;
  transform: translateX(calc((var(--gains) - 1) * 10px)) rotate(calc((1 - var(--gains)) * 10deg));
}
.gain-arrow { opacity: calc(.35 + var(--gains) * .65); }
.gain-caption { margin-top: 5px; font-size: 11px; line-height: 1.28; }

.rates-paper {
  position: relative;
  width: min(44vw, 530px);
  margin: 50px 0 62px var(--page);
  padding: clamp(23px, 4vw, 55px);
  border: 1px solid #e4c490;
  transform: translateY(calc((1 - var(--enter)) * 28px));
  background-image: repeating-linear-gradient(0deg, #986e4510 0 1px, transparent 1px 25px);
}
.rates-paper h2 { margin: 9px 0 20px; }
.price-list { margin-bottom: 12px; }
.price-list div { padding: 10px 0; border-top: 1px solid #9b7b576d; }
.price-list dt { font-weight: 730; font-size: 14px; }
.price-list dd { margin-top: 4px; line-height: 1.2; font-size: clamp(13px, 1.15vw, 16px); }
.price-list dd strong { margin-right: 3px; font: 700 clamp(24px, 3.2vw, 47px)/1 var(--serif); color: #884031; letter-spacing: -.065em; }

@media (max-width: 850px) {
  :root { --page: clamp(22px, 5.5vw, 55px); }
  .intro-copy { width: min(61vw, 540px); }
  .intro-copy h1 { font-size: clamp(77px, 14vw, 130px); }
  .rates-paper { width: min(55vw, 450px); }
  .result-pencil { opacity: .65; right: -110px; }
}

@media (max-width: 630px) {
  .scene-stamp { right: 76px; bottom: 24px; }
  .next-scene { width: 42px; height: 42px; right: 20px; bottom: 16px; }
  .room-art { object-position: 73% center; }
  .room-light { background: linear-gradient(180deg, #2a4d55 0, #2a4d55f2 24%, #2a4d5566 46%, transparent 68%); }
  .intro .room-art { top: 24%; height: 78%; }
  .intro .stage { align-items: start; }
  .intro-copy { width: calc(100% - var(--page) * 2); padding: 45px 0 0; }
  .intro-copy .eyebrow { font-size: 10px; }
  .intro-copy h1 { font-size: clamp(63px, 18vw, 105px); line-height: .79; margin: 10px 0 12px; }
  .intro-subtitle { font-size: clamp(17px, 5.1vw, 25px); }
  .intro-note { font-size: 12px; margin-top: 8px; }
  .intro-links { gap: 16px; margin-top: 9px; }
  .scroll-cue { font-size: 16px; gap: 3px; }
  .scroll-cue svg { width: 35px; height: 32px; transform: translateY(9px); }
  .text-link { gap: 6px; font-size: 13px; }

  .experience-layout {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 440px;
    padding-block: 42px 60px;
  }
  .experience-room { transform: translateX(-1%) scale(1.045); }
  .profile-paper { padding: 22px; }
  .profile-paper h2 { margin: 8px 0 11px; }
  .profile-paper p:not(.eyebrow) { font-size: 14px; line-height: 1.45; }
  .profile-paper p + p { margin-top: 8px; }
  .course-notes { width: min(95%, 340px); padding: 15px 18px; margin: 0 0 0 10px; transform: translateY(calc((1 - var(--enter)) * 26px)) rotate(1.5deg); }
  .course-notes dl { margin-top: 8px; }
  .course-notes dl div + div { margin-top: 6px; padding-top: 6px; }
  .course-notes dt { font-size: 13px; }
  .course-notes dd { font-size: 11px; margin-top: 1px; }

  .results-layout { padding: 26px 0 60px; max-width: 460px; }
  .results-header { margin-bottom: 11px; }
  .results-header h2 { margin-top: 4px; }
  .report-grid { grid-template-columns: 1fr; gap: 11px; }
  .report {
    padding: 13px 16px;
    box-shadow: 6px 7px 0 #13282738;
    transform: translate(calc((1 - var(--enter)) * -7px), calc((1 - var(--enter)) * 22px)) rotate(calc((1 - var(--enter)) * -1deg));
  }
  .report-a {
    transform: translate(calc((1 - var(--enter)) * 7px), calc((1 - var(--enter)) * 32px)) rotate(calc((1 - var(--enter)) * 1deg));
  }
  .report-outcome { margin: 4px 0 6px; gap: 12px; }
  .report-outcome > strong { font-size: 58px; }
  .ums { margin: 6px 0 0; }
  .gain { padding-top: 7px; }
  .gain-label { padding-top: 6px; font-size: 9px; }
  .gain-steps { margin-top: 4px; }
  .gain-steps > span:not(.gain-arrow) { min-width: 25px; min-height: 25px; }
  .gain-caption { margin-top: 4px; font-size: 10px; }
  .result-notebook { opacity: .56; }

  .rates .stage { align-items: start; }
  .rates .room-art { top: 30%; height: 72%; }
  .rates-paper { width: min(calc(100% - var(--page) * 2), 420px); margin-top: 37px; padding: 18px 21px; }
  .rates-paper h2 { margin-bottom: 14px; font-size: clamp(35px, 10vw, 54px); }
  .rates-paper h2 br { display: none; }
  .price-list div { padding: 7px 0; }
  .price-list { margin-bottom: 3px; }
  .price-list dd strong { font-size: 30px; }
}

@media (max-width: 350px) {
  :root { --page: 16px; }
  .intro-links { gap: 8px; }
  .report { padding-inline: 12px; }
}

@media (max-height: 770px) and (min-width: 631px) {
  .intro-copy h1 { font-size: clamp(78px, 10.7vw, 165px); }
  .intro-copy { padding-block: 37px; }
  .results-layout { padding-block: 28px 49px; }
  .report-outcome > strong { font-size: clamp(57px, 7vw, 93px); }
}

@media (max-height: 630px) and (min-width: 631px) {
  .profile-paper { padding: 27px; }
  .profile-paper h2 { font-size: 43px; }
  .results-header h2 { font-size: 55px; }
  .results-layout { max-width: 900px; }
  .report { padding: 20px 25px; }
  .rates-paper { padding: 24px 30px; }
}

.animation-stage, .scroll-track, .credential-mark { display: none; }

.animated .story {
  --stage-height: 100svh;
  --mobile-art-height: 0px;
  position: relative;
  background: #2a4d55;
}
.animated .film {
  position: sticky;
  top: 0;
  height: var(--stage-height);
  isolation: isolate;
  overflow: clip;
}
.animated .animation-stage {
  display: block;
  position: absolute;
  inset: 0;
  overflow: clip;
}
.animated .animation-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #183b43c4, #183b438c 34%, #183b4338 53%, transparent 69%);
  opacity: clamp(.12, calc((1 - var(--intro-out, 0)) * 5), 1);
  pointer-events: none;
}
.animated .animation-stage .world { width: 100%; height: 100%; }
.animated .chapters {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  pointer-events: none;
}
.animated .chapter {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  visibility: hidden;
}
.animated .chapter[data-visible] { visibility: visible; }
.animated .chapter-view {
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: visible;
  isolation: auto;
}
.animated .chapter .chapter-view { background: transparent; }
.animated .chapter .room-art,
.animated .chapter .room-light,
.animated .chapter .experience-room,
.animated .chapter .results-decor { display: none; }
.animated .chapter:not([inert]) a { pointer-events: auto; }
.animated .chapter[inert] :is(.next-scene, .scene-stamp) { visibility: hidden; }

.animated .scroll-track {
  display: block;
  margin-top: calc(-1 * var(--stage-height));
}
.animated [data-waypoint] { height: 155svh; }
.animated [data-waypoint="intro"] { height: 170svh; }
.animated [data-waypoint="results"] { height: 192svh; }
.animated [data-waypoint="lesson"] { height: 280svh; }
.animated [data-waypoint="rates"] { height: var(--stage-height); }

.world g[id] { transform-box: view-box; }
#art-window {
  transform: translateY(calc(-570px * var(--window-away, 0)));
}
#art-ferry { transform: translateX(calc(275px * var(--ferry, 0))); }
#art-plant {
  transform: translateX(calc(240px * var(--window-away, 0)));
}
#art-books {
  transform: translateY(calc(300px * var(--books, 0)));
  opacity: calc(1 - var(--books, 0) * .8);
}
#art-lamp {
  transform: translateX(calc(-1040px * var(--lamp, 0))) rotate(calc(-7deg * var(--lamp, 0)));
  transform-origin: 921px 670px;
}
#art-coffee { transform: translateX(calc(55px * var(--window-away, 0))); }
#art-steam {
  transform: translateY(calc(-11px * var(--ferry, 0)));
}
#art-head {
  transform-origin: 1070px 535px;
  transform: rotate(calc(1deg * var(--head-angle, 0)));
}
#art-eyes { transform: translate(calc(4px * var(--gaze, 0)), calc(1.3px * var(--gaze, 0))); }
#art-arm {
  transform-origin: 975px 660px;
  transform: rotate(calc(1.65deg * var(--arm-angle, 0)));
}
#art-notebook {
  transform-origin: 1063px 689px;
  transform: rotate(calc(6deg * (1 - var(--notebook-open, 0))));
}
#art-page {
  transform-origin: 1063px 689px;
  transform: skewY(calc(-22deg * var(--page-turn, 0))) scaleX(calc(.32 + .68 * var(--notebook-open, 0) - .28 * var(--page-turn, 0)));
}
#art-laptop {
  transform: translateY(calc(126px * (1 - var(--laptop-up, 0))));
  opacity: var(--laptop-up, 0);
}
#art-lid {
  transform-origin: 910px 690px;
  transform: scaleY(calc(.07 + .93 * var(--lid-open, 0)));
}

@media (max-width: 760px), (max-width: 1050px) and (max-aspect-ratio: 6/5) {
  .animated .story { --mobile-art-height: 27svh; }
  .animated .animation-stage {
    bottom: auto;
    height: var(--mobile-art-height);
    border-bottom: 1px solid #f3bf6569;
  }
  .animated .animation-stage .world {
    transform: scale(1.28);
    transform-origin: 100% 65%;
  }
  .animated .animation-stage::after {
    background: linear-gradient(90deg, #183b4338, transparent 57%);
    opacity: 1;
  }
  .animated .chapter-view { padding-top: var(--mobile-art-height); }
  .animated .scene-stamp { top: 20px; bottom: auto; left: 17px; right: auto; }
  .animated .next-scene { top: 10px; bottom: auto; right: 15px; }
  .animated [data-waypoint="lesson"] { height: 255svh; }
}

@media (max-width: 760px) and (max-height: 739px),
       (max-width: 1050px) and (max-aspect-ratio: 6/5) and (max-height: 739px) {
  .animated .story { --mobile-art-height: 22svh; }
}

#art-bookshelf {
  transform: translateX(calc(325px * (1 - var(--experience-in, 0) + var(--experience-out, 0))));
}
#art-record-board {
  transform: translateY(calc(-410px * (1 - var(--results-in, 0) + var(--results-out, 0))));
}
#art-screen-light { opacity: calc(var(--stage-glow, 0) * .19); }

.rates-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
}

.school-appendix {
  min-height: 100svh;
  padding: clamp(2.5rem, 7vw, 6rem) var(--page);
  background: #2a4d55;
  color: var(--cream);
}
.school-appendix-inner {
  max-width: 65rem;
  margin-inline: auto;
}
.school-appendix h2 {
  margin-bottom: 1.6rem;
  font: 700 clamp(2.25rem, 5vw, 4.5rem)/1.04 var(--serif);
  letter-spacing: -.045em;
}
.school-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: 1.4rem;
}
.school-group {
  padding: clamp(1.15rem, 3vw, 2rem);
  border-top: 4px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
}
.school-group h3 {
  font: 700 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 var(--serif);
}
.school-group ul {
  margin: 1rem 0 0;
  padding-inline-start: 1.1rem;
  font-size: clamp(.9rem, 1.3vw, 1rem);
  line-height: 1.45;
}
.school-group li + li { margin-top: .55rem; }

@media (max-width: 650px) {
  .school-groups { grid-template-columns: 1fr; }
}
