/* ASiP public pages: landing, about, partners, legal pages. One set of tokens, one type scale, one control size. */
:root {
  color-scheme: dark;
  --bg: #070c1a; --bg-2: #0b1428; --panel: #0f1a2e; --panel-2: #13213a;
  --ink: #eef3fb; --body: #b9c8dc; --mute: #8ea2bb; --dim: #62748c;
  --a: #68ead6; --a-2: #4ecdc4; --a-ink: #04221f; --violet: #a58bff; --amber: #f5b942; --green: #3dd29a; --red: #f46c7f;
  --line: rgba(129, 148, 217, .2); --line-2: rgba(129, 148, 217, .32); --line-a: rgba(104, 234, 214, .45);
  --sans: "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --mono: Consolas, "Cascadia Mono", "SFMono-Regular", monospace;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --control: 44px; --control-sm: 38px;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
  /* type scale: the only text sizes on the public pages */
  --fs-label: 12px;   /* kickers, chips, footer headings, fine print */
  --fs-small: 14px;   /* captions, notes, menus, footer links */
  --fs-body: 16px;    /* all reading text and buttons */
  --fs-lead: 18px;    /* intro paragraphs, small titles */
  --fs-card: 22px;    /* card titles */
  --fs-sub: 28px;     /* subsections of documents, step numbers */
  --fs-num: 40px;     /* key numbers and prices */
  --fs-h2: clamp(30px, 3.2vw, 46px);   /* section and page titles */
  --fs-hero: clamp(40px, 4.2vw, 60px); /* the one hero title */
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before { /* glows and a faint grid that fades out downwards */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 640px at 92% -6%, rgba(94, 234, 212, .13), transparent 70%),
    radial-gradient(560px 560px at -8% 32%, rgba(155, 140, 255, .12), transparent 70%),
    linear-gradient(rgba(104, 234, 214, .035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(104, 234, 214, .035) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(#000 0, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .25));
  mask-image: linear-gradient(#000 0, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .25));
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
p { color: var(--body); margin: 0 0 1em }
h1, h2, h3, h4 { margin: 0; color: var(--ink) }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 6px }
[hidden] { display: none !important }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter) }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--a) }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7 }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.04 }
/* Georgia on Windows only has old-style digits ("01" reads as "o1", "$100" as "$1oo"), so all big numbers below use the sans face */
.display em, h2 em, h1 em { font-style: italic; color: var(--a) }
h2.display { font-size: var(--fs-h2) }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--body); max-width: 560px }
.muted { color: var(--mute) }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums }

/* ---------- controls: one height, one radius, one type size ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control); padding: 0 22px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--ink);
  font: 600 var(--fs-body)/1 var(--sans); white-space: nowrap; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.btn:hover { border-color: var(--line-a); background: rgba(104, 234, 214, .06) }
.btn-primary { background: linear-gradient(135deg, #7af4de, var(--a-2)); border-color: transparent; color: var(--a-ink); box-shadow: 0 10px 30px rgba(94, 234, 212, .22) }
.btn-primary:hover { background: linear-gradient(135deg, #8ff7e5, #5fd9d0); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(94, 234, 212, .3) }
.btn-sm { height: var(--control-sm); padding: 0 16px; font-size: 14px; border-radius: var(--r-sm) }
.btn-block { width: 100% }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none }
.btn .arr { transition: transform .2s }
.btn:hover .arr { transform: translateX(3px) }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); font: 600 12px/1 var(--sans); color: var(--mute); white-space: nowrap }
.chip-a { color: var(--a); border-color: rgba(104, 234, 214, .35); background: rgba(104, 234, 214, .07) }

/* ---------- header ---------- */
.mast { position: sticky; top: 0; z-index: 50; background: rgba(7, 12, 26, .72); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); transition: border-color .25s, background .25s }
.mast.scrolled { border-bottom-color: var(--line); background: rgba(7, 12, 26, .86) }
.mast-in { display: flex; align-items: center; gap: 28px; height: 72px }
.brand { display: flex; align-items: center; gap: 14px; flex: none }
.brand img { width: 104px; height: auto }
.brand-sub { font-size: var(--fs-label); line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-left: 14px; border-left: 1px solid var(--line-2) }
.mast nav { display: flex; align-items: center; gap: 4px; margin-left: auto }
.mast nav a { height: var(--control-sm); display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--body); transition: color .2s, background .2s }
.mast nav a:hover, .mast nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .05) }
.mast-actions { display: flex; align-items: center; gap: 8px; flex: none }

