/* LPA · Investing across your campuses. LPA's palette and type: Georgia titles, Helvetica Neue text, Arial Narrow labels. */

@font-face {
  font-family: "Gelasio";
  src: url("/assets/fonts/gelasio-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("/assets/fonts/gelasio-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --paper: #faf8f4;
  --cloud: #efebe4;
  --line: #dcd7cf;
  --ink: #1a1a1a;
  --charcoal: #2e2c2a;
  --graphite: #4a4744;
  --stone: #6c655d;
  --mist: #bcb5ac;
  --cream: #f6efe7;
  --red: #cf3339;
  --red-text: #a8262c;
  --red-tint: #f4dad9;
  --sage: #7c8a6b;
  --sage-light: #cdd4c0;
  /* Georgia is on every Mac, Windows PC and iPhone; Gelasio, drawn to Georgia's measures, covers the rest */
  --serif: Georgia, "Gelasio", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red-tint); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--ink); color: var(--cream); text-decoration: none; border-radius: 2px;
}
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 16px;
  font: 700 13px/1.25 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-text);
}
.lede { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.55; color: var(--graphite); max-width: 32em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 0; border-radius: 2px;
  background: var(--ink); color: var(--cream);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: rgba(250, 248, 244, 0.82); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn__meta { font: 700 12px/1 var(--label); letter-spacing: .08em; opacity: .7; }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 76px; transition: background-color .3s ease, box-shadow .3s ease; }
