/* site.css: shared styles for every page of the academy site, design "Beam" (lighthouse light on night navy).
   Source of truth: build/assets/site.css. build_site.py copies it to platform/assets/ and drops @font-face rules
   whose woff2 file is not in build/assets/fonts/ yet, so the fallback stack is used until the files are added.
   Mobile first. Breakpoints: 600 · 768 · 900 · 1024 · 1240 · 1440. No external requests, no frameworks.
   Motion: html[data-motion="off"] (pause button, remembered) and prefers-reduced-motion stop every loop. */

/* ---------- 0. Fonts (files are added after the owner approves them; see docs/SITE-ARCHITECTURE.md) ---------- */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/geologica-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/geologica-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@view-transition { navigation: auto; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --ray { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  /* night: backgrounds from deepest to raised */
  --night-950: #03050a;
  --night-900: #060a12;
  --night-850: #08101c;
  --night-800: #0c1424;
  --night-700: #121c31;
  --night-600: #1b2742;
  --line: rgba(150, 180, 225, .14);
  --line-strong: rgba(150, 180, 225, .28);

  /* ink: text on night (contrast on night-900) */
  --ink: #eef3fb;        /* 17.8:1 */
  --ink-soft: #c3cee0;   /* 12.5:1 */
  --ink-mute: #9aa9c2;   /*  8.3:1, 6.8:1 on cards */
  --ink-read: #dbe3ef;   /* long reading */

  /* light: the lamp and its signals */
  --beam: #ffc861;       /* 12.9:1 */
  --beam-hot: #fff1c9;
  --beam-deep: #ff9f2e;
  --beam-ink: #1b1203;   /* text on amber, 12.1:1 */
  --signal: #63e3ff;     /* 13.2:1 */
  --mint: #7ef0c0;       /* 14.3:1 */
  --flare: #ff8a7a;      /*  8.7:1 */
  --focus: #9ef0ff;

  /* type: one scale, ascending */
  --font-display: "Unbounded", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-text: "Geologica", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-xs: .75rem;                                         /* 12: the floor for any text */
  --fs-sm: .875rem;                                        /* 14 */
  --fs-base: 1rem;                                         /* 16 */
  --fs-md: 1.125rem;                                       /* 18 */
  --fs-lg: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);         /* 19-23 */
  --fs-xl: clamp(1.55rem, 1.2rem + 1.4vw, 2.5rem);         /* section titles */
  --fs-2xl: clamp(1.9rem, 1.3rem + 2.5vw, 3.5rem);         /* page titles */
  --fs-3xl: clamp(2.15rem, 1.2rem + 4.1vw, 4.6rem);        /* home hero */
  --lh-tight: 1.06;
  --lh-snug: 1.22;
  --lh-text: 1.6;
  --lh-read: 1.72;

  /* space: 4px base */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(3.5rem, 2.6rem + 4.5vw, 7.5rem);
  --gutter: 16px;
  --container: 1240px;
  --narrow: 820px;

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -32px rgba(0, 0, 0, .85);
  --glow-beam: 0 0 0 1px rgba(255, 214, 140, .55) inset, 0 12px 40px -12px rgba(255, 186, 72, .7);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .18s;
  --t-mid: .4s;
  --t-slow: .9s;

  --header-h: 64px;
  --tap: 44px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }
@media (min-width: 1440px) { :root { --container: 1320px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: clip; background: var(--night-900);
}
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--night-900); color: var(--ink);
  font-family: var(--font-text); font-size: var(--fs-base); line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
main { flex: 1; width: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: var(--beam-hot); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 200, 97, .5); }
a:hover { text-decoration-color: var(--beam); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 200, 97, .35); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: var(--lh-snug); letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
code, pre, kbd { font-family: var(--font-mono); }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- 3. Utilities ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); margin-inline: auto; }
.page-body { padding-block: var(--s-6) var(--section-y); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 200; padding: .7rem 1rem; border-radius: var(--r-sm); background: var(--beam); color: var(--beam-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.no-js .copy-btn, .no-js .motion-btn, .no-js .done-box, .no-js .menu-btn, .no-js .legend-btn { display: none !important; }

.kicker {
  display: flex; align-items: center; gap: .75rem; margin: 0;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--beam);
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; flex: none; background: linear-gradient(90deg, transparent, var(--beam)); box-shadow: 0 0 10px rgba(255, 200, 97, .8); }
.kicker a { display: inline-flex; align-items: center; min-height: var(--tap); color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--beam-hot); }
.beam-text {
  background: linear-gradient(100deg, var(--beam-hot) 0%, var(--beam) 30%, var(--beam-deep) 55%, var(--beam) 75%, var(--beam-hot) 100%);
  background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}
/* a thin light line under the key phrase of the hero title */
.accent-line { position: relative; white-space: nowrap; }
.accent-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--beam) 15%, var(--beam-hot) 50%, var(--beam) 85%, transparent);
  box-shadow: 0 0 12px rgba(255, 200, 97, .8); transform-origin: left; animation: draw-line 1.6s var(--ease-out) .9s both;
}
.section { position: relative; padding-block: var(--section-y); }
.section + .section { padding-top: calc(var(--section-y) * .5); }
.section-block { margin-top: var(--s-8); }
.section__head { max-width: 46rem; }
.section__title { margin-top: .8rem; font-size: var(--fs-xl); letter-spacing: -.02em; }
.section__title a { color: inherit; text-decoration: none; }
.section__title a:hover { color: var(--beam-hot); }
.section__lead { margin-top: .9rem; max-width: 62ch; color: var(--ink-soft); font-size: var(--fs-md); }
.source-note, .note { margin-top: var(--s-4); color: var(--ink-mute); font-size: var(--fs-sm); }
.horizon { position: relative; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent); }
.horizon::after { content: ""; position: absolute; top: -2px; left: 0; width: 120px; height: 5px; border-radius: 5px; background: radial-gradient(closest-side, var(--beam-hot), rgba(255, 200, 97, .5) 45%, transparent); animation: travel 9s var(--ease-in-out) infinite; }

/* entrance: the hero copy comes out of the fog; blocks below simply fade up (no blur on phones) */
[data-hero-in] { animation: defog-lite 1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@media (min-width: 1024px) { [data-hero-in] { animation-name: defog; animation-duration: 1.4s; } }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 4. Primitives ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--ink);
  font-family: var(--font-text); font-weight: 600; font-size: var(--fs-base); line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), background-color var(--t-mid), color var(--t-mid), border-color var(--t-mid);
}
.btn:hover { border-color: rgba(255, 200, 97, .6); color: var(--beam-hot); background: rgba(255, 200, 97, .06); }
.btn:active { transform: scale(.97); }
.btn .ico { width: 18px; height: 18px; transition: transform var(--t-mid) var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { color: var(--beam-ink); border: 0; background: linear-gradient(180deg, #ffdc95, #ffbf4d); box-shadow: var(--glow-beam); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .65) 48%, transparent 66%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn-primary:hover { color: var(--beam-ink); background: linear-gradient(180deg, #ffe3a8, #ffc65e); box-shadow: 0 0 0 1px rgba(255, 230, 180, .9) inset, 0 16px 50px -10px rgba(255, 186, 72, .9); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .03); }
.btn-lg { min-height: 56px; padding-inline: 1.7rem; font-size: var(--fs-md); }
.btn-sm { min-height: var(--tap); padding: .45rem 1rem; font-size: var(--fs-sm); }
.link-button { min-height: var(--tap); padding: 0 .25rem; border: 0; background: none; color: var(--beam-hot); text-decoration: underline; text-decoration-color: rgba(255, 200, 97, .5); text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--ink-soft); transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast); }
.icon-btn:hover { color: var(--beam-hot); border-color: rgba(255, 200, 97, .6); }

.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: .4rem 1rem;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .025);
  color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.25; text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-mid), color var(--t-mid), background-color var(--t-mid);
}
a.chip:hover, button.chip:hover { border-color: rgba(255, 200, 97, .65); color: var(--beam-hot); background: rgba(255, 200, 97, .08); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { border-color: var(--beam); color: var(--beam-ink); background: var(--beam); font-weight: 600; }
.chip[aria-pressed="true"] .count { color: var(--beam-ink); opacity: .75; }
.chip .ico { width: 16px; height: 16px; }
.chip .count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-mute); }
.chip-list, .chip-row { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chip-list > li { display: contents; }

.badge, .tag {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .04em; line-height: 1.3;
  border: 1px solid var(--line-strong); color: var(--ink-soft); white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge--changing, .tag-changing { color: var(--beam); border-color: rgba(255, 200, 97, .45); background: rgba(255, 200, 97, .07); }
.badge--emerging, .tag-emerging { color: var(--signal); border-color: rgba(99, 227, 255, .45); background: rgba(99, 227, 255, .07); }
.badge--leaving, .tag-leaving { color: var(--flare); border-color: rgba(255, 138, 122, .45); background: rgba(255, 138, 122, .07); }
.tag-level { color: var(--mint); border-color: rgba(126, 240, 192, .4); background: rgba(126, 240, 192, .06); }
.tag-free { color: var(--mint); border-color: rgba(126, 240, 192, .4); }
.tag-freemium { color: var(--signal); border-color: rgba(99, 227, 255, .4); }
.tag-paid { color: var(--beam); border-color: rgba(255, 200, 97, .4); }

.card {
  position: relative; isolation: isolate; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 33, 56, .7), rgba(10, 16, 29, .82)); box-shadow: var(--shadow-card);
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid), box-shadow var(--t-mid);
}
:where(a.card) { display: block; } a.card { color: inherit; text-decoration: none; }
a.card:hover, .card:has(.card-link:hover) { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card), 0 30px 60px -30px rgba(255, 186, 72, .35); }
/* pointer light (desktop only; JS sets --mx / --my) */
@media (hover: hover) and (pointer: fine) {
  [data-glow]::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 200, 97, .11), transparent 45%); opacity: 0; transition: opacity var(--t-mid); }
  [data-glow]:hover::after { opacity: 1; }
}
.notice { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; margin-top: var(--s-5); padding: 1rem 1.15rem; border-radius: var(--r-md); border: 1px solid rgba(99, 227, 255, .28); background: rgba(99, 227, 255, .05); color: var(--ink-soft); font-size: var(--fs-sm); }
.notice > .ico { color: var(--signal); margin-top: .1rem; }
.disclaimer { margin-top: var(--s-5); padding: 1rem 1.15rem; border-radius: var(--r-md); border: 1px solid rgba(99, 227, 255, .28); background: rgba(99, 227, 255, .05); color: var(--ink-soft); font-size: var(--fs-sm); }
.verified { margin-top: var(--s-6); color: var(--ink-mute); font-size: var(--fs-sm); }
.verified a { display: inline-flex; align-items: center; min-height: var(--tap); }
.tile {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
  background: radial-gradient(circle at 30% 20%, rgba(255, 200, 97, .3), transparent 60%), var(--night-700);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 97, .35), 0 8px 24px -10px rgba(255, 186, 72, .6);
}
.tile--lg { width: 60px; height: 60px; border-radius: 18px; font-size: 1.75rem; }
.meter { position: relative; display: block; height: 6px; border-radius: 6px; background: var(--night-600); overflow: hidden; }
.meter--lg { height: 10px; }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--beam-deep), var(--beam), var(--beam-hot)); box-shadow: 0 0 12px rgba(255, 200, 97, .6); transition: width .8s var(--ease-out); }