/* ---------- promo ---------- */
.promo { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 18px auto 0; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(104, 234, 214, .3); background: rgba(104, 234, 214, .07); color: #bff8ec; font-size: 14px; line-height: 1.4 }
.promo::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 0 rgba(104, 234, 214, .6); animation: pulse 2s infinite }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(104, 234, 214, 0) } 100% { box-shadow: 0 0 0 0 rgba(104, 234, 214, 0) } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 64px) }
.hero h1 { font-size: var(--fs-hero); margin: 20px 0 22px }
.hero h1 span { display: block }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px }
.trial-note { margin: 14px 0 0; font-size: 14px; color: var(--mute) }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px }
.facts div { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line) }
.facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0 }
.facts b { display: block; font: 300 var(--fs-num)/1 var(--sans); letter-spacing: -.03em; color: var(--ink) }
.facts span { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--mute) }

.gallery { position: relative; min-width: 0 }
.deck { position: relative; aspect-ratio: 16 / 9.4; border-radius: var(--r-lg); isolation: isolate }
.deck::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 4; pointer-events: none;
  background: linear-gradient(140deg, rgba(104, 234, 214, .7), rgba(129, 148, 217, .18) 40%, rgba(165, 139, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude }
.deck::after { content: ""; position: absolute; inset: 8% 6% -10%; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(94, 234, 212, .22), transparent); filter: blur(30px) }
.frame { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #0b1424; opacity: 0; transform: scale(.985); transition: opacity .45s, transform .6s }
.frame.active { opacity: 1; transform: none; z-index: 2 }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top }
.zoom { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: var(--control-sm); height: var(--control-sm); border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: rgba(7, 12, 26, .75); color: var(--ink); cursor: pointer; font-size: 17px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px) }
.zoom:hover { border-color: var(--line-a); color: var(--a) }
.float { position: absolute; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(10, 18, 34, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow); font-size: var(--fs-small); color: var(--ink); white-space: nowrap; animation: bob 6s ease-in-out infinite }
.float i { width: 8px; height: 8px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a) }
.float.f1 { left: -22px; top: 12% }
.float.f2 { right: -14px; top: 46%; animation-delay: -2s }
.float.f2 i { background: var(--violet); box-shadow: 0 0 10px var(--violet) }
.float.f3 { left: 10%; bottom: -18px; animation-delay: -4s }
.float.f3 i { background: var(--amber); box-shadow: 0 0 10px var(--amber) }
@keyframes bob { 50% { transform: translateY(-7px) } }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 30px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025) }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--mute); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s }
.seg button:hover { color: var(--ink) }
.seg button[aria-pressed="true"] { background: rgba(104, 234, 214, .12); color: var(--a); box-shadow: inset 0 0 0 1px rgba(104, 234, 214, .35) }
.gallery-cap { margin-top: 12px; min-height: 52px }
.gallery-cap strong { display: block; font-size: var(--fs-body); font-weight: 600 }
.gallery-cap p { margin: 2px 0 0; font-size: 14px; color: var(--mute) }

