/* tasteskill · direction: sentence-as-layout · seed 60666113 · palette: three stones
   type: system CJK sans (dealt Erode redrawn: CSP blocks external fonts and it has no Chinese)
   one radius (14px) for surfaces and media, one button shape (pill) */
:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --field-1: #cdc3b6;
  --field-2: #bdb2a4;
  --field-3: #aa9e8f;
  --ink: #333231;
  --muted: #5f5b57;
  --accent: #5c6b54;
  --accent-ink: #ffffff;
  --accent-soft: #dde3d8;
  --line: #cbc6c0;
  --warn: #9a3412;
  --warn-soft: #f4e2d6;
  --ok: #3f5f37;
  --text: var(--ink);
  --radius: 14px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --step-head: clamp(2rem, 1.2rem + 3.4vw, 4.25rem);
  --step-display: clamp(2.4rem, 9.2vw, 9.5rem);
  --gutter: clamp(16px, 2vw, 28px);
  --nav-h: 60px;
  --gap-section: clamp(96px, 11vw, 176px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b1a;
    --surface: #262523;
    --field-1: #312e2a;
    --field-2: #3c3833;
    --field-3: #48423b;
    --ink: #ecebe8;
    --muted: #aaa49d;
    --accent: #a9bb9d;
    --accent-ink: #1c1b1a;
    --accent-soft: #2c3328;
    --line: #3d3a36;
    --warn: #fdba74;
    --warn-soft: #3a2418;
    --ok: #a9d39b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font: var(--step-body)/1.6 var(--font);
}
a { color: var(--accent); text-underline-offset: 0.2em; transition: color 160ms var(--ease); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h2 { font-size: 1.2rem; }
h1, h2 { text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- app shell (learner, admin, review) ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
/* top bar: one for every page, sticky, plain ground; on phones the links fold behind 菜单 */
.nav { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.nav > div { display: flex; align-items: center; gap: 12px 24px; min-height: var(--nav-h); position: relative; }
.nav .brand { margin-right: auto; font-size: var(--step-small); }
.links { display: flex; gap: 20px; font-size: var(--step-small); }
.links a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.links a:hover { text-decoration: underline; }
.links a[aria-current] { font-weight: 600; text-decoration: underline; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
/* company logo as a mask so it takes the ink colour in light and dark (img/brand/boli-logo.png, 430x120) */
.brand-logo {
  display: block; height: 32px; aspect-ratio: 430 / 120; background: var(--ink);
  -webkit-mask: url(/img/brand/boli-logo.png) center / contain no-repeat;
  mask: url(/img/brand/boli-logo.png) center / contain no-repeat;
}
@media (max-width: 720px) { .brand-logo { height: 28px; } }
@media (forced-colors: active) { .brand-logo { background: CanvasText; forced-color-adjust: none; } }
.who { display: flex; align-items: center; gap: 4px 14px; font-size: var(--step-small); color: var(--muted); }
.who > * { white-space: nowrap; }
.menu-btn { display: none; background: none; border: 0; padding: 8px 0; font: inherit; font-size: var(--step-small); color: var(--ink); cursor: pointer; }
@media (max-width: 720px) {
  .who-name { display: none; }
  .nav.has-menu .menu-btn { display: inline-flex; }
  .nav.has-menu .links { display: none; }
  .nav.open .links {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); /* taste-skill-ignore: open menu panel floats over the page */
  }
  .nav.open .links a { padding: 12px 0; font-size: var(--step-body); }
}
@media (max-width: 900px) { .who-co { display: none; } }
.crumbs { color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); }
main { padding: 28px 0 64px; }
footer { background: var(--surface); padding: 24px 0 32px; font-size: var(--step-small); color: var(--muted); }
footer a { color: var(--muted); white-space: nowrap; }

.card { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.stack > * + * { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.ghost { background: var(--field-1); color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: var(--step-small); }
.btn:disabled { background: var(--field-1); color: var(--muted); cursor: not-allowed; transform: none; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit;
}
textarea { min-height: 160px; font-size: 0.95rem; tab-size: 12; }
.field + .field { margin-top: 14px; }
.msg { padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; }
.msg.err { background: var(--warn-soft); color: var(--warn); }
.msg.ok { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }

/* login */
.login-wrap { max-width: 900px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.login-pic { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
@media (max-width: 720px) { .login-wrap { grid-template-columns: minmax(0, 1fr); max-width: 452px; } .login-pic { display: none; } }

/* my courses: resume card, learning map, ledger */
.tag { font-size: var(--step-small); padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--field-1); color: var(--ink); }
.tag.done { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.resume {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  background: var(--accent-soft); border-radius: var(--radius); padding: 28px clamp(20px, 3vw, 36px);
}
.resume h2 { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); margin: 0 0 4px; }
.resume p { margin: 0; font-variant-numeric: tabular-nums; }
.board-sec { margin-top: 48px; }
.board-sec > h2 { font-size: 1.3rem; margin-bottom: 4px; }
.board-sec > p { margin-bottom: 16px; }
.map { display: grid; gap: 12px; }
.map-row { background: var(--surface); border-radius: var(--radius); padding: 18px 20px 20px; }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.map-head h3 { margin: 0; font-size: 1.1rem; }
.map-head .tag.done { font-size: var(--step-body); padding: 4px 16px; }
.cells { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.cells li { flex: 1 1 0; min-width: 0; }
.cell {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  min-height: 92px; padding: 10px 12px; border-radius: 10px; overflow: hidden;
  background: var(--field-1); color: var(--ink); text-decoration: none;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
a.cell:hover { background: var(--field-2); }
a.cell:active { transform: scale(0.97); }
.cell b { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell span { font-size: var(--step-small); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell i { position: absolute; left: 0; bottom: 0; height: 6px; background: var(--accent); }
.cell.done { background: var(--accent); color: var(--accent-ink); }
a.cell.done:hover { background: var(--ok); }
.cell.locked { background: var(--bg); color: var(--muted); }
.ledger td.no { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger td.title { white-space: normal; min-width: 14em; }
.ledger .take { display: block; margin-top: 2px; color: var(--muted); }
.ledger th.num { text-align: right; }
.ledger tr.group th { position: static; background: var(--surface); font-size: var(--step-body); padding-top: 18px; }
.ledger tr.locked td { color: var(--muted); }
@media (max-width: 720px) {
  .map-row { padding: 14px 14px 16px; }
  .cells { gap: 4px; }
  .cell { min-height: 52px; padding: 6px 2px; align-items: center; justify-content: center; }
  .cell b { font-size: 0.95rem; }
  .cell span { display: none; }
  /* table.data.ledger: must outrank the shared table.data cell rules further down */
  table.data.ledger thead { display: none; }
  table.data.ledger, table.data.ledger tbody { display: block; }
  table.data.ledger tr { display: grid; grid-template-columns: 2.4em repeat(3, minmax(0, 1fr)) auto; gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.data.ledger tr.group { display: block; border: 0; padding: 0; }
  table.data.ledger tr.group th { display: block; padding: 18px 14px 6px; border: 0; }
  table.data.ledger td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; }
  table.data.ledger td.title { grid-column: 2 / 5; min-width: 0; }
  table.data.ledger td.num { text-align: left; }
  table.data.ledger td.state { grid-column: 5; }
  table.data.ledger td:nth-child(n + 4) { grid-row: 2; }
  table.data.ledger td:nth-child(4) { grid-column: 2; }
  table.data.ledger td:nth-child(5) { grid-column: 3; }
  table.data.ledger td:nth-child(6) { grid-column: 4 / 6; }
  table.data.ledger tr.fresh td:nth-child(n + 4) { display: none; } /* not started: the status tag says it all */
  table.data.ledger td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--muted); }
}

/* watch */
.player { background: #000; border-radius: var(--radius); overflow: hidden; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 10px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.notice .btn { white-space: normal; line-height: 1.3; }
.speeds { display: flex; gap: 4px; margin-left: auto; }
.speeds button {
  min-height: 40px; min-width: 54px; padding: 0 10px; border: 0; border-radius: 999px;
  background: var(--field-1); color: var(--ink); font: inherit; font-size: var(--step-small); font-variant-numeric: tabular-nums;
  cursor: pointer; transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.speeds button:hover { background: var(--field-2); }
.speeds button:active { transform: scale(0.96); }
.speeds button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.watch-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 16px 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pager .btn { white-space: normal; line-height: 1.3; min-height: 44px; padding: 8px 16px; }
.handout { line-height: 1.8; }
.handout table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.handout th, .handout td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.handout ul, .handout ol { padding-left: 1.4em; }
.handout p { margin: 0 0 0.6em; }
@media (max-width: 560px) {
  .handout table, .handout tbody, .handout tr, .handout td { display: block; }
  .handout thead { display: none; }
  .handout tr { background: var(--bg); border-radius: 10px; margin-bottom: 8px; }
  .handout td { border: 0; }
  .handout td:first-child { font-weight: 600; padding-bottom: 0; }
}

/* admin */
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tablewrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: var(--step-small); }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data th { background: var(--field-1); font-weight: 600; position: sticky; top: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.err td { background: var(--warn-soft); }
table.data tr.selected td { background: var(--accent-soft); }
.cell-done { color: var(--ok); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.row > .field { flex: 1 1 160px; margin: 0; }

/* review */
.status-approved { color: var(--ok); font-weight: 700; }
.status-rejected { color: var(--warn); font-weight: 700; }
.status-pending { color: var(--muted); }
.hits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hit { border-radius: 10px; overflow: hidden; background: var(--bg); font-size: 0.85rem; }
.hit img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.hit div { padding: 8px 10px; }
.hit .kind { font-weight: 700; }
.hit .kind.sensitive { color: var(--warn); }
.jump { font-variant-numeric: tabular-nums; }

/* ---------- intro: sentence-as-layout ---------- */
.intro main { padding: 0; }
.wide { max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter); }

.hero { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding: 6vh 0 8vh; }
.hero .wide { width: 100%; }
.sentence {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.22em; row-gap: 0.06em;
  font-size: var(--step-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em;
  margin: 0; text-wrap: initial;
}
.sentence .w { white-space: nowrap; }
.strip {
  flex: 1 1 4em; align-self: center; height: 0.78em; min-width: 3em;
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  animation: shutter 1.1s var(--ease) both;
}
.strip video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; animation: settle 1.4s var(--ease) both; }
.sentence > .w:last-child { flex-basis: 100%; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(32px, 6vh, 72px); }
.lead { font-size: var(--step-lead); line-height: 1.5; max-width: 34em; margin: 0; }
.lead .strip-toggle { margin-left: 0.6em; font-size: var(--step-small); color: var(--muted); }
@keyframes shutter { from { clip-path: inset(0 100% 0 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.sentence .w { animation: rise 900ms var(--ease) both; }
.sentence .w:last-child { animation-delay: 140ms; }
.hero-foot { animation: rise 900ms 320ms var(--ease) both; }

.path { margin-top: var(--gap-section); padding: clamp(56px, 9vh, 112px) 0; background: var(--surface); }
.typeline { display: block; margin: 0; font-weight: 600; }
.typeline input {
  width: 100%; border: 0; padding: 0; min-height: 0; background: none; color: var(--ink);
  font: 600 clamp(2.6rem, 8vw, 8.25rem)/1.1 var(--font); letter-spacing: -0.03em;
  caret-color: var(--accent); border-radius: 0;
}
.typeline input:focus-visible { outline: none; }
.typeline:focus-within { box-shadow: inset 0 -0.12em 0 var(--accent); } /* taste-skill-ignore: focus indicator for the borderless input, not decoration */
.answer { max-width: 1040px; margin-top: 48px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px 40px; align-items: start; }
.answer img { grid-row: span 3; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); background: var(--bg); }
.answer p { margin: 0; }
.answer .route { font-weight: 600; font-size: var(--step-lead); line-height: 1.45; }
.answer .take { color: var(--ink); font-size: var(--step-lead); line-height: 1.45; }
.answer .note { font-size: var(--step-small); color: var(--muted); }
.answer > p:only-child { grid-column: 1 / -1; }
.examples { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; }
.examples button {
  background: none; border: 0; padding: 0; font: inherit; font-size: var(--step-body); color: var(--muted);
  cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; transition: color 160ms var(--ease);
}
.examples button:hover, .examples button[aria-pressed="true"] { color: var(--ink); }
.examples button:active { transform: translateY(1px); }

.outline-sec { padding: var(--gap-section) 0 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.statement { font-size: var(--step-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 48px; }
.outline-sec .statement { grid-column: 1 / -1; text-indent: 3vw; }
.side-pic { grid-column: 1 / 5; grid-row: 2; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.side-pic img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
.side-pic figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.outline { grid-column: 6 / -1; grid-row: 2; }
.outline h3 { font-size: var(--step-small); color: var(--muted); font-weight: 600; margin: 44px 0 6px; }
.outline h3:first-child { margin-top: 0; }
.outline ol { list-style: none; margin: 0; padding: 0; }
.outline li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 0 16px; padding: 13px 0; align-items: baseline; }
.outline .no { color: var(--muted); font-variant-numeric: tabular-nums; }
.outline .t { font-weight: 600; }
.outline .take { display: block; color: var(--ink); font-size: 1rem; line-height: 1.55; margin-top: 4px; }
.outline .min { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--step-small); }

.stages { padding: var(--gap-section) 0; }
.stagebar { display: flex; gap: 6px; min-height: 22vh; }
.seg { flex: 1 1 0; min-width: 12%; padding: 20px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.seg:nth-child(1) { background: var(--field-1); }
.seg:nth-child(2) { background: var(--field-2); }
.seg:nth-child(3) { background: var(--field-3); color: var(--ink); }
.seg b { font-size: clamp(1.25rem, 2vw, 1.875rem); font-weight: 600; letter-spacing: -0.01em; }
.seg p { margin: 0; max-width: 22em; }
.how-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; align-items: start; margin-top: 40px; }
.rule { max-width: 34em; margin: 0; font-size: var(--step-lead); line-height: 1.5; }
.how-pic { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }

.faq { padding: 0 0 var(--gap-section); }
.qa { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; max-width: 1180px; }
.qa dt { font-size: var(--step-lead); font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.qa dd { margin: 0; max-width: 34em; }

.contact { background: var(--ink); color: var(--bg); padding: clamp(48px, 8vh, 96px) 0; min-height: 86svh; display: flex; }
.contact .wide { width: 100%; display: flex; flex-direction: column; }
.contact-say { font-size: var(--step-lead); max-width: 24em; margin: 0; }
.phone {
  display: block; margin: auto 0 0; padding-top: 12vh; color: var(--bg); text-decoration: none; white-space: nowrap;
  font-size: min(14.4vw, 14.5rem); font-weight: 500; /* text is 6.2em wide: fills the measure from 390 to 1920px */ line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.phone:hover { color: var(--field-1); }
.contact-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 40px; font-size: var(--step-small); }
.contact-foot p { margin: 0; }
.qr { margin: 0; text-align: center; }
.qr img { display: block; width: 168px; height: 168px; border-radius: 10px; background: #fff; margin: 0 auto 8px; }
.qr figcaption { color: var(--bg); opacity: 0.85; }

.close { background: var(--field-1); color: var(--ink); padding: clamp(64px, 12vh, 140px) 0 0; overflow: hidden; font-size: var(--step-small); }
.close a { color: var(--ink); }
.close-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.invite { font-size: var(--step-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.btn.inverse { background: var(--ink); color: var(--bg); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(64px, 14vh, 160px); color: var(--ink); }
.wordmark {
  font-size: 27vw; font-weight: 700; line-height: 1; letter-spacing: -0.04em; white-space: nowrap;
  color: var(--muted); transform: translateY(28%); margin-top: 8px; user-select: none;
}

/* entrance: only elements below the first screen get it, so nothing flashes and nothing hides without script */
.pre { opacity: 0; transform: translateY(24px); }
.in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }

@media (max-width: 720px) {
  .hero { min-height: auto; padding: 9vh 0 4vh; }
  .sentence { font-size: clamp(2rem, 9.4vw, 3rem); row-gap: 0.25em; }
  .strip { flex: 1 1 100%; order: 0; height: auto; aspect-ratio: 2 / 1; }
  .sentence > .w:first-child { flex-basis: 100%; }
  .hero-foot { flex-direction: column; align-items: flex-start; margin-top: 32px; }
  .lead { font-size: var(--step-body); }
  .typeline input { font-size: 11vw; }
  .answer { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .answer img { grid-row: auto; }
  .examples { gap: 10px; }
  .examples button { background: var(--bg); text-decoration: none; color: var(--ink); min-height: 44px; padding: 0 16px; border-radius: 999px; }
  .examples button[aria-pressed="true"] { background: var(--field-1); }
  .grid { display: block; }
  .outline-sec .statement { text-indent: 0; font-size: 9.5vw; }
  .outline li { grid-template-columns: 2.6em minmax(0, 1fr) auto; }
  .side-pic { position: static; width: 60%; margin: 40px 0 0 auto; }
  .stagebar { flex-direction: column; min-height: 0; }
  .qa { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how-foot { grid-template-columns: minmax(0, 1fr); }
  .rule { font-size: var(--step-body); }
  .seg { min-height: 120px; flex-basis: auto !important; }
  .statement { font-size: 9.5vw; }
  .contact { min-height: auto; }
  .phone { padding-top: 14vh; }
  .contact-foot { flex-direction: column; align-items: flex-start; }
  .qr { text-align: left; }
  .qr img { margin: 0 0 8px; }
  .legal { flex-direction: column; }
  .wordmark { font-size: 34vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre { opacity: 1; transform: none; }
}