/* ---------- 5. Header, menu, footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color var(--t-mid), border-color var(--t-mid); }
.site-header.is-scrolled, .menu-open .site-header, .page-lesson .site-header { background: rgba(6, 10, 18, .94); border-bottom-color: var(--line); }
@media (min-width: 1024px) {
  .site-header.is-scrolled, .menu-open .site-header, .page-lesson .site-header { background: rgba(6, 10, 18, .76); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
}
.header-inner { height: 100%; display: flex; align-items: center; gap: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; min-height: var(--tap); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand__mark { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(255, 200, 97, .45)); transition: transform var(--t-mid) var(--ease-out); }
.brand:hover { color: var(--ink); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .85rem; border-radius: var(--r-pill); color: var(--ink-soft); text-decoration: none; font-size: .95rem; transition: color var(--t-fast), background-color var(--t-fast); }
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.site-nav a[aria-current="page"] { color: var(--beam-hot); background: rgba(255, 200, 97, .08); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.header-start { padding-inline: 1rem; }
.page-home .header-start { display: none; }
.page-home .site-header.is-past-start .header-start { display: inline-flex; animation: rise .4s var(--ease-out); }
.motion-btn .ico { width: 18px; height: 18px; }
.motion-btn .ico-play, .motion-btn[aria-pressed="true"] .ico-pause { display: none; }
.motion-btn[aria-pressed="true"] .ico-play { display: block; }
.motion-btn[aria-pressed="true"] { color: var(--beam); border-color: rgba(255, 200, 97, .5); }
.header-tools > .motion-btn { display: none; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--t-mid) var(--ease-out), background-color var(--t-fast); }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { transform: translateY(-6px); }
.menu-btn__bars::after { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; max-height: calc(100vh - var(--header-h)); overflow: auto; padding: var(--s-4) var(--gutter) var(--s-6); background: rgba(6, 10, 18, .98); border-bottom: 1px solid var(--line); animation: drop var(--t-mid) var(--ease-out); }
.mobile-menu__list, .mobile-menu__extra { list-style: none; display: grid; }
.mobile-menu__list a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.mobile-menu__list a::after { content: "→"; color: var(--beam); }
.mobile-menu__list a[aria-current="page"] { color: var(--beam-hot); }
.mobile-menu__extra { margin-top: var(--s-4); grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.mobile-menu__extra a { display: flex; align-items: center; min-height: var(--tap); color: var(--ink-soft); text-decoration: none; font-size: var(--fs-sm); }
.mobile-menu .lang-switch { margin-top: var(--s-4); }
.lang-switch { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: rgba(255, 255, 255, .02); }
.lang-switch a { display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); padding: 0 .8rem; border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none; transition: color var(--t-fast), background-color var(--t-fast); }
.lang-switch--short a { min-height: 36px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; }
.lang-switch a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.lang-switch a[aria-current="true"] { background: var(--beam); color: var(--beam-ink); font-weight: 600; }
.header-tools > .lang-switch { display: none; }
.no-js .site-header { height: auto; }
.no-js .header-inner { flex-wrap: wrap; padding-block: .5rem; }
.no-js .site-nav { display: block; order: 3; width: 100%; margin: 0; }
.no-js .site-nav ul { flex-wrap: wrap; }
@media (min-width: 360px) { .header-tools > .motion-btn { display: inline-grid; } }
@media (min-width: 768px) { .header-tools > .lang-switch { display: inline-flex; } }
@media (min-width: 1024px) {
  .site-nav { display: block; }
  .menu-btn, .mobile-menu { display: none !important; }
  .header-tools { margin-left: .5rem; }
}

.site-footer { position: relative; overflow: clip; margin-top: auto; padding: var(--s-8) 0 var(--s-6); border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(255, 200, 97, .12), transparent 60%), var(--night-950); }
.footer-grid { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand { display: grid; gap: 1rem; justify-items: start; max-width: 30rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.footer-col h2 { font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.footer-col ul { margin-top: .5rem; list-style: none; display: grid; }
.footer-col a { display: flex; align-items: center; min-height: var(--tap); line-height: 1.3; color: var(--ink-soft); text-decoration: none; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--beam-hot); }
.footer-independence { margin-top: var(--s-6); max-width: 60ch; color: var(--ink-mute); font-size: var(--fs-sm); }
.footer-word { margin-top: var(--s-6); font-family: var(--font-display); font-weight: 800; line-height: .9; letter-spacing: -.04em; font-size: clamp(3rem, 14vw, 12rem); white-space: nowrap; user-select: none; color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(100deg, transparent 0 40%, rgba(255, 220, 150, .5) 50%, transparent 60% 100%) no-repeat, linear-gradient(180deg, rgba(150, 180, 225, .12), rgba(150, 180, 225, .03)); background-size: 300% 100%, 100% 100%; -webkit-background-clip: text; background-clip: text; animation: sweep-text 9s var(--ease-in-out) infinite; }
.footer-bottom a { color: var(--ink-soft); text-decoration-color: var(--line); }
.footer-bottom { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; justify-content: space-between; color: var(--ink-mute); font-size: var(--fs-sm); }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- 6. Breadcrumbs, page hero ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .35rem; font-size: var(--fs-sm); color: var(--ink-mute); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--beam-hot); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb [aria-current="page"] { color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
@media (max-width: 599px) {
  .breadcrumb > * { display: none; }
  .breadcrumb > a:nth-last-child(3) { display: inline-flex; }
  .breadcrumb > a:nth-last-child(3)::before { content: "←"; margin-right: .45rem; color: var(--beam); }
}
.page-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(.5rem, 2vw, 1.5rem) 0 clamp(2.25rem, 5vw, 4rem);
  background: radial-gradient(ellipse 60% 70% at 90% 0%, rgba(255, 200, 97, .13), transparent 60%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(70, 110, 180, .14), transparent 60%), linear-gradient(180deg, #050912, #08101c);
  border-bottom: 1px solid var(--line);
}
.page-hero__beam { position: absolute; z-index: -1; right: -10%; top: -30%; width: 120%; height: 160%; pointer-events: none; background: conic-gradient(from 228deg at 100% 0%, transparent 0deg, rgba(255, 214, 140, .11) 8deg, rgba(255, 214, 140, .02) 18deg, transparent 24deg); transform-origin: 100% 0%; animation: page-beam 14s var(--ease-in-out) infinite alternate; }
.page-hero .kicker { margin-top: var(--s-4); }
.page-hero h1 { margin-top: .7rem; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; max-width: 24ch; }
.page-hero .lead { margin-top: var(--s-4); max-width: 46rem; color: var(--ink-soft); font-size: var(--fs-md); }
.hero-cta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.meta-row { margin-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; color: var(--ink-soft); font-size: var(--fs-sm); }
.meta-row > li, .meta-item { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.meta-item .ico { width: 16px; height: 16px; color: var(--beam); }

/* ---------- 7. Home: hero, lighthouse, finder ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip; min-height: min(100svh, 980px);
  margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(1rem, 3vw, 3rem)); padding-bottom: 140px;
  display: flex; align-items: center;
  background: radial-gradient(ellipse 80% 60% at 85% 20%, rgba(255, 200, 97, .10), transparent 60%), radial-gradient(ellipse 70% 50% at 10% 100%, rgba(70, 110, 180, .16), transparent 60%), linear-gradient(180deg, #050912 0%, #0a1222 55%, #07101c 100%);
}
.hero__scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__sky { position: absolute; inset: 0 0 30% 0; background-image: radial-gradient(1.2px 1.2px at 8% 14%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1px 1px at 18% 32%, rgba(255,255,255,.55), transparent 60%), radial-gradient(1.4px 1.4px at 27% 9%, rgba(255,241,201,.85), transparent 60%), radial-gradient(1px 1px at 36% 24%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1.2px 1.2px at 44% 6%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 52% 19%, rgba(255,255,255,.45), transparent 60%), radial-gradient(1.5px 1.5px at 61% 11%, rgba(158,240,255,.8), transparent 60%), radial-gradient(1px 1px at 68% 29%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1.2px 1.2px at 76% 7%, rgba(255,255,255,.75), transparent 60%), radial-gradient(1px 1px at 88% 22%, rgba(255,255,255,.55), transparent 60%), radial-gradient(1.3px 1.3px at 94% 12%, rgba(255,241,201,.8), transparent 60%), radial-gradient(1px 1px at 4% 40%, rgba(255,255,255,.4), transparent 60%), radial-gradient(1px 1px at 31% 44%, rgba(255,255,255,.35), transparent 60%), radial-gradient(1px 1px at 57% 38%, rgba(255,255,255,.35), transparent 60%); }
.fog { position: absolute; left: -30%; width: 160%; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 175, 220, .11), rgba(150, 175, 220, .04) 60%, transparent); }
.fog--1 { top: 14%; height: 34%; animation: fog-drift 46s ease-in-out infinite alternate; }
.fog--2, .fog--3 { display: none; }
.hero__sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; }
.hero__sea .shimmer { opacity: .4; }

/* the lighthouse. Phone: whole tower at the right of the title, fading into the fog; the beam crosses the headline */
.lh { position: absolute; z-index: -1; top: calc(var(--header-h) + 44px); right: -54px; height: 290px; width: auto; aspect-ratio: 1 / 2; overflow: visible; --sweep-a: -18deg; --sweep-b: 6deg; --sweep-mid: -6deg; -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 92%); mask-image: linear-gradient(180deg, #000 68%, transparent 92%); }
.lh .lh__rock { display: none; }
.lh__beams { mix-blend-mode: screen; }
.lh__beam { transform-origin: 200px 205px; animation: sweep 9s var(--ease-in-out) infinite alternate; }
.lh__beam--back { animation-name: sweep-back; opacity: .55; }
.lh__glow { transform-origin: 200px 205px; animation: lamp 3.2s ease-in-out infinite; mix-blend-mode: screen; }
.lh__lamp { animation: lamp-core 3.2s ease-in-out infinite; }
.mote { fill: #fff3d1; animation: mote var(--t, 10s) linear var(--dl, 0s) infinite; }
.mote--wide { display: none; }
.lh__window { animation: window-flicker 5s ease-in-out infinite; }
@media (min-width: 768px) {
  .hero { padding-bottom: clamp(7rem, 14vh, 10rem); }
  .lh { top: auto; bottom: 0; right: -56px; height: 64svh; min-height: 420px; --sweep-a: 4deg; --sweep-b: 24deg; --sweep-mid: 14deg; -webkit-mask-image: none; mask-image: none; }
  .lh .lh__rock { display: block; }
  .fog--2 { display: block; top: 44%; height: 30%; animation: fog-drift 62s ease-in-out -20s infinite alternate-reverse; opacity: .9; }
  .hero__sea { height: 130px; }
  .hero__sea .shimmer { animation: sea-glint 5s ease-in-out infinite alternate; }
  .hero__sea .shimmer:nth-of-type(2) { animation-delay: -1.7s; animation-duration: 6.5s; }
  .hero__sea .shimmer:nth-of-type(3) { animation-delay: -3.1s; }
  .hero__sea .shimmer:nth-of-type(4) { animation-delay: -.8s; animation-duration: 7.5s; }
}
@media (min-width: 1024px) {
  .lh { right: max(1vw, calc((100vw - 1560px) / 2)); height: min(86svh, 900px); min-height: 520px; --sweep-a: -7deg; --sweep-b: 15deg; --sweep-mid: 4deg; }
  .mote--wide { display: inline; }
  .fog { filter: blur(18px); }
  .fog--3 { display: block; bottom: -6%; height: 40%; animation: fog-drift 80s ease-in-out -35s infinite alternate; background: radial-gradient(closest-side, rgba(160, 185, 225, .16), rgba(160, 185, 225, .05) 60%, transparent); }
  .hero__sky { animation: twinkle 6s ease-in-out infinite alternate; }
}
.hero__content { position: relative; }
.hero__copy { position: relative; max-width: 46rem; }
/* reading veil: softens the beam behind the copy so text always wins */
.hero__copy::before { content: ""; position: absolute; z-index: -1; inset: -8% -12% -4% -30%; pointer-events: none; background: radial-gradient(closest-side, rgba(6, 10, 18, .62), rgba(6, 10, 18, .3) 60%, transparent); }
@media (min-width: 768px) and (max-width: 1023px) { .hero__copy { max-width: 36rem; } }
@media (min-width: 1024px) { .hero__copy { max-width: min(46rem, 60vw); } }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; max-width: 100%; font-size: var(--fs-sm); line-height: 1.35; color: var(--beam-hot); }
.eyebrow > span { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.eyebrow > span::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--beam); box-shadow: 0 0 8px var(--beam); }
@media (min-width: 600px) {
  .eyebrow { display: inline-flex; gap: .55rem; padding: .4rem .85rem .4rem .7rem; border-radius: var(--r-pill); border: 1px solid rgba(255, 200, 97, .35); background: rgba(255, 200, 97, .06); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .07em; text-transform: uppercase; }
  .eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--beam); animation: ping 2.4s ease-out infinite; }
  .eyebrow > span::before { display: none; }
  .eyebrow > span + span::before { display: inline; content: "·"; width: auto; height: auto; background: none; box-shadow: none; margin-right: .1rem; opacity: .7; }
}
.hero__title { margin-top: var(--s-5); font-size: var(--fs-3xl); font-weight: 700; line-height: var(--lh-tight); letter-spacing: -.03em; }
@media (max-width: 767px) { .hero__title { max-width: calc(100% - 52px); } }
.hero__title .beam-text { filter: drop-shadow(0 0 22px rgba(255, 186, 72, .35)); }
.hero__lead { margin-top: var(--s-5); max-width: 40rem; color: var(--ink-soft); font-size: var(--fs-md); }
.hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.hero__hint { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.hero__hint .ico { width: 16px; height: 16px; color: var(--beam); }
.hero__note { margin-top: var(--s-4); max-width: 40rem; color: var(--ink-mute); font-size: var(--fs-sm); }
@media (max-width: 599px) { .hero__actions .btn-primary { width: 100%; } }

.finder { position: relative; isolation: isolate; max-width: 40rem; margin-top: var(--s-6); padding: clamp(1rem, .8rem + 1vw, 1.5rem); border-radius: 28px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(20, 30, 52, .94), rgba(8, 13, 24, .96)); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .05) inset; }
.finder::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--angle), transparent 0 64%, rgba(255, 200, 97, .9) 78%, var(--beam-hot) 82%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .5; animation: orbit 7s linear infinite; transition: opacity var(--t-mid); }
.finder:focus-within::before { opacity: 1; }
@media (min-width: 1024px) { .finder { background: linear-gradient(180deg, rgba(20, 30, 52, .82), rgba(8, 13, 24, .86)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.finder__label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -.01em; }
.finder__row { margin-top: .8rem; display: grid; gap: .6rem; }
.finder__field { position: relative; }
.finder__field .ico { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--beam); pointer-events: none; }
.finder__input { width: 100%; height: 56px; padding: 0 1rem 0 2.9rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgba(3, 5, 10, .65); font-size: var(--fs-md); color: var(--ink); transition: border-color var(--t-mid), box-shadow var(--t-mid); }
.finder__input::placeholder { color: var(--ink-mute); opacity: 1; }
.finder__input:focus { outline: none; border-color: var(--beam); box-shadow: 0 0 0 4px rgba(255, 200, 97, .18), 0 0 30px -6px rgba(255, 200, 97, .5); }
.finder__btn { min-height: 56px; }
.finder__hint { margin-top: .7rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.finder__chips { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.finder__result:empty { display: none; }
.finder__result { margin-top: 1rem; display: grid; gap: .5rem; }
.match { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem .9rem; min-height: 56px; padding: .65rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--ink); text-decoration: none; animation: rise .45s var(--ease-out) both; animation-delay: var(--d, 0ms); }
a.match:hover { border-color: rgba(255, 200, 97, .6); background: rgba(255, 200, 97, .06); color: var(--ink); }
.match__name { font-weight: 600; }
.match__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: center; color: var(--ink-mute); font-size: var(--fs-sm); }
.match__go { grid-column: 2; grid-row: 1 / span 2; color: var(--beam); }
.match--none { display: block; color: var(--ink-soft); }
@media (min-width: 600px) { .finder__row { grid-template-columns: 1fr auto; } }

/* ---------- 8. Home: numbers, routes and rulers ---------- */
.stats { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats > li { display: flex; }
.stat { position: relative; flex: 1; display: block; padding: clamp(1rem, .85rem + 1vw, 1.9rem); background: var(--night-850); color: inherit; text-decoration: none; transition: background-color var(--t-mid); }
a.stat:hover { background: #0d182b; color: inherit; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--beam), transparent 80%); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .2s; }
.stats.is-in .stat::before, .no-js .stat::before { transform: scaleX(1); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; line-height: 1; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--beam); text-shadow: 0 0 28px rgba(255, 186, 72, .35); }
.stat__label { display: block; margin-top: .6rem; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.4; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.rulers { margin: var(--s-6) 0 0; padding: clamp(1rem, .8rem + 1vw, 1.75rem); border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 20, 36, .8), rgba(8, 13, 24, .8)); }
.rulers__list { list-style: none; display: grid; gap: 1.1rem; }
.ruler { --accent: var(--beam); display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .2rem .8rem; }
.ruler--earn { --accent: var(--mint); }
.ruler--build { --accent: var(--signal); }
.ruler__label { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: 600; text-decoration: none; }
.ruler__label:hover { color: var(--accent); }
.ruler.is-current .ruler__label { color: var(--accent); }
.ruler__count { color: var(--ink-mute); font-size: var(--fs-sm); white-space: nowrap; }
.ruler__count b { color: var(--accent); font-family: var(--font-display); font-size: var(--fs-lg); }
.ruler__bar { grid-column: 1 / -1; position: relative; height: 26px; border-bottom: 1px solid var(--line); }
.ruler__ticks { position: absolute; left: 0; bottom: 0; width: var(--w); height: 26px; overflow: visible; clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease-out); }
.ruler__minor { stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .75; }
.ruler__major { stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px var(--accent)); }
.js .rulers:not(.is-in) .ruler__ticks { clip-path: inset(0 100% 0 0); }
.ruler:nth-child(2) .ruler__ticks { transition-delay: .2s; }
.ruler:nth-child(3) .ruler__ticks { transition-delay: .4s; }
.rulers__cap { margin-top: 1rem; display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-mute); font-size: var(--fs-sm); }
.rulers__key { flex: none; width: 14px; height: 18px; margin-top: .1rem; background: linear-gradient(90deg, var(--beam) 0 1.5px, transparent 1.5px 5px, var(--beam) 5px 6.5px, transparent 6.5px 10px, var(--beam) 10px 11.5px, transparent 11.5px) bottom / 100% 12px no-repeat; }