/* ---------- marquee ---------- */
.tape { border-block: 1px solid var(--line); background: rgba(8, 14, 26, .6); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent) }
.tape-track { display: flex; width: max-content; animation: tape 48s linear infinite }
.tape ul { display: flex; flex: none; gap: 0; margin: 0; padding: 0; list-style: none }
.tape li { display: flex; align-items: center; height: 56px; padding: 0 22px; font: 600 var(--fs-label)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); white-space: nowrap }
.tape li::after { content: "◆"; margin-left: 44px; font-size: 7px; color: var(--a); opacity: .7 }
.tape:hover .tape-track { animation-play-state: paused }
@keyframes tape { to { transform: translateX(-50%) } }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 5.5vw, 80px); scroll-margin-top: 72px }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(28px, 4vw, 48px) }
.section-head h2 { margin-top: 16px }
.section-head .aside { max-width: 380px; margin: 0; color: var(--mute); font-size: var(--fs-body) }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, rgba(19, 33, 58, .85), rgba(10, 17, 31, .7)) }
.glow-card { position: relative; overflow: hidden }
.glow-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(104, 234, 214, .09), transparent 45%) }
.glow-card:hover::after { opacity: 1 }

/* bento of lesson charts: one big tile and five 16:10 tiles, so the charts are barely cropped */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.tile { position: relative; aspect-ratio: 16 / 10; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #0f1a2b; cursor: zoom-in; text-align: left; color: inherit; transition: border-color .25s, box-shadow .25s }
.tile:hover, .tile:focus-visible { border-color: var(--line-a); box-shadow: 0 18px 50px rgba(0, 0, 0, .35) }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s cubic-bezier(.2, .7, .2, 1) }
.tile:hover img { transform: scale(1.04) }
.tile figcaption { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 44px 18px 16px; background: linear-gradient(transparent, rgba(5, 10, 20, .94) 52%) }
.tile .chip { margin-bottom: 8px; background: rgba(7, 12, 26, .7) }
.tile strong { display: block; font-size: var(--fs-lead); line-height: 1.3; font-weight: 600 }
.tile span.t-desc { display: block; margin-top: 4px; font-size: var(--fs-small); line-height: 1.45; color: var(--body); max-width: 520px }
.tile:not(.big) span.t-desc { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height .35s, margin .35s, opacity .35s }
.tile:not(.big):hover span.t-desc, .tile:not(.big):focus-visible span.t-desc { max-height: 80px; margin-top: 4px; opacity: 1 }
.tile.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto }
.tile.big strong { font-size: var(--fs-card) }
.bento-note { margin: 16px 0 0; font-size: var(--fs-label); color: var(--dim) }

/* program route */
.route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); gap: 0 14px }
.route::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--a), rgba(129, 148, 217, .5) 55%, var(--violet)); opacity: .55 }
.stop { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 0 }
.stop .node { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-a); font: 600 16px/1 var(--sans); letter-spacing: .06em; color: var(--a); box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(104, 234, 214, .25) }
.stop .card { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 12px; margin-top: 18px; padding: 22px }
.stop .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.stop h3 { font-size: var(--fs-card); font-weight: 650; line-height: 1.25 }
.stop p { margin: 0; font-size: var(--fs-body); line-height: 1.55 }
.stop .foot { align-self: end; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute) }
.mini-ava { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(104, 234, 214, .1); border: 1px solid rgba(104, 234, 214, .35); color: var(--a); font-weight: 700; font-size: 14px }
.course-teacher { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(104, 234, 214, .45); text-underline-offset: 4px }
.course-teacher:hover { color: var(--a) }

