/* =====================================================================
   OSIAN ACADEMY · site stylesheet (2026 redesign)
   Subject: live one-on-one classes. A paper canvas, ink type, and
   chalkboard / marigold slabs that stack on rounded shoulders.
   Newsreader carries every statement (roman that turns italic);
   Figtree carries everything you read or tap.
   Signature: course names flow along a curve into a "Live 1:1"
   capsule and leave the other side as careers.
   ===================================================================== */

:root {
  --paper: #FBF6E9;
  --paper-2: #F3EBD6;
  --card: #FFFDF7;
  --rule: #E7DDC6;
  --rule-2: #D8CBAE;
  --ink: #1B1A16;
  --ink-2: #47433A;
  --ink-3: #6F695B;
  --board: #1F3A30;
  --board-2: #284A3E;
  --chalk: #F5F0E3;
  --chalk-2: #CDD7CB;
  --mari: #F2A33A;
  --mari-tint: #FFE1A8;
  --mari-deep: #A85C0C;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-slab: 56px;
  --r-card: 22px;
  --r-ctl: 12px;
  --wrap: 1200px;
  --pad: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--mari-tint); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--mari); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 900px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
.eyebrow { display: block; font: 600 14px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-wrap: balance; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.028em; line-height: .98; font-optical-sizing: auto; text-wrap: balance; }
.display em, .display i { font-style: italic; }
.d-xl { font-size: clamp(3.4rem, 8.6vw, 6.9rem); }
.d-l { font-size: clamp(2.7rem, 6.2vw, 5.25rem); }
.d-m { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.02; }
.d-s { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.018em; }
.lede { font-size: clamp(1.125rem, 1.55vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.muted { color: var(--ink-3); }
.prose p { margin-top: 1em; color: var(--ink-2); }
.prose p:first-child { margin-top: 0; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border: 1.5px solid var(--ink); border-radius: var(--r-ctl);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--mari { background: var(--mari-tint); color: var(--ink); }
.btn--mari:hover { background: var(--mari); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--board); border-color: var(--board); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--chalk { background: var(--chalk); border-color: var(--chalk); color: var(--ink); }
.btn--chalk:hover { background: var(--mari-tint); border-color: var(--mari-tint); }
.btn--line { background: transparent; border-color: rgba(245, 240, 227, .45); color: var(--chalk); }
.btn--line:hover { border-color: var(--chalk); background: rgba(245, 240, 227, .07); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.btn--block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--rule-2); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.arrow::after { content: "\2192"; display: inline-block; margin-left: .45em; transition: transform .2s var(--ease); }
a:hover > .arrow::after, a.arrow:hover::after, button.arrow:hover::after { transform: translateX(4px); }

/* ---------- announcement + nav ---------- */
.topbar { background: var(--board); color: var(--chalk); font: 500 15px/1.4 var(--sans); text-align: center; padding: 11px 20px; }
.topbar a { color: var(--mari-tint); font-weight: 600; text-decoration: none; margin-left: 12px; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; }
.nav-bar {
  position: relative; max-width: 1180px; margin: 0 auto; height: 66px;
  display: flex; align-items: center; gap: 6px; padding: 0 10px 0 16px;
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; }
.brand-name { font: 500 24px/1 var(--serif); letter-spacing: -.01em; }
.brand-name small { font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-left: 7px; position: relative; top: -3px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border: 0; border-radius: 11px;
  background: none; color: var(--ink-2); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--paper-2); color: var(--ink); }
.nav-link.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--mari); border-radius: 0; }
.caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
[aria-expanded="true"] > .caret { transform: translateY(1px) rotate(-135deg); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: 10px; }

.mega {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  width: min(1180px, calc(100vw - 32px)); padding: 30px; display: grid; grid-template-columns: 1fr 1.9fr; gap: 36px;
  background: var(--card); border: 1px solid var(--rule-2); border-radius: 22px;
  animation: drop .22s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translate(-50%, -6px); } }
.mega-intro { display: flex; flex-direction: column; gap: 16px; padding-right: 12px; border-right: 1px solid var(--rule); }
.mega-intro .d-s { max-width: 300px; }
.mega-intro .btn { align-self: flex-start; margin-top: auto; }
.mega-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; align-content: start; }
.mega-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 12px; border-radius: 12px; text-decoration: none; transition: background-color .15s; }
.mega-list a:hover { background: var(--paper-2); }
.mega-list b { font: 500 21px/1.2 var(--serif); letter-spacing: -.01em; }
.mega-list span { font: 600 14px/1 var(--sans); color: var(--ink-3); white-space: nowrap; }

