/* Examdata website
   Identity: exam paper — printed ink on white, candidate's pencil, examiner's red pen, highlighter. */
:root {
  --paper: #f4f5f3;
  --sheet: #ffffff;
  --ink: #141619;
  --ink-2: #3c4148;
  --muted: #6a7078;
  --line: #d5d9dc;
  --grid: #d3e3e7;
  --grid-major: #a3c4cc;
  --pencil: #3f444b;
  --pen: #d42a1e;
  --pen-soft: rgba(212, 42, 30, .1);
  --mark: #f3dd3c;
  --night: #121417;
  --night-2: #1d2024;

  --f-sans: "Archivo", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --f-zh: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", "Archivo", sans-serif;
  --f-serif: "Times New Roman", "Source Serif 4", Georgia, "Songti SC", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --f-hand: "Caveat", "Long Cang", "Segoe Print", cursive;
  --f-hand-zh: "Long Cang", "Caveat", "KaiTi", "STKaiti", cursive;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-zh); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--f-sans); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pen); margin: 0 0 18px; }
.eyebrow.light { color: #ff7a6e; }
.h2 { font-family: var(--f-zh); font-weight: 800; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h2.light { color: #fff; }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-sub { color: var(--muted); font-size: 18px; margin: 18px 0 0; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-zh); font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), color .3s;
}
.btn::before { /* ink fill sweeping in */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--pen); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn .arr { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: #fff; }
.btn-pen { --bg: var(--pen); }
.btn-pen::before { background: #fff; }
.btn-pen:hover { color: var(--ink); }
.btn-lg { font-size: 16px; padding: 15px 28px; }
.btn-xl { font-size: 20px; padding: 22px 40px; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--pen); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .5s var(--ease), background .3s, box-shadow .3s;
}
.nav.solid { background: rgba(244, 245, 243, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-family: var(--f-sans); font-stretch: 125%; font-weight: 900; font-size: 18px; letter-spacing: .01em; line-height: 1; display: grid; gap: 3px; }
.logo small { font-family: var(--f-zh); font-stretch: 100%; font-weight: 500; font-size: 10.5px; letter-spacing: .5em; color: var(--muted); }
.logo-tick { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .6s .9s var(--ease) forwards; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 12px; color: var(--ink-2); }
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--pen); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s var(--ease); }
.menu a:hover, .menu a.on { color: var(--ink); }
.menu a:hover::after, .menu a.on::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-cta .btn { display: none; }
  .nav-cta { margin-left: auto; }
  .menu {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: 110px var(--gutter) 40px;
    flex-direction: column; gap: 6px; background: var(--paper);
    clip-path: circle(0 at calc(100% - 38px) 36px); transition: clip-path .7s var(--ease-io);
  }
  .menu a { font-size: 34px; font-weight: 800; padding: 8px 0; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); }
  .menu a::after { display: none; }
  .nav.open .menu { clip-path: circle(150% at calc(100% - 38px) 36px); }
  .nav.open .menu a { opacity: 1; transform: none; }
  .nav.open .menu a:nth-child(2) { transition-delay: .06s; } .nav.open .menu a:nth-child(3) { transition-delay: .12s; }
  .nav.open .menu a:nth-child(4) { transition-delay: .18s; } .nav.open .menu a:nth-child(5) { transition-delay: .24s; }
  .nav.open { background: var(--paper); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); padding: 140px 0 110px; display: flex; align-items: center; overflow: hidden; }
.hero::before { /* graph-paper ground, fading out */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 10%, transparent 70%);
  opacity: .7;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin: 0 0 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pen); box-shadow: 0 0 0 0 var(--pen-soft); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,42,30,.35); } 70%, 100% { box-shadow: 0 0 0 10px rgba(212,42,30,0); } }