.routes-grid { margin-top: var(--s-6); display: grid; gap: var(--s-4); list-style: none; }
.routes-grid > li { display: flex; }
@media (min-width: 1024px) { .routes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.route-card { --accent: var(--beam); flex: 1; display: flex; flex-direction: column; padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.route-card--earn { --accent: var(--mint); }
.route-card--build { --accent: var(--signal); }
.route-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.route-card__index { color: var(--accent); }
.route-card__title { margin-top: .9rem; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); letter-spacing: -.02em; }
.route-card__title a { color: var(--ink); text-decoration: none; }
.route-card__title a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.route-card__foot .btn { position: relative; z-index: 1; }
@media (min-width: 1024px) { .route-card__title { min-height: 2.6em; } }
.route-card__title a:hover { color: var(--accent); }
.track { position: relative; margin: 1.2rem 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.track::after { content: ""; position: absolute; left: 0; top: 50%; height: 1px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
.track__dot { position: relative; z-index: 1; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--night-700); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .35s, box-shadow .35s, transform .35s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.route-card.is-in .track::after, .no-js .track::after { transform: scaleX(1); }
.route-card.is-in .track__dot, .no-js .track__dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.route-card__for { color: var(--ink-soft); }
.route-card__result { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
.route-card__result-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.route-card__result p { margin-top: .4rem; color: var(--ink); }
.route-card__foot { margin-top: auto; padding-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.route-card__count { font-family: var(--font-display); font-weight: 600; }
.route-card__count strong { margin-right: .3rem; color: var(--accent); font-weight: 700; font-size: 1.6rem; }
.route-card .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 9. Home: professions map, doors, manifesto, FAQ ---------- */
.prof-grid { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .prof-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; } }
.fates { margin-top: var(--s-5); display: grid; gap: 1rem; }
.fatebar { display: flex; gap: 2px; height: 12px; border-radius: var(--r-pill); overflow: hidden; background: var(--night-700); }
.fatebar__seg { width: var(--w); height: 100%; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out); }
.fatebar__seg:nth-child(2) { transition-delay: .25s; }
.fatebar__seg:nth-child(3) { transition-delay: .45s; }
.is-in .fatebar__seg, .no-js .fatebar__seg { transform: scaleX(1); }
.fatebar__seg--changing { background: linear-gradient(90deg, var(--beam-deep), var(--beam)); }
.fatebar__seg--emerging { background: var(--signal); }
.fatebar__seg--leaving { background: var(--flare); }
.fate-gauge .fatebar__seg { opacity: .35; }
.fate-gauge .fatebar__seg.is-current { opacity: 1; box-shadow: 0 0 14px currentColor; }
.fate-rows { list-style: none; display: grid; }
.fate-rows a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; }
.fate-rows a:hover { color: var(--ink); }
.fate-rows b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.fate-row--changing b { color: var(--beam); }
.fate-row--emerging b { color: var(--signal); }
.fate-row--leaving b { color: var(--flare); }
.fate-row.is-current a { color: var(--ink); font-weight: 600; }
.fate-note { color: var(--ink); font-size: var(--fs-md); }

.map { margin: 0; padding: clamp(1rem, .8rem + 1vw, 1.75rem); }
.map__rows { display: grid; gap: .6rem; }
.map__row { display: grid; gap: .25rem; }
.map__label { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink-mute); font-size: var(--fs-sm); line-height: 1.3; text-decoration: none; }
a.map__label:hover { color: var(--beam-hot); }
.map__dots { display: flex; flex-wrap: wrap; gap: 7px; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none; transition: transform .3s var(--ease-out), box-shadow .3s, opacity .5s var(--ease-out); transition-delay: 0s, 0s, calc(var(--i, 0) * 9ms); }
.dot--changing { background: radial-gradient(circle at 35% 35%, var(--beam-hot), var(--beam) 55%, var(--beam-deep)); }
.dot--emerging { background: radial-gradient(circle at 35% 35%, #d8f8ff, var(--signal) 60%); }
.dot--leaving { background: transparent; box-shadow: inset 0 0 0 2px var(--flare); }
.map .dot[data-href] { cursor: pointer; }
@media (hover: hover) { .map .dot:hover { transform: scale(1.5); box-shadow: 0 0 16px rgba(255, 220, 150, .8); } }
.js .map:not(.is-in) .dot { opacity: 0; transform: scale(.2); }
.map[data-focus="changing"] .dot:not(.dot--changing), .map[data-focus="emerging"] .dot:not(.dot--emerging), .map[data-focus="leaving"] .dot:not(.dot--leaving) { opacity: .14; transition-delay: 0s; }
.map[data-focus="changing"] .dot--changing, .map[data-focus="emerging"] .dot--emerging { transform: scale(1.15); }
.map__foot { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.map__readout { min-height: 1.6em; font-size: var(--fs-sm); color: var(--beam-hot); }
.map__legend { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.legend-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-size: var(--fs-sm); }
.legend-btn .dot { width: 11px; height: 11px; }
.legend-btn:hover, .legend-btn[aria-pressed="true"] { border-color: rgba(255, 200, 97, .55); color: var(--ink); background: rgba(255, 200, 97, .06); }
@media (min-width: 600px) { .map__row { grid-template-columns: 12.5rem 1fr; align-items: center; gap: 1rem; } .map__foot { grid-template-columns: 1fr auto; align-items: center; } }

.prof-cards { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; list-style: none; }
.prof-cards > li { display: flex; }
@media (min-width: 768px) { .prof-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.prof-card { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1rem 1.1rem; min-height: 170px; }
.prof-card__sector { font-size: var(--fs-xs); color: var(--ink-mute); line-height: 1.35; }
.prof-card__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, .92rem + .3vw, 1.15rem); line-height: 1.25; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.prof-card__text { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prof-card .badge { margin-top: auto; align-self: flex-start; }
.prof-card--all { justify-content: center; background: linear-gradient(135deg, rgba(255, 200, 97, .16), rgba(255, 200, 97, .03)); border-color: rgba(255, 200, 97, .35); }
.prof-card--all .prof-card__name { color: var(--beam-hot); }
.prof-card--all .ico { width: 26px; height: 26px; color: var(--beam); margin-top: auto; transition: transform var(--t-mid) var(--ease-out); }
.prof-card--all:hover .ico { transform: translateX(6px); }
@media (max-width: 420px) { .prof-card__text { display: none; } .prof-card { min-height: 128px; } }

.doors { margin-top: var(--s-6); display: grid; gap: var(--s-4); list-style: none; }
.doors > li { display: flex; }
@media (min-width: 768px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .2rem .8rem; padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.door__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 1; color: var(--beam); letter-spacing: -.03em; }
.door__word { color: var(--ink-mute); font-size: var(--fs-sm); }
.door__title { grid-column: 1 / -1; margin-top: .8rem; font-size: var(--fs-lg); }
.door p { grid-column: 1 / -1; margin-top: .4rem; color: var(--ink-soft); }
.door__go { grid-column: 1 / -1; margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--beam-hot); font-weight: 600; }
.home-extra { margin-top: var(--s-5); }

.americas { overflow: clip; }
.americas__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .americas__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-8, 4rem); } }
.americas__langs { margin-top: var(--s-5); }
.americas__map { position: relative; justify-self: center; width: min(82%, 460px); }
.americas__map::before { content: ""; position: absolute; inset: -12% -30%; z-index: -1; background: radial-gradient(ellipse 50% 45% at 50% 40%, rgba(255, 200, 97, .13), transparent 70%); pointer-events: none; }
.americas__map .amap { display: block; width: 100%; height: auto; }
.americas__labels { list-style: none; margin: 0; padding: 0; }
.americas__labels li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1px 8px var(--night-950), 0 0 2px var(--night-950); }
.americas__labels li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--beam); box-shadow: 0 0 10px var(--beam); flex: none; }
.manifesto { overflow: clip; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 200, 97, .10), transparent 70%), var(--night-950); }
.manifesto__rays { position: absolute; left: 50%; top: -10%; width: 220vmax; height: 220vmax; translate: -50% -50%; pointer-events: none; background: repeating-conic-gradient(from var(--ray) at 50% 50%, rgba(255, 200, 97, .075) 0deg 4deg, transparent 4deg 15deg); -webkit-mask: radial-gradient(circle, #000 0%, transparent 32%); mask: radial-gradient(circle, #000 0%, transparent 32%); }
@media (min-width: 1024px) { .manifesto__rays { animation: rays 90s linear infinite; } }
.manifesto .container { position: relative; }
.manifesto__text { margin-top: var(--s-5); max-width: 22ch; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-3xl); line-height: 1.16; letter-spacing: -.025em; }
.manifesto__text .w { display: inline; transition: opacity .8s var(--ease-out), color .8s; transition-delay: calc(var(--i) * 60ms); }
.js .manifesto__text:not(.is-in) .w { opacity: .12; }
.manifesto__cta { margin-top: var(--s-7); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }

.faq { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); } .faq__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq__more { margin-top: var(--s-5); }
.faq__list .faq__more { margin-top: var(--s-4); }
.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
details.faq-item > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; min-height: 64px; padding: 1rem .25rem; }
details.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--beam); }
.faq-item__q { font-family: var(--font-text); font-weight: 600; font-size: clamp(1.02rem, .96rem + .3vw, 1.15rem); line-height: 1.4; letter-spacing: 0; transition: color var(--t-fast); }
details.faq-item > summary:hover .faq-item__q { color: var(--beam-hot); }
.faq-item__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform var(--t-mid) var(--ease-out), background-color var(--t-mid), border-color var(--t-mid); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; translate: -50% -50%; background: currentColor; border-radius: 2px; }
.faq-item__icon::after { rotate: 90deg; }
details.faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--beam); border-color: var(--beam); color: var(--beam-ink); }
.faq-item__a { padding: 0 .25rem 1.4rem; color: var(--ink-soft); max-width: 64ch; }
div.faq-item { padding-block: var(--s-5); }
div.faq-item h2, div.faq-item h3 { font-family: var(--font-text); font-size: var(--fs-lg); letter-spacing: 0; }
div.faq-item > p { margin-top: .6rem; color: var(--ink-soft); }
.faq-links { margin-top: .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.faq-links__label { color: var(--ink-mute); font-size: var(--fs-sm); }
.faq-links > a:not(.chip) { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .3rem; }
.independence { margin-top: var(--s-5); }

/* ---------- 10. Catalog hubs: toolbar, cards ---------- */
.toolbar { margin-top: var(--s-5); display: grid; gap: .9rem; }
.search-box { position: relative; max-width: 40rem; }
.search-box svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--beam); pointer-events: none; }
.search-box input { width: 100%; height: 52px; padding: 0 1rem 0 2.9rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgba(3, 5, 10, .65); font-size: var(--fs-base); color: var(--ink); }
.search-box input::placeholder { color: var(--ink-mute); opacity: 1; }
.search-box input:focus { outline: none; border-color: var(--beam); box-shadow: 0 0 0 4px rgba(255, 200, 97, .18); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.chips-label { width: 100%; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
@media (max-width: 767px) { .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } .chips::-webkit-scrollbar { display: none; } .chips .chip { flex: none; } .chips-label { flex: none; width: auto; margin-right: .3rem; } }
.calc-index { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: .5rem; }
.count-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.count-line strong { color: var(--beam); font-family: var(--font-display); }
.cat-group { margin-top: var(--s-7); }
.cat-group > h2 { font-size: var(--fs-xl); }
.cat-group > h2 a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: none; }
.cat-group > h2 a:hover { color: var(--beam-hot); }
.cat-section { margin-top: var(--s-5); }
.cat-section > h3 { display: flex; align-items: baseline; gap: .6rem; font-size: var(--fs-lg); }
.cat-section > h3 a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink-soft); text-decoration: none; }
.cat-section > h3 a:hover { color: var(--beam-hot); }
.cat-section .count, .cat-group .count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--beam); padding: .15rem .55rem; border-radius: var(--r-pill); border: 1px solid rgba(255, 200, 97, .35); }
.cards { margin-top: var(--s-4); display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); list-style: none; }
.cards > li { display: flex; }
.cards > li > .card, .cards > .card { flex: 1; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.cards .card { display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem 1.15rem 1rem; }
.card-head { display: flex; align-items: center; gap: .85rem; }
.card-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: radial-gradient(circle at 30% 20%, rgba(255, 200, 97, .25), transparent 60%), var(--night-700); box-shadow: inset 0 0 0 1px rgba(255, 200, 97, .3); }
.card-link { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); line-height: 1.3; color: var(--ink); text-decoration: none; }
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:hover { color: var(--beam-hot); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::before { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-sub { display: block; margin-top: .15rem; color: var(--ink-mute); font-size: var(--fs-xs); }
.card-text { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.5; }
.card-foot { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.card-more { color: var(--beam-hot); font-size: var(--fs-sm); font-weight: 600; }
.stub, .empty-note { margin-top: var(--s-6); padding: 1.4rem; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); color: var(--ink-soft); display: grid; gap: .3rem; }

/* ---------- 11. Course, library, routes ---------- */
.progress-box { margin-top: 0; display: grid; gap: .9rem; padding: 1.2rem 1.25rem; }
.progress-box__count { margin-top: .5rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); }
.progress-box__note { margin-top: .3rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.progress-box .btn { justify-self: start; }
@media (min-width: 900px) { .progress-box { grid-template-columns: minmax(0, 1fr) 220px auto; align-items: center; gap: 1.5rem; } }
.page-body > .progress-box + .section-block, .page-body > .rulers + .progress-box { margin-top: var(--s-5); }
.page-body > .rulers:first-child { margin-top: 0; }
.modules { display: grid; gap: .9rem; }
.mod-block { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(12, 20, 36, .6); scroll-margin-top: calc(var(--header-h) + 16px); }
.mod-block[open] { border-color: var(--line-strong); }
.mod-head { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; min-height: 64px; padding: 1rem 1.2rem; }
.mod-head::-webkit-details-marker { display: none; }
.mod-num { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--beam); }
.mod-title { grid-column: 1; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: 1.3; }
.mod-right { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: .6rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.mod-right::after { content: ""; width: 10px; height: 10px; border: solid var(--beam); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -3px; transition: rotate var(--t-mid) var(--ease-out); }
.mod-block[open] .mod-right::after { rotate: 225deg; translate: 0 3px; }
.mod-done { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--mint); padding: .15rem .55rem; border-radius: var(--r-pill); border: 1px solid rgba(126, 240, 192, .4); }
.mod-about { padding: 0 1.2rem; color: var(--ink-soft); font-size: var(--fs-sm); }
.lesson-list { list-style: none; padding: .6rem .6rem .8rem; display: grid; }
.lesson-row { position: relative; display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .2rem .8rem; align-items: start; padding: .75rem .6rem; border-radius: var(--r-sm); scroll-margin-top: calc(var(--header-h) + 16px); }
.lesson-row:hover { background: rgba(255, 255, 255, .03); }
.lesson-row .lcode { padding-top: .15rem; }
.lesson-main a { font-weight: 600; color: var(--ink); text-decoration: none; }
.lesson-main a::before { content: ""; position: absolute; inset: 0; }
.lesson-main a:hover { color: var(--beam-hot); }
.lesson-summary { display: block; margin-top: .25rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.lesson-row .tag { grid-column: 3; justify-self: end; }
.lesson-row .done-mark { grid-column: 3; justify-self: end; }
@media (max-width: 599px) { .lesson-row { grid-template-columns: 2.8rem 1fr; } .lesson-row .tag { grid-column: 2; justify-self: start; margin-top: .3rem; } .lesson-row .done-mark { position: absolute; right: .6rem; top: .8rem; } }
.lcode { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--beam); }
.done-mark { display: none; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--mint); color: #04170f; }
.done-mark .ico { width: 16px; height: 16px; }
.is-done > .done-mark, .is-done > a > .done-mark, .is-done .path__card > .done-mark { display: inline-grid; }
.is-done .lesson-main a, .is-done > a > span:not(.lcode):not(.done-mark) { color: var(--ink-soft); }
.library-teaser { margin-top: var(--s-8); padding: clamp(1.25rem, 1rem + 1vw, 2.2rem); }
.library-teaser p:last-child { margin-top: var(--s-5); }
.route-facts { margin-top: var(--s-5); display: grid; gap: .8rem; max-width: 64rem; }
@media (min-width: 900px) { .route-facts { grid-template-columns: 1fr 1fr; } }
.route-fact { padding: 1rem 1.2rem; }
.route-fact__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--beam); }
.route-fact p { margin-top: .4rem; color: var(--ink-soft); }
.route-hero--earn .kicker, .route-hero--earn .route-fact__label { color: var(--mint); }
.route-hero--build .kicker, .route-hero--build .route-fact__label { color: var(--signal); }
.stages { margin-top: var(--s-5); list-style: none; display: grid; gap: var(--s-4); position: relative; }
.stage { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.stage__num { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night-800); border: 1px solid rgba(255, 200, 97, .6); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--beam-hot); box-shadow: 0 0 0 6px var(--night-900), 0 0 18px rgba(255, 200, 97, .3); }
.stages::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--beam), rgba(255, 200, 97, .12)); }
.stage__body { padding: .8rem 1rem 1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(12, 20, 36, .6); }
.stage__body h3 { font-size: var(--fs-lg); }
.stage__count { display: block; margin-top: .2rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.stage__body ol { margin-top: .6rem; list-style: none; display: grid; }
.stage__body ol a { position: relative; display: grid; grid-template-columns: 3rem 1fr auto; gap: .6rem; align-items: center; min-height: var(--tap); padding: .45rem .5rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.stage__body ol a:hover { background: rgba(255, 200, 97, .06); color: var(--beam-hot); }

/* ---------- 12. Lesson ---------- */
.read-beam { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 3px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--beam-deep), var(--beam), var(--beam-hot)); box-shadow: 0 0 14px rgba(255, 200, 97, .85); }
.read-beam::after { content: ""; position: absolute; right: 0; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--beam-hot); box-shadow: 0 0 12px 3px rgba(255, 220, 150, .9); opacity: var(--tip, 0); }
.lesson-hero h1 { max-width: 28ch; }
.lesson-code { color: var(--beam-hot); }
.course-pos { margin-top: var(--s-4); display: grid; gap: .45rem; max-width: 30rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.lesson-hero .route-nav { margin-top: var(--s-4); }
.route-nav { padding: .8rem 1rem; border-radius: var(--r-md); border: 1px solid rgba(255, 200, 97, .3); background: rgba(255, 200, 97, .05); font-size: var(--fs-sm); }
.route-nav-title { color: var(--beam-hot); font-weight: 600; }
.route-nav-links { margin-top: .3rem; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.route-nav-links a, .route-nav-links span { display: inline-flex; align-items: center; min-height: var(--tap); }
.route-nav-links span { color: var(--ink-mute); }
.lesson-shell { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); padding-block: var(--s-5) var(--section-y); }
.lesson-article { min-width: 0; width: 100%; max-width: 46rem; justify-self: center; }
.lesson-rail { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.lesson-rail--side .toc { display: none; }
@media (min-width: 1024px) {
  .lesson-shell { grid-template-columns: minmax(0, 1fr) 280px; column-gap: var(--s-7); }
  .lesson-rail--course { grid-column: 1 / -1; }
  .lesson-rail--side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; scrollbar-width: thin; }
  .lesson-rail--side .toc { display: block; }
}
@media (min-width: 1240px) {
  .lesson-shell { grid-template-columns: 250px minmax(0, 1fr) 260px; }
  .lesson-rail--course { grid-column: auto; position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; scrollbar-width: thin; }
  .lesson-shell .coursenav > summary { display: none; }
  .lesson-shell .coursenav { border: 0; background: none; }
  .lesson-shell .coursenav__body { padding: 0; }
}
.coursenav { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(12, 20, 36, .6); }
.coursenav > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .6rem 1.1rem; font-weight: 600; }
.coursenav > summary::-webkit-details-marker { display: none; }
.coursenav > summary::after { content: ""; width: 10px; height: 10px; border: solid var(--beam); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -3px; transition: rotate var(--t-mid) var(--ease-out); }
.coursenav[open] > summary::after { rotate: 225deg; translate: 0 3px; }
.coursenav__body { padding: 0 1rem 1rem; }
.coursenav__cap { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); line-height: 1.5; }
.coursenav__list { margin-top: .6rem; list-style: none; display: grid; border-left: 1px solid var(--line-strong); }
.coursenav__list a { position: relative; display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .4rem; align-items: start; min-height: var(--tap); padding: .5rem .5rem .5rem .9rem; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-soft); text-decoration: none; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.coursenav__list a::before { content: ""; position: absolute; left: -4px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--night-600); box-shadow: inset 0 0 0 1px var(--line-strong); }
.coursenav__list a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.coursenav__list a[aria-current="page"] { color: var(--beam-hot); font-weight: 600; background: rgba(255, 200, 97, .07); }
.coursenav__list a[aria-current="page"]::before { background: var(--beam); box-shadow: 0 0 10px var(--beam); }
.coursenav__list .done-mark { width: 20px; height: 20px; }
.coursenav__list .done-mark .ico { width: 12px; height: 12px; }
.coursenav__back { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: .6rem; color: var(--ink-soft); font-size: var(--fs-sm); text-decoration: none; }
.coursenav__back:hover { color: var(--beam-hot); }
.rail-box { padding: 1rem 1.1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(12, 20, 36, .6); }
.rail-box__title { font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.toc ol { margin-top: .6rem; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .4rem 0 .4rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.4; text-decoration: none; transition: color var(--t-fast), border-color var(--t-fast); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--beam-hot); border-left-color: var(--beam); }
.lesson-related { display: grid; gap: 1rem; }
@media (min-width: 600px) and (max-width: 1023px) { .lesson-related { grid-template-columns: 1fr 1fr; } }
.link-list { margin-top: .6rem; list-style: none; display: grid; }
.link-list a { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; min-height: var(--tap); padding: .45rem .3rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4; }
.link-list a:hover { background: rgba(255, 200, 97, .06); color: var(--beam-hot); }
.item-sub { color: var(--ink-mute); }
.link-list .item { display: block; padding: .45rem .3rem; color: var(--ink-soft); font-size: var(--fs-sm); }
.link-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.link-list li > a { flex: 1; }