.nav-burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s var(--ease), background-color .2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 45; background: var(--paper); padding: 116px 28px 40px; overflow: auto; display: flex; flex-direction: column; }
.sheet .eyebrow { margin: 26px 0 8px; }
.sheet-links a { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 400 30px/1.15 var(--serif); letter-spacing: -.015em; }
.sheet-links a span { font: 600 14px var(--sans); color: var(--ink-3); }
.sheet-actions { display: grid; gap: 10px; margin-top: 28px; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: var(--pad) 0 calc(var(--r-slab) + var(--pad)); }
.slab { position: relative; margin-top: calc(var(--r-slab) * -1); border-radius: var(--r-slab) var(--r-slab) 0 0; padding: calc(var(--pad) + 8px) 0 calc(var(--r-slab) + var(--pad)); }
.slab--ink { background: var(--ink); color: var(--chalk); }
.slab--board { background: var(--board); color: var(--chalk); }
.slab--mari { background: var(--mari); color: var(--ink); }
.slab--paper { background: var(--paper); }
.slab--sand { background: var(--paper-2); }
.spacer { height: calc(var(--r-slab) + clamp(56px, 7vw, 96px)); }
.slab--ink .eyebrow, .slab--board .eyebrow { color: var(--chalk-2); }
.slab--board .display em { color: var(--mari-tint); }
.slab--mari { color: var(--ink); }
.slab--mari .eyebrow, .slab--mari p, .index .count { color: #000; }
.head-block .eyebrow { margin-bottom: 22px; }
.head-block .lede { margin-top: 26px; max-width: 600px; }
.head-block.center .lede { margin-left: auto; margin-right: auto; }
.slab--ink .lede, .slab--board .lede { color: var(--chalk-2); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 calc(var(--r-slab) - 8px); text-align: center; overflow: hidden; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 1000px; margin: 0 auto; }
.display .line { display: block; }
.hero .lede { max-width: 580px; margin: 26px auto 0; }
.hero-ctas { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

.ribbon { position: relative; width: max(100%, 1120px); left: 50%; transform: translateX(-50%); aspect-ratio: 1440 / 300; margin-top: clamp(-56px, -3.6vw, 0px); }
.ribbon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ribbon .guide { fill: none; stroke: var(--rule-2); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.ribbon .band { fill: none; stroke: var(--ink); stroke-width: 46; stroke-linecap: round; }
.ribbon .flow-in { font: 500 20px var(--sans); fill: var(--ink-3); }
.ribbon .flow-out { font: 600 18px var(--sans); fill: var(--chalk); letter-spacing: .01em; }
.capsule {
  position: absolute; left: 50%; top: 58.4%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 12px;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px;
  font: 700 16px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
}
.pair { display: flex; }
.pair i { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: block; }
.pair i:first-child { background: var(--ink); }
.pair i:last-child { background: var(--mari); margin-left: -10px; animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.09); } }

/* ---------- logos marquee ---------- */
.marquee { margin-top: 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding-right: 72px; font: 700 clamp(24px, 2.6vw, 32px)/1 var(--sans); letter-spacing: -.015em; color: var(--chalk); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 30 vs 1 ---------- */
.versus { max-width: 900px; margin: 64px auto 0; display: grid; gap: 26px; }
.versus-row { display: grid; grid-template-columns: 150px 1fr 170px; align-items: center; gap: 26px; text-align: left; }
.versus-row dt { font: 600 16px/1.3 var(--sans); color: var(--chalk-2); }
.versus-row dd { margin: 0; }
.versus-row .num { font: 400 32px/1 var(--serif); letter-spacing: -.02em; text-align: right; }
.versus-row .num small { display: block; margin-top: 6px; font: 500 15px/1.2 var(--sans); color: var(--chalk-2); letter-spacing: 0; }
.seats { display: grid; grid-template-columns: repeat(15, 14px); gap: 12px 14px; align-items: center; min-height: 40px; }
.seats i { width: 14px; height: 14px; border-radius: 50%; background: rgba(245, 240, 227, .42); display: block; }
.seats--one { display: flex; }
.seats i.you { width: 40px; height: 40px; background: var(--mari); }
.versus-rule { height: 1px; background: rgba(245, 240, 227, .14); }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, .22); }
.seg button { height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--chalk-2); font: 600 15px/1 var(--sans); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg button[aria-selected="true"] { background: var(--chalk); color: var(--ink); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- timetable ---------- */
.tt { margin-top: 60px; padding: clamp(18px, 2.4vw, 30px); background: var(--card); border: 1.5px solid var(--ink); border-radius: 28px; }
.tt-scroll { overflow-x: auto; }
.tt-grid { display: grid; grid-template-columns: 158px repeat(7, minmax(64px, 1fr)); gap: 8px; min-width: 700px; }
.tt-day { padding: 4px 0 8px; text-align: center; font: 700 15px/1 var(--sans); color: var(--ink-2); }
.tt-day.we { color: var(--mari-deep); }
.tt-label { display: flex; flex-direction: column; justify-content: center; font: 600 16px/1.2 var(--sans); }
.tt-label small { margin-top: 4px; font: 500 14px/1.2 var(--sans); color: var(--ink-3); }
.tt-cell {
  height: 66px; border: 1.5px dashed var(--rule-2); border-radius: 14px; background: transparent; cursor: pointer;
  font: 700 15px/1 var(--sans); color: var(--ink);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.tt-cell:hover { border-style: solid; border-color: var(--ink-3); background: var(--paper); }
.tt-cell[aria-pressed="true"] { background: var(--mari); border: 1.5px solid var(--ink); }
.tt-cell[aria-pressed="true"]::after { content: "1:1"; }
.tt-cell[aria-pressed="true"]:hover { background: #EE9A2C; }
.tt-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1.5px solid var(--rule); }
.tt-summary { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--serif); letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.fact { padding-top: 18px; border-top: 1.5px solid var(--ink); }
.fact b { display: block; margin-bottom: 8px; font: 500 23px/1.2 var(--serif); letter-spacing: -.012em; }
.fact p { font-size: 16px; color: var(--ink-2); }

/* ---------- track index ---------- */
.index { margin-top: 60px; border-top: 1.5px solid var(--ink); }
.index a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 28px; padding: 26px 8px;
  border-bottom: 1.5px solid var(--ink); text-decoration: none; transition: background-color .2s var(--ease), padding .25s var(--ease);
}
.index a:hover { background: rgba(27, 26, 22, .06); padding-left: 20px; padding-right: 16px; }
.index .name { font: 400 clamp(1.9rem, 3.7vw, 3.1rem)/1.04 var(--serif); letter-spacing: -.022em; }
.index .sub { grid-column: 1; font: 600 16px/1.4 var(--sans); color: #000; }
.index .count { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 16px; font: 700 17px/1 var(--sans); color: #0E0D0A; white-space: nowrap; }
.index .count i { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-style: normal; font-size: 18px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.index a:hover .count i { background: var(--ink); color: var(--mari); }
.index-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- course cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.card {
  display: flex; flex-direction: column; gap: 14px; min-height: 310px; padding: 26px;
  background: var(--card); border: 1.5px solid var(--rule); border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  transition: border-color .2s var(--ease), translate .25s var(--ease);
}
.card:hover { border-color: var(--ink); translate: 0 -3px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 14px/1.25 var(--sans); color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--paper-2); font: 600 14px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.tag--live::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--mari); }
.card h3 { font: 500 clamp(1.45rem, 2vw, 1.75rem)/1.14 var(--serif); letter-spacing: -.016em; }
.card p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.card-meta { display: grid; gap: 2px; min-width: 0; }
.card-meta b { font: 700 15px/1.3 var(--sans); color: var(--ink); }
.card-meta small { font: 500 14px/1.3 var(--sans); color: var(--ink-3); }
.card-foot .fee { font: 500 22px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.cards-foot { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- steps + numbers (ink) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 64px; }
.step { padding-top: 22px; border-top: 1.5px solid rgba(245, 240, 227, .28); }
.step .n { display: block; font: 400 64px/1 var(--serif); color: var(--mari); letter-spacing: -.03em; }
.step h3 { margin-top: 18px; font: 500 26px/1.15 var(--serif); letter-spacing: -.015em; }
.step p { margin-top: 10px; color: var(--chalk-2); font-size: 16px; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 88px; padding-top: 40px; border-top: 1px solid rgba(245, 240, 227, .16); }
.numbers b { display: block; font: 400 clamp(3.4rem, 7vw, 6rem)/.95 var(--serif); letter-spacing: -.035em; }
.numbers span { display: block; margin-top: 10px; color: var(--chalk-2); font-size: 16px; }

/* ---------- FAQ / accordion ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-head { position: sticky; top: 112px; }
.faq-head .lede { margin-top: 24px; }
.acc { border-top: 1.5px solid var(--ink); }
.acc-item { border-bottom: 1.5px solid var(--rule-2); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0;
  background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  font: 500 clamp(1.25rem, 2vw, 1.55rem)/1.25 var(--serif); letter-spacing: -.012em;
}
.pm { position: relative; flex: none; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; transition: background-color .2s var(--ease), color .2s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.acc-q[aria-expanded="true"] .pm { background: var(--ink); color: var(--paper); }
.acc-q[aria-expanded="true"] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.acc-a > div { overflow: hidden; }
.acc-q[aria-expanded="true"] + .acc-a { grid-template-rows: 1fr; }
.acc-a p { padding: 0 64px 26px 0; color: var(--ink-2); font-size: 17px; }

/* ---------- final CTA ---------- */
.cta h2 { max-width: 1000px; margin: 0 auto; }
.cta .lede { margin: 28px auto 0; max-width: 540px; }
.cta .hero-ctas { margin-top: 40px; }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: calc(var(--r-slab) * -1); padding: calc(var(--r-slab) + 40px) 0 0; border-radius: var(--r-slab) var(--r-slab) 0 0; background: var(--ink); color: var(--chalk); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--chalk); }
.footer .brand-name small { color: var(--chalk-2); }
.foot-tag { margin-top: 18px; max-width: 340px; color: var(--chalk-2); font-size: 16px; }
.foot-contact { margin-top: 26px; display: grid; gap: 6px; font-size: 16px; }
.foot-contact a { text-decoration: none; font-weight: 600; }
.foot-contact a:hover { color: var(--mari-tint); }
.foot-contact p { color: var(--chalk-2); }
.foot-col h4 { margin-bottom: 16px; font: 600 14px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-2); }
.foot-col a { display: block; padding: 6px 0; text-decoration: none; font-size: 16px; line-height: 1.35; }
.foot-col a:hover { color: var(--mari-tint); }
.foot-col h4 + a { padding-top: 0; }
.foot-col h4:not(:first-child) { margin-top: 28px; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding: 22px 0; border-top: 1px solid rgba(245, 240, 227, .16); font-size: 15px; color: var(--chalk-2); }
.foot-legal nav { display: flex; gap: 22px; }
.foot-legal a { text-decoration: none; }
.foot-legal a:hover { color: var(--chalk); }
.foot-mark { margin-top: 0; font: 400 clamp(8rem, 27vw, 25rem)/.74 var(--serif); letter-spacing: -.055em; color: var(--chalk); text-align: center; white-space: nowrap; transform: translateY(20%); margin-top: -2%; user-select: none; }
.foot-mark em { font-style: italic; color: var(--mari); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 calc(var(--r-slab) + clamp(48px, 6vw, 80px)); }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero .lede { margin-top: 26px; max-width: 660px; }
.page-hero.center .lede { margin-left: auto; margin-right: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; font: 600 15px/1.2 var(--sans); color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--rule-2); }