/* how it works */
.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start }
.how h2 { margin-top: 16px }
.how .lead { margin-top: 20px }
.how > div:first-child { position: sticky; top: 104px }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: s }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); counter-increment: s }
.steps li:last-child { border-bottom: 1px solid var(--line) }
.steps li::before { content: "0" counter(s); font: 300 var(--fs-sub)/1 var(--sans); letter-spacing: -.02em; color: var(--a) }
.steps strong { display: block; font-size: var(--fs-lead); font-weight: 600; margin-bottom: 4px }
.steps p { margin: 0; font-size: var(--fs-body) }

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 14px }
.teacher-card { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 16px; padding: 26px; scroll-margin-top: 90px }
.teacher-card:target { border-color: var(--line-a); box-shadow: 0 0 0 1px var(--line-a), 0 0 40px rgba(104, 234, 214, .12) }
.teacher-top { display: flex; align-items: center; gap: 16px }
.ava { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 400 var(--fs-sub)/1 var(--display); color: var(--ink); background: var(--panel) }
.ava::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; background: conic-gradient(from 210deg, var(--a), var(--violet), var(--a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude }
.teacher-top h3 { font-size: var(--fs-card); font-weight: 650; line-height: 1.2 }
.teacher-top .role { font-size: 14px; color: var(--mute); margin: 2px 0 0 }
.exp { display: flex; align-items: baseline; gap: 10px; padding-block: 14px; border-block: 1px solid var(--line) }
.exp b { font: 300 var(--fs-num)/1 var(--sans); letter-spacing: -.03em; color: var(--a) }
.exp span { font-size: 14px; color: var(--mute) }
.teacher-card > p { margin: 0; font-size: var(--fs-body) }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); gap: 0 14px }
.plan { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 14px; padding: 24px }
.plan h3 { font-size: var(--fs-card); font-weight: 650; line-height: 1.25 }
.price { font: 300 var(--fs-num)/1 var(--sans); letter-spacing: -.02em; color: var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px }
.price del { font: 400 var(--fs-lead)/1 var(--sans); color: var(--dim) }
.plan p { margin: 0; font-size: var(--fs-body) }
.plan .btn { align-self: end }
.plan.featured { border-color: var(--line-a); background: linear-gradient(160deg, rgba(20, 52, 60, .9), rgba(10, 20, 33, .8)); box-shadow: 0 0 0 1px rgba(104, 234, 214, .25), 0 30px 80px rgba(20, 120, 110, .18) }

/* reviews */
#student-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px }
#student-reviews blockquote { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, rgba(19, 33, 58, .85), rgba(10, 17, 31, .7)) }
#student-reviews blockquote p { font: italic 400 var(--fs-lead)/1.5 var(--display); color: var(--ink) }
#student-reviews cite { font-style: normal; font-size: 14px; color: var(--a) }

/* final call to action */
.cta { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px); text-align: center; border: 1px solid var(--line-a); border-radius: 28px;
  background: radial-gradient(600px 260px at 50% 0, rgba(94, 234, 212, .16), transparent 70%), linear-gradient(160deg, rgba(16, 32, 50, .95), rgba(9, 16, 30, .9)) }
.cta h2 { font-size: var(--fs-h2); margin: 18px auto 0; max-width: 900px }
.cta .lead { margin: 18px auto 0 }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); background: rgba(6, 10, 22, .6) }
.site-foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 48px 28px }
.site-foot-brand img { width: 96px; margin-bottom: 16px }
.site-foot-brand p { max-width: 360px; font-size: 14px; color: var(--mute) }
.site-foot h4 { margin-bottom: 14px; font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute) }
.site-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px }
.site-foot li a, .site-foot li button { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--body); cursor: pointer; text-align: left }
.site-foot li a:hover, .site-foot li button:hover { color: var(--a) }
.site-foot-legal { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px 28px; font-size: var(--fs-label); color: var(--dim) }
.site-foot-legal::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line) }
.site-foot-legal p { margin: 0; color: inherit }

/* ---------- dialog (zoom) ---------- */
dialog#full { width: min(1400px, 96vw); max-height: 94vh; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #09121f; color: var(--ink); box-shadow: var(--shadow) }
dialog#full::backdrop { background: rgba(3, 7, 16, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px) }
dialog#full > button { display: inline-flex; align-items: center; height: var(--control-sm); padding: 0 14px; margin-left: auto; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); color: var(--ink); cursor: pointer; float: right }
dialog#full img { clear: both; width: 100%; max-height: calc(94vh - 120px); object-fit: contain; margin-top: 10px; border-radius: 10px }
dialog#full .full-cap { margin: 12px 4px 2px; font-size: 14px; color: var(--body) }