.top.is-solid { background: rgba(250, 248, 244, 0.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.top__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top__logo { display: block; border-radius: 2px; }
.top__logo img { height: 34px; width: auto; }

/* ---------- the exploded school ---------- */
.stage { position: relative; height: 760vh; }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__still { display: none; }
.stage__leaders, .stage__markers, .stage__pins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage__leaders polyline { fill: none; stroke: var(--stone); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .3s ease; }
.stage__leaders polyline.is-active { stroke: var(--red); stroke-width: 1.5; }

.marker {
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font: 700 12px/1 var(--label);
  opacity: 0;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.marker.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.stage__copy { position: absolute; inset: 0; pointer-events: none; }
.head {
  position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  top: 112px; width: min(30rem, 36vw);
  pointer-events: auto; opacity: 0;
}
.head h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 16px; text-wrap: balance; }
.head--hero { opacity: 1; top: 50%; transform: translateY(-46%); width: min(36rem, 42vw); }
.head--hero h1 { font-size: clamp(40px, 4.9vw, 76px); line-height: 1.03; letter-spacing: -0.02em; margin-bottom: 22px; text-wrap: balance; }
.head--hero .lede { margin-bottom: 30px; }
.head .lede { max-width: 28em; }
.head--district .lede { margin-bottom: 26px; }
.is-hidden { visibility: hidden; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hint { display: inline-flex; align-items: center; gap: 12px; font: 700 13px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.hint i { position: relative; width: 1px; height: 34px; background: var(--line); overflow: hidden; }
.hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0% { top: -40%; } 70%, 100% { top: 100%; } }

.layers { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.layer {
  position: absolute; left: 0; top: 0;
  width: min(330px, 30vw);
  opacity: 0;
  pointer-events: auto;
  /* a soft paper ground keeps the text readable where trees or walls sit behind it */
  background: rgba(250, 248, 244, 0.86);
  box-shadow: 0 0 0 10px rgba(250, 248, 244, 0.86);
  border-radius: 2px;
}
.layer__kicker { display: flex; align-items: center; gap: 10px; font: 700 12px/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.layer__tag {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; letter-spacing: 0;
}
.layer__title { margin-top: 6px; font-size: 21px; line-height: 1.2; transition: color .25s ease; }
.layer__body { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.layer__data { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font: 700 13px/1.35 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); }
.layer__key { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--stone); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key::before { content: ""; width: 12px; height: 12px; border-radius: 2px; }
.key--over::before { background: #e39396; }
.key--spare::before { background: #b3bea1; }
.layer:not(.is-active) .layer__body,
.layer:not(.is-active) .layer__data,
.layer:not(.is-active) .layer__key { display: none; }
.layer.is-active .layer__kicker { color: var(--red-text); }

.stage__note {
  position: absolute; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 22px;
  font: 700 12px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--stone);
  opacity: 0;
}

.pin {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 6px;
  margin: -7px 0 0 -7px;
  white-space: nowrap;
  font: 600 13px/1 var(--sans); color: var(--ink);
}
.pin::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 0 3px var(--paper); }
.pin__name { padding: 6px 4px 6px 8px; background: rgba(255, 255, 255, 0.92); border-radius: 2px 0 0 2px; box-shadow: 0 1px 0 rgba(26,26,26,.08); }
.pin__pct { padding: 6px 8px 6px 4px; background: rgba(255, 255, 255, 0.92); border-radius: 0 2px 2px 0; font: 700 13px/1 var(--label); letter-spacing: .04em; color: var(--stone); box-shadow: 0 1px 0 rgba(26,26,26,.08); }
.pin--over::before { background: var(--red); }
.pin--over .pin__pct { color: var(--red-text); }
.pin--main { z-index: 2; font-size: 15px; }
.pin--main::before { width: 18px; height: 18px; }
.pin--main .pin__name, .pin--main .pin__pct { padding-top: 8px; padding-bottom: 8px; background: #fff; box-shadow: 0 0 0 1.5px var(--red); }
.pin.is-off { display: none; }
/* row-reverse puts the dot on the right; the name stays before the figure */
.pin--flip { flex-direction: row-reverse; }
.pin--flip .pin__name { order: 2; }
.pin--flip .pin__pct { order: 1; }

/* narrow screens: text on top, the model below, one layer card at a time */
.stage.is-narrow .head { width: auto; right: var(--gutter); top: 92px; }
.stage.is-narrow .head--hero { top: 96px; transform: none; }
.stage.is-narrow .head--hero h1 { font-size: clamp(34px, 9.4vw, 48px); margin-bottom: 14px; }
.stage.is-narrow .head--hero .lede { font-size: 16px; margin-bottom: 20px; }
.stage.is-narrow .head h2 { font-size: clamp(24px, 6.6vw, 32px); margin-bottom: 10px; }
.stage.is-narrow .head .lede { font-size: 16px; }
.stage.is-narrow .hint { display: none; }
.stage.is-narrow .layer {
  left: var(--gutter); right: var(--gutter); top: auto; bottom: 18px; width: auto;
  padding: 14px 16px 16px; background: rgba(255, 255, 255, 0.95);
  border-top: 2px solid var(--red); box-shadow: 0 12px 30px -16px rgba(26,26,26,.35);
}
.stage.is-narrow .layer__title { font-size: 19px; }
.stage.is-narrow .stage__note { top: auto; bottom: 8px; display: none; }
.stage.is-narrow .pin:not(.pin--main):not(.pin--over) .pin__name { display: none; }
.stage.is-narrow .pin__name { font-size: 12px; }
.stage.is-narrow .head--district { top: 88px; }

/* no WebGL (or it failed): a still picture and the five layers as a plain list */
.no-gl .stage { height: auto; }
.no-gl .stage__sticky { position: relative; height: auto; overflow: visible; padding: 120px 0 64px; display: flex; flex-direction: column; }
.no-gl .stage__copy { order: 1; }
.no-gl .stage__still { order: 2; }
.no-gl .layers { order: 3; }
.no-gl .head--hero, .no-gl .layer { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.no-gl .stage__canvas, .no-gl .stage__leaders, .no-gl .stage__markers, .no-gl .stage__pins, .no-gl .stage__note { display: none; }
.no-gl .stage__copy { position: static; }
.no-gl .head { display: none; }
.no-gl .head--hero { display: block; position: static; transform: none; width: auto; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.no-gl .stage__still { display: block; width: 100%; max-width: var(--max); height: auto; margin: 40px auto 0; padding: 0 var(--gutter); }
.no-gl .layers { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; max-width: var(--max); margin: 32px auto 0; padding: 0 var(--gutter); }
.no-gl .layer { position: static; width: auto; opacity: 1; transform: none; }
.no-gl .layer .layer__body, .no-gl .layer .layer__data { display: block; }

/* ---------- the film ---------- */
.film { padding: clamp(80px, 9vw, 136px) 0 clamp(72px, 8vw, 112px); border-top: 1px solid var(--line); background: var(--paper); }
.film__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 56px; align-items: end; margin-bottom: clamp(28px, 3vw, 40px); }
.film__head h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }

.player {
  position: relative; overflow: hidden;
  border-radius: 4px; background: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(26, 26, 26, 0.55), 0 0 0 1px rgba(26, 26, 26, 0.08);
  --played: 0%; --buffered: 0%;
}
.player__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--ink); display: block; }
.player.is-ready video { cursor: pointer; }
.player__big {
  position: absolute; right: 4.2%; bottom: 7.5%;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 22px 10px 10px; border: 0; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font: 600 clamp(15px, 1.4vw, 19px)/1 var(--sans); cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  transition: transform .2s ease, background-color .2s ease;
}
.player__big:hover { transform: translateY(-2px); background: #fff; }
.player__big:active { transform: translateY(1px); }
.player__bigicon { width: clamp(40px, 4vw, 56px); height: clamp(40px, 4vw, 56px); display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; transition: transform .2s ease; }
.player__big:hover .player__bigicon { transform: scale(1.06); }
.player__bigicon svg { width: 40%; height: 40%; fill: currentColor; margin-left: 8%; }
.player__bigtime { font: 700 13px/1 var(--label); letter-spacing: .1em; color: var(--stone); }
.player:not(.is-ready) .player__big, .player:not(.is-ready) .player__bar { display: none; }
.player.has-started .player__big { display: none; }

.player__captions {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: min(88%, 1000px); text-align: center; pointer-events: none;
}
.player__captions span {
  display: table; margin: 0 auto 3px; padding: 3px 12px 4px;
  background: rgba(18, 18, 18, 0.84); color: #fff;
  font: 500 clamp(15px, 1.75vw, 26px)/1.4 var(--sans);
  border-radius: 2px;
}

.player__bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: var(--ink); color: var(--cream); transition: opacity .3s ease; }
.ctl {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.ctl svg { width: 18px; height: 18px; fill: currentColor; }
.ctl:hover { background: rgba(255, 255, 255, 0.1); }
.ctl:active { transform: scale(0.94); }
.ctl:focus-visible, .player__seek:focus-visible, .player__vol:focus-visible { outline: 2px solid var(--cream); outline-offset: 1px; }
.ctl[data-state="play"] .i-pause, .ctl[data-state="pause"] .i-play { display: none; }
.ctl[data-state="on"] .i-muted, .ctl[data-state="muted"] .i-vol { display: none; }
.ctl--text { width: auto; display: inline-flex; gap: 8px; padding: 0 12px; font: 700 12px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.ctl--text svg { width: 20px; height: 14px; fill: none; }
.ctl--text[aria-pressed="true"] { background: var(--red); color: #fff; }
.player__time { flex: none; min-width: 96px; padding: 0 8px; font: 500 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--mist); text-align: center; }

.player__seek, .player__vol { -webkit-appearance: none; appearance: none; background: transparent; height: 44px; margin: 0; cursor: pointer; }
.player__seek { flex: 1; min-width: 60px; }
.player__vol { width: 84px; flex: none; }
.player__seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--red) var(--played), rgba(246,239,231,.42) var(--played), rgba(246,239,231,.42) var(--buffered), rgba(246,239,231,.18) var(--buffered));
}
.player__seek::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--red) var(--played), rgba(246,239,231,.42) var(--played), rgba(246,239,231,.42) var(--buffered), rgba(246,239,231,.18) var(--buffered)); }
.player__vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(246, 239, 231, 0.4); }
.player__vol::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(246, 239, 231, 0.4); }
.player__seek::-webkit-slider-thumb, .player__vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--cream); border: 0; }
.player__seek::-moz-range-thumb, .player__vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 0; }

