/* Volcanology Masterclass theme "Cooling Lava, Field Guide" (design option 6): overrides of the engine styles
   (assets/theme/site.css). Loaded after engine/css/site.css and tokens.css. The engine is designed dark with warm
   paper sections, Cormorant headings, Inter text, and uppercase mono labels; this theme keeps the dark ground but
   makes it true black, sets headings in condensed Pathway Extreme, text in Literata, labels in Pathway at full width
   (no uppercase), paper sections in Pumice, and Orange as the one accent: the header, buttons, page heroes, cards,
   tables, forms, the unit reader, and the account pages are redrawn here. The second half styles the landing page
   (theme/home.php): the reel, the seismic dividers, the flow front, the panels, the fees, and the thermometer. */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 17.5px/1.65 var(--text); font-optical-sizing: auto; -webkit-font-smoothing: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 75%; font-weight: 800; line-height: 1.02; letter-spacing: -.005em; }
h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: .95; }
h2 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1; text-wrap: balance; }
h3 { font-size: 26px; line-height: 1.1; font-weight: 700; }
h4 { font-size: 20px; font-weight: 700; }
b, strong { font-weight: 600; }
::selection, .light ::selection, .paper ::selection, .auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.light :focus-visible, .reader :focus-visible, .auth-card :focus-visible { outline-color: var(--cherry); }
.wrap { max-width: calc(1200px + 2 * var(--gutter)); padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(860px + 2 * var(--gutter)); }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow, .site-footer .eyebrow, .mm-group .eyebrow { font: 600 15px/1.3 var(--display); font-stretch: 100%; letter-spacing: .01em; text-transform: none; color: var(--ash); }
.light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow { color: var(--paper-muted); }
.lead, .light .lead { font-size: 19px; line-height: 1.6; color: var(--pumice); max-width: 62ch; }
.light .lead { color: var(--paper-ink); }
.credit { font: 400 12px/1.45 var(--text); letter-spacing: 0; color: var(--ash); }
.credit a { color: var(--ash); text-decoration-color: rgba(163, 158, 150, .5); }
.tag-in { font-family: var(--display); font-stretch: 100%; font-weight: 600; color: var(--pumice); }
.light .tag-in { color: var(--paper-ink); }
.link-arrow, .text-link { display: inline; font: 400 17px/1.5 var(--text); letter-spacing: 0; text-transform: none; color: var(--pumice); border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-decoration-color: var(--heat); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-arrow:hover, .text-link:hover { opacity: 1; color: var(--yellow); }
.light .link-arrow, .light .text-link { color: var(--paper-ink); }
.light .link-arrow:hover, .light .text-link:hover { color: var(--cherry); }
.link-arrow .icon { width: 1em; height: 1em; vertical-align: -.12em; margin-left: .2em; }
.prose a:not(.btn), .unit-text a:not(.btn), .faq-a a, .lead a, .notice a:not(.btn), .auth-card p a, .field .hint a, .kv a, .legal-box a, .aid-body a:not(.btn), .panel p a:not(.btn), .form p a, .section p > a:not(.btn):not(.link-arrow):not(.text-link), .fee-footnote a, .disclaimer a { text-decoration: underline; text-decoration-color: var(--heat); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:not(.btn):hover, .unit-text a:not(.btn):hover { color: var(--cherry); }
.rule, .light .rule { border: 0; height: 2px; background: var(--heat); }
.after, .more { margin: 48px 0 0; }

/* ---------------------------------------------------------------- buttons */
.btn { border: 1.5px solid var(--pumice); border-radius: 2px; font: 600 16px/1.2 var(--display); font-stretch: 100%; letter-spacing: 0; padding: 14px 24px; gap: 10px; color: var(--pumice); background: transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--pumice); color: #000; border-color: var(--pumice); }
.btn-light { background: var(--orange); border-color: var(--orange); color: #000; }
.btn-light:hover { background: var(--yellow); border-color: var(--yellow); color: #000; }
.btn-ghost { background: transparent; border-color: var(--pumice); color: var(--pumice); }
.btn-ghost:hover { background: var(--pumice); color: #000; }
.btn-dark { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--pumice); }
.btn-dark:hover { background: var(--orange); border-color: var(--orange); color: #000; }
.btn-outline { background: transparent; border-color: var(--paper-ink); color: var(--paper-ink); }
.btn-outline:hover { background: var(--paper-ink); color: var(--pumice); border-color: var(--paper-ink); }
.light .btn-ghost, .reader .btn-ghost, .auth-card .btn-ghost { border-color: var(--paper-ink); color: var(--paper-ink); }
.light .btn-ghost:hover, .reader .btn-ghost:hover, .auth-card .btn-ghost:hover { background: var(--paper-ink); color: var(--pumice); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-block { padding: 12px 18px; }
.btn .icon { width: 18px; height: 18px; }
.light .btn-light, .reader .btn-light, .auth-card .btn-light { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--pumice); }
.light .btn-light:hover, .reader .btn-light:hover, .auth-card .btn-light:hover { background: var(--orange); border-color: var(--orange); color: #000; }
.hero-actions { gap: 14px 16px; }

/* ----------------------------------------------------------------- header */
.site-header, .has-overlay-header .site-header, .has-overlay-header .site-header.is-scrolled { position: sticky; top: 0; left: auto; right: auto; height: var(--header-h); background: #000; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.has-overlay-header .flash { padding-top: 14px; }
.header-inner { gap: 32px; max-width: 1440px; }
.brand { flex: 0 0 auto; margin-right: auto; }
.logo { height: 48px; width: auto; }
.nav { flex: 0 1 auto; gap: 6px; margin-left: 0; }
.nav-top { font: 500 16px/1 var(--display); font-stretch: 100%; color: var(--pumice); padding: 10px 12px; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.nav-top::after { width: 6px; height: 6px; border-color: var(--ash); border-width: 1.5px; margin-left: 0; opacity: 1; transform: translateY(-2px) rotate(45deg); }
.nav-top:hover, .nav-group.is-open .nav-top { color: var(--yellow); }
.nav-menu { top: 100%; min-width: 250px; background: var(--crust); border: 0; padding: 10px 0; transform: none; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.nav-menu a { padding: 9px 20px; font: 500 15px/1.4 var(--display); font-stretch: 100%; color: var(--pumice); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: #000; color: var(--yellow); outline-offset: -3px; }
.header-cta { margin-left: 0; gap: 20px; }
.header-cta .btn-sm { white-space: nowrap; }
.nav-login { font: 500 16px/1 var(--display); font-stretch: 100%; color: var(--pumice); }
.nav-login:hover { color: var(--yellow); text-decoration: none; }
.burger { width: 44px; height: 40px; border: 1.5px solid var(--pumice); border-radius: 2px; }
.burger span { background: var(--pumice); left: 12px; right: 12px; height: 1.5px; }
.burger span:first-child { top: 14px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span { top: 19px; }
.mobile-menu { background: #000; padding: 20px 0 48px; }
.mm-group { border-color: var(--crust); padding: 16px 0; }
.mm-group .eyebrow { color: var(--ash); margin-bottom: 6px; }
.mm-group a { font: 700 26px/1.2 var(--display); font-stretch: 75%; color: var(--pumice); padding: 7px 0; }
.mm-cta { grid-template-columns: 1fr; max-width: 420px; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.light { background: var(--pumice); color: var(--paper-ink); }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head p, .light .section-head p { font-size: 18px; line-height: 1.6; color: var(--pumice); max-width: 62ch; }
.light .section-head p { color: var(--paper-ink); }
.section-head h2 { margin-bottom: 4px; }
.flash { background: var(--crust); border-bottom: 1px solid var(--line-strong); color: var(--pumice); }
.flash-error { background: #3a0d06; border-color: var(--dull); }

/* -------------------------------------------------------------- page hero */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 2px solid var(--heat); background: #000; color: var(--pumice); }
.page-hero .eyebrow { color: var(--ash); }
.page-hero h1 { font-size: clamp(44px, 5.8vw, 84px); font-weight: 900; font-variation-settings: "opsz" 144, "wdth" 75; line-height: .92; margin: 16px 0 22px; max-width: 14em; color: var(--yellow); letter-spacing: -.01em; }
.page-hero .lead { max-width: 62ch; color: var(--pumice); }
.page-hero.has-img { padding: clamp(96px, 12vw, 160px) 0 clamp(48px, 6vw, 72px); border-bottom: 2px solid var(--heat); }
.page-hero.has-img::before { filter: brightness(.5) contrast(1.05) saturate(1.05); }
.page-hero.has-img::after { background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .2) 100%), linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 45%); }
.page-hero.has-figure .page-hero-figure { margin-top: 36px; }

/* ------------------------------------------------------- split, checks, cards */
.split { gap: clamp(36px, 6vw, 96px); }
.split-body h2 { margin-bottom: 24px; }
.split-body p, .light .split-body p { color: var(--pumice); font-size: 17.5px; }
.light .split-body p { color: var(--paper-ink); }
.split-media img { aspect-ratio: 5 / 6; }
.split-media .credit { position: static; display: block; margin-top: 10px; }
.checks { gap: 14px; margin: 28px 0 32px; }
.checks li { grid-template-columns: 16px 1fr; gap: 14px; line-height: 1.55; align-items: start; }
.checks .icon, .light .checks .icon { display: none; }
.checks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--heat); margin-top: .62em; justify-self: center; }
.checks b { font-weight: 600; }
.cards-3 { border: 0; gap: 0; }
.aud { background: transparent; border: 0; border-left: 1px solid var(--crust); padding: 0 40px; display: flex; flex-direction: column; }
.aud:first-child { border-left: 0; padding-left: 0; }
.aud:last-child { padding-right: 0; border-right: 0; }
.aud:hover { background: transparent; color: inherit; }
.aud:hover p, .aud:hover li, .aud:hover .eyebrow { color: inherit; }
.light .aud { border-color: var(--paper-line); }
.aud .icon, .aud:hover .icon { display: none; }
.aud h3 { font-size: 28px; margin-bottom: 18px; }
.aud p { font-size: 17px; color: var(--pumice); flex: 1; }
.light .aud p { color: var(--paper-ink); }
.aud ul { border-top: 0; padding-top: 0; margin-top: 20px; gap: 8px; font-size: 16px; color: var(--pumice); }
.light .aud ul { color: var(--paper-ink); }
.aud li { white-space: normal; position: relative; padding-left: 20px; align-items: start; }
.aud li .icon, .aud:hover li .icon { display: none; }
.aud li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--heat); }
/* The six steps of the program page as the flow front of the landing page: a heat line with a lobe at every step. */
.steps { gap: 44px 28px; background: none; border: 0; position: relative; padding-top: 0; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 3px; background: var(--heat); }
.step { background: transparent; padding: 92px 0 0; }
.step::after { content: ""; position: absolute; left: 0; top: 61px; width: 64px; height: 9px; border-radius: 50%; background: var(--heat); }
.step-no { position: absolute; top: 0; left: 0; margin: 0; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: var(--pumice); font: 900 52px/52px var(--display); font-stretch: 75%; }
.light .step-num b { color: var(--paper-ink); }
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--pumice); }
.light .step p { color: var(--paper-ink); }
.week, .week > div { border-color: var(--crust); }
.light .week, .light .week > div { border-color: var(--paper-line); }
.week .d { font: 600 14px/1 var(--display); letter-spacing: 0; color: var(--ash); text-transform: none; }
.week b { font-weight: 700; font-size: 20px; }
.week span { color: var(--ash); }
.light .week span { color: var(--paper-muted); }
.week .on { background: var(--crust); }
.light .week .on { background: var(--paper-2); }
.features { gap: 48px; }
.feature .icon { display: none; }
.feature h3 { font-size: 26px; margin-bottom: 12px; }
.feature p, .light .feature p { color: var(--pumice); font-size: 17px; line-height: 1.6; }
.light .feature p { color: var(--paper-ink); }
.stats { border: 0; margin: 64px 0; gap: 32px; }
.stats div { padding: 0; display: flex; flex-direction: column-reverse; }
.stats b { color: var(--pumice); font: 900 clamp(56px, 6.2vw, 88px)/1 var(--display); font-stretch: 75%; font-variation-settings: "opsz" 144, "wdth" 75; margin: 0; }
.stats span { font: 400 16px/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--pumice); margin-top: 10px; }
.light .stats b, .light .stats span { color: var(--paper-ink); }
.cert-shot img, .light .cert-shot img { border: 0; box-shadow: 16px 16px 0 var(--crust); }
.light .cert-shot img { box-shadow: 16px 16px 0 var(--paper-line); }
.kv { grid-template-columns: 170px 1fr; font-size: 17px; }
.kv dt { font: 600 15px/1.7 var(--display); letter-spacing: 0; text-transform: none; color: var(--ash); }
.light .kv dt { color: var(--paper-muted); }
.notice { border-left: 3px solid var(--heat); background: var(--paper-2); }
.notice.warn { border-color: var(--dull); }
.notice.important { background: #f8e2d3; border-color: #e4a37a; border-left-color: var(--cherry); color: #4a1a08; }
.contact-faq { background: var(--paper-2); border-color: var(--paper-line); }
.contact-faq h3 { font: 700 26px/1.1 var(--display); font-stretch: 75%; }
.contact-faq p { color: var(--paper-ink); }

/* ------------------------------------------------------------- curriculum */
.unit-group { margin-bottom: 64px; }
.unit-group-head { border-bottom: 2px solid var(--paper-ink); }
.unit-group-head h3, h2.h3-look { font-size: clamp(30px, 3.2vw, 40px); }
.unit-row { border-bottom: 1px solid var(--paper-line); }
a.unit-row:hover, .unit-row:target { background: var(--paper-2); box-shadow: -14px 0 0 var(--paper-2), 14px 0 0 var(--paper-2); }
.unit-row:target { box-shadow: -14px 0 0 var(--paper-2), 14px 0 0 var(--paper-2), -17px 0 0 var(--heat); }
.unit-row .no { font: 600 14px/1 var(--display); letter-spacing: .02em; color: var(--paper-muted); font-variant-numeric: tabular-nums; }
.unit-row[style*="align-items:start"] .no { height: 1.55rem; }
.unit-row h4, .unit-row h3 { font-size: 24px; line-height: 1.1; }
.unit-row p { color: var(--paper-muted); font-size: 16px; }
.unit-more, .sample-pdf { color: var(--paper-muted); }
.unit-more:hover, .sample-pdf:hover { color: var(--cherry); }
.topic-badges li { color: var(--paper-muted); border-color: var(--paper-line); background: var(--pumice); font-family: var(--display); font-weight: 500; font-size: 14px; }
.spot-box { background: var(--paper-2); border-color: var(--paper-line); border-left: 3px solid var(--heat); }
.spot-label { color: var(--paper-muted); font: 600 14px/1 var(--display); letter-spacing: 0; text-transform: none; }
.spot span { color: var(--paper-muted); }
.spot .avatar-mono { background: var(--pumice); font-size: 1rem; }
.spot b { font: 600 16px/1.3 var(--text); }
.sample-cta { background: var(--paper-ink); color: var(--pumice); border-radius: 2px; }
.sample-cta:hover { background: var(--cherry); }
.sample-cta .icon { color: var(--orange); }
.sample-cta span { color: var(--ash); }
.sample-cta b { color: var(--pumice); }
.unit-row .pk { font: 500 14px/1.4 var(--display); letter-spacing: 0; text-transform: none; color: var(--paper-muted); }
.unit-pager { border-color: var(--paper-line); }
.unit-pager a { font: 700 22px/1.2 var(--display); font-stretch: 75%; }
.unit-pager a span { font: 600 14px/1.8 var(--display); font-stretch: 100%; letter-spacing: 0; text-transform: none; color: var(--paper-muted); }
.learn-card { background: var(--paper-2); border-color: var(--paper-line); }
.learn-card:hover { border-color: var(--paper-ink); }
.learn-units { color: var(--paper-muted); border-color: var(--paper-line); }
.sample-pages .pg { box-shadow: 16px 16px 0 var(--crust); border: 0; }
.sample-card { border-left: 3px solid var(--heat); }
.samples { gap: 28px; }
.sample { background: var(--panel); border-color: var(--crust); }
.sample:hover { border-color: var(--pumice); }
.sample p { color: var(--ash); }

/* ------------------------------------------------------------ researchers */
.researchers { gap: 56px 36px; }
.avatar { aspect-ratio: 4 / 5; object-position: 50% 20%; filter: grayscale(1) sepia(.35) saturate(1.1) contrast(1.05); background: var(--crust); border-radius: 0; }
.researcher:hover .avatar { filter: grayscale(0) sepia(0) contrast(1.02); }
.avatar-mono { font: 900 clamp(56px, 6vw, 96px)/1 var(--display); font-stretch: 75%; font-variation-settings: "opsz" 144, "wdth" 75; color: var(--yellow); border: 0; background: var(--crust); letter-spacing: -.01em; }
.light .avatar-mono { background: var(--paper-2); color: var(--cherry); }
.researcher-body { border-top: 0; padding-top: 18px; margin-top: 0; }
.researcher h3 { font-size: 24px; line-height: 1.1; margin-bottom: 6px; }
.researcher-inst { font-size: 14px; line-height: 1.45; color: var(--ash); margin-bottom: 12px; }
.light .researcher-inst { color: var(--paper-muted); }
.researcher p { font-size: 15px; line-height: 1.55; color: var(--pumice); }
.light .researcher p { color: var(--paper-ink); }
.researcher-body .eyebrow { color: var(--ash); font-size: 14px; }
.light .researcher-body .eyebrow { color: var(--paper-muted); }
.researcher:hover h3 { text-decoration-color: var(--heat); text-decoration-thickness: 2px; }
.disclaimer, .section:not(.light) .disclaimer { border: 0; padding: 0; font-size: 14px; line-height: 1.55; color: var(--ash); max-width: 80ch; margin: 56px 0 0; }
.light .disclaimer { color: var(--paper-muted); }

/* --------------------------------------------------------------- packages */
.packages { gap: 0; align-items: stretch; }
.package { background: transparent; border: 0; border-left: 1px solid var(--crust); border-top: 4px solid transparent; padding: 32px 40px 0; }
.package:first-child { border-left: 0; padding-left: 0; }
.package:last-child { padding-right: 0; }
.package.is-featured { background: transparent; border-top-color: var(--heat); }
.light .package { border-left-color: var(--paper-line); }
/* The flag sits in the flow on every card (the engine prints an invisible placeholder on the other two), so the
   names, week lines, and fees of the three cards stay on one height. */
.package-flag { position: static; display: inline-block; background: var(--orange); color: #000; font: 600 13px/1 var(--display); font-stretch: 100%; letter-spacing: .01em; text-transform: none; padding: 6px 10px; border-radius: 2px; margin: 0 0 18px; }
.package .eyebrow { font: 500 15px/1.3 var(--display); color: var(--ash); }
.package h2, .package h3 { font-size: 30px; line-height: 1.05; min-height: 2.2em; margin: 8px 0 6px; display: flex; align-items: flex-end; }
.package-note { color: var(--ash); font-size: 16px; line-height: 1.5; min-height: 3.1em; margin: 0 0 18px; }
/* Three cards side by side: the note under each tier name holds three lines, so the fees and the Enrol buttons of the three cards sit on one line. */
@media (min-width: 1081px) { .package-note { min-height: 4.5em; } }
.light .package-note, .light .package .eyebrow { color: var(--paper-muted); }
.fee { margin: 0 0 22px; padding-top: 0; border-top: 0; gap: 0 12px; }
.fee-label { font: 600 14px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--ash); margin-bottom: 12px; }
.fee-now { font: 800 64px/1 var(--display); font-stretch: 75%; color: var(--pumice); font-variant-numeric: lining-nums; }
.light .fee-now { color: var(--paper-ink); }
.fee-cents { font-size: .45em; vertical-align: .75em; }
.fee-was { font: 600 22px/1 var(--display); font-stretch: 100%; color: var(--ash); text-decoration: line-through; text-decoration-thickness: 2px; }
.package .btn-ghost { border-color: var(--pumice); color: var(--pumice); }
/* The rule above outranks .btn-ghost:hover (same weight, later): the label vanished on the hover fill (fixed 2026-11-25). */
.package .btn-ghost:hover, .package .btn-ghost:focus-visible { background: var(--pumice); border-color: var(--pumice); color: #000; }
.light .package .btn-ghost { border-color: var(--paper-ink); color: var(--paper-ink); }
.fee-aid { margin: 14px 0 0; color: var(--ash); font-family: var(--display); font-size: 15px; }
.fee-aid span { color: var(--orange); }
.fee-aid:hover { color: var(--pumice); }
.package-incl { margin: 26px 0 0; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--pumice); }
.light .package-incl { color: var(--paper-ink); }
.package-incl li { position: relative; padding-left: 20px; }
.package-incl li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--heat); }
.package-units-label { border-top: 1px solid var(--crust); margin: 28px 0 8px; padding-top: 22px; }
.light .package-units-label { border-color: var(--paper-line); }
.package-units { gap: 0; font-size: 16px; }
.package-units li a { grid-template-columns: 2.2em 1fr 14px; border: 0; border-top: 1px solid var(--crust); background: none; padding: 8px 4px 8px 0; font-weight: 400; line-height: 1.45; color: var(--pumice); }
.light .package-units li a { border-color: var(--paper-line); color: var(--paper-ink); }
.package-units li a::after { color: var(--orange); }
.package-units li a:hover, .package-units li a:focus-visible { background: var(--crust); border-color: var(--crust); }
.light .package-units li a:hover, .light .package-units li a:focus-visible { background: var(--paper-2); border-color: var(--paper-line); }
.package-units li a > span { font: 600 15px/1.6 var(--display); color: var(--ash); font-variant-numeric: tabular-nums; }
.package-units li.gap { margin-top: 18px; }
.topic-badge { font: 600 12px/1 var(--display); letter-spacing: .02em; text-transform: none; color: var(--orange); border-color: var(--orange); }
.fee-footnote { text-align: left; color: var(--ash); font-size: 15px; line-height: 1.55; margin: 48px 0 0; max-width: 80ch; }
.light .fee-footnote { color: var(--paper-muted); }
.aid-note { border-color: var(--heat); background: rgba(255, 116, 23, .08); }
.aid-note p { color: var(--ash); }
.aid-note h3 { font-size: 24px; }
.aid-note.is-granted { border-color: var(--ok); background: rgba(46, 107, 79, .14); }

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 56px; }
.testimonial, .section:not(.light) .testimonial { border: 0; background: transparent; padding: 0; }
.testimonial blockquote { font: 400 italic 22px/1.5 var(--text); margin: 0 0 28px; }
.testimonial blockquote::before { content: none; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { border-top: 0; padding-top: 0; font-size: 14px; line-height: 1.45; color: var(--ash); gap: 16px; }
.light .testimonial figcaption { color: var(--paper-muted); }
.t-avatar { width: 48px; height: 48px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: transparent; border: 1px solid var(--ash); color: var(--pumice); font: 800 17px/1 var(--display); font-stretch: 75%; letter-spacing: .02em; }
.light .testimonial figcaption .t-avatar-mono { color: var(--paper-ink); border-color: var(--paper-muted); }
.testimonial figcaption strong { color: var(--pumice); font-weight: 600; }
.light .testimonial figcaption strong { color: var(--paper-ink); }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--ash); }
.light .testimonial figcaption span, .light .testimonial .t-date { color: var(--paper-muted); }

/* ------------------------------------------------------------------- blog */
.posts { gap: 48px; }
.post-card-img { aspect-ratio: 3 / 2; background: var(--crust); margin-bottom: 22px; }
.post-card .eyebrow { font: 500 15px/1.4 var(--display); color: var(--ash); }
.post-card h3 { font-size: 28px; line-height: 1.1; margin: 12px 0 14px; }
.post-card p, .section:not(.light) .post-card p { font-size: 16px; line-height: 1.6; color: var(--pumice); }
.light .post-card p { color: var(--paper-ink); }
.post-card:hover h3 { text-decoration-color: var(--heat); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pager a, .pager span { border-color: var(--paper-line); color: var(--paper-ink); border-radius: 2px; font-family: var(--display); font-weight: 600; }
.pager a:hover { border-color: var(--paper-ink); }
.pager .is-current { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--pumice); }
.topic-links a { border-color: var(--paper-line); font-family: var(--display); font-weight: 500; }
.section:not(.light) .topic-links a { border-color: var(--crust); }
.topic-links a:hover { border-color: var(--heat); }
.post-cover .credit { color: rgba(236, 231, 223, .85); }
.post-meta { border-color: var(--paper-line); }
.prose .citation .cite-doi { color: var(--cherry); }
.prose .citation .cite-note { color: var(--paper-muted); }
.legal-updated { font: 600 14px/1.4 var(--display); letter-spacing: 0; text-transform: none; color: var(--paper-muted); }
.legal-box { background: var(--paper-2); border-color: var(--paper-line); }

/* ------------------------------------------------------------------ prose */
.prose { font-size: 17.5px; line-height: 1.7; }
.prose h2 { font-size: clamp(32px, 3.4vw, 44px); margin: 1.8em 0 .5em; }
.prose h3 { font-size: 26px; margin: 1.6em 0 .5em; }
.prose th { font: 600 14px/1.3 var(--display); letter-spacing: 0; text-transform: none; border-bottom: 2px solid var(--paper-ink); }
.prose td { border-color: var(--paper-line); }
.prose blockquote { border-left-color: var(--heat); font: 400 italic 22px/1.5 var(--text); }
.pathway-map td, .pathway-map th { border-color: var(--paper-line); }
.eq-toc { border-color: var(--paper-line); background: var(--paper-2); }
.eq-toc a span { font: 600 14px/1 var(--display); color: var(--paper-muted); }
.eq-card { background: var(--paper-2); border-color: var(--paper-line); }
.eq-card h4, .eq-card h3 { font: 700 18px/1.3 var(--display); font-stretch: 100%; }
.eq-card p { color: var(--paper-muted); }
.resource { border-color: var(--paper-line); }
.resource:hover { background: var(--paper-2); }
.resource-name { font: 700 24px/1.2 var(--display); font-stretch: 75%; }
.resource p { color: var(--paper-muted); }
.resource-host { color: var(--cherry); font-family: var(--display); font-weight: 600; }
.resource-note { color: var(--paper-muted); }
.resource-note .icon { color: var(--cherry); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 0; }
.faq details, .light .faq details { border-bottom: 0; background: var(--crust); margin-bottom: 8px; }
.light .faq details { background: var(--paper-2); }
.faq summary { font: 700 20px/1.3 var(--display); font-stretch: 85%; padding: 20px 64px 20px 24px; }
.faq summary::after { content: ""; right: 26px; width: 16px; height: 16px; background: linear-gradient(var(--pumice), var(--pumice)) center/16px 2px no-repeat, linear-gradient(var(--pumice), var(--pumice)) center/2px 16px no-repeat; font: 0/0 a; transform: translateY(-50%); transition: transform .2s; }
.light .faq summary::after { background: linear-gradient(var(--paper-ink), var(--paper-ink)) center/16px 2px no-repeat, linear-gradient(var(--paper-ink), var(--paper-ink)) center/2px 16px no-repeat; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--yellow); }
.light .faq summary:hover { color: var(--cherry); }
.faq-a, .light .faq-a { color: var(--pumice); font-size: 17px; line-height: 1.65; max-width: 66ch; padding: 0 24px 22px; }
.light .faq-a { color: var(--paper-ink); }