/* ---------- cookie box (public.js) ---------- */
.cookie-box { position: fixed; z-index: 9000; bottom: 16px; inset-inline-end: 16px; width: min(400px, calc(100% - 32px)); padding: 18px; color: var(--ink);
  background: rgba(13, 22, 38, .96); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px) }
.cookie-box strong { font-size: var(--fs-body) }
.cookie-box p { margin: 6px 0 14px; font-size: 14px; color: var(--body) }
.cookie-box a { color: var(--a); text-decoration: underline; text-underline-offset: 3px }
.cookie-box .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.cookie-box button { height: var(--control-sm); border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer }
.cookie-box button[data-choice="accepted"] { background: linear-gradient(135deg, #7af4de, var(--a-2)); border-color: transparent; color: var(--a-ink) }

/* ---------- inner pages (about, legal, partners) ---------- */
.sub { max-width: 860px; margin-inline: auto; padding-block: clamp(48px, 7vw, 88px) 24px }
.sub > small { display: inline-flex; font: 700 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--a) }
.sub h1 { font: 400 var(--fs-h2)/1.08 var(--display); letter-spacing: -.02em; margin: 14px 0 22px; overflow-wrap: break-word; hyphens: auto }
.sub h1 span { color: var(--a) }
.sub h2 { font: 400 var(--fs-sub)/1.15 var(--display); margin: 44px 0 14px; scroll-margin-top: 90px }
.sub h3 { font-size: var(--fs-lead); font-weight: 650; margin: 24px 0 8px }
.sub p, .sub li { font-size: var(--fs-body); line-height: 1.7 }
.sub li { color: var(--body); margin: 6px 0 }
.sub a:not(.btn) { color: var(--a); text-decoration: underline; text-underline-offset: 3px }
.notice { padding: 14px 18px; border-left: 3px solid var(--amber); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(245, 185, 66, .07); color: #f0dcb4 }
.manual details { margin: 10px 0; padding: 4px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(19, 33, 58, .55) }
.manual summary { min-height: var(--control); display: flex; align-items: center; cursor: pointer; font-weight: 600 }
.sub form { display: grid; gap: 14px; max-width: 520px; margin-top: 28px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, rgba(19, 33, 58, .85), rgba(10, 17, 31, .7)) }
.sub form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink) }
.sub form small { color: var(--mute); font-size: var(--fs-small) }
.sub input { width: 100%; height: var(--control); padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #08111f; color: var(--ink); font-size: var(--fs-body) }
.sub input:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 3px rgba(104, 234, 214, .18) }
.sub form .btn { justify-self: start }
.sub .primary { height: var(--control); padding: 0 22px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #7af4de, var(--a-2)); color: var(--a-ink); font-weight: 600; font-size: var(--fs-body); cursor: pointer; justify-self: start }
.sub .teacher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px }
.sub .teacher-grid .teacher-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, rgba(19, 33, 58, .85), rgba(10, 17, 31, .7)) }
.sub .teacher-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px }
.sub .teacher-heading h3 { margin: 0; font-size: var(--fs-card) }
.sub .teacher-heading p { margin: 0; font-size: 14px; color: var(--a) }
.sub .teacher-initial { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-a); background: rgba(104, 234, 214, .08); color: var(--a); font: 400 22px/1 var(--display) }
.sub .teacher-card strong { display: block; margin-bottom: 6px }
.sub .teacher-card p { font-size: var(--fs-body); margin: 0 }