/* reading */
.prose { font-size: 1.0625rem; line-height: var(--lh-read); color: var(--ink-read); overflow-wrap: break-word; }
@media (min-width: 768px) { .prose { font-size: var(--fs-md); } }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 3.2rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); color: var(--ink); letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 1rem; border-radius: 2px; background: linear-gradient(90deg, var(--beam), transparent); box-shadow: 0 0 10px rgba(255, 200, 97, .7); }
.prose > h2:first-child, .prose > .lesson-source-meta + hr + h2 { margin-top: 0; }
.lesson-source-meta, .lesson-source-meta + hr { display: none; }
.prose h3 { margin-top: 2.2rem; font-family: var(--font-text); font-weight: 600; font-size: 1.2rem; letter-spacing: 0; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { margin-top: 1.6rem; font-family: var(--font-text); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .4rem; }
.prose li > p { margin: .3rem 0 0; }
.prose ul li::marker { color: var(--beam); }
.prose ol li::marker { color: var(--beam); font-family: var(--font-mono); font-size: .9em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { margin: 2.6rem 0; height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.prose :not(pre) > code { font-size: .88em; padding: .1em .35em; border-radius: 6px; background: var(--night-700); color: var(--beam-hot); overflow-wrap: anywhere; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 1rem 1.2rem; border-left: 3px solid var(--beam); border-radius: 0 var(--r-md) var(--r-md) 0; background: linear-gradient(90deg, rgba(255, 200, 97, .09), rgba(255, 200, 97, .02)); color: var(--ink); }
.prose blockquote > * + * { margin-top: .6rem; }
.prose img { height: auto; border-radius: var(--r-md); }
.metaphor-card, .callout { padding: 1rem 1.2rem; border-radius: var(--r-md); border: 1px solid; font-size: 1rem; line-height: 1.65; }
.metaphor-card { border-color: rgba(255, 200, 97, .32); background: linear-gradient(135deg, rgba(255, 200, 97, .10), rgba(255, 200, 97, .02)); }
.callout-no { border-color: rgba(255, 138, 122, .3); background: rgba(255, 138, 122, .05); }
.callout-warn { border-color: rgba(255, 200, 97, .35); background: rgba(255, 200, 97, .06); }
.callout-yes { border-color: rgba(126, 240, 192, .3); background: rgba(126, 240, 192, .05); }
.callout-tip { border-color: rgba(99, 227, 255, .3); background: rgba(99, 227, 255, .05); }
.prose .callout + .callout { margin-top: .6rem; }
/* tables: horizontal scroll inside the frame, or cards on phones for narrow tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.table-wrap th { text-align: left; padding: .75rem 1rem; font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); background: var(--night-800); vertical-align: bottom; }
.table-wrap td { padding: .75rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:hover { background: rgba(255, 200, 97, .04); }
.table-wrap caption { padding: .7rem 1rem; text-align: left; color: var(--ink-mute); font-size: var(--fs-sm); caption-side: top; }
@media (max-width: 699px) {
  .table-wrap--stack { border: 0; overflow: visible; }
  .table-wrap--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap--stack table, .table-wrap--stack tbody, .table-wrap--stack tr, .table-wrap--stack td { display: block; }
  .table-wrap--stack tr { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(12, 20, 36, .7); }
  .table-wrap--stack tr + tr { margin-top: .6rem; }
  .table-wrap--stack td { padding: .25rem 0; border: 0; }
  .table-wrap--stack td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
}
/* code and prompts */
.codeblock { margin: 1.3rem 0 0; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--night-850); overflow: hidden; }
.codeblock__bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; padding: .2rem .4rem .2rem 1rem; border-bottom: 1px solid var(--line); background: var(--night-800); }
.codeblock__label { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.codeblock__label .ico { width: 16px; height: 16px; color: var(--beam); }
.codeblock pre { margin: 0; padding: 1rem; overflow-x: auto; font-size: .88rem; line-height: 1.6; color: var(--ink-read); tab-size: 2; }
.codeblock pre code { font-family: inherit; }
.copy-btn { flex: none; min-height: 36px; min-width: var(--tap); padding: .3rem .85rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: .04em; transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
@media (pointer: coarse) { .copy-btn { min-height: var(--tap); } }
.copy-btn:hover { color: var(--beam-hot); border-color: var(--beam); }
.copy-btn:active { transform: scale(.95); }
.copy-btn.is-done { color: var(--mint); border-color: var(--mint); }
.codeblock--prompt { border-color: rgba(255, 200, 97, .4); background: linear-gradient(180deg, rgba(20, 30, 52, .9), rgba(8, 13, 24, .95)); box-shadow: 0 18px 50px -30px rgba(255, 186, 72, .45); }
.codeblock--prompt .codeblock__bar { background: transparent; border-bottom: 0; }
.codeblock--prompt .codeblock__label { color: var(--beam-hot); }
.prompt-input { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: start; margin: 0 .6rem .6rem; padding: .7rem .7rem .7rem .8rem; border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(3, 5, 10, .7); }
.prompt-input__who { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .45rem; border-radius: var(--r-pill); background: var(--night-600); color: var(--ink-soft); font-size: var(--fs-xs); font-weight: 600; }
.prompt-input__text { margin: 0; padding: .35rem 0 0 !important; overflow: visible !important; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-text) !important; font-size: 1rem !important; line-height: 1.55 !important; color: var(--ink) !important; }
.prompt-input__send { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--beam); color: var(--beam-ink); box-shadow: 0 0 16px rgba(255, 200, 97, .55); }
.prompt-input__send .ico { width: 18px; height: 18px; }
.codeblock--text pre { white-space: pre-wrap; font-family: var(--font-text); font-size: 1rem; line-height: 1.6; }
/* done toggle, next lesson, pager */
.done-box { margin-top: var(--s-7); display: grid; gap: .7rem; justify-items: start; padding: 1.2rem; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); }
.done-btn .ico { width: 20px; height: 20px; }
.done-btn[aria-pressed="true"] { border-color: var(--mint); color: #04170f; background: var(--mint); }
.done-btn[aria-pressed="true"]:hover { color: #04170f; background: #9cf5d1; }
.done-box__note { color: var(--ink-mute); font-size: var(--fs-sm); }
.next-card { margin-top: var(--s-5); display: grid; gap: .4rem; padding: 1.4rem 1.5rem; padding-right: 4rem; }
.next-card__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--beam); }
.next-card__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -.02em; }
.next-card__text { color: var(--ink-soft); font-size: var(--fs-sm); }
.next-card__go { position: absolute; right: 1.3rem; top: 50%; translate: 0 -50%; color: var(--beam); }
.next-card__go .ico { width: 26px; height: 26px; transition: transform var(--t-mid) var(--ease-out); }
.next-card:hover .next-card__go .ico { transform: translateX(5px); }
.lesson-nav { margin-top: var(--s-6); }
.lesson-nav__title { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.nav-pair { margin-top: .7rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.nav-btn { display: grid; gap: .2rem; align-content: start; min-height: 64px; padding: .8rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), background-color var(--t-fast); }
.nav-btn:hover { border-color: rgba(255, 200, 97, .55); background: rgba(255, 200, 97, .04); color: var(--ink); }
.nav-btn.right { text-align: right; }
.nav-btn.empty { border: 0; }
.nav-lbl { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--ink-mute); }
.nav-ttl { font-weight: 600; font-size: var(--fs-sm); line-height: 1.4; }
.lesson-nav .route-nav { margin-top: .9rem; }

