:root {
  --paper: #e6dfc8;        /* khaki field-manual page */
  --sheet: #f2eddc;        /* answer-sheet stock */
  --ink: #1e2417;
  --olive: #4b5320;        /* olive drab */
  --olive-deep: #2b3320;
  --khaki: #b9ab7f;
  --brass: #c9982e;
  --rust: #9c3a24;
  --go: #3f6b2a;
  --line: 1.5px solid var(--olive);
  --display: 'Saira Stencil One', 'Barlow Condensed', sans-serif;
  --condensed: 'Barlow Condensed', 'Barlow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); }
h1, h2, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--olive); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

h2 { font: 600 1.75rem/1.15 var(--condensed); letter-spacing: 0.01em; }
.h-page { font: 400 clamp(2rem, 5vw, 2.75rem)/1.05 var(--display); letter-spacing: 0.01em; margin-bottom: 0.75rem; }
.section-lede { max-width: 62ch; margin-bottom: 1.5rem; }

/* ---------- chrome ---------- */

.preview-strip { background: var(--brass); color: var(--ink); font-size: 0.875rem; font-weight: 500; text-align: center; padding: 0.35rem 1rem; }
.preview-note { font-size: 0.9375rem; border-left: 4px solid var(--brass); padding: 0.35rem 0.75rem; margin: 1rem 0; background: rgb(201 152 46 / 0.14); max-width: 62ch; }

.wordmark { font: 400 1.35rem/1 var(--display); letter-spacing: 0.03em; text-decoration: none; color: inherit; white-space: nowrap; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1rem, 4vw, 3rem); background: var(--olive-deep); color: var(--paper); }
.topbar nav { display: flex; align-items: center; gap: 1.25rem; }
.topbar a, .topbar .link { color: var(--paper); }

.footer { padding: 2rem clamp(1rem, 4vw, 3rem); border-top: var(--line); font-size: 0.875rem; }
.footer p { max-width: 70ch; }