/* ---------- reveal on scroll: landing-fx.js marks blocks below the fold .pending until they scroll in ---------- */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1) }
.reveal.pending { opacity: 0; transform: translateY(22px) }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .brand-sub { display: none }
  .float.f1 { left: 8px } .float.f2 { right: 8px }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr }
  .hero .lead { max-width: 640px }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(10, auto); row-gap: 0 }
  .route::before { display: none }
  .stop:nth-child(n+3) { margin-top: 28px }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(10, auto) }
  .plan:nth-child(n+3) { margin-top: 14px }
  .team { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px }
  .teacher-card { grid-row: auto; grid-template-rows: none }
  .how { grid-template-columns: 1fr }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .tile.big { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 10 }
  .tile.big strong { font-size: var(--fs-lead) }
  .tile span.t-desc { display: none } /* touch screens have no hover; the full caption opens with the chart */
  .how > div:first-child { position: static }
  .site-foot-in { grid-template-columns: 1fr 1fr }
  .site-foot-brand { grid-column: 1 / -1 }
}
@media (max-width: 860px) {
  .mast-in { flex-wrap: wrap; height: auto; padding-block: 12px; row-gap: 8px }
  .mast nav { order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap }
  .mast nav::-webkit-scrollbar { display: none }
  .mast nav a { flex: none; padding: 0 10px }
  .mast-actions { margin-left: auto }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px }
}
@media (max-width: 600px) {
  .mast-actions .btn-ghost-hide { display: none }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .facts div { padding-right: 12px; margin-right: 12px }
  .hero .actions .btn { flex: 1 1 100% }
  .float { display: none }
  .seg { display: flex; width: 100% }
  .seg button { flex: 1; padding: 0 6px }
  .route, .plans { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px }
  .stop, .plan { grid-row: auto; grid-template-rows: none; display: grid }
  .stop .card { grid-row: auto; grid-template-rows: none; margin-top: 12px }
  .stop:nth-child(n+3), .plan:nth-child(n+3) { margin-top: 0 }
  .stop { grid-template-columns: 56px 1fr; column-gap: 14px; align-items: start }
  .stop .card { margin-top: 0 }
  .bento { grid-template-columns: 1fr }
  .site-foot-in { grid-template-columns: 1fr }
  .cookie-box { bottom: 10px; inset-inline-end: 10px; width: calc(100% - 20px) }
}
@media (min-width: 1800px) {
  :root { --wrap: 1360px }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
  .reveal.pending { opacity: 1; transform: none }
}

/* reviews: stars, date and folding of long texts */
#student-reviews blockquote { display: flex; flex-direction: column; gap: 12px }
#student-reviews blockquote p { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; white-space: pre-line }
#student-reviews blockquote p.open { display: block; -webkit-line-clamp: unset }
#student-reviews .review-stars { font-size: 16px; letter-spacing: 2px; color: #ffd479 }
#student-reviews .review-stars i { font-style: normal; color: rgba(129, 148, 217, .3) }
#student-reviews cite { margin-top: auto }
#student-reviews cite time { color: var(--dim) }
#student-reviews .review-more { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--a); font: 500 14px/1.4 var(--sans); cursor: pointer }
#student-reviews .review-more:hover { text-decoration: underline }

/* partners: logo tiles of one size, each opens the referral link */
.partner-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px }
.partner-strip .partner-logo { flex: 0 1 180px }
.partner-logo {
  display: grid; place-items: center; height: 88px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 33, 58, .75), rgba(10, 17, 31, .6));
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.partner-logo { --logo-k: 70px }
.partner-logo img { display: block; width: calc(var(--logo-k) * var(--logo-r, 1.8)); max-width: 100%; height: auto; max-height: 58px; object-fit: contain; opacity: .86; transition: opacity .2s }
.partner-logo:hover, .partner-logo:focus-visible { border-color: var(--line-a); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .35), 0 0 0 1px rgba(104, 234, 214, .18) }
.partner-logo:hover img, .partner-logo:focus-visible img { opacity: 1 }
@media (max-width: 560px) { .partner-strip .partner-logo { flex-basis: calc(50% - 7px); --logo-k: 54px } }