.player.is-idle .player__bar { opacity: 0; }
.player.is-idle .player__frame { cursor: none; }
.player.is-full { display: flex; flex-direction: column; width: 100vw; height: 100vh; border-radius: 0; }
.player.is-full .player__frame { flex: 1; aspect-ratio: auto; }
.player.is-full.is-idle .player__captions { bottom: 4%; }
.player__error { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--red); background: var(--red-tint); color: #6e1a1e; font-size: 15px; }

.film__meta { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--stone); }
.film__meta p:first-child { max-width: 44em; }
kbd { display: inline-block; min-width: 20px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font: 600 12px/1.4 var(--sans); text-align: center; color: var(--graphite); }

.transcript { margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transcript summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font: 700 14px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--red); transition: transform .2s ease; }
.transcript[open] summary::after { transform: rotate(45deg); }
.transcript summary:hover { color: var(--red-text); }
.transcript__text { columns: 2 22em; column-gap: 56px; padding: 6px 0 32px; font-size: 16px; line-height: 1.65; color: var(--graphite); }
.transcript__text p { margin: 0 0 14px; break-inside: avoid; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--mist); padding: clamp(56px, 6vw, 80px) 0 40px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(246, 239, 231, 0.14); }
.foot__lpa { display: grid; gap: 18px; }
.foot__logo img { height: 46px; width: auto; }
.foot__link { color: var(--cream); font-size: 16px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; padding-bottom: 2px; justify-self: start; }
.foot__link:hover { background-size: 100% 1px; }
.foot__link::after { content: " →"; }
.foot__credit { display: grid; gap: 12px; justify-items: end; }
.foot__by { font: 700 12px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.foot__dm { display: block; border-radius: 2px; transition: opacity .2s ease, transform .2s ease; }
.foot__dm:hover { transform: translateY(-2px); }
.foot__dm img { height: 38px; width: auto; }
.foot__small { display: grid; gap: 10px; padding-top: 28px; font-size: 13px; line-height: 1.6; }
.foot__small a { color: var(--cream); }
.foot a:focus-visible { outline-color: var(--cream); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .film__head { grid-template-columns: 1fr; }
  .player__vol { display: none; }
}
@media (max-width: 640px) {
  .top { height: 64px; }
  .top__logo img { height: 28px; }
  .btn__meta { display: none; }
  .player { border-radius: 0; margin: 0 calc(var(--gutter) * -1); }
  .player__time { min-width: 0; font-size: 13px; padding: 0 4px; }
  .ctl--text span { display: none; }
  .ctl--text { padding: 0 10px; }
  .player__big { right: 50%; bottom: 50%; transform: translate(50%, 50%); padding: 8px 16px 8px 8px; }
  .player__big:hover, .player__big:active { transform: translate(50%, 50%); }
  .film__keys { display: none; }
  .foot__credit { justify-items: start; }
}
@media (hover: none) { .film__keys { display: none; } }

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