/* ------------------------------------------------------------- newsletter */
.newsletter { border: 0; border-top: 2px solid var(--heat); border-radius: 0; background: transparent; padding: 48px 0 0; gap: 40px 48px; }
.newsletter h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 14px; }
.newsletter p { color: var(--pumice); max-width: 52ch; }
.newsletter-form { gap: 10px; }
.newsletter-form input[type=email] { border: 1px solid var(--line-strong); border-radius: 2px; background: var(--crust); color: var(--pumice); font: 400 17px/1 var(--text); height: 54px; padding: 0 16px; }
.newsletter-form input[type=email]::placeholder { color: var(--ash); }
.newsletter-form input[type=email]:focus { border-color: var(--pumice); outline: none; }
.newsletter-form .btn { height: 54px; }
.cta-final { padding: 0; background: #000; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #000; color: var(--pumice); border-top: 1px solid var(--crust); padding: 72px 0 0; font-size: 15px; }
.footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.logo-footer { height: 76px; margin-bottom: 22px; }
.footer-brand p { color: var(--pumice); font-size: 15px; line-height: 1.55; max-width: 32ch; }
.footer-contact { color: var(--ash); grid-template-columns: 70px 1fr; }
.footer-contact dt { font: 600 14px/2 var(--display); letter-spacing: 0; text-transform: none; color: var(--ash); }
.footer-contact dd, .footer-contact a { color: var(--pumice); }
.footer-contact a:hover { color: var(--yellow); }
.footer-col .eyebrow { font: 600 15px/1.3 var(--display); color: var(--ash); margin-bottom: 8px; }
.footer-col a { color: var(--pumice); font-size: 15px; line-height: 1.4; }
.footer-col a:hover { color: var(--pumice); text-decoration: underline; text-decoration-color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--crust); color: var(--ash); font-size: 14px; margin-top: 48px; }
.footer-bottom a { color: var(--ash); }
.footer-bottom a:hover { color: var(--pumice); }
.social-icon { color: var(--ash); }