.btn { display: inline-block; background: var(--brass); color: var(--ink); border: 2px solid var(--ink); border-radius: 3px; padding: 0.65rem 1.25rem; font: 600 1.125rem/1.2 var(--condensed); letter-spacing: 0.02em; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn:disabled { background: transparent; border-color: var(--khaki); color: #6b6a55; }
.btn-large { font-size: 1.35rem; padding: 0.85rem 1.6rem; }
.btn-small { font-size: 1rem; padding: 0.45rem 0.9rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-quiet { background: transparent; }
.topbar .btn { color: var(--ink); border-color: var(--brass); }
.topbar .btn:hover { background: var(--paper); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.15em; color: var(--olive); }

.sheet { background: var(--sheet); border: var(--line); border-radius: 3px; padding: clamp(1rem, 3vw, 1.75rem); }

/* ---------- landing ---------- */

.public { min-height: 60vh; }
.hero { background: var(--olive-deep); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) 0; }
.hero h1 { font: 400 clamp(2.6rem, 6.4vw, 5.25rem)/0.98 var(--display); letter-spacing: 0.005em; text-wrap: balance; }
.hero .lede { font-size: 1.2rem; max-width: 46ch; margin: 1.5rem 0 2rem; color: #d9d1b6; }
.hero-copy { padding-bottom: clamp(2rem, 6vw, 5rem); }
.hero-q { color: var(--ink); margin-bottom: -3rem; position: relative; }
.hero-q .btn { margin-top: 1rem; }
.hero-q-meta { font-weight: 600; color: var(--olive); margin-bottom: 0.5rem; }

.band { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); max-width: 72rem; }
.hero + .band { padding-top: clamp(5rem, 9vw, 7rem); }
.band > h2 { font-size: 2.25rem; margin-bottom: 0.75rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2.5rem; }
.features div { border-top: var(--line); padding: 1rem 0 1.5rem; }
.features dt { font: 600 1.3rem/1.2 var(--condensed); margin-bottom: 0.3rem; }
.features.compact { grid-template-columns: 1fr; }

.offer { max-width: none; background: var(--olive); color: var(--paper); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.offer h2 { font: 400 clamp(2.25rem, 5vw, 3.5rem)/1 var(--display); margin-bottom: 0.5rem; }
.offer p { max-width: 52ch; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.spec { width: 100%; max-width: 46rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec th { font: 600 1.05rem/1.2 var(--condensed); text-align: left; border-bottom: 2px solid var(--ink); padding: 0.4rem 0.75rem 0.4rem 0; }
.spec td { border-bottom: 1px solid var(--khaki); padding: 0.5rem 0.75rem 0.5rem 0; }
.spec .num { text-align: right; padding-right: 1.5rem; }
.spec tfoot td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--ink); }

.bar { display: inline-block; width: min(12rem, 40vw); height: 0.7rem; border: var(--line); background: var(--sheet); vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--olive); }

/* ---------- forms ---------- */

.narrow { max-width: 30rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 1rem; }
.narrow.wide { max-width: 44rem; }
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 500; }
.form input { font: inherit; padding: 0.6rem 0.7rem; border: var(--line); border-radius: 3px; background: #fbf8ee; color: var(--ink); }
.optional, .field-note { font-weight: 400; font-size: 0.875rem; color: #55583f; }
.form-error { color: var(--rust); font-weight: 500; min-height: 1.5em; }
.form-error:empty { display: none; }
.swap { margin-top: 1.25rem; }
.check { display: flex; gap: 0.6rem; align-items: center; font-weight: 500; margin: 1rem 0; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--olive); }

.rules { display: grid; gap: 0.55rem; margin-bottom: 1.5rem; }
.rules li { padding-left: 1.4rem; position: relative; }
.rules li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem; background: var(--olive); }
.sheet > h2 { margin-bottom: 0.9rem; }

/* ---------- questions ---------- */

.passage { border-left: 4px solid var(--khaki); padding: 0.25rem 0 0.25rem 1rem; margin-bottom: 1.25rem; max-width: 66ch; }
.qimage { max-width: 100%; margin-bottom: 1rem; }
.qtext { font: 500 1.3rem/1.4 var(--body); letter-spacing: 0; max-width: 60ch; margin-bottom: 1.25rem; }
.hero-q .qtext, .review-item .qtext { font-size: 1.125rem; }

.choices { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.choice { display: flex; align-items: center; gap: 0.85rem; padding: 0.55rem 0.7rem; border: 1.5px solid transparent; border-radius: 3px; cursor: pointer; }
.choice:hover { border-color: var(--khaki); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.bubble { flex: none; width: 2.1rem; height: 2.1rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 600 1.05rem/1 var(--condensed); background: var(--sheet); }
.choice input:checked + .bubble { background: var(--ink); color: var(--sheet); }
.choice:has(input:checked) { border-color: var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
.choice:has(input:disabled) { cursor: default; }
.choice:has(input:disabled):hover { border-color: transparent; }
.choice.is-correct { border-color: var(--go) !important; background: rgb(63 107 42 / 0.12); }
.choice.is-correct .bubble { background: var(--go) !important; border-color: var(--go); color: #fff; }
.choice.is-wrong { border-color: var(--rust) !important; background: rgb(156 58 36 / 0.1); }
.choice.is-wrong .bubble { background: var(--rust) !important; border-color: var(--rust); color: #fff; }

.hint { font-size: 0.9375rem; color: #55583f; }
.verdict { border-left: 5px solid var(--go); padding: 0.6rem 0 0.6rem 1rem; margin-bottom: 1.25rem; max-width: 64ch; }
.verdict.bad { border-color: var(--rust); }
.verdict p { margin-top: 0.4rem; }
.verdict summary { cursor: pointer; margin-top: 0.4rem; text-decoration: underline; }

/* ---------- exam screen ---------- */

.exam { min-height: 100vh; background: var(--sheet); }
.exam-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0.8rem clamp(1rem, 4vw, 3rem); background: var(--olive-deep); color: var(--paper); }
.exam-bar strong { margin-right: 0.75rem; }
.exam-bar > :last-child { justify-self: end; }
.timer { font: 400 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.timer.low { color: #f0a48e; }
.exam-progress { height: 6px; background: var(--khaki); }
.exam-progress i { display: block; height: 100%; background: var(--brass); }
.exam-body { max-width: 48rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) 1rem; }
.exam-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }

/* ---------- results ---------- */

.scoreline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.score { font: 400 clamp(3.5rem, 10vw, 6rem)/0.9 var(--display); color: var(--olive); }
.scoreline p:last-child { max-width: 46ch; }
.locked { border-style: dashed; }
.locked p { margin-bottom: 1rem; max-width: 60ch; }
.ticks { margin-bottom: 1.5rem; display: grid; gap: 0.4rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0.15rem; top: 0.3em; width: 0.45rem; height: 0.8rem; border: solid var(--go); border-width: 0 3px 3px 0; transform: rotate(40deg); }

.review-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; border-bottom: 2px solid var(--ink); margin-bottom: 1rem; }
.review-item { padding: 1.1rem 0 1.25rem 1rem; border-left: 5px solid var(--khaki); border-bottom: 1px solid var(--khaki); }
.review-item.miss { border-left-color: var(--rust); background: rgb(156 58 36 / 0.05); }
.review.missed-only .review-item.ok { display: none; }
.review-meta { font-weight: 500; color: #45492f; margin-bottom: 0.6rem; }
.tag { font: 600 0.95rem/1 var(--condensed); padding: 0.15rem 0.45rem; border-radius: 2px; margin-left: 0.5rem; background: var(--go); color: #fff; }
.miss .tag { background: var(--rust); }
.solution { max-width: 64ch; }

/* ---------- member area ---------- */

.member { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--olive-deep); color: var(--paper); padding: 1.5rem 0; }
.rail .wordmark { display: block; padding: 0 1.25rem; white-space: normal; line-height: 1.1; }
.rail-rank { display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.25rem 1.25rem; color: var(--brass); font-weight: 600; }
.rail nav { display: grid; }
.rail nav a { color: var(--paper); text-decoration: none; padding: 0.6rem 1.25rem; border-left: 5px solid transparent; font: 600 1.2rem/1.2 var(--condensed); }
.rail nav a:hover { background: rgb(255 255 255 / 0.06); }
.rail nav a[aria-current] { border-left-color: var(--brass); background: var(--olive); }
.member-main { padding: clamp(1.5rem, 4vw, 3rem); max-width: 62rem; }
.member-main > h2 { margin: 2rem 0 0.75rem; }

.chevron { display: inline-block; width: 1.3rem; height: 1rem; background: var(--brass); clip-path: polygon(50% 0, 100% 55%, 100% 100%, 50% 45%, 0 100%, 0 55%); }
.rankcard { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.rank-name { font: 400 1.9rem/1 var(--display); display: flex; align-items: center; gap: 0.6rem; }
.rankcard .bar { width: 100%; max-width: 28rem; }

.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.action { display: grid; gap: 0.25rem; text-align: left; text-decoration: none; color: var(--ink); background: var(--sheet); border: var(--line); border-radius: 3px; padding: 1rem 1.1rem; }
.action strong { font: 600 1.35rem/1.15 var(--condensed); }
.action span { font-size: 0.9375rem; }
.action:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.action.primary { background: var(--brass); border-color: var(--ink); }
.action:disabled { opacity: 0.6; }
.standing { display: grid; gap: 0.5rem; }

.subject { border-top: 2px solid var(--ink); padding: 1rem 0 1.5rem; }
.subject header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.6rem; }
.topics button { width: 100%; display: grid; gap: 0.1rem; text-align: left; background: var(--sheet); border: var(--line); border-radius: 3px; padding: 0.65rem 0.8rem; }
.topics button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.topics button:disabled { opacity: 0.55; }
.topics span { font-size: 0.875rem; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.35rem 1.5rem; }
.videos a { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; }
.play { flex: none; width: 0; height: 0; border-left: 0.75rem solid var(--rust); border-top: 0.45rem solid transparent; border-bottom: 0.45rem solid transparent; }

.crumb { margin-bottom: 0.5rem; }
.drill { max-width: 48rem; }
.files { display: grid; gap: 1rem; max-width: 48rem; }
.files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.files div { display: grid; max-width: 34ch; }
.files strong { font: 600 1.35rem/1.2 var(--condensed); }

.facts { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.facts dt { font-size: 0.9375rem; color: #55583f; }
.facts dd { font-weight: 500; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- paywall ---------- */

.join { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; max-width: 68rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); }
.pdfs { display: grid; gap: 0.9rem; margin-bottom: 1.25rem; counter-reset: pdf; }
.pdfs li { display: grid; padding-left: 2.6rem; position: relative; counter-increment: pdf; }
.pdfs li::before { content: counter(pdf); position: absolute; left: 0; top: 0.1rem; width: 1.9rem; height: 1.9rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 600 1rem/1 var(--condensed); }
.pdfs strong { font: 600 1.25rem/1.2 var(--condensed); }
.pdfs span { font-size: 0.9375rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 0.75rem; margin-bottom: 1rem; }
.total strong { font: 400 2rem/1 var(--display); }

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .hero, .join { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .member { grid-template-columns: 1fr; }
  .rail { padding: 0.9rem 0 0; }
  .rail-rank { padding: 0.4rem 1.25rem 0.6rem; }
  .rail nav { display: flex; overflow-x: auto; }
  .rail nav a { white-space: nowrap; border-left: 0; border-bottom: 4px solid transparent; padding: 0.6rem 1rem; }
  .rail nav a[aria-current] { border-bottom-color: var(--brass); }
  .member { min-height: 0; }
  .exam-bar { grid-template-columns: 1fr auto; }
  .exam-bar .wordmark { display: none; }
  .topbar nav > a:not(.btn) { display: none; }
}

/* ---------- question bank additions ---------- */

.passage p { margin: 0 0 0.6rem; }
.qimage { display: block; max-height: 26rem; background: #fff; border: 1px solid var(--khaki); margin-bottom: 1.25rem; }
.choices.ao { grid-template-columns: repeat(4, max-content); gap: 0.75rem; }
.choices.ao .choice-text { display: none; }

.grid { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1.5rem 0 0.75rem; }
.grid button { width: 2.1rem; height: 2.1rem; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; font: 600 0.95rem/1 var(--condensed); font-variant-numeric: tabular-nums; }
.grid button.done { background: var(--ink); color: var(--sheet); }
.grid button[aria-current] { box-shadow: 0 0 0 3px var(--brass); }
.exam-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; }
.loading { padding: 3rem 1rem; text-align: center; }

/* ---------- photos ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
.split-photo { background: #0e1422 72% center / cover no-repeat; min-height: 34rem; border-left: 4px solid var(--brass); }
.split .join { margin: 0; grid-template-columns: 1fr; }

.member-col { min-width: 0; }
.banner { height: 11rem; background: #0e1422 center 22% / cover no-repeat; border-bottom: 4px solid var(--brass); }

.offer { position: relative; overflow: hidden; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 26rem; background: #0e1422; color: var(--paper); }
.offer > * { position: relative; }
.offer .offer-photo { position: absolute; inset: 0 0 0 auto; width: min(62%, 44rem); background: right 20% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-photo { order: -1; min-height: 0; height: 13rem; border-left: 0; border-bottom: 4px solid var(--brass); background-position: center 22%; }
  .banner { height: 8rem; }
  .offer .offer-photo { width: 100%; opacity: 0.45; -webkit-mask-image: none; mask-image: none; }
}

.branches-band { max-width: none; }
.branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.branches figure { margin: 0; position: relative; border: 2px solid var(--ink); }
.branches img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.branches figcaption { position: absolute; left: 0; bottom: 0; background: var(--brass); color: var(--ink); padding: 0.3rem 0.8rem; font: 400 1.25rem/1.2 var(--display); }
@media (max-width: 820px) {
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-photo { background-position-y: 25% !important; }
}

/* ---------- PDF store ---------- */

.with-aside { display: grid; grid-template-columns: minmax(0, 46rem) minmax(15rem, 22rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; justify-content: space-between; }
.pdf-promo { display: grid; gap: 0.75rem; background: var(--olive-deep); color: var(--paper); padding: 0.9rem; border-radius: 3px; }
.pdf-promo img { display: block; width: 100%; border-radius: 2px; }
.pdf-promo h3 { margin: 0; font: 600 1.4rem/1.15 var(--condensed); }
.pdf-promo p { font-size: 0.9375rem; }
.pdf-promo .btn { border-color: var(--brass); }
.pdf-promo .btn:hover { background: var(--paper); color: var(--ink); }

.store { max-width: 76rem; margin: 0 auto; }
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.book { display: grid; gap: 0.75rem; align-content: start; grid-template-rows: auto auto 1fr auto; padding: 0.9rem; }
.book img { display: block; width: 100%; border-radius: 2px; }
.covers { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.covers img { width: min(11rem, 44%); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--khaki); }
.files li img { width: 4.5rem; border: 1px solid var(--ink); }
.files li { flex-wrap: nowrap; }
.files li div { flex: 1; }
.topbar nav > a:not(.btn) { white-space: nowrap; }

@media (max-width: 820px) {
  .with-aside { grid-template-columns: 1fr; }
  .pdf-promo { max-width: 24rem; }
  .files li { flex-wrap: wrap; }
}

/* ---------- hero: moving photo backdrop and glass panel ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(2rem, 6vw, 5rem); }
.hero-bg, .hero-bg i { position: absolute; inset: 0; }
.hero-bg { z-index: -1; }
.hero-bg i { background: center / cover no-repeat; opacity: 0; animation: hero-slide 28s linear infinite; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(20 26 14 / 0.94) 0%, rgb(20 26 14 / 0.72) 45%, rgb(20 26 14 / 0.38) 100%); }
@keyframes hero-slide {
  0% { opacity: 0; transform: scale(1); }
  5%, 25% { opacity: 1; }
  30% { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1.09); }
}
.hero-copy { padding-bottom: 0; }
.hero h1 { text-shadow: 0 2px 24px rgb(0 0 0 / 0.45); }
.hero + .band { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.hero .btn-large { background: linear-gradient(180deg, #ecc668 0%, var(--brass) 52%, #a97d1f 100%); border-color: rgb(0 0 0 / 0.55); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.65), inset 0 -2px 6px rgb(0 0 0 / 0.18), 0 10px 28px rgb(0 0 0 / 0.4); }
.hero .btn-large:hover { background: linear-gradient(180deg, #f6d98b 0%, #d9a83a 52%, #b98a24 100%); color: var(--ink); }

.hero-q.sheet { margin-bottom: 0; overflow: hidden; color: var(--paper); border: 1px solid rgb(255 255 255 / 0.28); border-radius: 18px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.06) 45%, rgb(20 26 14 / 0.28));
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 24px 60px rgb(0 0 0 / 0.45); }
.hero-q.sheet::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.35) 48%, transparent 62%);
  transform: translateX(-120%); animation: glass-sweep 1.6s 0.5s ease-out 1 both; }
@keyframes glass-sweep { to { transform: translateX(120%); } }
.hero-q > * { position: relative; }
.hero-q .hero-q-meta { color: #ecc668; }
.hero-q .hint { color: #ded6bd; }
.hero-q .bubble { background: rgb(255 255 255 / 0.1); border-color: var(--paper); color: var(--paper); }
.hero-q .choice:hover { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.08); }
.hero-q .choice.is-correct { background: rgb(63 107 42 / 0.55); border-color: #9fd27f !important; }
.hero-q .choice.is-wrong { background: rgb(156 58 36 / 0.5); border-color: #f0a48e !important; }
.hero-q .verdict { border-left-color: #9fd27f; }
.hero-q .verdict.bad { border-left-color: #f0a48e; }
.hero-q .btn { border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg i { animation: none; }
  .hero-bg i:first-child { opacity: 1; }
  .hero-q.sheet::before { animation: none; }
}

/* ---------- motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(1.75rem); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .lede { animation: rise 0.8s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy .btn { animation: rise 0.8s 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-q { animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.spec tbody tr.reveal { transform: translateX(-1rem); }
.spec tbody tr.reveal.in { transform: none; }

.ticker { overflow: hidden; background: var(--brass); color: var(--ink); border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.4rem; white-space: nowrap; font: 400 1.15rem/1 var(--display); }
.ticker em { font: 500 0.95rem/1 var(--body); }
.ticker b { width: 1.1rem; height: 0.85rem; background: var(--ink); clip-path: polygon(50% 0, 100% 55%, 100% 100%, 50% 45%, 0 100%, 0 55%); }
@keyframes ticker { to { transform: translateX(-50%); } }

.branches figure { overflow: hidden; }
.branches img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.branches figure:hover img { transform: scale(1.08); }
.pdf-promo img, .book img { transition: transform 0.35s ease; }
.pdf-promo a:hover img, .book:hover img { transform: scale(1.02); }
.offer .offer-photo { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }
.btn { transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lede, .hero-copy .btn, .hero-q, .ticker-track, .offer .offer-photo { animation: none; }
  .btn, .branches img, .pdf-promo img, .book img { transition: none; }
}

/* ---------- logo ---------- */

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }
.wordmark img { height: 2.5rem; width: auto; flex: none; filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.55)); }
.rail .wordmark { display: flex; }
.rail .wordmark img { height: 3.25rem; }
.exam-bar .wordmark img { height: 2.1rem; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-logo { display: block; width: 9rem; height: auto; }
.footer p { flex: 1 1 20rem; }

.topics { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.topics button { height: 100%; align-content: start; }
.topics .topic-note { font-size: 0.875rem; opacity: 0.8; }

/* ---------- admin ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 1.5rem; margin-bottom: 1.5rem; }
.stats div { border-top: var(--line); padding: 0.75rem 0 1rem; display: grid; }
.stats dt { font-weight: 500; }
.stats dd { font: 400 2.25rem/1.1 var(--display); color: var(--olive); }
.stats small, .spec small { font-size: 0.8125rem; color: #55583f; }
.spec.wide { max-width: none; }
.spec.wide td { vertical-align: top; }
.admin-actions { display: grid; gap: 0.25rem; justify-items: start; white-space: nowrap; }
.sheet + .review-head { margin-top: 2rem; }

/* ---------- member PDF offer ---------- */

.member-offer { display: grid; grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; max-width: 54rem; margin-bottom: 1rem; }
.member-offer .covers { margin: 0; }
.member-offer .covers img { width: 47%; }
.member-offer .files { margin-bottom: 1.25rem; }
.member-offer .files li { display: block; }
.member-offer .files div { max-width: none; }
.total s { margin-left: 0.4rem; color: #55583f; }
@media (max-width: 820px) { .member-offer { grid-template-columns: 1fr; } }

/* ---------- flashcards ---------- */

.decks .bar { width: 100%; margin-top: 0.4rem; }
.decks button:hover .bar { border-color: var(--paper); }
.flashcard { display: block; position: relative; width: 100%; max-width: 40rem; min-height: 19rem; padding: 0; border: 0; background: none; perspective: 1400px; text-align: center; }
.flashcard .face { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1rem; padding: 2rem; border: var(--line); border-radius: 6px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); box-shadow: 8px 8px 0 var(--khaki); }
.flashcard .front { background: var(--olive-deep); color: var(--paper); font: 600 clamp(1.6rem, 4vw, 2.4rem)/1.2 var(--condensed); }
.flashcard .front small { font: 400 0.9375rem/1.3 var(--body); color: #d9d1b6; }
.flashcard .back { background: var(--sheet); color: var(--ink); font-size: 1.2rem; line-height: 1.5; transform: rotateY(180deg); }
.flashcard .back strong { font: 600 1.6rem/1.2 var(--condensed); }
.flashcard.is-flipped .front { transform: rotateY(-180deg); }
.flashcard.is-flipped .back { transform: rotateY(0); }
.card-actions { margin-top: 1.75rem; }

/* ---------- formulas ---------- */

.jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1.5rem; }
.formulas { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.9rem; }
.formulas div { background: var(--sheet); border: var(--line); border-radius: 3px; padding: 0.85rem 1rem 1rem; display: grid; gap: 0.4rem; align-content: start; }
.formulas dt { font: 600 1.2rem/1.2 var(--condensed); }
.formulas .formula { font: 600 1.25rem/1.45 var(--body); color: var(--olive); background: rgb(75 83 32 / 0.09); border-left: 4px solid var(--brass); padding: 0.45rem 0.7rem; white-space: pre-wrap; font-variant-numeric: tabular-nums; }
.formulas dd:last-child { font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) { .flashcard .face { transition: none; } }

/* ---------- streaks, score chart, leaderboard ---------- */

.rail-rank { padding-bottom: 0.2rem; }
.rail-streak { padding: 0 1.25rem 1.1rem; font-size: 0.9375rem; color: #d9d1b6; }
.goal { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.goal .bar { width: 100%; max-width: 28rem; }
.goal strong { font: 600 1.3rem/1.2 var(--condensed); margin-right: 0.6rem; }

.chart { margin: 0 0 2rem; max-width: 46rem; }
.chart svg { display: block; width: 100%; height: auto; background: var(--sheet); border: var(--line); border-radius: 3px; }
.chart .grid-line { stroke: var(--khaki); stroke-width: 1; }
.chart .axis { font: 400 12px var(--body); fill: #55583f; }
.chart .value { font: 600 14px var(--body); fill: var(--ink); }
.chart .trend { fill: none; stroke: var(--olive); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--brass); stroke: var(--ink); stroke-width: 2; }
.chart figcaption { margin-top: 0.5rem; font-size: 0.9375rem; }

.board tr.me td { background: rgb(201 152 46 / 0.22); font-weight: 600; }
.nickname { max-width: 30rem; }
@media (max-width: 820px) { .rail-streak { padding-bottom: 0.5rem; } }
