:root{font-family:Arial,Helvetica,sans-serif;color:#342638;background:#faf9f6;color-scheme:light;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;background:none;border:0}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #77618a;outline-offset:6px}header{position:fixed;inset:0 0 auto;z-index:10;display:flex;align-items:center;gap:26px;padding:28px 4.5vw;pointer-events:none}header>*{pointer-events:auto}.wordmark{font-size:24px;letter-spacing:.21em;text-decoration:none;white-space:nowrap}.wordmark span{font-weight:300;margin-left:.24em;letter-spacing:.18em}.languages{display:flex;gap:8px;margin-left:auto}.languages button{font-size:11px;padding:10px 7px;opacity:.55}.languages button[aria-pressed=true]{opacity:1;border-bottom:1px solid #594462}.header-program{font-size:12px;border:1px solid #c5bbc8;border-radius:30px;padding:13px 19px;background:#faf9f6b3;backdrop-filter:blur(10px)}.chapters{position:fixed;z-index:6;right:4.5vw;top:88px;display:flex;gap:18px}.chapters button{font-size:10px;color:#817584;padding:6px 0;border-bottom:1px solid transparent}.chapters button[aria-current=true]{border-color:#725b7f;color:#342638}#scroll-track{height:850svh}#stage{position:sticky;top:0;height:100svh;overflow:hidden}#scene{position:absolute;inset:0}canvas{display:block;width:100%;height:100%}#loading{position:absolute;inset:0;display:grid;place-content:center;color:#786681;font-size:14px;background:#faf9f6}#loading[hidden],#fallback[hidden]{display:none}#fallback{position:absolute;inset:0;display:grid;place-content:center;padding:8vw;text-align:center}footer{position:fixed;z-index:10;inset:auto 0 0;display:flex;align-items:center;gap:26px;padding:22px 4.5vw;background:linear-gradient(transparent,#faf9f6ef);font-size:10px;color:#75697a}.scroll-cue{flex:1;display:flex;gap:12px;align-items:center}.transport{display:flex;gap:13px;align-items:center;max-width:340px;width:30vw}#play{font-size:22px;width:30px;height:30px}#scrub{min-width:0;flex:1;accent-color:#685078;height:2px}#percent{font-variant-numeric:tabular-nums;width:30px}#mode{border-bottom:1px solid #c8bdcb;padding:5px 0;font-size:10px}#questions{font-size:10px}.surface-hit{position:absolute;z-index:4;padding:0;border:0;border-radius:12px;background:transparent;display:none;text-decoration:none;cursor:pointer}.surface-hit:focus-visible{background:#c7df7830;outline:3px solid #80678e}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.static #scroll-track{height:100svh}.static .transport{opacity:.3;pointer-events:none}dialog{border:1px solid #ddd4df;border-radius:24px;background:#faf9f6;color:#342638;width:min(660px,calc(100% - 32px));max-height:86svh;padding:44px;box-shadow:0 25px 100px #37213b22}dialog::backdrop{background:#24182a65;backdrop-filter:blur(10px)}dialog h2{font:italic 46px Georgia,serif;margin:0 40px 24px 0}dialog h3{font-size:18px;margin:26px 0 10px}dialog p,dialog li{font-size:15px;line-height:1.6}dialog li{padding:8px 0}dialog a{display:inline-block;padding:13px 20px;border-radius:30px;background:#39273f;color:#fff;text-decoration:none}dialog .price{font-size:42px;margin:15px 0}dialog small{display:block;color:#85768a;line-height:1.5;margin-top:20px}#close-details{position:absolute;right:21px;top:15px;font-size:30px}details{padding:18px 0;border-bottom:1px solid #ded6df}summary{cursor:pointer;font-size:15px}details p{color:#76667c}body:has(dialog[open]){overflow:hidden}@media(max-width:900px){header{padding:24px 5vw;gap:16px}.wordmark{font-size:21px}.header-program{font-size:11px;padding:11px 14px}.chapters{top:82px;right:5vw;gap:16px}footer{gap:18px}.scroll-cue{font-size:9px}.transport{width:30vw}}@media(max-width:560px){header{padding:21px 20px;flex-wrap:wrap;row-gap:10px}.wordmark{font-size:18px}.languages{gap:2px}.languages button{font-size:10px;padding:6px}.header-program{display:none}.chapters{left:20px;right:20px;top:65px;justify-content:space-between;gap:5px}.chapters button{font-size:9px}footer{padding:18px 20px 22px;gap:14px;flex-wrap:wrap}.scroll-cue{flex:1 0 100%;justify-content:center}.transport{flex:1;max-width:none}#mode,#questions{font-size:9px}#scroll-track{height:780svh}dialog{padding:32px 24px}dialog h2{font-size:35px}}

/* Touch layouts keep the controls usable without shrinking the scene to a thumbnail. */
#scene{touch-action:pan-y}#scrub{height:32px;margin:0;cursor:ew-resize;background:transparent}
#play,#questions,#mode{min-height:40px}.chapters button{min-height:32px}
@media(max-width:600px){
  header{padding:calc(12px + env(safe-area-inset-top)) 16px 8px;gap:10px;flex-wrap:nowrap}
  .wordmark{font-size:17px;letter-spacing:.14em}.wordmark span{letter-spacing:.12em;margin-left:.2em}
  .languages{gap:0}.languages button{min-width:34px;min-height:40px;padding:8px 6px;font-size:11px}
  .header-program{display:none}
  .chapters{left:16px;right:16px;top:calc(60px + env(safe-area-inset-top));gap:4px;justify-content:space-between}
  .chapters button{font-size:11px;min-height:40px;padding:8px 5px}
  footer{padding:8px 16px calc(8px + env(safe-area-inset-bottom));gap:4px 12px;flex-wrap:wrap;background:linear-gradient(transparent,#faf9f6f5 45%)}
  .scroll-cue{flex:1 0 100%;font-size:10px;line-height:20px;justify-content:center}
  .transport{flex:1;min-width:116px;max-width:none;width:auto;gap:6px}
  #play{width:34px;min-width:34px;height:44px;font-size:23px}
  #scrub{height:44px;min-width:30px}#percent{width:27px;font-size:10px}
  #questions,#mode{font-size:11px;min-height:44px;padding:8px 0;white-space:nowrap}
  #mode{border:0;text-decoration:underline;text-underline-offset:5px}
  #scroll-track{height:780svh}
  dialog{padding:40px 22px 24px;border-radius:20px}dialog h2{font-size:32px;margin-right:18px}
  #close-details{width:44px;height:44px;top:4px;right:5px}summary{line-height:1.45}
}
@media(max-height:500px) and (min-width:601px){
  header{padding:10px 24px;gap:16px}.wordmark{font-size:18px}.header-program{padding:10px 14px;font-size:11px}
  .chapters{top:58px;right:24px;gap:16px}footer{padding:4px 24px;gap:18px}.scroll-cue{font-size:9px}
}
@media(max-width:600px){body::before{content:"";position:fixed;z-index:5;inset:0 0 auto;height:132px;pointer-events:none;background:linear-gradient(#faf9f6 35%,#faf9f6e0 65%,#faf9f600)}}

/* Intermediate widths use two intentional rows rather than overflowing flex items. */
@media(min-width:601px) and (max-width:1100px){
  header{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:18px 28px 8px;gap:10px 18px;align-items:center}
  .wordmark{font-size:21px;min-width:0}.languages{margin-left:0;justify-self:end;gap:4px}
  .languages button{min-width:36px;min-height:40px;font-size:12px}
  .header-program{display:none}
  .chapters{inset:68px 28px auto;justify-content:flex-end;gap:24px}
  .chapters button{font-size:12px;min-height:40px;white-space:nowrap}
}
@media(max-width:600px){
  header{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;max-width:100%}
  .languages{margin-left:0;justify-self:end}.wordmark{font-size:clamp(14px,4.2vw,18px);letter-spacing:.12em}
  .languages button{min-width:32px}.chapters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px}
  .chapters button{font-size:clamp(9px,2.8vw,11px);padding:8px 0;overflow-wrap:anywhere}
}

/* A quiet signature replaces the scroll cue when the course settles. */
.end-credit{display:none;flex:1;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:10px;line-height:1.5}
.end-credit a{text-decoration:none;text-underline-offset:3px}.end-credit a:hover{text-decoration:underline}.end-credit button{font-size:10px;padding:0;text-decoration:underline;text-underline-offset:3px}
.at-end .end-credit{display:flex}.at-end .scroll-cue{display:none}
@media(max-width:900px){.at-end footer{flex-wrap:wrap}.end-credit{flex:1 0 100%;justify-content:center}}
@media(max-width:600px){.end-credit{gap:2px 10px;font-size:9px}.end-credit button{font-size:9px}.end-credit a{white-space:nowrap}.at-end footer{padding-top:6px}}

.ui-icon{display:inline-block;width:18px;height:18px;flex:none;vertical-align:middle;pointer-events:none}.header-program,.end-credit a,#play,#close-details{align-items:center;justify-content:center;gap:7px}.header-program,.end-credit a{display:inline-flex}#play,#close-details{display:grid;place-items:center}#play svg{width:22px;height:22px}#close-details svg{width:22px;height:22px}.end-credit .ui-icon{width:12px;height:12px}.scroll-cue>.ui-icon{width:16px;height:16px}dialog a .ui-icon{margin-left:7px}
.surface-hit,.header-program{touch-action:manipulation}.surface-hit:active{background:#80678e12;box-shadow:0 0 0 2px #80678e33}

@media(max-width:1100px){.header-program{display:none}}