.hero-title { font-family: var(--f-zh); font-weight: 900; font-size: clamp(34px, 5vw, 80px); line-height: 1.08; letter-spacing: -.035em; margin: 0; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero-title .ch { display: inline-block; }
.js .hero-title .ch { transform: translateY(110%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 150ms); }
@keyframes rise { to { transform: none; } }
.hl { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .08em; height: .42em; z-index: -1; background: var(--mark); transform: scaleX(0) skewX(-8deg); transform-origin: 0 50%; animation: swipe .8s 1.15s var(--ease) forwards; }
.no-js .hl::after, html:not(.js) .hl::after { transform: skewX(-8deg); }
@keyframes swipe { to { transform: scaleX(1) skewX(-8deg); } }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 34em; margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; }
.hero-facts dt { font-size: 13px; color: var(--muted); order: 2; }
.hero-facts dd { margin: 0; font-family: var(--f-sans); font-weight: 800; font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* paper → slips */
.stage { position: relative; aspect-ratio: 1 / 1.04; max-width: 560px; width: 100%; justify-self: center; perspective: 1400px; transform: translate3d(calc(var(--mx, 0) * -8px), calc(var(--my, 0) * -8px), 0); transition: transform .6s var(--ease); }
.sheet-big {
  position: absolute; left: 50%; top: 50%; width: 66%; aspect-ratio: 1 / 1.414; translate: -50% -50%;
  background: var(--sheet); box-shadow: 0 30px 60px -30px rgba(20,25,30,.35), 0 0 0 1px rgba(0,0,0,.04);
  padding: 9% 9% 8%; display: flex; flex-direction: column; gap: 8%;
  transition: opacity .8s .2s, transform 1s var(--ease);
}
.sb-head { display: grid; gap: 2px; border-bottom: 2px solid var(--ink); padding-bottom: 6%; }
.sb-head b { font-family: var(--f-sans); font-stretch: 120%; font-weight: 900; font-size: clamp(16px, 2.2vw, 26px); }
.sb-head span { font-family: var(--f-serif); font-size: clamp(10px, 1vw, 12px); color: var(--muted); }
.sb-lines { display: grid; gap: 9px; flex: 1; align-content: start; }
.sb-lines i { display: block; height: 6px; background: #e6e8ea; border-radius: 3px; width: 100%; }
.sb-foot { display: flex; justify-content: space-between; font-family: var(--f-serif); font-size: 10px; color: var(--muted); }
.slip {
  position: absolute; left: 50%; top: 50%; width: 50%; translate: -50% -50%;
  background: var(--sheet); padding: 16px 18px 14px; border-radius: 3px;
  box-shadow: 0 18px 40px -18px rgba(20,25,30,.45), 0 0 0 1px rgba(0,0,0,.05);
  font-family: var(--f-serif); font-size: clamp(12px, 1.05vw, 14px); line-height: 1.5;
  opacity: 0; transform: scale(.9);
  transition: transform 1.2s var(--ease), opacity .5s;
  transition-delay: calc(var(--d) * 110ms);
}
.slip header { display: flex; justify-content: space-between; font-family: var(--f-sans); font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.slip header span { font-family: var(--f-serif); font-weight: 400; }
.slip p { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slip footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tag { font-family: var(--f-hand-zh); color: var(--pen); font-size: 18px; line-height: 1; border: 1.5px solid var(--pen); border-radius: 4px; padding: 3px 7px 1px; transform: rotate(-3deg) scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--d) * 110ms + 1.1s); }
.ms { font-family: var(--f-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.scissor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scissor path { fill: none; stroke: var(--pen); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: 0; }
.stage.split .sheet-big { opacity: 0; transform: scale(.86) rotate(-2deg); }
.stage.split .slip { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1.5s + 2s); }
.stage.split .tag { transform: rotate(-3deg) scale(1); }
.stage.cutting .scissor path { animation: cut .7s var(--ease) forwards; }
@keyframes cut { 0% { opacity: 1; stroke-dashoffset: 400; } 80% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes bob { 0%, 100% { translate: -50% -50%; } 50% { translate: -50% calc(-50% - 8px); } }
.slip:hover { z-index: 5; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; text-decoration: none; font-size: 12px; color: var(--muted); letter-spacing: .2em; }
.scroll-hint i { width: 1.5px; height: 38px; background: linear-gradient(var(--ink) 50%, var(--line) 50%) 0 0 / 100% 200%; animation: drip 1.8s infinite var(--ease-io); }
@keyframes drip { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

@media (max-width: 900px) {
  .hero { padding: 116px 0 90px; min-height: 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: clamp(36px, 10.4vw, 64px); }
  .stage { max-width: 440px; margin-top: 10px; }
  .scroll-hint { display: none; }
}
@media (max-width: 520px) {
  .stage { width: 84%; }
  .slip { width: 62%; padding: 11px 12px 10px; }
  .slip p { -webkit-line-clamp: 2; }
  .tag { font-size: 15px; }
  .ms { display: none; }
  .hero-facts dd { font-size: 24px; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: #fff; padding: 22px 0; overflow: hidden; display: grid; gap: 10px; transform: rotate(-1.2deg); margin: 0 -20px; }
.mq-row { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; flex-shrink: 0; gap: 0; animation: mq 48s linear infinite; }
.mq-row.rev .mq-track { animation-direction: reverse; animation-duration: 40s; }
.mq-track span { font-family: var(--f-sans); font-stretch: 110%; font-weight: 800; font-size: clamp(18px, 2.4vw, 28px); white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.mq-track span::after { content: "✕"; font-size: .55em; color: var(--pen); }
.mq-row.rev .mq-track span { font-weight: 500; color: #b9bec4; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-100%); } }

/* ---------- how (pinned) ---------- */
.how { position: relative; height: 340vh; margin-top: 60px; }
.how-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.how-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; width: 100%; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); opacity: .32; transition: opacity .5s; }
.steps li.on { opacity: 1; }
.steps .n { font-family: var(--f-mono); font-size: 14px; color: var(--pen); padding-top: 10px; }
.steps h3 { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.steps p { margin: 6px 0 0; color: var(--ink-2); max-width: 30em; display: grid; grid-template-rows: 0fr; }
.steps li p { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.steps li.on p { max-height: 9em; }
.how-bar { height: 2px; background: var(--line); margin-top: 18px; }
.how-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

.how-stage { position: relative; }
.hs-page { background: var(--sheet); padding: clamp(18px, 3vw, 36px); box-shadow: 0 30px 70px -36px rgba(20,25,30,.45), 0 0 0 1px rgba(0,0,0,.04); position: relative; }
.hs-head { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.hs-head b { color: var(--ink); font-weight: 500; }
.hs-ghost { display: grid; gap: 8px; padding: 6px 0; transition: opacity .3s; }
.hs-ghost i { height: 7px; border-radius: 4px; background: #e6e8ea; display: block; }
.hs-q { position: relative; margin: 14px 0; padding: 18px; background: var(--sheet); will-change: transform; }
.hs-cut { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hs-cut rect { fill: none; stroke: var(--pen); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.hs-text { font-family: var(--f-serif); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.8; margin: 0; }
.hs-text b { float: right; font-weight: 400; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.2; font-size: .92em; font-style: italic; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 .2em; }
.hs-work { margin-top: 10px; display: grid; }
.hs-work .w { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-bottom: 1.5px dotted #9aa1a8; height: 46px; padding-bottom: 3px; }
.hs-work span { font-family: var(--f-hand); font-size: clamp(19px, 1.9vw, 25px); color: var(--pencil); line-height: 1; white-space: nowrap; clip-path: inset(0 calc(100% - var(--w, 0) * 100%) 0 0); }
.hs-work em { font-style: normal; font-family: var(--f-hand); font-weight: 600; color: var(--pen); font-size: 24px; line-height: 1; display: flex; align-items: center; gap: 2px; opacity: var(--m, 0); transform: translateX(calc((1 - var(--m, 0)) * 12px)); }
.hs-work svg { width: 22px; height: 18px; }
.hs-work path { fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; stroke-dashoffset: calc((1 - var(--m, 0)) * 32); }
.hs-stamp {
  position: absolute; right: -14px; top: -30px; display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--pen); color: var(--pen); background: rgba(255,255,255,.9); padding: 6px 12px 6px 10px; border-radius: 6px;
  opacity: var(--s, 0); transform: rotate(-8deg) scale(calc(1.8 - var(--s, 0) * .8));
}
.hs-stamp b { font-family: var(--f-sans); font-weight: 900; font-size: 28px; line-height: 1; }
.hs-stamp span { font-family: var(--f-zh); font-size: 11px; line-height: 1.35; font-weight: 600; }

@media (max-width: 900px) {
  .how { height: 300vh; }
  .how-in { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: center; }
  .how-copy .eyebrow { margin-bottom: 8px; }
  .steps li { display: none; padding: 8px 0; border: 0; }
  .steps li.on { display: grid; }
  .steps li p { max-height: none; font-size: 15px; }
  .hs-ghost.g2 { display: none; }
  .hs-stamp { right: 4px; }
}

/* ---------- numbers ---------- */
.numbers { background: var(--night); color: #fff; padding: clamp(80px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.numbers::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.numbers .wrap { position: relative; }
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid #33373d; }
.num { padding: 28px 24px 0 0; display: grid; gap: 12px; align-content: start; }
.num + .num { padding-left: 24px; border-left: 1px solid #33373d; }
.num b { font-family: var(--f-sans); font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num b small { font-family: var(--f-zh); font-size: .32em; font-weight: 600; margin-left: 6px; letter-spacing: 0; color: #9aa0a7; }
.num > span { color: #a7adb4; font-size: 15px; line-height: 1.7; }
@media (max-width: 900px) { .num-grid { grid-template-columns: 1fr 1fr; } .num:nth-child(3) { border-left: 0; padding-left: 0; } .num:nth-child(n+3) { border-top: 1px solid #33373d; margin-top: 28px; } }
@media (max-width: 480px) { .num-grid { grid-template-columns: minmax(0, 1fr); } .num + .num { border-left: 0; padding-left: 0; border-top: 1px solid #33373d; margin-top: 24px; } }

/* ---------- paths ---------- */
.paths { padding: clamp(90px, 12vw, 160px) 0; }
.path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.path { background: var(--sheet); border-radius: 4px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s, transform .5s var(--ease); }
.path:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--ink), 0 24px 40px -28px rgba(20,25,30,.5); }
.path-top { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; width: 100%; padding: 22px 20px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.path-top b { display: block; font-size: 21px; font-weight: 800; line-height: 1.3; }
.path-top small { font-family: var(--f-sans); font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.bubble { position: relative; width: 42px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--f-sans); font-weight: 800; font-size: 12px; overflow: hidden; }
.bubble::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: repeating-linear-gradient(-62deg, var(--pencil) 0 1.6px, #6c727a 1.6px 2.8px); clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease); }
.path:hover .bubble::after, .path.on .bubble::after { clip-path: inset(0 0 0 0); }
.path ul { list-style: none; margin: 0; padding: 0 20px; display: grid; }
.path li a, .path li.soon { display: grid; padding: 12px 0; border-top: 1px dotted #b6bcc2; text-decoration: none; font-weight: 700; font-size: 16px; position: relative; }
.path li span { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.path li a::after { content: "→"; position: absolute; right: 0; top: 12px; opacity: 0; transform: translateX(-8px); transition: .35s var(--ease); color: var(--pen); }
.path li a:hover::after { opacity: 1; transform: none; }
.path li a:hover { color: var(--pen); }
.path li.soon { color: var(--muted); font-weight: 500; }
.path li.soon span { font-family: var(--f-hand-zh); color: var(--pen); font-size: 17px; }
.path li:last-child { padding-bottom: 14px; }
@media (min-width: 901px) { .path ul { padding-bottom: 6px; } }
@media (max-width: 900px) {
  .path-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .path ul { display: grid; grid-template-rows: 0fr; overflow: hidden; max-height: 0; transition: max-height .6s var(--ease); }
  .path.on ul { max-height: 30em; }
}

/* ---------- grade chart ---------- */
.grade { padding: clamp(60px, 8vw, 120px) 0 clamp(90px, 12vw, 160px); }
.grade-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.grade-copy > p { color: var(--ink-2); font-size: 18px; margin: 22px 0; max-width: 28em; }
.legend { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 26px; height: 0; border-top: 2px solid var(--pencil); }
.legend .le { border-top-style: dashed; }
.chart { margin: 0; background: var(--sheet); padding: 18px 18px 14px; box-shadow: 0 0 0 1px var(--line); border-radius: 4px; }
.chart-scroll { overflow-x: auto; }
#chart { width: 100%; min-width: 480px; display: block; height: auto; }
#chart text { font-family: var(--f-serif); font-size: 12px; fill: var(--ink); }
#chart .ax { stroke: var(--ink); stroke-width: 1.2; fill: none; }
#chart .pl { fill: none; stroke: var(--pencil); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
#chart .x { stroke: var(--pencil); stroke-width: 1.7; stroke-linecap: round; }
#chart .hit { fill: transparent; cursor: crosshair; }
#chart .lbl { font-family: var(--f-hand); font-size: 24px; fill: var(--pencil); }
#chart .reds { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; }
#chart .redt { font-family: var(--f-hand-zh); font-size: 20px; fill: var(--pen); }
#chart .muted { fill: var(--muted); font-size: 11px; }
.js #chart .anim { opacity: 0; }
.chart.drawn #chart .anim { opacity: 1; transition: opacity .3s; transition-delay: var(--delay, 0s); }
.js #chart .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.chart.drawn #chart .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-io); transition-delay: var(--delay, 0s); }
.readout { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-align: right; min-height: 1.6em; font-variant-numeric: tabular-nums; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .grade-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- coverage ---------- */
.coverage { padding: 0 0 clamp(90px, 12vw, 160px); }
.cov-list { border-top: 2px solid var(--ink); }
.cov { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.cov::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mark); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.cov:hover::before { transform: scaleY(1); }
.cov b { font-family: var(--f-sans); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.01em; transition: transform .45s var(--ease); }
.cov:hover b { transform: translateX(10px); }
.cov p { margin: 0; color: var(--ink-2); }
.cov > span { font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }
@media (max-width: 720px) { .cov { grid-template-columns: 1fr auto; gap: 4px 16px; } .cov p { grid-column: 1 / -1; grid-row: 2; font-size: 15px; } }

/* ---------- faq ---------- */
.faq { padding: clamp(80px, 10vw, 140px) 0; background: var(--sheet); border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq .sec-head { position: sticky; top: 110px; margin: 0; }
.abbr { display: grid; gap: 10px; margin-top: 30px; font-size: 14.5px; color: var(--muted); }
.abbr b { display: inline-block; width: 34px; font-family: var(--f-mono); color: var(--pen); }
.qa { border-top: 1px solid var(--ink); }
.qa:last-child { border-bottom: 1px solid var(--ink); }
.qa summary { list-style: none; display: grid; grid-template-columns: 40px 1fr auto 24px; gap: 12px; align-items: center; padding: 24px 0; cursor: pointer; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .45s var(--ease); }
.qa[open] summary::after { transform: rotate(135deg); }
.qa .qn { font-family: var(--f-mono); font-weight: 400; font-size: 14px; color: var(--muted); }
.qa em { font-style: normal; font-family: var(--f-hand); color: var(--pen); font-size: 24px; font-weight: 600; }
.qa > div { overflow: hidden; }
.qa p { margin: 0 0 24px 52px; color: var(--ink-2); max-width: 36em; }
@media (max-width: 900px) { .faq-in { grid-template-columns: minmax(0, 1fr); } .faq .sec-head { position: static; } .qa p { margin-left: 0; } .qa summary { grid-template-columns: 30px 1fr auto 20px; } }

/* ---------- cta ---------- */
.cta { padding: clamp(100px, 14vw, 200px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000, transparent); }
.cta-in { display: grid; justify-items: center; gap: 30px; }
.pen-note { font-family: var(--f-hand-zh); color: var(--pen); font-size: clamp(28px, 3vw, 40px); margin: 0; transform: rotate(-4deg); }
.cta-title { margin: 0; font-weight: 900; font-size: clamp(44px, 8vw, 120px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #c9cdd2; padding: 72px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot .logo span { color: #fff; }
.foot .logo small { color: #8b9198; }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: #8b9198; margin: 16px 0 0; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h4 { margin: 0 0 6px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.foot-col a { text-decoration: none; font-size: 14.5px; color: #a7adb4; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.foot-col a:hover { color: #fff; background-size: 100% 1px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #2c3035; font-size: 12.5px; color: #7d838a; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .mq-track { animation: none !important; }
}
.grade .h2 { font-size: clamp(32px, 3.8vw, 52px); }

/* ---------- language ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; height: 38px; padding: 0 4px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--sheet); cursor: pointer; font-family: var(--f-sans); font-weight: 700; font-size: 12.5px; color: var(--muted); }
.lang span { position: relative; z-index: 1; padding: 0 10px; text-align: center; transition: color .35s; }
.lang i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease); }
.lang span[data-l="zh"] { color: #fff; }
.lang.is-en i { transform: translateX(100%); }
.lang.is-en span[data-l="zh"] { color: var(--muted); }
.lang.is-en span[data-l="en"] { color: #fff; }
main, .foot { transition: opacity .22s, filter .22s; }
body.swapping main, body.swapping .foot { opacity: 0; filter: blur(4px); }
html[lang="en"] { --f-hand-zh: "Caveat", "Segoe Print", cursive; --f-zh: "Archivo", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="en"] body { font-size: 16.5px; line-height: 1.65; }
html[lang="en"] .hero-title { font-size: clamp(34px, 3.9vw, 62px); letter-spacing: -.035em; font-stretch: 92%; }
html[lang="en"] .hero-title .ln { white-space: normal; }
html[lang="en"] .h2 { letter-spacing: -.03em; font-stretch: 95%; }
html[lang="en"] .cta-title { font-stretch: 90%; }
html[lang="en"] .logo small { letter-spacing: .3em; }
@media (max-width: 900px) { .nav-cta { gap: 6px; } }

.hero-facts small { font-family: var(--f-zh); font-size: 14px; font-weight: 600; margin-left: 4px; color: var(--muted); }
.fact-next dd { color: var(--pen); }
.path li a b, .path li.soon b { font-weight: 700; }
.path li.soon b { font-weight: 500; }

/* ---------- timetable ---------- */
.tt { padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 110px); }
.tt-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.tt-next { background: var(--ink); color: #fff; border-radius: 4px; padding: 28px 28px 24px; display: grid; align-content: start; gap: 6px; position: relative; overflow: hidden; }
.tt-next::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.14); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tt-label { margin: 0; font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #ff7a6e; }
.tt-date { display: flex; align-items: flex-end; gap: 14px; }
.tt-date b { font-family: var(--f-sans); font-stretch: 110%; font-weight: 900; font-size: 104px; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.tt-date span { display: grid; padding-bottom: 6px; }
.tt-date em { font-style: normal; font-size: 15px; color: #c9cdd2; }
.tt-date em:first-child { color: #fff; font-weight: 700; font-size: 17px; }
.tt-count { margin: 6px 0 10px; font-size: 16px; color: #c9cdd2; }
.tt-count b { font-family: var(--f-sans); font-size: 30px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.tt-today { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid #33373d; }
.tt-today li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #2a2e33; font-size: 13.5px; }
.tt-today li b { font-family: var(--f-mono); font-weight: 500; font-size: 13px; }
.tt-today li span { color: #a7adb4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-today li em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: #ff7a6e; }
.tt-today .tt-onday, .tt-today .tt-more { display: block; color: #8b9198; font-size: 12.5px; border-bottom: 0; }
.tt-today .tt-onday { padding-top: 12px; }

.tt-lanes { --label-w: 230px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line); border-radius: 4px; padding: 22px 24px 18px; display: grid; align-content: start; gap: 6px; min-width: 0; }
.tt-axis { position: relative; height: 22px; margin-left: var(--label-w); border-bottom: 1px solid var(--line); }
.tt-axis span { position: absolute; top: 0; font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding-left: 5px; border-left: 1px solid var(--line); height: 100%; white-space: nowrap; }
.tt-rows { position: relative; display: grid; margin-top: 28px; }
.tt-row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); align-items: center; min-height: 58px; border-bottom: 1px dashed var(--line); }
.tt-row-label { display: grid; padding-right: 14px; line-height: 1.35; }
.tt-row-label b { font-size: 14.5px; }
.tt-row-label span { font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.tt-track { position: relative; height: 22px; }
.tt-bar { position: absolute; top: 0; height: 100%; border: 0; padding: 0; border-radius: 3px; cursor: pointer; overflow: hidden; background: var(--ink); transform-origin: 0 50%; transition: transform 1s var(--ease), box-shadow .3s; transition-delay: calc(var(--i) * .12s + .2s); }
.tt-bar.edexcel { background: #4a5a8c; }
.tt-bar i { position: absolute; inset: 0; width: calc(var(--done) * 100%); background: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px); }
.tt-bar:hover, .tt-bar.on { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--pen); }
.js .tt-lanes .tt-bar { transform: scaleX(0); }
.js .tt-lanes.in .tt-bar { transform: none; }
.tt-now { position: absolute; top: -28px; bottom: 0; width: 0; border-left: 2px solid var(--pen); pointer-events: none; }
.tt-now span { position: absolute; top: -2px; left: 8px; font-family: var(--f-hand-zh); color: var(--pen); font-size: 18px; white-space: nowrap; line-height: 1; }
.tt-now::after { content: ""; position: absolute; top: -4px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--pen); animation: pulse 2.2s infinite; }
.tt-src { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.tt-find { margin-top: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line); border-radius: 4px; padding: 22px 24px; }
.tt-search { position: relative; display: grid; gap: 12px; }
.tt-search svg { position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.tt-search input { width: 100%; height: 50px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 20px 0 46px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); transition: box-shadow .3s; }
.tt-search input:focus { outline: none; box-shadow: 0 0 0 4px var(--pen-soft); border-color: var(--pen); }
.tt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-chips button { font-family: var(--f-mono); font-size: 12.5px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.tt-chips button:hover { border-color: var(--ink); }
.tt-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tt-table { overflow-x: auto; margin-top: 16px; }
.tt-table table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.tt-table th { text-align: left; font-family: var(--f-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--ink); }
.tt-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tt-table tbody tr { animation: rowin .5s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } }
.tt-table tbody tr:hover { background: #fafaf7; }
.tt-table td.d { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-table .left { font-family: var(--f-mono); font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eceeec; white-space: nowrap; }
.tt-table .left.soon { background: var(--pen); color: #fff; }
.tt-table td.s, .tt-table td.m { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.tt-table td.p { white-space: nowrap; }
.tt-table td.p b { font-family: var(--f-mono); font-weight: 500; }
.bd { font-style: normal; display: inline-block; font-family: var(--f-sans); font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 3px; margin-right: 8px; color: #fff; background: var(--ink); vertical-align: 1px; }
.bd.edexcel { background: #4a5a8c; }
.tt-table td.t { color: var(--ink-2); }
.tt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 980px) { .tt-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .tt-lanes { --label-w: 0px; padding: 18px 16px; }
  .tt-axis { margin-left: 0; }
  .tt-axis .minor { visibility: hidden; }
  .tt-row { grid-template-columns: minmax(0, 1fr); padding: 8px 0; gap: 6px; }
  .tt-date b { font-size: 84px; }
  .tt-find { padding: 18px 16px; }
}

/* =========================================================
   Distinctive features (2026-10-12): topic page, grading slider, study desk, shortlist; the basics in one strip
   ========================================================= */
.ticks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border: solid var(--pen); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.chip { display: inline-block; font-size: 13px; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.mono { font-family: var(--f-mono); }

/* ---- topic ---- */
.topic { padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 110px); }
.topic-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.topic-card { margin: 0; background: var(--sheet); border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(20, 25, 30, .45); padding: 24px 24px 18px; display: grid; gap: 14px; }
.topic-card header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; border-bottom: 1px dotted #b6bcc2; padding-bottom: 14px; }
.topic-card header .mono { font-size: 13px; color: var(--pen); font-weight: 500; }
.topic-card header b { font-family: var(--f-zh); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; }
.tc-n { font-family: var(--f-sans); font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; white-space: nowrap; }
.tc-n small { font-family: var(--f-zh); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tc-bars { height: 190px; display: flex; align-items: flex-end; gap: 3px; background-image: linear-gradient(var(--grid) 1px, transparent 1px); background-size: 100% 38px; background-position: 0 100%; }
.tc-bars i { flex: 1; height: calc(var(--h) * 100%); background: var(--ink); border-radius: 2px 2px 0 0; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s var(--ease), background .2s; transition-delay: calc(var(--i) * 35ms + .2s), 0s; }
.tc-bars i:hover { background: var(--pen); }
.topic-card.in .tc-bars i, html:not(.js) .tc-bars i { transform: none; }
.tc-axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: -6px; }
.topic-card footer { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-card figcaption { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .topic-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .topic-card header { grid-template-columns: 1fr auto; } .topic-card header .mono { grid-column: 1 / -1; } .tc-bars { height: 140px; gap: 2px; } }

/* ---- grading slider ---- */
.score { margin: 6px 0 28px; padding: 18px 20px 16px; background: var(--sheet); border-radius: 4px; box-shadow: 0 0 0 1px var(--line); max-width: 30em; }
.score label { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.score label b { font-family: var(--f-sans); font-weight: 900; font-size: 34px; color: var(--pen); line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: right; }
.score label small { color: var(--muted); }
.score input[type=range] { width: 100%; margin: 14px 0 12px; accent-color: var(--pen); }
.score-years { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.score-years li { display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 3px; background: var(--paper); cursor: default; transition: background .25s, color .25s; }
.score-years li span { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.score-years li b { font-family: var(--f-sans); font-weight: 900; font-size: 20px; line-height: 1; }
.score-years .g-a { background: var(--ink); color: #fff; }
.score-years .g-a span { color: #b9bec4; }
.score-years .g-b { background: #3c4148; color: #fff; }
.score-years .g-b span { color: #c3c7cc; }
.score-years .g-c { background: #d0d4d8; }
.score-years .g-u b { color: var(--pen); }
@media (max-width: 520px) { .score-years { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---- study desk ---- */
.desk { background: var(--night); color: #fff; padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.desk::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.desk-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.desk-steps { list-style: none; padding: 0; margin: clamp(30px, 4vw, 48px) 0 34px; display: grid; border-top: 1px solid #33373d; }
.desk-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid #33373d; }
.desk-steps b { font-family: var(--f-mono); font-weight: 500; color: #ff7a6e; font-size: 14px; padding-top: 3px; }
.desk-steps h3 { margin: 0 0 4px; font-family: var(--f-zh); font-size: 19px; font-weight: 700; }
.desk-steps p { margin: 0; color: #a7adb4; font-size: 15px; line-height: 1.7; }
.desk-card { background: var(--sheet); color: var(--ink); border-radius: 4px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.js .desk-card.reveal.in { transform: rotate(-1deg); }
.dc-head { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px dotted #b6bcc2; }
.dc-head .mono { grid-row: span 2; font-size: 12px; color: var(--pen); letter-spacing: .08em; text-transform: uppercase; }
.dc-head b { font-family: var(--f-sans); font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; line-height: 1; }
.dc-head span:not(.mono) { color: var(--ink-2); font-size: 15px; }
.dc-head em { grid-column: 1 / -1; font-style: normal; font-family: var(--f-hand-zh); color: var(--pen); font-size: 22px; transform: rotate(-2deg); justify-self: start; min-height: 1em; }
.dc-papers { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dc-papers li { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 3px; background: var(--paper); font-size: 14.5px; }
.dc-papers li i { font-style: normal; color: var(--muted); font-size: 13px; }
.dc-papers li b.g { font-family: var(--f-sans); font-weight: 900; font-size: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--pen); color: var(--pen); transform: rotate(-6deg); }
.dc-papers li b.todo { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.dc-papers li small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-align: right; }
.dc-log { display: flex; align-items: flex-end; gap: 6px; height: 56px; padding-top: 4px; }
.dc-log span { font-size: 12.5px; color: var(--muted); margin-right: 6px; align-self: center; }
.dc-log i { flex: 1; height: calc(var(--h) * 100%); min-height: 3px; background: var(--mark); border-radius: 2px; }
@media (max-width: 900px) { .desk-in { grid-template-columns: minmax(0, 1fr); } .js .desk-card.reveal.in { transform: none; } }

/* ---- shortlist ---- */
.match { padding: clamp(90px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }
.match-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.match-card { margin: 0; background: var(--sheet); border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(20, 25, 30, .45); padding: 24px; display: grid; gap: 18px; }
.mc-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding-bottom: 16px; border-bottom: 1px dotted #b6bcc2; font-size: 14px; color: var(--muted); }
.mc-in b { font-family: var(--f-sans); font-weight: 800; font-size: 20px; color: var(--ink); margin-right: 12px; letter-spacing: .02em; }
.mc-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mc-b { padding: 14px 14px 12px; border-radius: 3px; display: grid; gap: 2px; }
.mc-b small { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.mc-b b { font-family: var(--f-sans); font-weight: 900; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mc-b > span { font-size: 12.5px; opacity: .75; }
.mc-b.reach { background: var(--pen-soft); color: var(--pen); }
.mc-b.fit { background: var(--mark); }
.mc-b.safe { background: var(--ink); color: #fff; }
.mc-unlock { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mc-unlock li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 15px; }
.pen-mark { font-family: var(--f-hand-zh); color: var(--pen); font-size: 20px; line-height: 1.1; }
html[lang=en] .pen-mark { font-family: var(--f-hand); font-size: 22px; }
.match-card figcaption { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .match-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .mc-unlock li { grid-template-columns: minmax(0, 1fr); gap: 0; } .mc-b { padding: 12px 10px 10px; } }

/* ---- the basics, one strip ---- */
.also { padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.also-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.also-list a { display: grid; gap: 4px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: padding .35s var(--ease), background .35s; }
.also-list a:hover { background: var(--mark); padding-left: 12px; }
.also-list b { font-family: var(--f-zh); font-weight: 700; font-size: 17px; }
.also-list span { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .also-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 440px) { .also-list { grid-template-columns: minmax(0, 1fr); } }
/* Two-column sections use the smaller headline, like .grade, so lines do not break mid-phrase. */
.topic .h2, .desk .h2, .match .h2 { font-size: clamp(32px, 3.8vw, 52px); }
.ticks li { text-wrap: pretty; }
html[lang=en] .mc-unlock li { grid-template-columns: 9.5em minmax(0, 1fr); }
@media (max-width: 480px) { html[lang=en] .mc-unlock li { grid-template-columns: minmax(0, 1fr); } }