/* ---------- 13. Record pages: profession, tool, resource ---------- */
.entity-head { margin-top: var(--s-4); display: flex; align-items: center; gap: 1rem; }
.detail-title { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.detail-kicker { margin-top: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; color: var(--ink-mute); font-size: var(--fs-sm); }
.detail-kicker a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink-soft); }
.detail-body { display: grid; gap: 0; }
.detail-section { margin-top: var(--s-7); scroll-margin-top: calc(var(--header-h) + 20px); }
.detail-body > .detail-section:first-child, .detail-body > .pill-list:first-child { margin-top: 0; }
.detail-section > h2 { font-size: var(--fs-xl); letter-spacing: -.02em; }
.detail-section > h2::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: .9rem; border-radius: 2px; background: linear-gradient(90deg, var(--beam), transparent); box-shadow: 0 0 10px rgba(255, 200, 97, .7); }
.detail-section > p { margin-top: .8rem; color: var(--ink-soft); max-width: 66ch; }
.detail-section > .section__lead { font-size: var(--fs-base); }
.bullets { margin-top: .9rem; padding-left: 1.3rem; display: grid; gap: .45rem; color: var(--ink-read); }
.bullets li::marker { color: var(--beam); }
.pill-list { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.pill { padding: .35rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-soft); font-size: var(--fs-sm); }
.detail-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.kv-list { margin-top: .6rem; list-style: none; display: grid; gap: .35rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.kv-list b { color: var(--ink); }
.muted { color: var(--ink-mute); font-size: var(--fs-sm); }
.earn-list { margin-top: .9rem; list-style: none; display: grid; gap: .6rem; }
.earn-way { margin-right: .5rem; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; color: var(--beam); }

.prof-hero__grid { display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 1024px) { .prof-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: var(--s-7); } }
.prof-hero__title { margin-top: .7rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.prof-hero__title h1 { margin: 0; font-size: clamp(2.1rem, 1.3rem + 3.8vw, 4.6rem); max-width: none; }
.fate-gauge { padding: 1.2rem 1.25rem; display: grid; gap: .8rem; }
.fate-gauge__this { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.fate-gauge__peers { color: var(--ink-soft); font-size: var(--fs-sm); }
.fate-gauge .fate-rows a { min-height: var(--tap); }
.fate-gauge .fate-rows b { font-size: 1.2rem; }
.prof-body > .detail-section:first-child { margin-top: 0; }
.changes { margin-top: var(--s-5); display: grid; gap: var(--s-4); list-style: none; }
@media (min-width: 768px) { .changes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.change { padding: 1.3rem 1.25rem; }
.change__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 200, 97, .7); }
.change p { margin-top: .9rem; color: var(--ink); }
/* "AI drafts, the person decides": two columns and the check gate between them */
.flow { margin-top: var(--s-5); display: grid; gap: 0; }
.flow__col { padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); }
.flow__col--ai { --accent: var(--signal); }
.flow__col--human { --accent: var(--beam); }
.flow__label { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.flow__label .ico { width: 18px; height: 18px; filter: drop-shadow(0 0 6px var(--accent)); }
.flow__col h3 { margin-top: .6rem; font-size: var(--fs-lg); }
.flow__col ul { margin-top: 1rem; list-style: none; display: grid; gap: .7rem; }
.flow__col li { position: relative; padding-left: 1.5rem; color: var(--ink); }
.flow__col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.flow__gate { position: relative; isolation: isolate; display: grid; justify-items: center; gap: .35rem; padding: 2.2rem 1rem; text-align: center; color: var(--ink-soft); font-size: var(--fs-sm); }
.flow__gate b { color: var(--beam-hot); font-family: var(--font-display); font-size: var(--fs-md); }
.flow__gate-beam { position: absolute; z-index: -1; left: 50%; top: 0; bottom: 0; width: 2px; translate: -50% 0; background: linear-gradient(180deg, var(--signal), var(--beam)); box-shadow: 0 0 12px rgba(255, 200, 97, .6); }
.flow__gate-beam::after { content: ""; position: absolute; left: 50%; top: 0; width: 8px; height: 8px; translate: -50% 0; border-radius: 50%; background: var(--beam-hot); box-shadow: 0 0 12px 3px rgba(255, 220, 150, .9); animation: gate-v 2.6s var(--ease-in-out) infinite; }
.flow__gate-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--night-800); border: 2px solid var(--beam); color: var(--beam); box-shadow: 0 0 0 8px var(--night-900), 0 0 26px rgba(255, 200, 97, .5); }
.flow__gate-icon .ico { width: 26px; height: 26px; }
.flow__gate > span:last-child { max-width: 30ch; background: var(--night-900); padding: .2rem .4rem; border-radius: 8px; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr); align-items: stretch; }
  .flow__gate { padding: 1rem .8rem; align-content: center; }
  .flow__gate-beam { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; translate: 0 -50%; background: linear-gradient(90deg, var(--signal), var(--beam)); }
  .flow__gate-beam::after { top: 50%; left: 0; translate: 0 -50%; animation-name: gate-h; }
}
.path { margin-top: var(--s-5); position: relative; list-style: none; display: grid; gap: var(--s-4); }
.path::before { content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--beam) 0%, rgba(255, 200, 97, .15) 30%, rgba(255, 200, 97, .15) 70%, var(--beam) 100%); }
.path__item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.path__node { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--night-800); border: 1px solid rgba(255, 200, 97, .6); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--beam-hot); box-shadow: 0 0 0 6px var(--night-900), 0 0 18px rgba(255, 200, 97, .35); }
.path__card { display: grid; gap: .4rem; padding: 1rem 1.15rem; padding-right: 3rem; }
.path__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.path__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base); letter-spacing: -.01em; }
.path__text { color: var(--ink-soft); font-size: var(--fs-sm); }
.path__go { display: inline-flex; align-items: center; gap: .4rem; color: var(--beam-hot); font-weight: 600; font-size: var(--fs-sm); }
.path__go .ico { width: 16px; height: 16px; }
.path__card > .done-mark { position: absolute; right: .9rem; top: .9rem; }
.cards--compact { margin-top: var(--s-4); }
.earn { margin-top: var(--s-5); display: grid; gap: var(--s-4); list-style: none; }
@media (min-width: 768px) { .earn { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.earn__card { display: flex; flex-direction: column; gap: .7rem; padding: 1.3rem; }
.earn__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--night-700); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--beam); }
.earn__icon .ico { width: 26px; height: 26px; }
.earn__way { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--beam); }
.earn__card p { color: var(--ink); }