/* ------------------------------------------------------------------ forms */
.auth-card { background: var(--pumice); border: 0; max-width: 500px; box-shadow: 16px 16px 0 var(--crust); }
.auth-card h1 { font-size: 40px; margin: 10px 0 14px; }
.auth-card p { color: var(--paper-muted); }
.field label { font: 600 15px/1.3 var(--display); letter-spacing: 0; text-transform: none; color: var(--paper-ink); margin-bottom: 8px; }
.field input, .field select, .field textarea { border: 1px solid #b9b2a6; background: #fff; color: var(--paper-ink); border-radius: 2px; height: 50px; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--paper-ink); outline: none; }
.field input[disabled] { background: var(--paper-2); color: var(--paper-muted); }
.field .hint { color: var(--paper-muted); }
.checkline input, .upgrade-opt input, .aid-form .aid-radios input { accent-color: var(--cherry); }
.pw-toggle, .link-button, .auth-card .field .hint a { color: var(--cherry); font-family: var(--display); font-weight: 600; }
.link-button { font-family: inherit; font-weight: inherit; }
.auth-switch { border-color: var(--paper-line); }
.cp-list { border-color: var(--paper-line); }
.cp-list li.is-active, .cp-list li[role=option]:hover { background: var(--paper-2); }
.verify-form input { background: var(--crust); border: 1px solid var(--line-strong); color: var(--pumice); font: 600 18px/1 var(--display); letter-spacing: .08em; }
.verify-form input:focus { border-color: var(--pumice); }
.credential { background: var(--panel); border: 1px solid var(--crust); border-top: 4px solid var(--heat); }
.credential .eyebrow { color: var(--ash); }
.credential .valid { color: #7fd3a1; border-color: var(--ok); font: 600 14px/1 var(--display); letter-spacing: 0; text-transform: none; }
.credential .facts, .credential th, .credential td { border-color: var(--crust); }
.credential .facts b { font: 700 22px/1.2 var(--display); font-stretch: 85%; }
.credential th { font: 600 14px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--ash); }
.credential td:first-child { color: var(--ash); font: 500 15px/1 var(--display); }
.copyline input { background: #000; border-color: var(--line-strong); color: var(--pumice); font-family: var(--mono-real); }
.doc-card { background: var(--panel); border-color: var(--crust); }
.doc-card img { border-color: var(--crust); }
.doc-card p { color: var(--ash); }
.coupon-form input { border-color: #b9b2a6; font: 600 15px/1.2 var(--display); letter-spacing: .06em; }
.coupon-code { color: var(--paper-muted); font-family: var(--mono-real); }
.tag-chip { background: var(--paper-ink); color: var(--pumice); }
.rating-opt span { border-color: var(--paper-line); }
.rating-opt:hover span { border-color: var(--paper-ink); }
.rating-opt input:checked + span { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--pumice); }
.rating-opt b { font: 800 26px/1 var(--display); font-stretch: 75%; }
.upgrade-opt { border-color: var(--paper-line); }
.upgrade-opt:has(input:checked) { border-color: var(--cherry); box-shadow: inset 0 0 0 1px var(--cherry); }
.upgrade-opt b { font: 700 22px/1.2 var(--display); font-stretch: 85%; }
.upgrade-badge { background: var(--cherry); font-family: var(--display); letter-spacing: 0; text-transform: none; }
.upgrade-price strong { font: 800 26px/1 var(--display); font-stretch: 75%; }
.aid-form fieldset { background: var(--paper-2); border-color: var(--paper-line); }
.aid-form legend { font: 700 28px/1.2 var(--display); font-stretch: 75%; }
.aid-form legend span { background: var(--paper-ink); color: var(--pumice); font: 700 16px/34px var(--display); }
.aid-apply-aside { border-top-color: var(--paper-ink); }
.aid-location { background: var(--paper-2); border-color: var(--paper-line); }

/* ---------------------------------------------------------------- account */
.account-head p { color: var(--ash); }
.tabs { box-shadow: inset 0 -1px 0 var(--crust); }
.tabs a { font: 600 15px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--ash); }
.tabs a.is-active, .tabs a:hover { color: var(--pumice); border-color: var(--orange); }
.account-body .wrap > .notice { background: var(--panel); color: var(--pumice); border: 1px solid var(--crust); border-left: 3px solid var(--heat); }
.account-body .wrap > .notice a, .account-body .wrap > .notice .link-button { color: var(--yellow); }
.account-body .wrap > .notice-bad { border-left-color: var(--dull); }
.save-ok { color: #7fd3a1; }
.save-bad { color: #ff8a80; }
.dialog { border-top: 4px solid var(--heat); background: var(--pumice); }
.dialog h2 { font: 800 30px/1.1 var(--display); font-stretch: 75%; }
.dialog p { color: var(--paper-muted); }
.progress-strip, .progress-strip div { border-color: var(--crust); }
.progress-strip b { font: 800 36px/1 var(--display); font-stretch: 75%; }
.progress-strip span { font: 500 14px/1.3 var(--display); letter-spacing: 0; text-transform: none; color: var(--ash); }
.bar { background: var(--crust); }
.bar i { background: var(--heat); }
.ucard { background: var(--panel); border-color: var(--crust); }
.ucard.is-open { background: var(--panel); border-color: var(--orange); }
.ucard.is-locked { background: transparent; }
.ucard-no { font: 900 40px/1 var(--display); font-stretch: 75%; }
.ucard-no small { font: 600 12px/1 var(--display); letter-spacing: .04em; color: var(--ash); }
.ucard-meta, .ucard-score span, .ucard-more { color: var(--ash); }
.ucard-more:hover { color: var(--yellow); }
.pill { font: 600 13px/1 var(--display); letter-spacing: .02em; text-transform: none; border-color: var(--line-strong); color: var(--pumice); border-radius: 2px; }
.pill.ok { border-color: var(--ok); color: #7fd3a1; }
.pill.wait { color: var(--ash); }
.pill.bad { border-color: var(--dull); color: #ff8a80; }
.verdict { font: 700 16px/1 var(--display); letter-spacing: .02em; text-transform: none; }
.verdict.bad { background: var(--dull); }
.verdict.ok { background: var(--ok); }
.exam-score { font: 900 60px/1 var(--display); font-stretch: 75%; }
.exam-score small { font-weight: 700; color: var(--ash); }
.exam-score span { font: 600 18px/1 var(--display); color: var(--ash); }
.score { font: 800 22px/1 var(--display); font-stretch: 85%; }
.panel { border-color: var(--crust); background: var(--panel); }
.panel h2 { font-size: 32px; }
.panel p { color: var(--ash); }
.panel.is-key { border-color: var(--pumice); }
.paper-card { background: var(--pumice); color: var(--paper-ink); }
.paper-card h2 { font-size: 36px; }

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-color: var(--crust); }
.quiz-head h1 { font-size: clamp(36px, 4.4vw, 52px); }
.quiz-head p { color: var(--ash); }
.q { border-color: var(--crust); background: var(--panel); }
.q-no { font: 600 14px/1 var(--display); letter-spacing: .02em; text-transform: none; color: var(--ash); }
.q-text { font: 700 24px/1.3 var(--display); font-stretch: 85%; }
.opt { border-color: var(--crust); font-size: 17px; }
.opt:hover { border-color: var(--line-strong); }
.opt .k { border-color: var(--line-strong); font: 600 13px/1 var(--display); }
.opt:has(input:checked) { border-color: var(--pumice); background: var(--crust); }
.opt:has(input:checked) .k { background: var(--pumice); color: #000; border-color: var(--pumice); }
.opt:has(input:focus-visible) { outline-color: var(--yellow); }
.opt.is-right { border-color: var(--ok); background: rgba(46, 107, 79, .2); }
.opt.is-wrong { border-color: var(--dull); background: rgba(155, 36, 18, .2); }
.explain { background: #000; border-left: 2px solid var(--orange); color: var(--pumice); }
.explain b { font: 600 13px/1 var(--display); letter-spacing: .02em; text-transform: none; color: var(--ash); }
.quiz-foot { background: rgba(0, 0, 0, .94); border-top-color: var(--crust); }
.quiz-foot .state { font: 500 14px/1.4 var(--display); letter-spacing: 0; text-transform: none; color: var(--ash); }
.scorebox { border-color: var(--pumice); }
.scorebox .big { font: 900 72px/1 var(--display); font-stretch: 75%; }
.scorebox .big small { color: var(--ash); }
.timer { background: #000; border-color: var(--pumice); font: 600 14px/1 var(--display); letter-spacing: .02em; text-transform: none; }
.timer b { font: 700 28px/1 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.timer.is-low { border-color: var(--dull); color: #ff9c92; }
.breakdown td, .breakdown th { border-color: var(--crust); }
.breakdown th { font: 600 14px/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--ash); }
.q-figure img { filter: invert(1) sepia(.1); }

/* ------------------------------------------------------------ unit reader */
.reader-hero { border-bottom: 2px solid var(--heat); }
.reader-hero img.bg { filter: brightness(.48) saturate(1.05); }
.reader-hero .wrap { padding-top: 80px; padding-bottom: 60px; }
.reader-hero .eyebrow { color: var(--ash); }
.reader-hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 900; font-variation-settings: "opsz" 144, "wdth" 75; line-height: .94; color: var(--yellow); margin: 16px 0 16px; }
.reader-hero .sub { font: 400 italic 22px/1.4 var(--text); color: var(--pumice); }
.reader { background: var(--pumice); color: var(--paper-ink); }
.toc { font-size: 15px; }
.toc .eyebrow { margin-bottom: 14px; }
.toc a { border-left-color: var(--paper-line); color: var(--paper-muted); }
.toc a:hover, .toc a.is-active { color: var(--paper-ink); border-color: var(--cherry); }
.unit-text { font-size: 18px; line-height: 1.72; }
.unit-text h2 { font-size: clamp(32px, 3.4vw, 44px); border-bottom: 2px solid var(--paper-ink); padding-bottom: .3em; }
.unit-text h3 { font-size: 27px; }
.unit-text h4 { font: 700 18px/1.3 var(--display); font-stretch: 100%; font-style: normal; }
.unit-text .secno { font: 600 .6em/1 var(--display); color: var(--paper-muted); letter-spacing: 0; }
.unit-text code { font-family: var(--mono-real); background: var(--paper-2); }
.unit-text figcaption { color: var(--paper-muted); }
.unit-text figcaption b { color: var(--paper-ink); }
.unit-text table { border-color: var(--paper-ink); }
.unit-text th { border-bottom: 2px solid var(--paper-ink); font-family: var(--display); font-weight: 700; }
.box { border-color: var(--paper-ink); background: #f4f0e9; border-radius: 0; }
.box-kind { font: 600 13px/1.3 var(--display); letter-spacing: .02em; text-transform: none; }
.box-title { font: 700 18px/1.3 var(--display); font-stretch: 100%; }
.box { --bx: var(--paper-ink); --bx-l: #f4f0e9; }
/* Box colours, the same as in the unit PDFs (theme/theme.tex): a strong tone for bars and rules, a light tint as ground. */
.box-keyequation { --bx: #d2401a; --bx-l: #fbe9e0; border-color: var(--bx); background: var(--bx-l); }
.box-keyequation .box-head { background: var(--bx); color: #fff; }
.box-law, .box-laws { --bx: #2a2826; --bx-l: #efebe4; border-color: var(--bx); background: var(--bx-l); }
.box-law .box-head, .box-laws .box-head { background: var(--bx); color: var(--pumice); }
.box-derivation { --bx: #6b4a3a; --bx-l: #f3ece6; border-color: var(--bx); background: #fbf8f4; }
.box-derivation .box-head { background: var(--bx-l); color: var(--bx); border-bottom: 1px solid var(--bx); }
.box-example { --bx: #2e6b4f; --bx-l: #e6f0ea; border-top-color: var(--bx); background: var(--bx-l); }
.box-example .box-head { color: var(--bx); }
.box-excursion { --bx: #5c5852; --bx-l: #eeebe6; border-left-color: var(--bx); background: var(--bx-l); }
.box-excursion .box-head { color: var(--bx); }
.box-research { --bx: #8a3a12; --bx-l: #f6e8df; border-color: var(--bx); background: var(--bx-l); }
.box-research .box-head { background: var(--bx); color: #fff; }
.box-research .box-kind { color: #f3cbb4; }
.box-research .box-name { font: 800 26px/1.1 var(--display); font-stretch: 75%; }
.box-research .box-inst { font: 400 italic 17px/1.3 var(--text); color: #f3cbb4; }
.paperlink { border-color: rgba(26, 23, 20, .18); }
.paperlink span { font: 600 13px/1 var(--display); letter-spacing: .02em; text-transform: none; color: var(--paper-muted); }
.box-keypoints { --bx: #b8862e; --bx-l: #f8f1df; border-top-color: var(--bx); border-bottom-color: var(--bx); background: var(--bx-l); }
.box-keypoints .box-kind { color: #8a6318; }
.box-questions .box-kind { font: 700 18px/1.4 var(--display); color: #8a6318; }
.box-check { --bx: #9b2412; --bx-l: #f7e6e2; border-color: var(--bx); background: var(--bx-l); }
.box-check .box-head { background: var(--bx); color: #fff; }
.box-check .opt { border-color: rgba(26, 23, 20, .18); }
.box-check .opt:hover { border-color: var(--bx); }
.box-check .opt .k { border-color: rgba(26, 23, 20, .28); }
.box-check .opt:has(input:checked) { border-color: var(--bx); background: #fff; }
.box-check .opt:has(input:checked) .k { background: var(--bx); color: #fff; border-color: var(--bx); }
.box-check.is-done .opt.is-right { border-color: var(--ok); background: #e6f0ea; }
.box-check.is-done .opt.is-right .k { background: var(--ok); border-color: var(--ok); }
.box-check.is-done .opt.is-wrong { border-color: var(--dull); background: #f7e6e2; }
.box-check.is-done .opt.is-wrong .k { background: var(--dull); border-color: var(--dull); }
.box-check .check-result { border-top-color: rgba(155, 36, 18, .25); }
.box-interactive { --bx: #1f3a5f; --bx-l: #e8eef5; border-color: var(--bx); background: var(--bx-l); }
.box-interactive .box-head { background: var(--bx); color: #fff; }
.ia-slider input[type=range] { accent-color: #1f3a5f; }
.ia-btn.on { background: #1f3a5f; border-color: #1f3a5f; }
.reader-end { background: var(--paper-ink); color: var(--pumice); border-top: 4px solid var(--heat); }
.reader-end h3, .reader-end h2 { font-size: 30px; }
.preview-fade::after { background: linear-gradient(180deg, rgba(236, 231, 223, 0) 0%, var(--pumice) 88%); }
.lit-list li { border-color: var(--paper-line); }
.lit-list a.t { font: 700 24px/1.2 var(--display); font-stretch: 75%; }
.lit-list .m { color: var(--paper-muted); }

/* ----------------------------------------------------------------- cookie */
.cookie { background: var(--crust); border: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); color: var(--pumice); }
.cookie p { color: var(--pumice); }
.cookie a { text-decoration-color: var(--heat); text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------------------------------- the landing page */
/* 1. Hero: the reel of three eruptions, then the title card */
.h-hero { background: #000; }
.reel { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 2.39 / 1; background: #000; }
.frame { position: relative; margin: 0; overflow: hidden; background: var(--crust); }
.frame-a { grid-row: 1 / 3; }
.frame img, .frame picture { display: block; width: 100%; height: 100%; }
.frame img { object-fit: cover; }
.frame .tag { position: absolute; left: 0; right: 0; top: 0; padding: 14px 18px 22px; font: 600 13px/1.2 var(--display); font-stretch: 100%; letter-spacing: 0; text-transform: none; color: var(--pumice); background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); border: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.frame .tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 9px; transform: translateY(-1px); }
.hero-band { background: #000; position: relative; z-index: 2; }
.hero-grid { --hs: clamp(48px, 6.67vw, 96px); display: grid; grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr); column-gap: 48px; align-items: start; }
.hero-h { grid-column: 1 / -1; grid-row: 1; margin: calc(-1 * (var(--hs) * .31 + 40px)) 0 0; font-weight: 400; font-size: inherit; line-height: inherit; max-width: none; }
.hero-name { display: block; font: 600 18px/22px var(--display); font-stretch: 100%; color: var(--pumice); margin-bottom: 18px; text-shadow: 0 0 12px rgba(0, 0, 0, .9); letter-spacing: 0; }
.hero-headline { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 900; font-variation-settings: "opsz" 144, "wdth" 75; font-size: var(--hs); line-height: .92; letter-spacing: -.01em; color: var(--yellow); max-width: none; animation: heatup 1.2s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes heatup { 0% { color: var(--dull); } 33% { color: var(--cherry); } 72% { color: var(--orange); } 100% { color: var(--yellow); } }
.hero-side { grid-column: 2; grid-row: 2; margin-top: calc(-1 * var(--hs) * .92 + 10px); }
.hero-sub { font-size: 20px; line-height: 1.5; margin: 0 0 22px; max-width: 34em; color: var(--pumice); }
.hero-checks { grid-column: 1; grid-row: 2; align-self: start; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 22px 0 0; padding: 0; border: 0; font: 500 15px/1.4 var(--display); color: var(--ash); }
.hero-checks li { display: flex; align-items: center; gap: 10px; }
.hero-checks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero-checks .icon { display: none; }
.hero-credit { grid-column: 2; grid-row: 3; justify-self: start; text-align: left; margin-top: 14px; max-width: 540px; position: static; }
.br-lg { display: none; }
@media (min-width: 861px) { .br-lg { display: inline; } }

/* 2. Sections with a temperature: the heat line and the seismic dividers */
.sec { padding: var(--gap, 160px) 0 0; position: relative; }
.sec.h-hero, .sec.h-final { padding-top: 0; }
.sec.alumni { padding-top: 80px; }
.temp { font: 600 15px/1 var(--display); font-stretch: 100%; color: var(--ash); margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.head { max-width: 760px; margin-bottom: 64px; }
.head h2 { margin-bottom: 24px; }
.lede { max-width: 62ch; color: var(--pumice); font-size: 17.5px; }
.sec .rule { margin: 0 0 64px; }
.seis { margin: 0 0 64px; }
.seis-svg { display: block; width: 100%; height: 64px; overflow: visible; }
.seis-grid { fill: none; stroke: #4d4945; stroke-width: 1; vector-effect: non-scaling-stroke; }
.seis-trace { fill: none; stroke: var(--heat); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.seis figcaption { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ash); max-width: 90ch; }
.seis figcaption b { font: 600 13px/1.45 var(--display); font-stretch: 100%; color: var(--pumice); }
.seis-erupt { margin-bottom: 40px; }

/* 3. Alumni marquee */
.alumni { padding: 80px 0 0; border-bottom: 0; }
.alumni-lead { font: 500 15px/1.4 var(--display); color: var(--ash); margin: 0 0 22px; text-align: left; }
.marquee-clip { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { animation-duration: 70s; }
.marquee-set { gap: 72px; padding-right: 72px; }
.marquee img { height: 34px; max-width: 190px; filter: brightness(0) invert(93%) sepia(6%) saturate(240%) hue-rotate(350deg); opacity: 1; }

/* 4. Intro points */
.points { margin: 28px 0 0; }
.points p { margin: 0 0 14px; }
.points b { font-weight: 600; color: var(--pumice); }
/* The three audience columns (owner's rule): heading, paragraph, check list; the lists sit on one level because
   each column is a flex column whose paragraph takes the free space. */
.cards-3 .aud { padding: 0 40px; }
.cards-3 .aud:first-child { padding-left: 0; }
.cards-3 .aud:last-child { padding-right: 0; }
.cards-3 .aud ul { margin-top: auto; padding-top: 20px; }

/* 5. How it works: the wide band and the flow front */
.band { margin: 0 0 72px; }
.band img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.band .credit { margin-top: 10px; display: block; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 28px; position: relative; padding: 0; margin: 0; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 3px; background: var(--heat); }
.flow .step { position: relative; padding: 92px 0 0; background: transparent; }
.flow .step::after { content: none; }
.step-n { position: absolute; top: 0; left: 0; font: 900 52px/52px var(--display); font-stretch: 75%; color: var(--pumice); }
.lobe { position: absolute; left: 0; top: 61px; width: 64px; height: 9px; border-radius: 50%; background: var(--heat); }

/* 6. Topics: three panels */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.panel-img { margin: 0 0 24px; }
.panel-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.panel-img .credit { margin-top: 8px; display: block; }
.panel-range { font: 600 15px/1.4 var(--display); color: var(--ash); margin: 0 0 10px; }
.panel h3 { font-size: 30px; margin-bottom: 14px; }
.panel > p:not(.panel-range) { font-size: 17px; }
.unit-list { margin: 18px 0 0; padding-left: 30px; font-size: 16px; line-height: 1.45; }
.unit-list li { padding: 7px 0 7px 4px; border-top: 1px solid var(--crust); }
.unit-list li::marker { font: 600 15px/1 var(--display); color: var(--ash); font-variant-numeric: tabular-nums; }
.unit-list a { color: var(--pumice); text-decoration: none; }
.unit-list a:hover { text-decoration: underline; text-decoration-color: var(--heat); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* 7. Research: the instrument and its record */
.records { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.371fr); gap: 24px; margin: 0 0 80px; align-items: start; }
.rec { margin: 0; }
.rec .credit { margin-top: 10px; display: block; }
.rec img { width: 100%; height: auto; }
.rec-trace img { border: 1px solid var(--crust); }

/* 8. Certificate frame */
.cert-frame { background: var(--crust); padding: 14px; }
.cert-frame img { width: 100%; height: auto; display: block; box-shadow: none; border: 0; }
.cert-scale { display: block; width: 100%; height: 4px; margin-top: 12px; }

/* 9. Sample unit: the three pages */
.split-sample { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.pages { --pw: 400px; position: relative; display: block; width: var(--pw); max-width: 100%; aspect-ratio: 1 / 1.3; margin-bottom: 60px; text-decoration: none; color: #1a1714; }
.page { position: absolute; inset: 0; background: var(--pumice); box-shadow: 16px 16px 0 var(--crust); padding: 7% 8%; font-size: calc(var(--pw) / 38); line-height: 1.45; overflow: hidden; transform-origin: 50% 100%; display: block; }
.page img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.page.is-image { padding: 0; }
.page-3 { transform: translate(9%, 4%) rotate(4deg); }
.page-2 { transform: translate(4.5%, 2%) rotate(2deg); }
.page-1 { transform: none; transition: transform .2s; }
.pages:hover .page-1, .pages:focus-visible .page-1 { transform: translateY(-6px); }
.pg-head { font: 500 .85em/1.4 var(--display); color: #5c5852; border-bottom: 1px solid #c9c2b6; padding-bottom: .5em; margin: 0 0 1.6em; display: block; }
.pg-unit { font: 600 1em/1.3 var(--display); color: #8a3a12; margin: 0 0 .2em; display: block; }
.pg-title { font: 800 2.9em/1 var(--display); font-stretch: 75%; color: #000; margin: 0 0 .7em; display: block; }
.pg-q { background: #ded7cc; border-left: 3px solid var(--cherry); padding: .8em 1em .6em; margin: 0 0 1.1em; display: block; }
.pg-q-h { font: 700 1em/1.3 var(--display); margin: 0 0 .4em; color: #000; display: block; }
.pg-q ol { padding-left: 1.3em; font-size: .92em; margin: 0; }
.pg-q li { margin-bottom: .25em; }
.pg-text { font-size: .98em; margin: 0; color: #1a1714; hyphens: auto; display: block; }
.pg-h { font: 700 1.3em/1.2 var(--display); margin: 0 0 .8em; color: #000; display: block; }
.pg-lines { display: block; margin-bottom: 1em; }
.pg-lines i { display: block; height: .45em; background: #cfc8bc; margin-bottom: .55em; }
.pg-lines i:nth-child(4n) { width: 72%; }
.pg-fig { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 .4em; }
.pg-cap { font-size: .78em; line-height: 1.35; color: #5c5852; margin: 0 0 1em; font-style: italic; display: block; }
.pg-table { border-collapse: collapse; width: 100%; font-size: .95em; }
.pg-table th, .pg-table td { text-align: left; padding: .35em .4em; border-bottom: 1px solid #c9c2b6; }
.pg-table th { font-family: var(--display); font-weight: 700; }
.sample-meta { border-top: 1px solid var(--crust); border-bottom: 1px solid var(--crust); padding: 22px 0; margin: 26px 0 30px; }
.sample-k { font: 600 15px/1.4 var(--display); color: var(--ash); margin: 0 0 8px; }
.sample-meta h3 { font-size: 32px; margin-bottom: 10px; }
.sample-meta p { margin: 0 0 10px; font-size: 17px; }
.sample-meta .oq { margin: 14px 0 0; padding-left: 20px; font-size: 15.5px; line-height: 1.5; color: var(--pumice); }
.sample-meta .oq li { margin-bottom: 6px; }
.sample-note { margin: 0 0 22px; color: var(--ash); font-size: 15px; }
.sample-credit { margin-top: 22px; display: block; }

/* 10. Testimonials */
.testimonials .testimonial blockquote { font-size: 22px; }

/* 11. Community band */
.community-band { position: relative; overflow: hidden; padding: 120px 0 96px; }
.community-band .community-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.community-band .community-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); }
.community-band .community-bg::after { content: none; }
.community-in { position: relative; z-index: 2; }
.community-in h2, .community-in .lede { text-shadow: 0 1px 16px rgba(0, 0, 0, .6); }
.community-credit { margin-top: 56px; text-align: right; color: #cfc9c0; display: block; }
.community-credit a { color: #cfc9c0; }
.community-features { padding-top: 64px; }

/* 12. FAQ beside the field photograph */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq-grid .head { margin-bottom: 0; }
.faq-photo { margin: 40px 0 0; max-width: 340px; }
.faq-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.faq-photo .credit { margin-top: 8px; display: block; }

/* 13. Newsletter beside the lava lake */
.nl-row { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 4.6fr) minmax(0, 4fr); gap: 48px; align-items: center; }
.nl-photo { margin: 0; }
.nl-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nl-photo .credit { margin-top: 8px; display: block; }
.nl-text h2 { margin-bottom: 14px; }
.nl-text p { margin: 0; color: var(--pumice); max-width: 52ch; }
.nl-row .newsletter-form { display: flex; gap: 10px; }

/* 14. Final call to action */
.strip { position: relative; background: #000; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 2.39 / 1; object-fit: cover; }
.final-grid { --hs: clamp(44px, 6.4vw, 92px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: 40px; align-items: center; padding-bottom: 96px; }
.final-h { grid-column: 1 / -1; margin: calc(-1 * var(--hs) * .31) 0 0; font-stretch: 75%; font-weight: 900; font-variation-settings: "opsz" 144, "wdth" 75; font-size: var(--hs); line-height: .92; color: var(--yellow); letter-spacing: -.01em; max-width: none; }
.final-h.heating { animation: heatup 1.2s cubic-bezier(.5, 0, .3, 1) both; }
.final-grid .hero-actions { grid-column: 1; grid-row: 2; margin: 36px 0 0; }
.final-credit { grid-column: 2; grid-row: 2; margin-top: 36px; text-align: right; }

/* 15. The thermometer (desktop) */
.thermo { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; width: 96px; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.thermo-nav { position: relative; height: min(58vh, 560px); width: 100%; }
.thermo-bar { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; border-radius: 3px; background: linear-gradient(180deg, #ffd98a 0%, #ff7417 14.29%, #d2401a 42.86%, #9b2412 64.29%, #000 92.86%, #000 100%); box-shadow: 0 0 0 1px rgba(236, 231, 223, .18); }
.thermo-trace { position: absolute; right: 14px; top: 0; width: 24px; height: 100%; fill: none; stroke: url(#tg); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .9; }
.thermo-ticks { list-style: none; position: absolute; inset: 0; margin: 0; padding: 0; }
.thermo-ticks li { position: absolute; right: 0; transform: translateY(-50%); }
.thermo-ticks a { pointer-events: auto; display: block; width: 24px; height: 12px; position: relative; margin-right: 8px; }
.thermo-ticks a::before { content: ""; position: absolute; right: 2px; top: 5px; width: 8px; height: 1px; background: var(--ash); }
.thermo-ticks a:hover::before, .thermo-ticks a:focus-visible::before { background: var(--yellow); width: 14px; }
.thermo-ticks a:focus-visible { outline-offset: 1px; }
.thermo-tip { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #000; color: var(--pumice); font: 500 13px/1.4 var(--display); padding: 3px 8px; display: none; }
.thermo-ticks a:hover .thermo-tip, .thermo-ticks a:focus-visible .thermo-tip { display: block; }
.thermo-marker { position: absolute; right: -5px; top: 0; height: 0; transition: top .5s cubic-bezier(.3, 0, .2, 1); }
.thermo-marker::before { content: ""; position: absolute; right: 0; top: -1.5px; width: 16px; height: 3px; background: var(--pumice); box-shadow: 0 0 0 1px #000; }
.thermo-val { position: absolute; right: 22px; top: -10px; background: #000; padding: 1px 5px; white-space: nowrap; font: 600 13px/18px var(--display); font-stretch: 100%; color: var(--pumice); text-shadow: 0 0 6px #000, 0 0 2px #000; font-variant-numeric: tabular-nums; }
.thermo-note { margin: 14px 0 0; width: 96px; text-align: right; font: 400 11px/1.35 var(--text); color: var(--ash); background: #000; padding: 5px 6px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1399px) { .thermo { display: none; } }
@media (max-width: 1180px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
  .flow::before { display: none; }
  .flow .step::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 3px; background: var(--heat); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
  .steps::before { display: none; }
  .step::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 3px; background: var(--heat); }
  .panels { gap: 32px; }
  .researchers { gap: 48px 24px; }
}
@media (max-width: 1080px) {
  .packages { grid-template-columns: 1fr; max-width: 560px; }
  .package, .package:first-child, .package:last-child { border-left: 0; padding: 32px 0 0; border-top: 1px solid var(--crust); margin-top: 32px; }
  .package.is-featured { border-top: 4px solid var(--heat); }
  .package:first-child { margin-top: 0; border-top: 4px solid transparent; }
  .light .package { border-top-color: var(--paper-line); }
  .light .package.is-featured { border-top-color: var(--heat); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-h { margin-top: calc(-1 * (var(--hs) * .31 + 32px)); }
  .hero-side { grid-column: 1; grid-row: 2; margin-top: 10px; }
  .hero-checks { grid-column: 1; grid-row: 3; margin-top: 18px; }
  .hero-credit { grid-column: 1; grid-row: 4; margin-top: 18px; }
  .final-grid { grid-template-columns: 1fr; }
  .final-credit { grid-column: 1; grid-row: 3; text-align: left; margin-top: 24px; }
  .records { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-photo { display: none; }
  .nl-row { grid-template-columns: 1fr; gap: 28px; }
  .nl-photo { max-width: 420px; }
  .panels { grid-template-columns: 1fr; gap: 56px; }
  .panel-img { max-width: 420px; }
  .sec { --gap: 120px; }
}
@media (max-width: 860px) {
  .logo { height: 42px; }
  .header-cta .btn-sm { font-size: 14px; padding: 8px 12px; }
  .cards-3 { gap: 0; }
  .aud, .cards-3 .aud { border-left: 0; border-bottom: 1px solid var(--crust); padding: 0 0 28px; margin-bottom: 28px; }
  .aud:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .light .aud { border-color: var(--paper-line); }
  .flow, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-media img { aspect-ratio: 4 / 3; }
  .split-sample { grid-template-columns: 1fr; }
  .pages { --pw: min(360px, calc(100% - 64px)); width: var(--pw); margin-bottom: 48px; }
  .stats { gap: 24px; }
  .stats div { border: 0; padding: 0; }
  .testimonials { gap: 40px; }
  .reel { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .frame-a { grid-row: auto; aspect-ratio: 16 / 9; }
  .frame-b, .frame-c { display: none; }
  .hero-h { margin-top: -32px; }
  .hero-headline { font-size: clamp(44px, 12vw, 64px); }
}
@media (max-width: 860px) {
  /* The key-value lists (contact details, research field) stack their columns on narrow screens like the engine does; the 170 px column above would push long values past the viewport. */
  .kv { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .flow, .steps { grid-template-columns: 1fr; }
  .flow .step, .steps .step { padding-top: 84px; }
  .community-band { padding: 80px 0 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .section-head h2, .head h2 { font-size: 36px; }
  .newsletter-form, .nl-row .newsletter-form { flex-direction: column; }
  .newsletter-form input[type=email] { height: 52px; }
  .page-hero h1 { font-size: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .sec { --gap: 88px; }
  .seis { margin-bottom: 44px; }
  .sec .rule { margin-bottom: 44px; }
  .head { margin-bottom: 40px; }
  .final-grid { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-headline, .final-h.heating { animation: none; }
  .thermo-marker { transition: none; }
  .marquee { animation: none; }
}