.panel { background: var(--card); border: 1.5px solid var(--rule); border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); }
.panel--ink { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.panel--board { background: var(--board); border-color: var(--board); color: var(--chalk); }
.panel--line { border-color: var(--ink); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.ticks li { position: relative; padding-left: 34px; margin-top: 14px; color: var(--ink-2); }
.ticks li:first-child { margin-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.slab--ink .ticks li, .slab--board .ticks li, .panel--ink .ticks li, .panel--board .ticks li { color: var(--chalk-2); }
.slab--ink .ticks li::before, .slab--board .ticks li::before, .panel--ink .ticks li::before, .panel--board .ticks li::before { border-color: var(--mari); }

/* forms */
.field { display: grid; gap: 8px; }
.field label { font: 600 15px/1.2 var(--sans); color: var(--ink-2); }
.field label i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.input {
  width: 100%; height: 54px; padding: 0 16px; background: var(--card); border: 1.5px solid var(--rule-2); border-radius: var(--r-ctl);
  font: 500 16px/1.2 var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #9A927F; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--mari-tint); }
textarea.input { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.auth-feedback { display: none; margin-top: 16px; padding: 13px 15px; border-radius: 12px; font: 600 15px/1.45 var(--sans); }
.auth-feedback-info, .auth-feedback.info { display: block; background: #E6EDE6; color: var(--board); }
.auth-feedback-success, .auth-feedback.success { display: block; background: #E2EFD7; color: #2D5719; }
.auth-feedback-error, .auth-feedback.error { display: block; background: #F6E0D8; color: #8A2E1B; }

/* courses page */
.search { display: flex; gap: 8px; max-width: 760px; margin-top: 38px; padding: 7px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; }
.search input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 0; background: transparent; font: 500 17px/1 var(--sans); outline: none; }
.search input::placeholder { color: #9A927F; }
.search-hint { margin-top: 12px; font-size: 15px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1.5px solid var(--rule-2); border-radius: 999px; text-decoration: none; font: 600 15px/1 var(--sans); color: var(--ink-2); transition: border-color .15s, color .15s, background-color .15s; }
.chip b { font-weight: 600; color: var(--ink-3); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-active b { color: var(--mari-tint); }
.cat-block + .cat-block { margin-top: clamp(64px, 8vw, 104px); }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
.cat-head p { margin-top: 12px; max-width: 560px; color: var(--ink-2); }
.cat-block .cards { margin-top: 28px; }
.slab--sand .eyebrow { color: #534d40; }
.empty { padding: 48px; border: 1.5px dashed var(--rule-2); border-radius: 24px; text-align: center; }
.empty .d-s { margin-bottom: 10px; }

/* course detail */
.cd { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.cd-hero { grid-column: 1; grid-row: 1; min-width: 0; }
.cd-main { grid-column: 1; grid-row: 2; min-width: 0; }
.cd-aside { grid-column: 2; grid-row: 1 / span 2; }
.cd-hero { padding: clamp(48px, 7vw, 96px) 0 48px; }
.cd-hero .eyebrow { margin-bottom: 22px; }
.cd-hero .lede { margin-top: 24px; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 1.5px solid var(--ink); }
.facts-row div { padding: 16px 16px 0 0; }
.facts-row dt { font: 600 14px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.facts-row dd { margin-top: 8px; font: 500 20px/1.25 var(--serif); }
.cd-hero .hero-ctas { justify-content: flex-start; margin-top: 36px; }
.cd-sec { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding: 52px 0; border-top: 1.5px solid var(--rule-2); }
.cd-sec > .eyebrow { padding-top: 10px; }
.cd-sec h2 { margin-bottom: 22px; }
.modules li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.modules li:first-child { padding-top: 4px; }
.modules .n { font: 400 42px/1 var(--serif); color: var(--mari-deep); letter-spacing: -.02em; }
.modules b { display: block; font: 500 22px/1.25 var(--serif); letter-spacing: -.01em; }
.modules small { display: block; margin-top: 4px; font: 600 14px/1.3 var(--sans); color: var(--ink-3); letter-spacing: .04em; }
.modules p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.toolchips { display: flex; flex-wrap: wrap; gap: 10px; }
.toolchips li { height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; font: 600 15px/1 var(--sans); }
.roles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.roles b { font: 500 22px/1.25 var(--serif); letter-spacing: -.01em; }
.roles span { font: 600 16px/1.3 var(--sans); white-space: nowrap; }
.roles p { grid-column: 1 / -1; color: var(--ink-2); font-size: 16px; }
.cd-aside { position: sticky; top: 104px; align-self: start; margin-top: clamp(48px, 7vw, 96px); }
.fee-card .eyebrow, .panel--ink .eyebrow, .panel--board .eyebrow { color: var(--chalk-2); }
.fee { display: block; margin-top: 12px; font: 400 54px/1 var(--serif); letter-spacing: -.03em; }
.fee-note { margin-top: 12px; color: var(--chalk-2); font-size: 16px; }
.fee-card .btn { width: 100%; margin-top: 12px; }
.fee-card .btn:first-of-type { margin-top: 26px; }
.specs { margin-top: 26px; border-top: 1px solid rgba(245, 240, 227, .16); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(245, 240, 227, .16); font-size: 15px; }
.specs dt { color: var(--chalk-2); }
.specs dd { text-align: right; font-weight: 600; }
.promise { margin-top: 16px; padding: 20px; border: 1.5px solid var(--ink); border-radius: 20px; background: var(--card); }
.promise b { display: block; font: 500 20px/1.25 var(--serif); }
.promise p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* checkout */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(24px, 4vw, 48px); align-items: start; padding-top: clamp(48px, 6vw, 88px); }
.co-main { min-width: 0; }
.co-main .eyebrow { margin-bottom: 18px; }
.co-main .lede { margin: 18px 0 36px; }
.co-step { display: flex; align-items: baseline; gap: 14px; }
.co-step .n { font: 400 34px/1 var(--serif); color: var(--mari-deep); }
.co-step h2 { font: 500 28px/1.15 var(--serif); letter-spacing: -.015em; }
.co-note { margin: 10px 0 26px; color: var(--ink-2); font-size: 16px; }
.co-pay { margin-top: 32px; padding-top: 30px; border-top: 1.5px solid var(--rule); }
.summary { position: sticky; top: 104px; }
.summary h2 { margin-top: 10px; font: 400 32px/1.1 var(--serif); letter-spacing: -.02em; }
.summary dl { margin-top: 24px; border-top: 1px solid rgba(245, 240, 227, .16); }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(245, 240, 227, .16); font-size: 16px; }
.summary dt { color: var(--chalk-2); }
.summary dd { text-align: right; font-weight: 600; }
.summary .total { align-items: baseline; border-bottom: 0; padding-top: 20px; }
.summary .total dd { font: 400 42px/1 var(--serif); color: var(--mari-tint); letter-spacing: -.02em; }
.summary .back { display: inline-block; margin-top: 18px; color: var(--chalk-2); }

/* auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-top: 28px; padding-bottom: calc(var(--r-slab) + 56px); }
.auth-art { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 660px; padding: clamp(32px, 4.5vw, 60px); border-radius: 32px; background: var(--board); color: var(--chalk); }
.auth-art .eyebrow { color: var(--chalk-2); margin-bottom: 22px; }
.auth-art .display em { color: var(--mari-tint); }
.auth-art .ticks { margin-top: 32px; }
.auth-art .ticks li { color: var(--chalk-2); }
.auth-art .ticks li::before { border-color: var(--mari); }
.hours .eyebrow { margin-bottom: 14px; }
.hours dl { border-top: 1px solid rgba(245, 240, 227, .18); }
.hours dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(245, 240, 227, .18); }
.hours dt { font: 500 21px/1.2 var(--serif); color: var(--chalk); }
.hours dd { font: 600 16px/1.3 var(--sans); color: var(--mari-tint); align-self: center; }
.auth-art .capsule { position: static; transform: none; align-self: flex-start; background: var(--board-2); color: var(--chalk); border-color: rgba(245, 240, 227, .35); }
.auth-art .capsule .pair i { border-color: var(--chalk); }
.auth-art .capsule .pair i:first-child { background: var(--chalk); }
.auth-card { align-self: stretch; width: 100%; display: flex; flex-direction: column; justify-content: center; }
.auth-card .seg { align-self: flex-start; }
.auth-card h2 { font: 400 40px/1.05 var(--serif); letter-spacing: -.025em; }
.auth-card .sub { margin-top: 8px; color: var(--ink-2); }
.seg--paper { background: var(--paper-2); margin-bottom: 28px; }
.seg--paper button { color: var(--ink-2); }
.seg--paper button.active, .seg--paper button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.google-btn { width: 100%; margin-top: 26px; height: 58px; gap: 14px; justify-content: center; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 12px; font: 700 16px/1 var(--sans); box-shadow: 0 3px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease); }
.google-btn:hover { background: var(--mari-tint); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.google-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.google-btn:disabled { opacity: .55; cursor: progress; transform: none; }
.google-btn .g { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--rule-2); }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; font: 600 14px/1 var(--sans); color: var(--ink-3); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }
.auth-form { display: grid; gap: 16px; }
.auth-form .btn { margin-top: 6px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--ink-2); font-size: 16px; }
.auth-switch-link { padding: 0 2px; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: clamp(48px, 6vw, 80px) 0 36px; }
.dash-head .eyebrow { margin-bottom: 18px; }
.dash-head .lede { margin-top: 14px; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gate-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.gate-note { position: sticky; top: 104px; }
.gate-note .d-s { margin: 16px 0 26px; }
.gate-note .d-s em { color: var(--mari-tint); }
.gate-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.gate-head h2 { font: 400 36px/1.1 var(--serif); letter-spacing: -.02em; }
.gate-head p { margin-top: 8px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--mari-tint); border: 1.5px solid var(--ink); font: 700 14px/1 var(--sans); white-space: nowrap; }
.tabs { margin-bottom: 28px; }
.tabs button.active { background: var(--ink); color: var(--paper); }
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; animation: fade .35s var(--ease); }
.ready { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.ready h2 { font: 400 clamp(2rem, 3.6vw, 3rem)/1.04 var(--serif); letter-spacing: -.025em; }
.ready p { margin-top: 12px; color: var(--chalk-2); max-width: 560px; }
.ready .dash-actions .btn { min-width: 170px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.panel-head h2 { font: 400 32px/1.1 var(--serif); letter-spacing: -.02em; }
.dashboard-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dashboard-course-item { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--paper); border: 1.5px solid var(--rule); border-radius: 20px; }
.dashboard-course-item-header { display: flex; justify-content: space-between; align-items: center; }
.dashboard-course-icon { display: none; }
.dashboard-course-status-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--mari-tint); font: 700 14px/1 var(--sans); }
.dashboard-course-status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.dashboard-course-title { font: 500 23px/1.2 var(--serif); letter-spacing: -.012em; }
.dashboard-course-date { margin-top: 4px; font-size: 15px; color: var(--ink-3); }
.dashboard-course-actions { display: flex; gap: 8px; margin-top: auto; }
.dashboard-course-action-btn, .dashboard-btn-lms { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 11px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.dashboard-course-action-btn { background: transparent; color: var(--ink); }
.dashboard-course-action-btn:hover { background: var(--paper-2); }
.dashboard-btn-lms { background: var(--ink); color: var(--paper); }
.dashboard-btn-lms:hover { background: var(--board); border-color: var(--board); }
#dashboard-purchased-empty { padding: 40px; border: 1.5px dashed var(--rule-2); border-radius: 20px; text-align: center; color: var(--ink-2); }

.support-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 16px/1 var(--sans); cursor: pointer; }
.support-fab:hover { background: var(--board); border-color: var(--board); }
.support-panel { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1.5px solid var(--ink); border-radius: 24px; }
#support-ai-view { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#support-ai-view[hidden] { display: none !important; }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; background: var(--board); color: var(--chalk); }
.sp-head h3 { font: 500 21px/1.1 var(--serif); }
.sp-head .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.sp-actions { display: flex; gap: 6px; }
.support-note { margin: 0; padding: 0 14px 12px; background: var(--card); font-size: 14px; color: var(--ink-3); }
.support-note a { color: var(--ink-2); }
.support-messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--paper); font-size: 15px; color: var(--ink-2); }
.support-msg { display: flex; flex-direction: column; max-width: 86%; }
.support-msg-user { align-self: flex-end; align-items: flex-end; }
.support-msg-admin { align-self: flex-start; align-items: flex-start; }
.support-msg-text { padding: 11px 14px; border-radius: 16px; font: 500 15px/1.45 var(--sans); white-space: pre-wrap; word-break: break-word; }
.support-msg-user .support-msg-text { background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.support-msg-admin .support-msg-text { background: var(--card); color: var(--ink); border: 1px solid var(--rule-2); border-bottom-left-radius: 5px; }
.support-compose { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); background: var(--card); }
.support-compose textarea { min-height: 64px; }

/* feature / about / contact / legal */
.stat-card .big { display: block; font: 400 clamp(4rem, 8vw, 6.5rem)/.9 var(--serif); letter-spacing: -.04em; color: var(--mari); }
.stat-card p { margin-top: 16px; color: var(--chalk-2); }
.howlist { counter-reset: how; border-top: 1.5px solid var(--ink); }
.howlist li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 28px 0; border-bottom: 1.5px solid var(--rule-2); align-items: baseline; }
.howlist .n { font: 400 44px/1 var(--serif); color: var(--mari-deep); letter-spacing: -.02em; }
.howlist b { font: 500 25px/1.2 var(--serif); letter-spacing: -.012em; }
.howlist p { color: var(--ink-2); font-size: 16px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 52px; }
.trio > div { padding-top: 18px; border-top: 1.5px solid currentColor; }
.trio b { display: block; font: 500 25px/1.2 var(--serif); letter-spacing: -.012em; }
.trio p { margin-top: 10px; font-size: 16px; opacity: .82; }
.trio .big { display: block; font: 400 clamp(3rem, 5.5vw, 4.6rem)/.95 var(--serif); letter-spacing: -.035em; color: var(--mari); margin-bottom: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 24px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--card); text-decoration: none; transition: background-color .2s var(--ease); }
a.contact-card:hover { background: var(--mari-tint); }
.contact-card b { margin-top: auto; font: 500 23px/1.2 var(--serif); letter-spacing: -.01em; word-break: break-word; }
.legal h2 { margin-top: 48px; font: 500 30px/1.15 var(--serif); letter-spacing: -.015em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); }
.legal ul { margin-top: 14px; }
.lost { min-height: 52vh; display: grid; place-content: center; text-align: center; }

/* =====================================================================
   MOTION (motion.js). Only active when the visitor allows motion;
   otherwise every element below renders in its final, still state.
   ===================================================================== */
.motion:not(.motion-ready) :is(.hero > .wrap, .page-hero > .wrap, .cd-hero, .co-main, .dash-head > div:first-child, .auth-art > div:first-child) > *,
.motion:not(.motion-ready) :is(.cd-aside, .summary, .auth-art > .hours, .auth-card, .dash-actions) { opacity: 0; }
.motion .w, .motion .foot-mark .ch { display: inline-block; }
.nav { transition: transform .45s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - 14px)); }
.motion .marquee-track { animation: none; }
.motion .faq-head { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .faq-head.is-in { opacity: 1; transform: none; }

/* pinned scenes: a tall track, a stage that stays on screen while you scrub */
.scene-track { position: relative; }
.motion .scene.slab { padding-top: 0; padding-bottom: var(--r-slab); }
.motion .scene-track { height: calc(var(--len, 3) * 100vh); height: calc(var(--len, 3) * 100svh); }
.motion .stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.motion .stage > .wrap { padding-top: clamp(60px, 10vh, 96px); padding-bottom: clamp(16px, 4vh, 40px); }
.scene .display.d-l { font-size: clamp(2.4rem, min(6.2vw, 8.6vh), 5.25rem); }
.scene .display.d-m { font-size: clamp(2.2rem, min(4.2vw, 6.6vh), 3.9rem); }

/* scene 1: thirty seats become one */
.room, .room-cap { display: none; }
.motion .versus { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.motion .room { display: block; position: relative; width: 100%; max-width: 980px; height: clamp(220px, 34vh, 300px); margin: clamp(18px, 4vh, 44px) auto 0; }
.motion .room-cap { display: block; margin-top: clamp(10px, 2.4vh, 26px); }
.room .seat, .room .desk, .room .room-tag, .room .ask, .room .tie { position: absolute; left: 0; top: 0; }
.room .seat { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(245, 240, 227, .5); }
.room .seat--you { background: var(--mari); z-index: 2; }
.room .desk { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--chalk); z-index: 2; }
.room-tag { font: 600 14px/1 var(--sans); color: var(--chalk-2); white-space: nowrap; }
.room-tag--you { color: var(--mari-tint); }
.ask { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--chalk); color: var(--ink); font: 700 14px/1 var(--sans); white-space: nowrap; z-index: 3; transition: opacity .25s var(--ease), background-color .25s var(--ease); }
.ask.ok { background: var(--mari-tint); }
.tie { height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--chalk) 0 8px, transparent 8px 15px); transform-origin: 0 50%; }
.room-count { font: 400 clamp(1.8rem, 3.2vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.02em; }
.room-count b { font-weight: 400; color: var(--mari-tint); font-variant-numeric: tabular-nums; }
.room-sub { display: grid; margin-top: 8px; font-size: 17px; color: var(--chalk-2); }
.room-sub span { grid-area: 1 / 1; }
.motion .room-sub span[data-sub="b"] { opacity: 0; }

/* scene 2: a live class, scrubbed */
.class-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.class-copy .eyebrow { margin-bottom: 20px; }
.beats { margin-top: clamp(20px, 4vh, 40px); }
.beat { position: relative; padding: 16px 0 18px; border-top: 1.5px solid var(--rule-2); transition: opacity .35s var(--ease); }
.beat b { display: block; font: 500 clamp(1.25rem, 1.8vw, 1.45rem)/1.2 var(--serif); letter-spacing: -.012em; }
.beat span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.beat-bar { position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; }
.beat-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--bp, 0)); }
.motion .beat { opacity: .85; }
.motion .beat.is-on { opacity: 1; }
.call { position: relative; margin: 0; background: var(--ink); color: var(--chalk); border-radius: 24px; overflow: hidden; }
.call-bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; border-bottom: 1px solid rgba(245, 240, 227, .1); font: 600 14px/1 var(--sans); color: var(--chalk-2); }
.live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(242, 163, 58, .16); color: var(--mari-tint); font: 700 14px/1 var(--sans); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mari); animation: blink 1.6s ease-in-out infinite; }
.call-title { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.call-bar time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.call-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; padding: 16px 16px 12px; }
.code { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; background: #11110F; overflow: hidden; }
.code-tab { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 10px 0 16px; border-bottom: 1px solid rgba(245, 240, 227, .08); font: 600 14px/1 var(--sans); color: var(--chalk-2); }
.run { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: rgba(245, 240, 227, .08); color: var(--chalk); transition: background-color .2s var(--ease), color .2s var(--ease); }
.run.is-running { background: var(--mari); color: var(--ink); }
.code-src { padding: 16px 16px 14px; font: 500 16px/1.8 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; min-height: 98px; }
.cl { display: flex; gap: 18px; }
.cl code { font: inherit; white-space: pre; }
.ln { width: 1ch; color: rgba(245, 240, 227, .32); text-align: right; user-select: none; }
.kw { color: var(--mari); }
.fn { color: #9CCFB4; }
.num { color: var(--mari-tint); }
.hl { background: rgba(242, 163, 58, .34); }
.cursor { display: inline-block; width: 2px; height: 1.1em; margin: 0 -1px; vertical-align: -.18em; background: var(--mari); animation: blink 1s steps(1) infinite; }
.out { margin-top: auto; display: grid; gap: 10px; min-height: 100px; padding: 12px 14px 14px; border-top: 1px solid rgba(245, 240, 227, .08); align-content: start; }
.out-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; }
.out-label { font: 600 14px/1 var(--sans); color: var(--chalk-2); }
.out-nums { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.out-nums span { display: inline-grid; place-items: center; min-width: 28px; height: 30px; padding: 0 7px; border-radius: 7px; background: rgba(245, 240, 227, .08); font: 600 14px/1 ui-monospace, Menlo, Consolas, monospace; animation: pop .3s var(--ease); }
.out-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: rgba(245, 240, 227, .12); font: 700 14px/1 var(--sans); white-space: nowrap; }
.out-badge.ok { background: var(--mari); color: var(--ink); }
.tiles { display: grid; gap: 14px; grid-auto-rows: 1fr; }
.tile { position: relative; display: grid; place-items: center; min-height: 128px; padding-bottom: 30px; border-radius: 16px; overflow: hidden; transition: box-shadow .25s var(--ease); }
.tile--teacher { background: var(--board); }
.tile--you { background: #2C2A25; }
.ava { position: relative; width: 64px; height: 62px; }
.ava::before { content: ""; position: absolute; left: 50%; top: 0; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--chalk-2); }
.ava::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 28px; margin-left: -28px; border-radius: 28px 28px 8px 8px; background: var(--chalk-2); }
.tile--you .ava::before, .tile--you .ava::after { background: var(--mari); }
.tile-name { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(0, 0, 0, .34); font: 600 14px/1 var(--sans); }
.eq { position: absolute; right: 12px; top: 12px; display: flex; align-items: flex-end; gap: 3px; height: 16px; opacity: 0; transition: opacity .2s; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--mari); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.tile.is-speaking { box-shadow: inset 0 0 0 2px var(--mari); }
.tile.is-speaking .eq { opacity: 1; }
.cc { display: flex; align-items: baseline; gap: 10px; min-height: 64px; margin: 0 16px 16px; padding: 14px 18px; border-radius: 14px; background: rgba(245, 240, 227, .07); font: 500 17px/1.45 var(--sans); color: var(--chalk); }
.cc b { flex: none; color: var(--mari-tint); font-weight: 700; }
.cc.has-lines { display: grid; align-items: start; }
.cc-line { grid-area: 1 / 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cc-size { visibility: hidden; }
.motion .cc:not(.is-on) { color: var(--chalk-2); }
@keyframes blink { 50% { opacity: .25; } }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* scroll-drawn lines */
.motion .steps { position: relative; }
.motion .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; background: var(--mari); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.motion .step .n { color: rgba(245, 240, 227, .45); transition: color .45s var(--ease); }
.motion .step.is-lit .n { color: var(--mari); }
.motion .modules, .motion .howlist { position: relative; padding-left: 30px; }
.motion .modules::before, .motion .howlist::before, .motion .modules::after, .motion .howlist::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; }
.motion .modules::before, .motion .howlist::before { background: var(--rule-2); }
.motion .modules::after, .motion .howlist::after { background: var(--mari-deep); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.motion .modules .n, .motion .howlist .n { opacity: .85; transition: opacity .4s var(--ease); }
.motion .modules li.is-lit .n, .motion .howlist li.is-lit .n { opacity: 1; }

/* ---------- reveal ---------- */
.js:not(.motion) [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js:not(.motion) [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .cd, .co { grid-template-columns: minmax(0, 1fr); }
  .cd-aside, .summary { position: static; margin-top: 0; }
  .cd-hero, .cd-main, .cd-aside { grid-column: 1; grid-row: auto; }
  .cd-hero { padding-bottom: 36px; }
  .cd-aside { margin-bottom: 24px; max-width: 560px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --r-slab: 40px; }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: inline-flex; }
  .faq, .split { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .howlist li { grid-template-columns: 64px minmax(0, 1fr); }
  .howlist li p { grid-column: 2; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .versus-row { grid-template-columns: 1fr; gap: 10px; }
  .versus-row .num { text-align: left; }
  .ready { grid-template-columns: minmax(0, 1fr); }
  .gate-wrap { grid-template-columns: minmax(0, 1fr); }
  .gate-note { position: static; }
  .cd-sec { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .motion .beats { margin-top: 12px; min-height: 52px; }
  .motion .beat { padding: 12px 0 0; }
  .motion .beat:not(.is-on) { display: none; }
  .motion .beat span { display: none; }
  .call-body { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 10px; gap: 10px; }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; }
  .tile { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 14px 10px 12px; }
  .ava { width: 38px; height: 37px; }
  .ava::before { width: 17px; height: 17px; margin-left: -8.5px; }
  .ava::after { width: 34px; height: 17px; margin-left: -17px; border-radius: 17px 17px 5px 5px; }
  .tile-name { position: static; height: auto; padding: 0; background: none; }
  .eq { right: 10px; top: 10px; }
  .cc { margin: 0 12px 12px; min-height: 0; padding: 12px 14px; font-size: 16px; }
}
@media (min-width: 901px) {
  .out-nums { min-height: 66px; align-content: flex-start; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .tile { min-height: 104px; }
  .ava { transform: scale(.8); }
  .beat span { display: none; }
  .code-src { min-height: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .topbar { font-size: 14px; }
  .topbar a { display: block; margin: 4px 0 0; }
  .brand-name small { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .steps, .numbers { grid-template-columns: minmax(0, 1fr); }
  .numbers { gap: 32px; margin-top: 64px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .search { flex-direction: column; }
  .search .btn { width: 100%; }
  .index a { grid-template-columns: minmax(0, 1fr); }
  .index .count { grid-column: 1; grid-row: auto; }
  .index .count i { display: none; }
  .acc-a p { padding-right: 0; }
  .gate-head { flex-direction: column; }
  .support-fab { right: 16px; bottom: 16px; }
  .support-panel { right: 16px; bottom: 16px; }
  .tt { padding: 16px 14px; }
  .tt-grid { min-width: 0; grid-auto-flow: column; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(7, 46px); gap: 7px; }
  .tt-day { display: flex; align-items: center; padding: 0; text-align: left; font-size: 14px; }
  .tt-label { align-items: center; text-align: center; padding-bottom: 6px; font-size: 14px; }
  .tt-cell { height: auto; border-radius: 12px; font-size: 14px; }
  .motion .steps { padding-left: 22px; }
  .motion .steps::before { right: auto; bottom: 0; width: 2px; height: auto; transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
  .call-bar { height: 46px; padding: 0 12px; gap: 8px; }
  .call-title { display: none; }
  .call-bar time { margin-left: auto; }
  .code-src { padding: 12px 12px 10px; font-size: 15px; min-height: 0; }
  .cl { gap: 12px; }
  .out { min-height: 84px; padding: 10px 12px 12px; gap: 8px; }
  .out-nums { flex-wrap: nowrap; gap: 4px; min-height: 26px; }
  .out-nums span { flex: 0 0 calc((100% - 40px) / 11); min-width: 0; height: 26px; padding: 0; font-size: 13px; }
  .out-badge { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* course covers */
.card { overflow: hidden; }
.card-cover { display: block; margin: -26px -26px 0; width: calc(100% + 52px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1.5px solid var(--rule); background: #F4EFE4; }
.cd-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 22px; border: 1.5px solid var(--rule); margin: 22px 0 28px; background: #F4EFE4; }

/* osian: long words never push text out of line */
.card h3, .card p, .cd-hero h1, .cd-hero .lede, .cd li, .cd p { overflow-wrap: anywhere; }

/* osian: demo class, dashboard extras */
.btn--line-chalk { background: transparent; color: #F5F0E3; border: 1.5px solid rgba(245, 240, 227, .55); }
.btn--line-chalk:hover { border-color: #F5F0E3; }
.dashboard-course-item { overflow: hidden; }
.dash-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 12px; background: #F4EFE4; }
#dashboard-invoices { margin-top: 20px; }
.inv-list { list-style: none; margin: 0; padding: 0; display: grid; }
.inv-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(27, 26, 22, .12); }
.inv-list li:first-child { border-top: 0; }
.inv-list b { display: block; }
.inv-list small { color: #6F695B; overflow-wrap: anywhere; }


/* osian a11y */
.versus-row + .versus-row { padding-top: 26px; border-top: 1px solid rgba(245, 240, 227, .14); }
.foot-col h2 { margin-bottom: 16px; font: 600 14px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-2); }
.foot-col h2 + a { padding-top: 0; }
.foot-col h2:not(:first-child) { margin-top: 28px; }