/* ---------- 14. What's current, calculators, service pages ---------- */
.actual-section { margin-top: var(--s-7); }
.actual-section > h2 { font-size: var(--fs-xl); }
.actual-section .section-sub { margin-top: var(--s-5); font-size: var(--fs-lg); }
.actual-section .table-wrap { margin-top: var(--s-4); }
.assistant-grid { margin-top: var(--s-4); display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .assistant-grid { grid-template-columns: 1fr 1fr; } }
.assistant { scroll-margin-top: calc(var(--header-h) + 20px); padding: 1.3rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 56, .7), rgba(10, 16, 29, .82)); display: grid; gap: .9rem; align-content: start; }
.assistant h3 { font-size: var(--fs-lg); }
.assistant h4 { font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--beam); }
.generic-block { margin-top: .8rem; color: var(--ink-soft); }
.generic-block h3 { margin-top: 1.2rem; font-size: var(--fs-base); color: var(--ink); }
.generic-block > p + p { margin-top: .5rem; }
.sources { margin-top: .4rem; color: var(--ink-mute); font-size: var(--fs-sm); }

.calc { margin-top: var(--s-7); padding: clamp(1.2rem, 1rem + 1vw, 2rem); border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 56, .55), rgba(10, 16, 29, .7)); scroll-margin-top: calc(var(--header-h) + 20px); }
.page-body > .calc:first-child { margin-top: 0; }
.calc h2 { font-size: var(--fs-xl); }
.calc-intro { margin-top: .6rem; max-width: 64ch; color: var(--ink-soft); }
.calc-grid { margin-top: var(--s-5); display: grid; gap: 1rem; }
@media (min-width: 768px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1240px) { .calc-grid { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: .35rem; align-content: start; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field input, .stack-table input, .record-form input { width: 100%; min-height: 48px; padding: .5rem .9rem; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(3, 5, 10, .65); color: var(--ink); font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.field input:focus, .stack-table input:focus, .record-form input:focus { outline: none; border-color: var(--beam); box-shadow: 0 0 0 3px rgba(255, 200, 97, .2); }
.field input[aria-invalid="true"], .stack-table input[aria-invalid="true"] { border-color: var(--flare); }
.field .hint { color: var(--ink-mute); font-size: var(--fs-xs); line-height: 1.45; }
.calc-error { margin-top: 1rem; padding: .7rem 1rem; border-radius: var(--r-sm); border: 1px solid rgba(255, 138, 122, .4); background: rgba(255, 138, 122, .07); color: var(--flare); font-size: var(--fs-sm); }
.calc-results { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
@media (min-width: 900px) { .calc-results { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.result { padding: .9rem 1rem; background: var(--night-850); }
.result-label { color: var(--ink-mute); font-size: var(--fs-xs); line-height: 1.4; }
.result-value { margin-top: .35rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--beam); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-verdict { margin-top: 1rem; color: var(--ink); }
.calc-verdict:empty { display: none; }
.calc-explain { margin-top: 1rem; color: var(--ink-soft); font-size: var(--fs-sm); }
.calc-explain summary { display: inline-flex; align-items: center; min-height: var(--tap); cursor: pointer; color: var(--beam-hot); font-weight: 600; }
.calc-explain ul { margin: .4rem 0 .6rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.stack-table { width: 100%; border-collapse: collapse; }
.stack-table th { text-align: left; padding: .6rem .5rem; font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.stack-table td { padding: .35rem .3rem; }
.stack-table .col-num { width: 26%; }
.stack-table .col-del { width: 52px; }
.calc .table-wrap { margin-top: var(--s-4); border: 0; }
.calc [data-stack-add] { margin-top: .8rem; }
@media (max-width: 599px) { .stack-table th.col-num, .stack-table th.col-del { font-size: var(--fs-xs); } .stack-table td { padding: .3rem .15rem; } .stack-table input { padding-inline: .6rem; } }

/* ---------- 15. Progress page and the completion record ---------- */
.progress-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) { .progress-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-7); } }
.progress-summary { padding: clamp(1.2rem, 1rem + 1vw, 2rem); display: grid; gap: .9rem; }
.progress-summary__count { font-family: var(--font-display); font-weight: 700; line-height: 1; }
.progress-summary__count b { font-size: clamp(3rem, 2rem + 4vw, 5rem); color: var(--beam); letter-spacing: -.04em; text-shadow: 0 0 30px rgba(255, 186, 72, .4); }
.progress-summary__count span { font-size: var(--fs-xl); color: var(--ink-mute); }
.progress-summary__text { color: var(--ink); font-size: var(--fs-md); }
.progress-summary__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.route-meters { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); list-style: none; display: grid; gap: .9rem; }
.route-meter { --accent: var(--beam); display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; align-items: center; }
.route-meter--earn { --accent: var(--mint); }
.route-meter--build { --accent: var(--signal); }
.route-meter a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: 600; text-decoration: none; }
.route-meter a:hover { color: var(--accent); }
.route-meter__count { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent); }
.route-meter .meter { grid-column: 1 / -1; }
.route-meter .meter__fill { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.record-wrap .section__title { margin-top: 0; }
.record-form { margin-top: var(--s-5); display: grid; gap: 1.1rem; }
.record-form__fields { display: grid; gap: .9rem; }
@media (min-width: 600px) { .record-form__fields { grid-template-columns: 1fr 1fr; } .record-form__field[data-record-other] { grid-column: 1 / -1; } }
.record-form__field { display: grid; gap: .4rem; align-content: start; }
.record-form label, .record-form legend { font-weight: 600; font-size: var(--fs-sm); }
.record-form select { width: 100%; min-height: 48px; padding: .5rem 2.4rem .5rem .9rem; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(3, 5, 10, .65); color: var(--ink); font: inherit; font-size: var(--fs-base); -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%; background-size: .36rem .36rem; background-repeat: no-repeat; }
.record-form select:focus { outline: none; border-color: var(--beam); box-shadow: 0 0 0 3px rgba(255, 200, 97, .2); }
.record-form option { color: #111; background: #fff; }
.record-form__theme { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; min-width: 0; }
.record-form__theme legend { padding: 0; margin-bottom: .5rem; }
.record-form__choice { position: relative; display: inline-flex; }
.record-form__choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.record-form__choice span { display: inline-flex; align-items: center; min-height: var(--tap); padding: .3rem 1.05rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink-soft); font-weight: 600; font-size: var(--fs-sm); transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.record-form__choice input:checked + span { border-color: var(--beam); background: var(--beam); color: var(--beam-ink); }
.record-form__choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* the commemorative diploma: night sky, the Americas, the learner's country lit like a lighthouse. Two looks: night and paper */
.record-stage { margin-top: var(--s-7); }
.record {
  --r-ink: #eef3fb; --r-soft: #c3cee0; --r-mute: #93a3bd; --r-gold: #ffc861; --r-frame: rgba(255, 200, 97, .42); --r-frame-2: rgba(255, 200, 97, .16);
  --r-land: rgba(126, 156, 206, .17); --r-coast: rgba(160, 190, 235, .45); --r-on: #ffc861; --r-halo: rgba(255, 200, 97, .24); --r-core: #fffaf0;
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; display: grid; margin-inline: auto; max-width: 1040px; border-radius: 18px; color: var(--r-ink);
  background: radial-gradient(ellipse 55% 70% at 76% 42%, rgba(38, 66, 124, .6), transparent 72%), radial-gradient(ellipse 50% 42% at 10% 0%, rgba(255, 200, 97, .17), transparent 70%), linear-gradient(160deg, #0a1428, #04070f 72%);
  box-shadow: 0 40px 90px -50px rgba(255, 186, 72, .6), 0 0 0 1px rgba(255, 200, 97, .32);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.record::before, .record::after { content: ""; position: absolute; pointer-events: none; z-index: 3; border-radius: 12px; }
.record::before { inset: clamp(8px, 1.5cqw, 16px); border: 1px solid var(--r-frame); }
.record::after { inset: clamp(13px, 2.3cqw, 25px); border: 1px solid var(--r-frame-2); border-radius: 8px; }
.record__sky { position: absolute; inset: 0; z-index: -1; opacity: .8; background-image:
  radial-gradient(1.2px 1.2px at 8% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 17% 62%, #cfe0ff 50%, transparent 52%),
  radial-gradient(1.4px 1.4px at 27% 9%, #fff1c9 50%, transparent 52%), radial-gradient(1px 1px at 34% 78%, #fff 50%, transparent 52%),
  radial-gradient(1px 1px at 43% 30%, #cfe0ff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 49% 88%, #fff 50%, transparent 52%),
  radial-gradient(1px 1px at 55% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 61% 55%, #fff1c9 50%, transparent 52%),
  radial-gradient(1px 1px at 68% 92%, #cfe0ff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 88% 8%, #fff 50%, transparent 52%),
  radial-gradient(1px 1px at 93% 47%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 96% 82%, #cfe0ff 50%, transparent 52%),
  radial-gradient(1px 1px at 4% 90%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 52%); }
.record__map { position: relative; justify-self: center; width: min(64%, 290px); margin-top: 12%; }
.record__map .amap { display: block; width: 100%; height: auto; overflow: visible; }
.record__seal { position: absolute; left: -6%; bottom: 4%; width: 36%; height: auto; overflow: visible; }
.record__seal-ring { fill: rgba(255, 200, 97, .05); stroke: var(--r-gold); stroke-width: 1.2; opacity: .85; }
.record__seal-ring--in { fill: none; stroke-width: .8; opacity: .55; }
.record__seal-text { font-family: var(--font-mono); font-size: 9.4px; letter-spacing: .06em; fill: var(--r-gold); }
.record__seal-beam { fill: var(--r-gold); opacity: .4; }
.record__seal-body { fill: var(--r-ink); }
.record__seal-lamp { fill: var(--r-gold); }
.record__body { position: relative; z-index: 2; display: grid; justify-items: center; gap: .75rem; padding: 7% 9% 12%; text-align: center; }
.record__head { display: inline-flex; align-items: center; gap: .6rem; }
.record__mark { width: 40px; height: 40px; flex: none; }
.record__mark-beam { fill: var(--r-gold); opacity: .4; }
.record__mark-body { fill: var(--r-ink); }
.record__mark-lamp { fill: var(--r-gold); }
.record__mark-base { fill: var(--r-mute); }
.record__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.record__kind { margin-top: .5rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .26em; text-transform: uppercase; color: var(--r-gold); }
.record__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 1.1rem + 3vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; text-wrap: balance; }
.record__name.is-empty { color: var(--r-mute); }
.record__name.is-long { font-size: clamp(1.4rem, 1rem + 2.2vw, 2.1rem); }
.record__name.is-xlong { font-size: clamp(1.15rem, .9rem + 1.6vw, 1.7rem); }
.record__name::after { content: ""; display: block; width: 3.2em; height: 2px; margin: .5em auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--r-gold), transparent); }
.record__line { max-width: 34ch; color: var(--r-soft); font-size: var(--fs-md); }
.record__routes { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; width: min(100%, 26rem); }
.record-route { --accent: var(--beam); display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; text-align: left; font-size: var(--fs-sm); color: var(--r-soft); }
.record-route--earn { --accent: var(--mint); }
.record-route--build { --accent: var(--signal); }
.record-route::before { content: ""; width: .62em; height: .62em; border-radius: 50%; border: 1.5px solid var(--accent); }
.record-route.is-done { color: var(--r-ink); }
.record-route.is-done::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.record-route.is-empty { color: var(--r-mute); }
.record-route__count { font-family: var(--font-mono); font-size: .92em; font-variant-numeric: tabular-nums; color: var(--accent); }
.record__place { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); }
.record__place svg { width: 1.05em; height: 1.05em; flex: none; }
.record__pin-halo { fill: var(--r-halo); }
.record__pin-core { fill: var(--r-on); }
.record__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.2rem; color: var(--r-mute); font-size: var(--fs-sm); }
.record__site { font-family: var(--font-mono); letter-spacing: .04em; }
.record__note { max-width: 54ch; color: var(--r-mute); font-size: var(--fs-xs); line-height: 1.5; }

.amap__land path { fill: var(--r-land, rgba(126, 156, 206, .17)); stroke: var(--r-coast, rgba(160, 190, 235, .45)); stroke-width: 1.3; stroke-linejoin: round; transition: fill .4s var(--ease-out); }
.amap__isles circle { fill: var(--r-coast, rgba(160, 190, 235, .45)); }
.amap__land path.is-on { fill: var(--r-on); stroke: var(--r-on); filter: drop-shadow(0 0 12px rgba(255, 200, 97, .7)); }
.amap__isles circle.is-on { fill: var(--r-on); }
.amap__beacon[hidden] { display: none; }
.amap__halo { fill: var(--r-halo, rgba(255, 200, 97, .24)); }
.amap__core { fill: var(--r-core, #fffaf0); stroke: var(--r-on, #ffc861); stroke-width: 2; }
.amap__ring { fill: none; stroke: var(--r-on, #ffc861); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: amap-ping 2.8s var(--ease-out) infinite; }
.amap__beam { transform: rotate(205deg); animation: amap-turn 16s linear infinite; }
.amap__beam path { opacity: .6; }
.amap__shape { fill: rgba(126, 156, 206, .16); stroke: rgba(160, 190, 235, .5); stroke-width: 1.3; stroke-linejoin: round; }
.amap--sil .amap__isles circle { fill: rgba(160, 190, 235, .5); }
.amap__sweep { transform: translateX(760px); animation: amap-sweep 9s var(--ease-in-out) infinite; }

.record[data-theme="paper"] {
  --r-ink: #111a2e; --r-soft: #2c3650; --r-mute: #5a6478; --r-gold: #9a6410; --r-frame: rgba(154, 100, 16, .6); --r-frame-2: rgba(154, 100, 16, .25);
  --r-land: rgba(31, 42, 69, .09); --r-coast: rgba(31, 42, 69, .5); --r-on: #e3a43a; --r-halo: rgba(227, 164, 58, .3); --r-core: #fffaf0;
  background: radial-gradient(ellipse 55% 70% at 76% 42%, rgba(227, 164, 58, .16), transparent 72%), #fbf7ee;
  box-shadow: 0 30px 80px -40px rgba(255, 186, 72, .55), 0 0 0 1px rgba(201, 138, 46, .6);
}
.record[data-theme="paper"] .record__sky { display: none; }
.record[data-theme="paper"] .amap__land path.is-on { stroke: #8a5a12; filter: none; }
.record[data-theme="paper"] .amap__beam path { fill: rgba(227, 164, 58, .4); }
.record[data-theme="paper"] .record-route { --accent: #9a6410; }
.record[data-theme="paper"] .record-route--earn { --accent: #1c7a56; }
.record[data-theme="paper"] .record-route--build { --accent: #1b6e8c; }
.record[data-theme="paper"] .record-route.is-done::before { box-shadow: none; }

@media (min-width: 820px), print {
  .record { display: block; aspect-ratio: 297 / 210; }
  .record__map { position: absolute; top: 6.5%; right: 5%; height: 87%; width: auto; aspect-ratio: 693 / 1000; margin: 0; }
  .record__map .amap { width: auto; height: 100%; }
  .record__seal { left: 1%; bottom: 3%; width: 31%; }
  .record__body { position: absolute; inset: 0 51% 0 0; display: flex; flex-direction: column; align-items: flex-start; justify-items: start; gap: 0; padding: 6.6cqw 0 5cqw 7cqw; text-align: left; }
  .record__head { gap: 1cqw; }
  .record__mark { width: 4.4cqw; height: 4.4cqw; }
  .record__brand { font-size: 2.1cqw; }
  .record__kind { margin-top: 3.8cqw; font-size: max(.66rem, 1.4cqw); }
  .record__name { margin-top: 1.2cqw; font-size: 4.9cqw; }
  .record__name.is-long { font-size: 3.7cqw; }
  .record__name.is-xlong { font-size: 2.85cqw; }
  .record__name::after { margin: .42em 0 0; }
  .record__line { margin-top: 2cqw; max-width: none; font-size: max(.8rem, 1.72cqw); }
  .record__routes { margin-top: 1.6cqw; gap: .55cqw; width: 100%; }
  .record-route { gap: 1cqw; font-size: max(.72rem, 1.36cqw); }
  .record__place { margin-top: 2cqw; gap: .8cqw; font-size: max(.85rem, 1.9cqw); }
  .record__foot { margin-top: auto; justify-content: flex-start; gap: .2cqw 2cqw; font-size: max(.68rem, 1.25cqw); }
  .record__note { margin-top: .9cqw; max-width: none; font-size: max(.58rem, 1cqw); line-height: 1.45; }
}
.check-list { list-style: none; padding: .4rem .6rem .8rem; display: grid; }
.check-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem; border-radius: var(--r-sm); }
.check-row:hover { background: rgba(255, 255, 255, .03); }
.check-row label { display: grid; grid-template-columns: 28px 2.8rem 1fr; gap: .6rem; align-items: center; min-height: 52px; padding: .4rem .5rem; cursor: pointer; }
.check-row input { appearance: none; -webkit-appearance: none; margin: 0; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-mid); }
.check-row input::after { content: ""; width: 6px; height: 12px; border: solid #04170f; border-width: 0 2.5px 2.5px 0; rotate: 45deg; translate: 0 -1px; scale: 0; transition: scale var(--t-fast) var(--ease-out); }
.check-row input:checked { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px rgba(126, 240, 192, .5); }
.check-row input:checked::after { scale: 1; }
.check-row input:disabled { opacity: .5; cursor: default; }
.check-row input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check-row__title { font-size: var(--fs-sm); line-height: 1.4; }
.check-row:has(input:checked) .check-row__title { color: var(--ink-soft); }
.check-row__open { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--ink-mute); }
.check-row__open:hover { color: var(--beam); background: rgba(255, 200, 97, .06); }

/* ---------- 16. 404 and redirects ---------- */
.center-msg { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: var(--s-8) var(--gutter); text-align: center; }
.center-msg h1 { font-size: var(--fs-2xl); }
.center-msg p { color: var(--ink-soft); max-width: 48ch; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.mini-lh { width: 120px; height: 160px; overflow: visible; }
.mini-lh__beam { transform-origin: 60px 44px; animation: mini-sweep 6s var(--ease-in-out) infinite alternate; }
.root-languages { list-style: none; display: flex; gap: .6rem; }
.root-languages a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }

/* ---------- 17. Keyframes ---------- */
@keyframes shine { to { background-position: -240% 0; } }
@keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes travel { 0% { left: -10%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes sweep { from { transform: rotate(var(--sweep-a)); } to { transform: rotate(var(--sweep-b)); } }
@keyframes sweep-back { from { transform: rotate(calc(var(--sweep-a) * -1)); } to { transform: rotate(calc(var(--sweep-b) * -1)); } }
@keyframes mini-sweep { from { transform: rotate(-8deg); } to { transform: rotate(12deg); } }
@keyframes lamp { 0%, 100% { opacity: .78; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes lamp-core { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: var(--o, .9); } 80% { opacity: var(--o, .9); } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes window-flicker { 0%, 46%, 54%, 100% { opacity: .9; } 50% { opacity: .55; } }
@keyframes fog-drift { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes sea-glint { from { opacity: .12; transform: translateX(-2%); } to { opacity: .75; transform: translateX(2%); } }
@keyframes defog { from { opacity: 0; filter: blur(14px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes defog-lite { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 200, 97, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 200, 97, 0); } }
@keyframes orbit { to { --angle: 360deg; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes rays { to { --ray: 360deg; } }
@keyframes sweep-text { 0% { background-position: 100% 0, 0 0; } 60%, 100% { background-position: 0% 0, 0 0; } }
@keyframes page-beam { from { transform: rotate(-4deg); } to { transform: rotate(6deg); } }
@keyframes gate-v { 0% { top: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes amap-turn { from { transform: rotate(205deg); } to { transform: rotate(565deg); } }
@keyframes amap-ping { 0% { transform: scale(.7); opacity: .95; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes amap-sweep { from { transform: translateX(0); } to { transform: translateX(1560px); } }
@keyframes gate-h { 0% { left: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* the hero scene pauses while it is off screen (site.js adds .is-paused) */
.hero.is-paused .hero__scene *, .hero.is-paused .lh * { animation-play-state: paused !important; }

/* ---------- 18. Motion off: the pause button (html[data-motion="off"]) and the system setting ---------- */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] .lh__beam { transform: rotate(var(--sweep-mid)); }
html[data-motion="off"] .lh__beam--back { transform: rotate(calc(var(--sweep-mid) * -1)); }
html[data-motion="off"] .mote { opacity: .55; }
html[data-motion="off"] [data-reveal], html[data-motion="off"] .manifesto__text .w, html[data-motion="off"] .map .dot { opacity: 1 !important; transform: none !important; }
html[data-motion="off"] .rulers .ruler__ticks { clip-path: none !important; }
html[data-motion="off"] .stat::before, html[data-motion="off"] .fatebar__seg, html[data-motion="off"] .track::after { transform: none; }
html[data-motion="off"] .track__dot { background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .lh__beam { transform: rotate(var(--sweep-mid)); }
  .lh__beam--back { transform: rotate(calc(var(--sweep-mid) * -1)); }
  .mote { opacity: .55; }
  .js [data-reveal], .js .manifesto__text .w, .js .map .dot { opacity: 1 !important; transform: none !important; }
  .rulers .ruler__ticks { clip-path: none !important; }
  .stat::before, .fatebar__seg, .track::after { transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- 19. Print: plain pages; on the progress page only the record ---------- */
@media print {
  html, body { background: #fff !important; color: #111 !important; }
  .site-header, .site-footer, .mobile-menu, .read-beam, .page-hero__beam, .lesson-rail, .lesson-nav, .done-box, .next-card, .copy-btn, .skip-link, .hero__scene, .lh { display: none !important; }
  .page-hero { background: none !important; border: 0; padding: 0; }
  .prose, .prose *, .page-hero h1, .lead { color: #111 !important; }
  .codeblock, .card { background: #fff !important; border-color: #bbb !important; box-shadow: none !important; }
  a { color: #111 !important; }
  .page-progress main > :not(.progress-page), .page-progress .progress-page > :not(.record-stage) { display: none !important; }
  .page-progress .record-stage { margin: 0; }
  .page-progress, .page-progress main, .page-progress .progress-page, .page-progress .record-stage { page: diploma; margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
  .page-progress .record { page: diploma; box-shadow: none; margin: 0 auto; max-width: none; width: 100%; break-inside: avoid; }
  .page-progress .amap__beam, .page-progress .amap__ring { animation: none !important; }
  @page { margin: 16mm; }
  @page diploma { size: landscape; margin: 9mm; }
}
