/* ==========================================================================
   Finance Last Exam — styles
   Ink & paper editorial system. No external dependencies.
   ========================================================================== */

/* Playfair Display 500 (SIL OFL 1.1) */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/playfair-display-500.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ink: #0B1220; --ink-2: #101A2E; --ink-3: #16223B; --ink-line: rgba(232, 224, 205, 0.12);
  --paper: #F6F2EA; --paper-2: #EFE8DB; --card: #FFFDF8; --card-2: #FBF8F1;
  --text: #121826; --text-2: #3A4152; --muted: #6B7182; --faint: #9A9DA6;
  --line: #E1D9C9; --line-2: #CFC5B2;
  --gold: #D9B46A; --gold-2: #EBD3A0; --gold-ink: #8A6526; --gold-wash: #F4E8CC;
  --good: #1F7A57; --bad: #B4473A;
  --v-pe: #2E7D5B; --v-ib: #2F5D9E; --v-hf: #A97B22; --v-cdd: #7A4E9C; --v-ins: #B5533C;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 1px 2px rgba(20, 24, 38, .04), 0 12px 32px -18px rgba(20, 24, 38, .22);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-feature-settings: "cv05", "cv08", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-2); color: var(--ink); }
.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h2 { font-family: var(--serif); font-size: clamp(2.35rem, 4.7vw, 4.1rem); line-height: 1.03; letter-spacing: -0.022em; font-variation-settings: "opsz" 72; }
h2 em, h1 em { font-style: italic; color: var(--gold-ink); }
h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-2); max-width: 760px; margin-top: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.eyebrow-num { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); font-weight: 600; letter-spacing: .04em; }
.eyebrow.on-dark { color: rgba(236, 229, 214, .7); }
.eyebrow.on-dark .eyebrow-num { border-color: rgba(236, 229, 214, .25); color: var(--gold-2); }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 18px; }
.fineprint.on-dark { color: rgba(236, 229, 214, .55); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 0 10px 30px -12px rgba(217, 180, 106, .7); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid rgba(236, 229, 214, .28); color: #EFE8DA; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center; color: #EFE8DA; transition: background .3s ease, color .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(246, 242, 234, .95); color: var(--text); border-bottom-color: var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav.is-ink { background: rgba(11, 18, 32, .92); color: #EFE8DA; border-bottom-color: var(--ink-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark { display: none; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1; font-variation-settings: "opsz" 24; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; height: 34px; text-decoration: none; font-size: 14px; line-height: 1; padding: 0 12px; border-radius: 999px; opacity: .78; transition: opacity .2s, background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { background: rgba(217, 180, 106, .16); }
.nav.is-solid .nav-links a.active { background: var(--gold-wash); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.nav-cta:hover { background: var(--paper-2); border-color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1.6px; background: currentColor; transition: transform .25s; }
.nav-toggle span:first-child { top: 13px; } .nav-toggle span:last-child { top: 20px; }
.nav.menu-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.menu-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #EFE8DA; padding: 124px 0 56px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(217, 180, 106, .16), transparent 60%),
    radial-gradient(700px 600px at 6% 92%, rgba(61, 111, 224, .14), transparent 60%),
    linear-gradient(rgba(236, 229, 214, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(236, 229, 214, .045) 1px, transparent 1px) 0 0 / 56px 56px; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--ink) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; row-gap: 26px; align-items: start; }
.hero-copy { padding-top: 18px; }
.hero-head { grid-column: 1 / -1; }
.hero-head .eyebrow { margin-bottom: 14px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217, 180, 106, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,180,106,.55); } 70% { box-shadow: 0 0 0 10px rgba(217,180,106,0); } 100% { box-shadow: 0 0 0 0 rgba(217,180,106,0); } }
.hero-title { font-family: var(--serif); font-size: clamp(2.6rem, 8.8vw, 8rem); white-space: nowrap; line-height: .95; letter-spacing: -0.04em; font-weight: 380; font-variation-settings: "opsz" 72;
  background: linear-gradient(180deg, #FBF6EA 30%, #E9D3A4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-kicker { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.05vw, 1.75rem); line-height: 1.25; color: var(--gold-2); font-variation-settings: "opsz" 30; }
.hero-lead { font-size: 1.12rem; line-height: 1.65; color: rgba(236, 229, 214, .76); max-width: 580px; margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { position: relative; display: grid; padding-top: 6px; }
.hv-card { position: relative; background: linear-gradient(180deg, rgba(25, 37, 62, .92), rgba(16, 26, 46, .95)); border: 1px solid rgba(236, 229, 214, .1); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0,0,0,.2); padding: 16px 18px; backdrop-filter: blur(6px); }
.hv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.hv-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.hv-meta { font-family: var(--mono); font-size: 11px; color: rgba(236, 229, 214, .5); }
.hv-brief { justify-self: start; width: 84%; z-index: 1; animation: float 9s ease-in-out infinite; }
.hv-quote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; color: #F4EEDF; font-variation-settings: "opsz" 20; }
.hv-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hv-chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; background: rgba(217, 180, 106, .16); color: var(--gold-2); }
.hv-chip.ghost { background: transparent; border: 1px dashed rgba(236, 229, 214, .25); color: rgba(236, 229, 214, .6); }
.hv-files { justify-self: end; width: 76%; margin-top: -10px; z-index: 2; animation: float 10s ease-in-out -3s infinite; }
.hv-tree { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 12px; color: rgba(236, 229, 214, .82); }
.hv-tree li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px dashed rgba(236, 229, 214, .08); }
.hv-tree li:first-child { border-top: 0; }
.hv-tree .n { margin-left: auto; color: rgba(236, 229, 214, .45); }
.hv-tree .tag { margin-left: auto; font-size: 10px; padding: 2px 6px; border-radius: 5px; background: rgba(229, 112, 86, .16); color: #F3A493; white-space: nowrap; }
.hv-tree li.flag { color: #F6E9D2; }
.ico { width: 13px; height: 11px; flex: none; border-radius: 2px; }
.ico-folder { background: rgba(217, 180, 106, .5); clip-path: polygon(0 0, 45% 0, 55% 20%, 100% 20%, 100% 100%, 0 100%); }
.ico-file { width: 10px; height: 13px; background: rgba(160, 190, 240, .55); clip-path: polygon(0 0, 70% 0, 100% 28%, 100% 100%, 0 100%); }
.hv-verdict { justify-self: start; width: 78%; margin: -10px 0 0 5%; z-index: 3; animation: float 11s ease-in-out -6s infinite; }
.hv-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hv-checks li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(236, 229, 214, .85); }
.hv-checks b { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-align: center; padding: 3px 0; border-radius: 5px; background: rgba(236, 229, 214, .08); color: rgba(236, 229, 214, .8); }
.hv-checks i { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; }
.hv-checks .ok i { background: rgba(78, 190, 140, .16); color: #8EDDB7; }
.hv-checks .bad i { background: rgba(229, 112, 86, .16); color: #F3A493; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; border-top: 1px solid var(--ink-line); }
.hero-stats > div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--ink-line); }
.hero-stats > div:nth-child(n+4) { border-bottom: 0; }
.hero-stats dt { font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1; color: #F7F0E1; letter-spacing: -0.02em; font-variation-settings: "opsz" 60; }
.hero-stats dt small { font-size: .55em; color: var(--gold-2); margin-left: 2px; }
.hero-stats dd { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: rgba(236, 229, 214, .6); }

/* ---------- Sections ---------- */
.section { padding: 128px 0; position: relative; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #EFE8DA; }
.section-ink::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 400px at 90% 0%, rgba(217, 180, 106, .09), transparent 60%),
    linear-gradient(rgba(236, 229, 214, .03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(236, 229, 214, .03) 1px, transparent 1px) 0 0 / 56px 56px; }
.section-ink .container { position: relative; }
.section-ink h2 { color: #F7F0E1; }
.section-ink h2 em { color: var(--gold-2); }
.section-ink .lead { color: rgba(236, 229, 214, .72); }
.section-head { margin-bottom: 64px; max-width: 900px; }

/* ---------- 01 Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: var(--shadow); }
.why-index { display: inline-block; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold-ink); margin-bottom: 18px; }
.why-card h3 { margin-bottom: 12px; }
.why-card p { color: var(--text-2); font-size: 15.5px; }
.why-punch { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3; margin: 72px 0 56px; max-width: 900px; font-variation-settings: "opsz" 40; color: var(--text-2); }
.why-punch strong { font-weight: 500; color: var(--text); background: linear-gradient(transparent 62%, var(--gold-wash) 62%); }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote { margin: 0; padding: 28px 30px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(217, 180, 106, .08), transparent 70%); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--text); font-variation-settings: "opsz" 24; }
.quote figcaption { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.quote figcaption span { color: var(--muted); }

/* ---------- 02 Approach ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--gold), var(--line-2)); }
.step { position: relative; padding: 0 22px 0 0; }
.step-num { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.step h3 { margin: 22px 0 10px; font-size: 1.32rem; }
.step p { font-size: 15px; color: var(--text-2); }
.triad { margin-top: 96px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: var(--shadow); }
.triad-copy h3 { font-size: 2rem; margin-bottom: 14px; }
.triad-copy p:last-child { color: var(--text-2); }
.triad-copy .eyebrow { margin-bottom: 14px; }
.triad-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tri { border-radius: 14px; padding: 22px 20px 24px; min-height: 190px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.tri-k { font-family: var(--serif); font-size: 1.9rem; font-style: italic; line-height: 1; }
.tri p { font-size: 14.5px; color: var(--text-2); }
.tri-task { background: linear-gradient(180deg, #F3ECDD, #FBF8F1); } .tri-task .tri-k { color: var(--gold-ink); }
.tri-world { background: linear-gradient(180deg, #E8EEF6, #FBF8F1); } .tri-world .tri-k { color: var(--v-ib); }
.tri-rubric { background: linear-gradient(180deg, #E6F0EA, #FBF8F1); } .tri-rubric .tri-k { color: var(--v-pe); }

/* ---------- 03 Different ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 20px; overflow: hidden; }
.diff { background: var(--ink); padding: 36px 32px 34px; display: flex; flex-direction: column; transition: background .3s ease; }
.diff:hover { background: var(--ink-2); }
.diff-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(217, 180, 106, .1); border: 1px solid rgba(217, 180, 106, .25); margin-bottom: 24px; }
.diff-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diff h3 { color: #F7F0E1; font-size: 1.42rem; margin-bottom: 12px; }
.diff p { color: rgba(236, 229, 214, .7); font-size: 15px; flex: 1; }
.diff p b { color: #F2E6CC; font-weight: 600; }
.diff-link { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--gold-2); display: inline-flex; gap: 8px; align-items: center; }
.diff-link::after { content: "→"; font-family: var(--sans); transition: transform .2s; }
.diff-link:hover::after { transform: translateX(4px); }

/* ---------- 04 Coverage / taxonomy ---------- */
.taxonomy { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tax-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tax-head { padding: 20px 18px 16px; border-top: 4px solid var(--vc); background: linear-gradient(180deg, color-mix(in srgb, var(--vc) 9%, transparent), transparent); }
.tax-name { font-family: var(--serif); font-size: 1.22rem; line-height: 1.2; font-variation-settings: "opsz" 24; }
.tax-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tax-status { padding: 2px 7px; border-radius: 5px; background: var(--paper-2); color: var(--text-2); }
.tax-status.live { background: color-mix(in srgb, var(--good) 13%, transparent); color: var(--good); }
.tax-blurb { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.tax-body { padding: 4px 18px 18px; display: grid; gap: 14px; }
.tax-fam-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.tax-task { display: block; text-decoration: none; text-align: left; border: 0; background: transparent; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; line-height: 1.35; cursor: pointer; color: var(--text); transition: background .15s; width: calc(100% + 20px); }
.tax-task:hover { background: color-mix(in srgb, var(--vc) 10%, transparent); }
.cov-meta { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.cov-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cov-v { font-size: 15px; color: var(--text-2); }

/* ---------- 05 Tasks ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row-2 { justify-content: space-between; align-items: center; gap: 16px; }
.filter-sub { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; cursor: pointer; transition: all .18s ease; color: var(--text-2); }
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #F5EEDF; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vc, var(--gold)); }
.chip-count { font-family: var(--mono); font-size: 11.5px; opacity: .6; }
.chip.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.search { display: flex; align-items: center; gap: 10px; height: 42px; min-width: 300px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; width: 100%; color: var(--text); }
.result-count { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin: 18px 0 18px; text-transform: uppercase; }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { position: relative; display: flex; flex-direction: column; text-align: left; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; cursor: pointer; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; overflow: hidden; }
.tcard::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--vc); opacity: .9; }
.tcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--vc) 45%, var(--line)); box-shadow: 0 1px 2px rgba(20,24,38,.05), 0 24px 44px -24px rgba(20, 24, 38, .35); }
.tcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tcard-v { color: var(--vc); font-weight: 600; }
.tcard-title { font-family: var(--serif); font-size: 1.38rem; line-height: 1.18; margin: 12px 0 8px; letter-spacing: -0.01em; font-variation-settings: "opsz" 28; }
.tcard-fam { font-size: 12.5px; color: var(--muted); }
.tcard-sum { font-size: 14.2px; color: var(--text-2); margin: 12px 0 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.dchip { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: 3px 7px; border-radius: 5px; background: var(--paper-2); color: var(--text-2); border: 1px solid var(--line); }
.dchip.files { background: transparent; }
.dchip.rounds { background: var(--gold-wash); border-color: transparent; color: var(--gold-ink); }
.tcard-scores { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.sbar { display: grid; grid-template-columns: 62px 1fr 38px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.sbar-track { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.sbar-fill { display: block; height: 100%; border-radius: 99px; background: var(--ink); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.sbar.long .sbar-fill { background: var(--gold); }
.sbar-val { text-align: right; color: var(--text); font-weight: 600; }
.tcard-pending { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tcard-pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s infinite; }
.empty { grid-column: 1 / -1; padding: 60px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- 06 Leaderboard ---------- */
.lb-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { border: 0; background: transparent; padding: 12px 14px 14px; font-size: 14.5px; color: var(--muted); cursor: pointer; position: relative; display: inline-flex; gap: 8px; align-items: center; }
.tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); font-weight: 600; }
.tab[aria-selected="true"]::after { background: var(--vc, var(--ink)); }
.tab .soon { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; background: var(--paper-2); color: var(--muted); font-weight: 500; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 10px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; cursor: pointer; color: var(--text-2); }
.seg button[aria-checked="true"] { background: var(--ink); color: #F5EEDF; }
.lb-panel { min-height: 300px; }
.lb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.lb-title { font-family: var(--serif); font-size: 1.7rem; font-variation-settings: "opsz" 30; }
.lb-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.lb-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 44px minmax(200px, 1.3fr) minmax(240px, 2.4fr) 64px 78px 72px; gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); transition: background .15s; }
.lb-row:first-child { border-top: 0; }
.lb-row:not(.lb-th):hover { background: var(--card-2); }
.lb-row.lb-th { background: var(--card-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.lb-row.lb-th span:nth-child(n+4) { text-align: right; }
.lb-th .th-num.on { color: var(--text); font-weight: 600; }
.lb-rank { font-family: var(--serif); font-size: 1.45rem; color: var(--muted); font-variation-settings: "opsz" 30; }
.lb-row.top1 .lb-rank { color: var(--gold-ink); }
.lb-model { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-model > span:last-child { min-width: 0; }
.lb-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--mc); }
.lb-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lb-lab { font-size: 12px; color: var(--muted); display: block; font-weight: 400; }
.lb-harness, .lb-note { white-space: nowrap; }
.lb-bar { display: block; }
.lb-axis { position: relative; display: block; height: 14px; letter-spacing: 0; color: var(--faint); }
.lb-axis i { position: absolute; top: 0; font-style: normal; line-height: 14px; transform: translateX(-50%); }
.lb-axis i:first-child { transform: none; }
.lb-axis i:last-child { transform: translateX(-100%); }
.lb-scale { position: relative; display: block; height: 12px; border-radius: 99px; background: var(--paper-2); }
.lb-scale::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; pointer-events: none;
  background: linear-gradient(90deg,
    transparent calc(25% - .5px), rgba(18, 24, 38, .08) calc(25% - .5px), rgba(18, 24, 38, .08) calc(25% + .5px), transparent calc(25% + .5px),
    transparent calc(50% - .5px), rgba(18, 24, 38, .12) calc(50% - .5px), rgba(18, 24, 38, .12) calc(50% + .5px), transparent calc(50% + .5px),
    transparent calc(75% - .5px), rgba(18, 24, 38, .08) calc(75% - .5px), rgba(18, 24, 38, .08) calc(75% + .5px), transparent calc(75% + .5px)); }
.lb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 50%, #fff), var(--mc)); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.lb-num { text-align: right; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--faint); }
.lb-num.on { color: var(--text); font-weight: 700; }
.lb-harness { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .02em; }
.lb-caption { margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.heat-wrap { margin-top: 42px; }
.heat-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.heat-title h3 { font-size: 1.4rem; }
.heat-scale { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.heat-scale i { width: 120px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #F1EADC, #E9D6A6, #9CC0A4, #2E7D5B, #164B37); }
.heat { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.heat table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; table-layout: fixed; }
.heat table.heat-tasks { min-width: 900px; }
.heat th, .heat td { padding: 0; font-weight: 400; }
.heat thead th { font-size: 12.5px; line-height: 1.3; text-align: center; padding: 14px 10px 12px; color: var(--text-2); vertical-align: bottom; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.heat thead th button { border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.heat thead th:first-child { text-align: left; padding-left: 18px; width: 200px; }
.heat tbody th { text-align: left; padding: 0 14px 0 18px; font-size: 13.5px; font-weight: 600; white-space: nowrap; border-top: 1px solid var(--line); position: sticky; left: 0; z-index: 1; background: var(--card); }
.heat thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--card); }
.heat tfoot th { position: sticky; left: 0; z-index: 1; }
.heat td { border-top: 1px solid var(--line); border-left: 1px solid rgba(255,255,255,.6); }
.heat-cell { height: 44px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.heat tfoot td, .heat tfoot th { border-top: 1px solid var(--line-2); background: var(--card-2); }
.heat tfoot th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 14px 0 18px; text-align: left; }
.heat tfoot .heat-cell { color: var(--text-2); font-size: 12.5px; }
.lb-notes { margin-top: 26px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); max-width: 980px; }
.lb-notes p { padding-left: 16px; position: relative; }
.lb-notes p::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.lb-soon { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.lb-soon h3 { font-size: 1.9rem; margin-bottom: 12px; }
.lb-soon p { color: var(--text-2); }
.lb-soon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lb-soon li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 14.5px; }
.lb-soon li span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ph-bars { margin-top: 24px; display: grid; gap: 10px; }
.ph-bars i { display: block; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--paper-2), #E9E1D1, var(--paper-2)); background-size: 200% 100%; animation: shimmer 2.2s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- 07 Sense ---------- */
.brief-compare { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bc-col { padding: 40px 40px 38px; }
.bc-short { background: var(--ink); color: #EFE8DA; display: flex; flex-direction: column; }
.bc-long { background: var(--card); }
.bc-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.bc-k span { color: rgba(236, 229, 214, .5); letter-spacing: .06em; text-transform: none; font-size: 12.5px; }
.bc-long .bc-k { color: var(--gold-ink); }
.bc-long .bc-k span { color: var(--muted); }
.bc-short blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.35; color: #F7F0E1; font-variation-settings: "opsz" 36; flex: 1; }
.bc-foot { margin-top: 26px; font-family: var(--mono); font-size: 11.5px; color: rgba(236, 229, 214, .55); letter-spacing: .04em; }
.bc-list { margin: 0; padding: 0; list-style: none; counter-reset: bc; display: grid; gap: 12px; }
.bc-list li { counter-increment: bc; position: relative; padding-left: 38px; font-size: 15px; color: var(--text-2); }
.bc-list li::before { content: counter(bc, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 11.5px; color: var(--gold-ink); background: var(--gold-wash); padding: 2px 5px; border-radius: 5px; }
.bc-list b { color: var(--text); font-weight: 650; }
.sense-chart { margin-top: 72px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px 36px 28px; box-shadow: var(--shadow); }
.sense-chart-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.sense-chart-head h3 { font-size: 1.7rem; margin-bottom: 6px; }
.sense-chart-head p { color: var(--muted); font-size: 14.5px; }
.pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.pill[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #F5EEDF; }
.dumbbell { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dumbbell svg { width: 100%; min-width: 640px; height: auto; overflow: visible; }
.db-axis line { stroke: var(--line); }
.db-axis text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.db-name { font-family: var(--sans); font-size: 13.5px; fill: var(--text); font-weight: 600; }
.db-lab { font-family: var(--sans); font-size: 11.5px; fill: var(--muted); }
.db-line { stroke-width: 3; stroke-linecap: round; }
.db-gap { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--good); }
.db-val { font-family: var(--mono); font-size: 11px; fill: var(--muted); }

/* ---------- 08 Workspace ---------- */
.ws-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.ws-tree { background: #0E1729; border: 1px solid var(--ink-line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.ws-tree-head { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--ink-line); font-family: var(--mono); font-size: 12.5px; color: rgba(236, 229, 214, .8); background: rgba(255,255,255,.02); }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(236,229,214,.16); }
.ws-count { margin-left: auto; color: var(--gold-2); }
.ws-tree pre { margin: 0; padding: 20px 22px 8px; font-family: var(--mono); font-size: 12.8px; line-height: 1.85; color: #E6DFCE; overflow-x: auto; }
.ws-tree pre .d { color: rgba(236, 229, 214, .28); }
.ws-tree pre .c { color: rgba(236, 229, 214, .45); }
.ws-tree pre .w { color: #F3A493; }
.ws-tree pre .g { color: var(--gold-2); }
.ws-caption { padding: 4px 22px 18px; font-size: 12.5px; color: rgba(236, 229, 214, .45); }
.traps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.traps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ink-line); }
.traps li:first-child { border-top: 0; padding-top: 4px; }
.trap-n { font-family: var(--mono); font-size: 12px; color: var(--gold-2); padding-top: 3px; }
.traps h4 { color: #F7F0E1; font-size: 1.02rem; margin-bottom: 4px; }
.traps p { color: rgba(236, 229, 214, .66); font-size: 14.5px; }

/* ---------- 09 Rubrics ---------- */
.rb-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.role { border-radius: 20px; padding: 34px 34px 36px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.role-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.role h3 { font-size: 1.9rem; margin-bottom: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.role h3 span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.role p:last-child { color: var(--text-2); }
.rb-cats { margin-top: 56px; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { padding: 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cat-n { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card-2); font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: .04em; }
.cat-wt { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.cat h4 { margin-bottom: 8px; }
.cat p { font-size: 13.8px; color: var(--text-2); line-height: 1.55; }
.cat b { font-family: var(--mono); font-size: 11.5px; color: var(--gold-ink); }
.rb-modes { margin-top: 36px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card { padding: 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mode-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mode-head h4 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.mode-share { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text); }
.mode-card p { font-size: 14.2px; color: var(--text-2); line-height: 1.58; margin: 0; }
.mode-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mode-mech .mode-dot { background: var(--accent); }
.mode-judg .mode-dot { background: #7B6691; }
.rb-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.rb-examples { margin-top: 56px; }
.rbx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rbx-head h3 { font-size: 1.7rem; }
.rbx-head p { font-size: 13px; color: var(--muted); }
.rbx-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rbx-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 206px 104px; gap: 14px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.rbx-row:first-child { border-top: 0; }
.rbx-th { background: var(--card-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.rbx-row:not(.rbx-th) span:nth-child(3) { font-size: 13px; color: var(--text-2); }
.rbx-row em { font-style: normal; font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.r-mech { background: var(--accent-wash); color: var(--accent-2); }
.r-judg { background: #F3EFF7; color: #634E7A; }
.r-w5 { background: var(--ink); color: #F5EEDF; }
.r-w3 { background: #D9DCE4; color: var(--text); }
.r-w1 { background: var(--paper-2); color: var(--text-2); }
.rb-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.judge, .metrics { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.judge h3, .metrics h3 { font-size: 1.6rem; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-size: 14.8px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%238A6526' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks b { color: var(--text); }
.metrics dl { margin: 0; display: grid; gap: 0; }
.metrics dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.metrics dl > div:first-child { border-top: 0; padding-top: 0; }
.metrics dt { font-weight: 650; font-size: 14.5px; }
.metrics dd { margin: 0; font-size: 14.2px; color: var(--text-2); }

/* ---------- 10 Findings ---------- */
.findings { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.fcard { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.fcard.wide { grid-column: span 3; }
.fcard.dark { background: var(--ink); color: #EFE8DA; border-color: var(--ink); }
.fcard-num { font-family: var(--serif); font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 72; }
.fcard-num small { font-size: .42em; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.fcard.dark .fcard-num { color: var(--gold-2); }
.fcard.dark .fcard-num small { color: rgba(236, 229, 214, .5); }
.fcard-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.fcard.dark .fcard-k { color: rgba(236, 229, 214, .55); }
.fcard-text { font-size: 15px; color: var(--text-2); }
.fcard.dark .fcard-text { color: rgba(236, 229, 214, .75); }
.fcard-bars { display: grid; gap: 8px; margin-top: 18px; }
.fb { display: grid; grid-template-columns: 112px 1fr 50px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.fb-track { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.fb-fill { display: block; height: 100%; border-radius: 99px; background: var(--good); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.fb-val { font-family: var(--mono); font-weight: 700; text-align: right; color: var(--good); }
.failures { margin-top: 64px; }
.failures h3 { font-size: 1.9rem; margin-bottom: 22px; }
.fail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.fail { background: var(--card); padding: 26px 26px 28px; }
.fail-k { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--bad); background: #F6E3DE; padding: 3px 7px; border-radius: 5px; }
.fail h4 { margin: 14px 0 6px; font-size: 1.02rem; }
.fail p { font-size: 14.5px; color: var(--text-2); }

/* ---------- 11 Compare ---------- */
.matrix-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.matrix table { border-collapse: collapse; width: 100%; min-width: 900px; }
.matrix th, .matrix td { padding: 13px 12px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.matrix thead th { border-top: 0; font-size: 12px; line-height: 1.35; color: var(--text-2); font-weight: 600; vertical-align: bottom; padding-top: 22px; padding-bottom: 16px; width: 11%; }
.matrix th:first-child, .matrix td:first-child { text-align: left; padding-left: 22px; position: sticky; left: 0; background: var(--card); z-index: 1; font-weight: 600; white-space: nowrap; }
.matrix thead th:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mx { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; }
.mx-y { background: var(--ink); }
.mx-p { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mx-n { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.mx-u { font-family: var(--mono); font-size: 13px; color: var(--muted); width: auto; height: auto; }
.matrix tr.fle td { background: var(--gold-wash); border-top: 1px solid #E5D3A8; }
.matrix tr.fle td:first-child { background: var(--gold-wash); font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--gold-ink); }
.matrix tr.fle .mx-y { background: var(--gold-ink); }

/* ---------- 12 Built with ---------- */
.namewall { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 20px; overflow: hidden; }
.nw-group { background: var(--ink); padding: 34px 36px 38px; }
.nw-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(236, 229, 214, .5); margin-bottom: 22px; }
.nw-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 38px; }
.nw-group li { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.1; color: #F7F0E1; letter-spacing: -0.015em; font-variation-settings: "opsz" 60; }
.nw-more { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold-2); }
.roadmap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 64px; }
.rm { border: 1px solid var(--ink-line); border-radius: 16px; padding: 24px 24px 26px; background: rgba(255, 255, 255, .02); }
.rm-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.rm h4 { color: #F7F0E1; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 8px; }
.rm p { color: rgba(236, 229, 214, .66); font-size: 14.5px; }
.cite { margin-top: 56px; border: 1px solid var(--ink-line); border-radius: 16px; overflow: hidden; }
.cite-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--ink-line); }
.cite-head h3 { color: #F7F0E1; font-size: 1.3rem; }
.copy { border: 1px solid rgba(236, 229, 214, .25); background: transparent; color: #EFE8DA; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.copy:hover { border-color: var(--gold); color: var(--gold-2); }
.cite pre { margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #E6DFCE; overflow-x: auto; }

/* ---------- Footer ---------- */
.footer { background: #070C17; color: rgba(236, 229, 214, .7); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #F7F0E1; }
.footer-brand span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--gold-2); margin-left: 8px; }
.footer-note { font-size: 13px; margin-top: 6px; color: rgba(236, 229, 214, .5); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--gold-2); }

/* ---------- Task dialog ---------- */
.task-dialog { width: min(980px, 100% - 32px); max-height: min(92vh, 1100px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--text); box-shadow: 0 60px 120px -40px rgba(8, 12, 22, .6); }
.task-dialog::backdrop { background: rgba(8, 12, 22, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.task-dialog[open] { animation: pop .28s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.td-inner { overflow-y: auto; max-height: min(92vh, 1100px); }
.td-head { position: relative; padding: 34px 40px 28px; background: var(--card); border-bottom: 1px solid var(--line); }
.td-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--vc); }
.td-close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; display: grid; place-items: center; }
.td-close:hover { background: var(--paper-2); }
.td-close svg { width: 16px; height: 16px; stroke: var(--text); stroke-width: 2; }
.td-v { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--vc); font-weight: 600; }
.td-title { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.08; margin: 10px 0 14px; letter-spacing: -0.015em; padding-right: 40px; font-variation-settings: "opsz" 48; }
.td-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.td-tag { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--paper-2); color: var(--text-2); border: 1px solid var(--line); }
.td-tag.type { background: transparent; }
.td-summary { font-size: 1.08rem; color: var(--text-2); margin-top: 18px; max-width: 760px; }
.td-body { padding: 30px 40px 36px; display: grid; gap: 30px; }
.td-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.td-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.td-brief { margin: 0; padding: 20px 22px; border-radius: 14px; background: var(--ink); color: #F2EBDC; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; font-variation-settings: "opsz" 20; }
.td-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.td-list li { position: relative; padding-left: 20px; font-size: 14.6px; color: var(--text-2); }
.td-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--vc); opacity: .75; }
.td-list.hard li::before { background: var(--bad); border-radius: 50%; }
.td-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.td-fact { background: var(--card); padding: 18px 18px 20px; }
.td-fact .v { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-variation-settings: "opsz" 30; }
.td-fact .v small { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.td-fact p { font-size: 13.5px; color: var(--text-2); margin-top: 6px; }
.td-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.td-scores { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 14px; }
.tds-row { display: grid; grid-template-columns: 170px 1fr 52px 52px; gap: 14px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.tds-row.th { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.tds-row.th span:nth-child(n+3) { text-align: right; }
.tds-name { display: flex; align-items: center; gap: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tds-bars { position: relative; height: 18px; }
.tds-bars i { position: absolute; left: 0; height: 6px; border-radius: 99px; }
.tds-bars .s { top: 2px; background: var(--ink); }
.tds-bars .l { top: 10px; background: var(--gold); }
.tds-v { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tds-v.l { color: var(--gold-ink); }
.td-foot { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .taxonomy { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .pipeline { grid-template-columns: 1fr; gap: 28px; }
  .pipeline::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-2), var(--gold), var(--line-2)); }
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 22px; padding: 0; }
  .step h3 { margin: 8px 0 6px; grid-column: 2; }
  .step p { grid-column: 2; }
  .step-num { grid-row: span 2; }
  .triad { grid-template-columns: 1fr; padding: 32px; }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-row { grid-template-columns: 36px minmax(150px, 1.2fr) minmax(170px, 2fr) 56px 68px 62px; gap: 12px; padding: 12px 16px; }
  .brief-compare { grid-template-columns: 1fr; }
  .ws-grid { grid-template-columns: 1fr; }
  .rb-bottom { grid-template-columns: 1fr; }
  .findings { grid-template-columns: repeat(2, 1fr); }
  .fcard, .fcard.wide { grid-column: span 1; }
  .fail-grid { grid-template-columns: repeat(2, 1fr); }
  .cov-meta { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open { background: rgba(246, 242, 234, .97); color: var(--text); border-bottom-color: var(--line); }
  .nav.menu-open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: rgba(246, 242, 234, .98); border-bottom: 1px solid var(--line); }
  .nav.menu-open .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; opacity: 1; font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .rb-roles { grid-template-columns: 1fr; }
  .taxonomy { grid-template-columns: repeat(2, 1fr); }
  .namewall { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .td-cols { grid-template-columns: 1fr; }
  .lb-row { grid-template-columns: 28px minmax(150px, 1fr) minmax(140px, 1.15fr) 46px 58px 54px; gap: 10px; padding: 12px 14px; }
  .lb-row.lb-th { font-size: 9.5px; letter-spacing: .04em; }
  .lb-num { font-size: 13px; }
  .lb-row.lb-th span { text-align: right; }
  .lb-row.lb-th span:nth-child(-n+2) { text-align: left; }
  .lb-name { font-size: 14px; white-space: normal; line-height: 1.25; display: block; }
  .lb-lab { font-size: 11.5px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(var(--wrap), 100% - 32px); }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 112px; }
  .hero-title { font-size: 10.6vw; }
  .hv-card, .hv-brief, .hv-files, .hv-verdict { width: 100%; margin: 0; animation: none; }
  .hero-visual { gap: 12px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(n+4) { border-bottom: 1px solid var(--ink-line); }
  .task-grid, .diff-grid, .cats, .modes, .taxonomy, .findings, .fail-grid { grid-template-columns: 1fr; }
  .triad-cards { grid-template-columns: 1fr; }
  .tri { min-height: 0; }
  .search { min-width: 0; width: 100%; }
  .filter-row-2 { flex-direction: column; align-items: stretch; }
  .bc-col { padding: 28px 24px; }
  .rbx-row { grid-template-columns: 1fr auto; }
  .rbx-row span:nth-child(3) { grid-column: 1; }
  .rbx-row span:nth-child(4) { grid-column: 2; }
  .rbx-th span:nth-child(3), .rbx-th span:nth-child(4) { display: none; }
  .metrics dl > div { grid-template-columns: 1fr; gap: 4px; }
  .td-head, .td-body { padding-left: 22px; padding-right: 22px; }
  .td-facts { grid-template-columns: 1fr; }
  .tds-row { grid-template-columns: 120px 1fr 44px 44px; gap: 8px; }
  .lb-soon { grid-template-columns: 1fr; padding: 28px; }
  .lb-row { grid-template-columns: 22px minmax(0, 1fr) 40px 52px 50px; gap: 6px; padding: 12px; }
  .lb-row .lb-bar, .lb-row.lb-th .th-bar, .lb-cap-bar { display: none; }
  .lb-rank { font-size: 1.25rem; }
  .lb-model { gap: 8px; }
  .lb-model .lb-dot { width: 8px; height: 8px; border-radius: 2px; }
  .heat thead th:first-child { width: 150px; padding-left: 14px; }
  .heat tbody th, .heat tfoot th { white-space: normal; line-height: 1.25; padding: 0 10px 0 14px; }
  .sense-chart, .judge, .metrics, .role { padding: 24px; }
}

/* ---------- Language switch (EN / 中文) ---------- */
.lang-switch { display: inline-flex; align-items: center; flex: none; height: 34px; margin-left: -8px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.lang-switch > a, .lang-switch > span { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 11px; border-radius: 999px; text-decoration: none; line-height: 1; }
.lang-switch > a { opacity: .78; transition: opacity .2s, background .2s; }
.lang-switch > a:hover { opacity: 1; background: rgba(217, 180, 106, .16); }
.lang-switch .ls-on { background: var(--gold); color: var(--ink); }
.nav.is-solid .lang-switch .ls-on, .nav.menu-open .lang-switch .ls-on { background: var(--ink); color: #F5EEDF; }
@media (max-width: 1100px) {
  .nav-cta { display: none; }
  .nav-links a { padding: 0 9px; }
}
@media (max-width: 900px) {
  .nav-inner { gap: 12px; }
  .nav.menu-open .nav-links { top: 64px; }
  .lang-switch { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 1.12rem; }
  .lang-switch > a, .lang-switch > span { padding: 0 8px; }
}

/* ---------- Chinese page (zh/) ---------- */
/* Dashes, curly quotes and ellipses come from the CJK system font, so "——" joins and quotes are full width. */
@font-face { font-family: "FLE CJK Punct Sans"; src: local("PingFang SC"), local("PingFangSC-Regular"), local("Hiragino Sans GB"), local("HiraginoSansGB-W3"), local("Microsoft YaHei"), local("Noto Sans CJK SC"), local("NotoSansCJKsc-Regular"), local("Source Han Sans SC");
  unicode-range: U+2014, U+2018, U+2019, U+201C, U+201D, U+2026; }
@font-face { font-family: "FLE CJK Punct Serif"; src: local("Songti SC"), local("STSongti-SC-Regular"), local("STSong"), local("Noto Serif CJK SC"), local("NotoSerifCJKsc-Regular"), local("Source Han Serif SC"), local("SimSun");
  unicode-range: U+2014, U+2018, U+2019, U+201C, U+201D, U+2026; }
html:lang(zh) {
  --serif: "FLE CJK Punct Serif", "Newsreader", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
  --sans: "FLE CJK Punct Sans", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;
}
html:lang(zh) body { line-height: 1.75; }
html:lang(zh) h2 { line-height: 1.2; letter-spacing: 0; }
html:lang(zh) h3 { line-height: 1.35; letter-spacing: 0; }
html:lang(zh) .lead { line-height: 1.8; }
html:lang(zh) h1 em, html:lang(zh) h2 em, html:lang(zh) .hero-kicker, html:lang(zh) .tri-k, html:lang(zh) .nw-more { font-style: normal; }
html:lang(zh) .eyebrow { letter-spacing: .08em; }
html:lang(zh) .hero-kicker { text-wrap: balance; }

/* ==========================================================================
   Calm Airy Zaro-inspired light palette + focused above-the-fold Hero.
   Pure white (#FFFFFF), luminous cool-alabaster (#F7F8FA), soft slate-mist
   (#F3F4F8), restrained dusty indigo (#4F5A8E / #9BA5CC), refined emerald
   (#1F8A65), clear slate-blue (#2E6DA8), muted coral (#C94A4A). Zero gradients.
   ========================================================================== */
:root {
  --ink: #1A1D24; --ink-2: #2C303A; --ink-3: #414654; --ink-line: #E2E5EE;
  --paper: #FFFFFF; --paper-2: #F7F8FA; --card: #FFFFFF; --card-2: #FAFBFD;
  --text: #1A1D24; --text-2: #4D5260; --muted: #717787; --faint: #9BA0AE;
  --line: #E6E8EF; --line-2: #D2D6E2;
  --accent: #4F5A8E; --accent-2: #3D4778; --accent-deep: #192347; --accent-soft: #9BA5CC; --accent-wash: #EEF0F8; --accent-line: #D9DDEC;
  --amber: #4F5A8E; --amber-ink: #3D4778; --amber-wash: #EEF0F8;
  --gold: #5E6A9E; --gold-2: #9BA5CC; --gold-ink: #4F5A8E; --gold-wash: #EEF0F8;
  --good: #1F8A65; --bad: #C94A4A;
  --v-pe: #1F8A65; --v-ib: #2E6DA8; --v-hf: #525D8E; --v-cdd: #7B6691; --v-ins: #C75D54;
  --shadow: 0 1px 2px rgba(26, 29, 36, .03), 0 10px 24px -18px rgba(26, 29, 36, .12);
  --wrap: 1520px;
}
.container { width: min(var(--wrap), 100% - 96px); }
::selection { background: #DDE2F2; color: var(--text); }
:focus-visible { outline-color: var(--accent); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 90, 142, .42); } 70% { box-shadow: 0 0 0 9px rgba(79, 90, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 90, 142, 0); } }

/* nav: consistently airy light frosted bar */
.nav { color: var(--text); }
.nav.is-solid, .nav.is-ink { background: rgba(255, 255, 255, .93); color: var(--text); border-bottom-color: var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav-links a.active, .nav.is-solid .nav-links a.active, .nav.is-ink .nav-links a.active { background: var(--accent-wash); color: var(--accent-2); }
.nav-cta, .nav.is-ink .nav-cta { border-color: var(--line-2); color: var(--text); }
.nav-cta:hover, .nav.is-ink .nav-cta:hover { background: var(--accent-wash); border-color: var(--accent-soft); color: var(--accent-2); }
.lang-switch, .nav.is-ink .lang-switch { border-color: var(--line-2); }
.lang-switch > a:hover, .nav.is-ink .lang-switch > a:hover { background: var(--paper-2); }
.lang-switch .ls-on, .nav.is-solid .lang-switch .ls-on, .nav.is-ink .lang-switch .ls-on, .nav.menu-open .lang-switch .ls-on { background: var(--ink); color: #FFFFFF; }

/* global typography polish: no italics on headings/kicker, larger section eyebrow, wider heading measure to avoid orphan wraps */
h1 em, h2 em, .hero-kicker, .nw-more { font-style: normal; }
.section-head { max-width: 1180px; }
h2 { font-size: clamp(2.25rem, 4.15vw, 3.7rem); }
.eyebrow { font-size: 13.5px; letter-spacing: .12em; }
.eyebrow-num { min-width: 34px; height: 26px; padding: 0 7px; font-size: 13px; }
.lead { font-size: 1.02rem; line-height: 1.62; margin-top: 16px; max-width: 780px; }
html:lang(zh) .lead { font-size: 1rem; line-height: 1.78; }

/* hero: balanced vertical rhythm across 720p laptops and tall 1050p+ screens */
.hero { background: #FFFFFF; color: var(--text); min-height: 0; display: block; padding: clamp(90px, 11vh, 120px) 0 clamp(44px, 6.5vh, 72px); }
.hero-bg, .hero-bg::after { display: none; }
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 16px; align-items: start; }
.hero-head { grid-column: 1; grid-row: 1; padding-top: 56px; }
.hero-head .eyebrow { margin-bottom: 14px; font-size: 13px; }
.hero-title { font-family: "Playfair Display", var(--serif); font-weight: 500; font-variation-settings: normal; letter-spacing: -0.024em; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-deep); font-size: clamp(3rem, 5.15vw, 4.8rem); line-height: 1.02; }
.hero-copy { grid-column: 1; grid-row: 2; padding-top: 2px; display: block; }
.eyebrow.on-dark { color: var(--muted); }
.eyebrow.on-dark .eyebrow-num { border-color: var(--line-2); color: var(--text); }
.pulse { background: var(--accent); box-shadow: 0 0 0 0 rgba(79, 90, 142, .42); }
.hero-kicker { color: var(--text); font-style: normal; font-size: clamp(1.22rem, 1.65vw, 1.46rem); line-height: 1.32; max-width: 600px; }
.hero-lead { color: var(--text-2); margin-top: 14px; font-size: 0.9375rem; line-height: 1.66; max-width: 560px; }
html:lang(zh) .hero-lead { font-size: 0.9375rem; line-height: 1.78; }
.hero-cta { margin-top: 26px; padding-top: 0; }
.btn { padding: 0 26px; }
.btn::after { display: none; }
.btn-gold { background: var(--accent-deep); color: #FFFFFF; border-color: var(--accent-deep); box-shadow: none; }
.btn-gold:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: #FFFFFF; }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-2); }

/* hero right visual: slightly larger, crisp scale beside the bigger Hero title */
.hero-visual { grid-column: 2; grid-row: 1 / 3; padding-top: 8px; align-self: center; justify-self: end; width: 100%; max-width: 580px; }
.hv-card { background: #FFFFFF; border-color: var(--line); padding: 14px 17px; box-shadow: 0 18px 36px -26px rgba(26, 29, 36, .16), 0 1px 2px rgba(26, 29, 36, .04); }
.hv-head { margin-bottom: 7px; }
.hv-label { font-size: 11.5px; color: var(--accent); }
.hv-meta { font-size: 11.5px; color: var(--muted); }
.hv-brief { width: 95%; }
.hv-quote { font-size: 0.99rem; line-height: 1.44; color: var(--text); }
.hv-foot { margin-top: 9px; }
.hv-chip { font-size: 11px; padding: 4px 9px; background: var(--accent-wash); color: var(--accent-2); }
.hv-chip.ghost { background: transparent; border-color: var(--line-2); color: var(--muted); }
.hv-files { width: 89%; margin-top: -10px; }
.hv-verdict { width: 90%; margin: -10px 0 0 2%; }
.hv-tree { color: var(--text-2); font-size: 12.2px; }
.hv-tree li { border-top-color: var(--line); padding: 4.5px 0; }
.hv-tree .n { color: var(--faint); }
.hv-tree .tag { font-size: 10.5px; padding: 2px 7px; background: #FFF0EF; color: var(--bad); }
.hv-tree li.flag { color: var(--text); }
.ico-folder { background: #70AEED; }
.ico-file { background: var(--accent-soft); }
.hv-checks { gap: 6px; }
.hv-checks li { color: var(--text-2); font-size: 12.6px; }
.hv-checks b { background: var(--paper-2); color: var(--text-2); }
.hv-checks .ok i { background: #E9F9F2; color: var(--good); }
.hv-checks .bad i { background: #FFF0EF; color: var(--bad); }

/* below-the-fold benchmark metrics strip */
.hero-strip { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.hero-strip .hero-stats { margin: 0; border-top: 0; grid-template-columns: repeat(6, 1fr); gap: 0; }
.hero-strip .hero-stats > div { padding: 4px 18px 4px 18px; border-bottom: 0; border-left: 1px solid var(--line); }
.hero-strip .hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-strip .hero-stats > div:last-child { padding-right: 0; }
.hero-stats dt { color: var(--text); font-size: clamp(1.75rem, 2.3vw, 2.15rem); }
.hero-stats dt small { color: var(--accent); }
.hero-stats dd { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* sections: flat airy light rhythm — white, cool alabaster, soft slate-mist */
.section-alt { background: var(--paper-2); }
.section-ink { background: #F3F4F8; color: var(--text); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.section-ink::before { display: none; }
.section-ink h2 { color: var(--text); }
.section-ink h2 em { color: var(--accent); }
.section-ink .lead { color: var(--text-2); }
.fineprint.on-dark { color: var(--muted); }

/* why + approach (zero gradients, calm fresh tints) */
.why-index { color: var(--accent); }
.why-punch { margin: 124px 0; }
.why-punch strong { background: none; border-bottom: 2px solid var(--accent-soft); padding-bottom: 1px; }
.js .why-punch.is-tw { opacity: 1; transform: none; }
.why-punch.is-tw strong { border-bottom: 0; padding-bottom: 0; }
.why-punch .tw-ch { opacity: 0; }
.why-punch .tw-ch.on { opacity: 1; }
.why-punch.is-tw strong .tw-ch { border-bottom: 2px solid transparent; padding-bottom: 1px; }
.why-punch.is-tw strong .tw-ch.on { border-bottom-color: var(--accent-soft); }
.why-punch .tw-ch.is-cur { position: relative; }
.why-punch .tw-ch.is-cur::after { content: ""; position: absolute; right: -2px; top: 14%; bottom: 12%; width: 2px; border-radius: 1px; background: var(--accent); pointer-events: none; }
.why-punch .tw-ch.is-blink::after { animation: twBlink .45s steps(2, end) infinite; }
@keyframes twBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.quote { border-left-color: var(--accent); background: var(--accent-wash); }
.pipeline { --pipe-p: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 28px; row-gap: 0; }
.pipeline::before, .pipeline::after { display: none; }
.step { cursor: pointer; padding: 0; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 46px; right: -28px; top: 22px; height: 2px; background: var(--line); pointer-events: none; z-index: 0;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 46px; right: -28px; top: 22px; height: 2px; background: var(--accent); transform-origin: left center; transform: scaleX(0); transition: transform .5s cubic-bezier(.22, .8, .25, 1); pointer-events: none; z-index: 0;
}
.step.is-done::after { transform: scaleX(1); }
.js .pipeline .step.reveal:nth-child(1) { transition-delay: 0ms; }
.js .pipeline .step.reveal:nth-child(2) { transition-delay: 80ms; }
.js .pipeline .step.reveal:nth-child(3) { transition-delay: 160ms; }
.js .pipeline .step.reveal:nth-child(4) { transition-delay: 240ms; }
.js .pipeline .step.reveal:nth-child(5) { transition-delay: 320ms; }
.step-num { z-index: 1; background: #FFFFFF; border-color: var(--accent-line); color: var(--accent-2); transition: background .32s ease, color .32s ease, border-color .32s ease, transform .35s cubic-bezier(.22, .8, .25, 1), box-shadow .35s ease; }
.step h3 { margin: 18px 0 8px; font-size: 1.18rem; line-height: 1.25; transition: color .28s ease, transform .3s ease; }
.step p { font-size: 13.8px; line-height: 1.58; transition: color .28s ease; }
html:lang(zh) .step p { line-height: 1.72; }
.step.is-done .step-num { background: var(--accent-wash); border-color: var(--accent-soft); color: var(--accent-2); }
.step.is-active .step-num { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: scale(1.09); box-shadow: 0 0 0 6px var(--accent-wash); }
.step.is-active h3 { color: var(--accent-2); transform: translateY(-2px); }
.step.is-active p { color: var(--text); }
.triad { margin-top: 88px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.triad-copy p:last-child { font-size: 15px; line-height: 1.66; }
html:lang(zh) .triad-copy p:last-child { font-size: 14.5px; line-height: 1.78; }
.triad-cards { margin-top: 38px; }
.tri-task { background: #F1F3FA; border-color: var(--accent-line); } .tri-task .tri-k { color: var(--accent); }
.tri-world { background: #EEF5FB; border-color: #D2E3F4; } .tri-world .tri-k { color: var(--v-ib); }
.tri-rubric { background: #EDF7F3; border-color: #CDE8DC; } .tri-rubric .tri-k { color: var(--v-pe); }

/* what makes FLE different */
.diff-grid { background: var(--ink-line); border-color: var(--ink-line); }
.diff { background: #FFFFFF; }
.diff:hover { background: #FAFBFE; }
.diff-icon { background: var(--accent-wash); border-color: var(--accent-line); }
.diff-icon svg { stroke: var(--accent); }
.diff h3 { color: var(--text); }
.diff p { color: var(--text-2); }
.diff p b { color: var(--text); }
.diff-link { color: var(--accent); }

/* coverage — calm interactive master-detail vertical explorer (left rail + right spacious pane) */
.taxonomy { display: block; }
.tax-explorer { display: grid; grid-template-columns: 372px minmax(0, 1fr); background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tax-rail { background: #FAFBFD; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.tax-nav { position: relative; flex: 1 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 22px 24px 22px 26px; font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.38; color: var(--text-2); cursor: pointer; transition: background .15s ease, color .15s ease; }
.tax-nav:last-child { border-bottom: 0; }
.tax-nav::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background .15s ease; }
.tax-nav:hover { background: rgba(255, 255, 255, .7); color: var(--text); }
.tax-nav[aria-selected="true"] { background: #FFFFFF; color: var(--text); font-weight: 600; box-shadow: 1px 0 0 #FFFFFF; z-index: 1; }
.tax-nav[aria-selected="true"]::before { background: var(--vc, var(--accent)); }
.tax-nav-name { min-width: 0; }
.tax-nav-n { flex: none; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; transition: color .15s ease; }
.tax-nav[aria-selected="true"] .tax-nav-n { color: var(--vc, var(--accent)); font-weight: 600; }

.tax-pane { padding: 36px 44px 40px; display: flex; flex-direction: column; min-height: 420px; min-width: 0; }
.tax-pane-head { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tax-pane-head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.2; color: var(--text); margin: 0; }
.tax-pane-blurb { font-size: 15.5px; line-height: 1.64; color: var(--text-2); margin: 12px 0 0; max-width: 68ch; }
html:lang(zh) .tax-pane-blurb { font-size: 15px; line-height: 1.78; }

.tax-fams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; align-content: start; }
.tax-fam { min-width: 0; }
.tax-fam-name { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0 0 12px; }
.tax-task { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 12px; margin: 0 -12px; border-radius: 9px; font-size: 15.2px; line-height: 1.44; width: calc(100% + 24px); color: var(--text); transition: background .15s ease, color .15s ease; }
.tax-task:hover { background: color-mix(in srgb, var(--vc, var(--accent)) 9%, transparent); }
.tax-arrow { flex: none; font-size: 14px; color: var(--vc, var(--accent)); opacity: 0; transform: translateX(-3px); transition: opacity .15s ease, transform .15s ease; }
.tax-task:hover .tax-arrow { opacity: .9; transform: none; }
/* coverage breakdown — unboxed architectural 3-column distribution grid (no carousel, no nested boxes) */
.cov-breakdown { margin-top: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr) minmax(0, .86fr); }
.cov-col { display: flex; flex-direction: column; padding: 26px 34px 28px; min-width: 0; }
.cov-col:first-child { padding-left: 2px; }
.cov-col:last-child { padding-right: 2px; }
.cov-col + .cov-col { border-left: 1px solid var(--line); }
.cov-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cov-col-head h3 { margin: 0; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.cov-col-head span { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.cov-bars, .cov-deliver { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.cov-bars li { display: grid; grid-template-columns: 124px minmax(0, 1fr) 26px; align-items: center; gap: 14px; font-size: 13.5px; line-height: 1.35; }
.cov-col-types .cov-bars li { grid-template-columns: 106px minmax(0, 1fr) 26px; }
html:lang(zh) .cov-bars li { grid-template-columns: 82px minmax(0, 1fr) 26px; }
html:lang(zh) .cov-col-types .cov-bars li { grid-template-columns: 64px minmax(0, 1fr) 26px; }
.cov-name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-bar { display: block; height: 6px; border-radius: 999px; background: var(--accent-wash); overflow: hidden; }
.cov-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); opacity: .82; }
.cov-col-types .cov-bar { background: #EDF3FA; }
.cov-col-types .cov-bar i { background: #4E7EB3; opacity: .88; }
.cov-val { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.cov-deliver li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.35; color: var(--text-2); }
.cov-ext { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 3px 8px; border-radius: 6px; background: #EBF5F1; color: #1F7759; font-family: var(--mono); font-size: 11.5px; font-weight: 500; line-height: 1.25; }

/* tasks — quiet, uncluttered 2-row filter bar (no dots, no count spam, unified radii) */
.task-toolbar { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; margin-bottom: 20px; }
.tb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.tb-vtabs { display: flex; align-items: stretch; gap: 6px; padding: 0; border-bottom: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; margin-bottom: -1px; }
.tb-vtabs::-webkit-scrollbar { display: none; }
.vtab { position: relative; flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 6px; border: 0; background: transparent; padding: 10px 10px 13px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .16s ease; }
.vtab:first-child { padding-left: 0; }
.vtab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: transparent; transition: background .16s ease; }
.vtab:first-child::after { left: 0; }
.vtab:hover { color: var(--text); }
.vtab[aria-selected="true"] { color: var(--text); font-weight: 600; }
.vtab[aria-selected="true"]::after { background: var(--vc, var(--accent)); }
.vtab-n { font-family: var(--mono); font-size: 11.5px; line-height: 1; color: var(--faint); font-weight: 500; transition: color .16s ease; }
.vtab[aria-selected="true"] .vtab-n { color: var(--accent-2); font-weight: 600; }
.result-count { font-family: var(--mono); font-size: 12px; letter-spacing: .01em; color: var(--muted); margin: 0; padding-bottom: 13px; white-space: nowrap; text-transform: none; }

.tb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 0 0; background: transparent; }
.tb-wt-seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0; border-radius: 0; background: transparent; border: 0; }
.wt-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease; }
.wt-btn:hover:not(.is-zero) { color: var(--text); background: #FFFFFF; border-color: var(--line); }
.wt-btn.active { background: #FFFFFF; color: var(--text); font-weight: 600; border-color: var(--line-2); box-shadow: 0 1px 2px rgba(26, 29, 36, .04); }
.wt-btn.is-zero { opacity: .34; }
.wt-btn.is-zero:hover { opacity: .62; }

.tb-right { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; justify-content: flex-end; min-width: 0; }
.tb-search { position: relative; display: flex; align-items: center; gap: 7px; height: 32px; width: 210px; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #FFFFFF; transition: border-color .16s ease, box-shadow .16s ease, width .18s ease; }
.tb-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); width: 248px; }
.tb-search svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--faint); stroke-width: 1.9; stroke-linecap: round; }
.tb-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; width: 100%; min-width: 0; color: var(--text); }
.tb-search input::placeholder { color: var(--faint); }
.tb-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.tb-clear-q { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--muted); cursor: pointer; flex: none; font-size: 12px; line-height: 1; padding: 0; transition: background .15s, color .15s; }
.tb-clear-q:hover { background: var(--line); color: var(--text); }
.tb-clear-q[hidden] { display: none; }

.tb-sort-wrap { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #FFFFFF; color: var(--muted); flex: none; }
.tb-sort-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.tb-sort-wrap svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-sort { border: 0; outline: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; padding-right: 2px; }

.tb-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: -6px 0 18px; }
.tb-status[hidden] { display: none; }
.tb-active-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.active-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-wash); color: var(--accent-2); font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; }
.active-tag:hover { background: #E3E7F5; border-color: var(--accent-soft); }
.active-tag i { font-style: normal; font-size: 13px; line-height: 1; opacity: .7; }
.tb-reset { border: 0; background: transparent; color: var(--accent-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background .15s, color .15s; }
.tb-reset:hover { background: var(--accent-wash); color: var(--ink); }
.tb-reset[hidden] { display: none; }
.empty { display: grid; justify-items: center; gap: 14px; padding: 52px 24px; }
.empty-reset { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.empty-reset:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-2); }

.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.dchip.rounds { background: var(--accent-wash); color: var(--accent-2); }
.sbar-fill { background: var(--accent); }
.sbar.long .sbar-fill { background: #5BB090; }
.tcard:hover { box-shadow: 0 1px 2px rgba(26, 29, 36, .04), 0 18px 34px -22px rgba(79, 90, 142, .18); }
.tcard-v, .td-v { color: color-mix(in srgb, var(--vc) 90%, #1A1D24); }

/* leaderboard (flat crisp bars, natural-case meta, tab underline flush on divider) */
.lb-controls { align-items: flex-end; }
.lb-controls .tabs { margin-bottom: -1px; }
.lb-controls .tab { padding: 12px 14px 14px; }
.lb-controls .tab:first-child { padding-left: 2px; }
.lb-controls .tab:first-child::after { left: 2px; }
.lb-controls .tab::after { bottom: 0; }
.lb-head { align-items: center; }
.lb-title { line-height: 1.15; }
.lb-meta { text-transform: none; letter-spacing: .01em; font-size: 12.5px; line-height: 1.4; }
.seg { padding: 4px; align-self: flex-end; margin-bottom: 3px; }
.seg button { padding: 8px 13px; font-size: 13px; line-height: 1.3; font-weight: 500; transition: background .15s ease, color .15s ease; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--ink); color: #FFFFFF; }
.tab[aria-selected="true"]::after { background: var(--vc, var(--accent)); }
.lb-row.top1 .lb-rank { color: var(--accent); }
.lb-model { gap: 0; }
.lb-dot { display: none; }
.heat thead th a, .heat thead th button { text-decoration: none; color: var(--text-2); transition: color .15s ease; }
.heat thead th a:hover, .heat thead th button:hover { color: var(--accent-2); }
.heat table.heat-overall { min-width: 980px; }
.heat table.heat-overall thead th { white-space: nowrap; vertical-align: middle; padding: 14px 10px 12px; }
.heat table.heat-overall thead th:first-child { width: 184px; padding-left: 18px; }
.heat table.heat-overall thead th:nth-child(2) { width: 212px; }
html:lang(zh) .heat table.heat-overall thead th:nth-child(2) { width: auto; }
.lb-scale { background: var(--paper-2); }
.lb-fill { background: var(--mc); }
.ph-bars i { background: var(--paper-2); animation: none; }
.lb-notes-box { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.lb-notes-k { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-bottom: 16px; }
.lb-notes { margin: 0; padding: 0; list-style: none; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.lb-notes.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.lb-notes li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.64; color: var(--text-2); }
html:lang(zh) .lb-notes li { line-height: 1.78; }
.lb-note-n { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
@media (max-width: 860px) { .lb-notes, .lb-notes.cols-3 { grid-template-columns: 1fr; gap: 12px; } }

/* short vs detailed brief: clean natural-case headings + 2x3 compact detailed grid */
.brief-compare { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.bc-col { padding: 34px 36px 32px; }
.bc-short { background: var(--accent-deep); color: #FFFFFF; border-right: 1px solid rgba(255, 255, 255, .1); }
.bc-k { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bc-k span { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.bc-short .bc-k { color: #FFFFFF; }
.bc-short .bc-k span { color: rgba(255, 255, 255, .68); }
.bc-short blockquote { color: #FFFFFF; font-size: clamp(1.32rem, 1.9vw, 1.65rem); line-height: 1.42; }
.bc-short .bc-foot { color: rgba(255, 255, 255, .64); margin-top: 24px; }
.bc-long .bc-k { color: var(--text); }
.bc-long .bc-k span { color: var(--muted); }
/* brief-compare list & filter pills */
.bc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.bc-list li { padding-left: 30px; font-size: 13.8px; line-height: 1.56; color: var(--text-2); }
html:lang(zh) .bc-list li { line-height: 1.72; }
.bc-list li::before { top: 2px; font-size: 11px; padding: 2px 5px; color: var(--accent-2); background: var(--accent-wash); }
.pill[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* workspace: full-width dark editor tree above balanced 3x2 traps grid */
.ws-grid { grid-template-columns: 1fr; gap: 36px; }
.ws-tree { background: #201F29; border-color: #323041; box-shadow: 0 22px 44px -28px rgba(28, 27, 34, .26); }
.ws-tree-head { border-bottom-color: rgba(255, 255, 255, .1); color: #EAE8F4; }
.dots i { background: rgba(255, 255, 255, .24); }
.ws-count, .ws-tree pre .g { color: #6BE0B3; }
.ws-tree pre { color: #F2F1F8; padding: 22px 26px 10px; font-size: 13px; line-height: 1.85; }
.ws-tree pre .d { color: rgba(255, 255, 255, .28); }
.ws-tree pre .c { color: rgba(255, 255, 255, .54); }
.ws-tree pre .w { color: #FF9F9A; }
.ws-caption { color: rgba(255, 255, 255, .48); padding: 4px 26px 18px; }
.traps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 34px; }
.traps li { display: flex; flex-direction: column; gap: 8px; padding: 18px 0 0; border-top: 1px solid var(--ink-line); }
.traps li:first-child { border-top: 1px solid var(--ink-line); padding-top: 18px; }
.trap-n { color: var(--accent); font-size: 11.5px; font-weight: 600; padding-top: 0; }
.traps h4 { color: var(--text); font-size: 0.98rem; margin-bottom: 5px; }
.traps p { color: var(--text-2); font-size: 13.8px; line-height: 1.58; }
html:lang(zh) .traps p { line-height: 1.72; }

/* rubrics — five capability cards with refined site-palette accents & centered badges */
.cat { position: relative; overflow: hidden; padding: 24px 22px 22px; background: var(--cat-bg, #FFFFFF); border-color: var(--cat-bd, var(--line)); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cat-bar, var(--accent)); }
.cat:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -20px rgba(26, 29, 36, .18); }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cat-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--cat-n-bd, var(--line-2)); background: var(--cat-n-bg, #FFFFFF); font-family: var(--mono); font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--cat-ink, var(--text)); padding: 0; margin: 0; }
.cat-wt { font-family: var(--mono); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--cat-ink, var(--muted)); opacity: .88; }
.cat b { color: var(--cat-ink, var(--accent)); }
.cat:nth-child(1) { --cat-bar: #5E6BA0; --cat-bg: #F6F7FC; --cat-bd: #DFE3F2; --cat-n-bg: #EAEDF9; --cat-n-bd: #CFD5EC; --cat-ink: #3D4778; }
.cat:nth-child(2) { --cat-bar: #4E86BC; --cat-bg: #F4F9FD; --cat-bd: #D8E7F5; --cat-n-bg: #E6F1FB; --cat-n-bd: #C4DCF2; --cat-ink: #265D91; }
.cat:nth-child(3) { --cat-bar: #3E9D7C; --cat-bg: #F3FAF7; --cat-bd: #D3EBE1; --cat-n-bg: #E3F5ED; --cat-n-bd: #BDE3D3; --cat-ink: #1A7555; }
.cat:nth-child(4) { --cat-bar: #8F7AA8; --cat-bg: #F8F6FB; --cat-bd: #E5DEEE; --cat-n-bg: #EFEAF7; --cat-n-bd: #D7CCE7; --cat-ink: #634E7A; }
.cat:nth-child(5) { --cat-bar: #D2746C; --cat-bg: #FDF6F5; --cat-bd: #F1DCDC; --cat-n-bg: #FBECEB; --cat-n-bd: #ECCACA; --cat-ink: #A84A42; }
.mode-card { background: #FFFFFF; border-color: var(--line); box-shadow: 0 1px 2px rgba(26, 29, 36, .03); }
.mode-mech .mode-dot { background: var(--accent); }
.mode-judg .mode-dot { background: #7B6691; }
.r-mech { background: var(--accent-wash); color: var(--accent-2); }
.r-judg { background: #F3EFF7; color: #634E7A; }
.r-w5 { background: var(--ink); color: #FFFFFF; }
.r-w3 { background: var(--paper-2); color: var(--text); }
.r-w1 { background: var(--card-2); color: var(--text-2); }
.ticks li::before { background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%234F5A8E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* findings — structured editorial data cards with aligned bottom breakdowns */
.fcard { padding: 26px 28px 24px; gap: 0; }
.fcard-k { font-family: var(--sans); text-transform: none; letter-spacing: -0.005em; font-size: 14px; font-weight: 600; color: var(--text); margin: 14px 0 8px; }
.fcard-text { font-size: 14px; line-height: 1.62; color: var(--text-2); margin-bottom: 18px; }
html:lang(zh) .fcard-text { line-height: 1.76; }
.fcard.dark { background: var(--accent-wash); color: var(--text); border-color: var(--accent-line); }
.fcard.dark .fcard-num { color: var(--accent-2); }
.fcard.dark .fcard-num small { color: var(--muted); }
.fcard.dark .fcard-k { color: var(--accent-2); }
.fcard.dark .fcard-text { color: var(--text-2); }
.fcard-bars { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.fb { grid-template-columns: 162px 1fr 44px; gap: 10px; font-size: 12px; }
html:lang(zh) .fb { grid-template-columns: 88px 1fr 46px; }
.fb > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-list { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.fcard.dark .fcard-list { border-top-color: var(--accent-line); }
.fcard-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.42; color: var(--text-2); }
.fcard-list li b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; flex: none; }
.fcard-list li.is-hi { color: var(--text); font-weight: 400; }
.fcard-list li.is-hi b { color: var(--accent-2); }
.fcard-pair { flex: 1; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.fcard-stat { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); }
.fcard-stat span { font-size: 12px; color: var(--muted); }
.fcard-stat b { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--text); line-height: 1.15; font-variant-numeric: tabular-nums; }
.fcard-stat.is-hi b { color: var(--accent-2); }
.fcard-bar { display: block; height: 5px; margin-top: 10px; border-radius: 99px; background: rgba(17, 22, 34, .08); overflow: hidden; }
.fcard-bar i { display: block; height: 100%; border-radius: 99px; background: var(--muted); }
.fcard-stat.is-hi .fcard-bar i { background: var(--accent); }
.fcard-leaders { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.fcard-leaders li { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 44px; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.4; padding-bottom: 0; border-bottom: 0; }
.fcard-leaders .fl-v { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-leaders .fl-m { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-leaders .fl-s { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent-2); text-align: right; font-variant-numeric: tabular-nums; }
.fail-k { background: var(--accent-wash); color: var(--accent-2); }

/* compare */
.matrix tr.fle td, .matrix tr.fle td:first-child { background: var(--accent-wash); border-top-color: var(--accent-line); }
.matrix tr.fle td:first-child { color: var(--accent-2); }
.matrix tr.fle .mx-y { background: var(--accent); }
.compare-foot { margin-top: 16px; }
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 2px 14px; border-bottom: 1px solid var(--line); }
.compare-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.compare-legend li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.compare-legend .mx { width: 12px; height: 12px; }
.compare-legend .mx-u { width: auto; height: auto; font-size: 12.5px; font-weight: 600; line-height: 1; }
.compare-source { margin: 0; font-size: 12.5px; color: var(--muted); }
.compare-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 24px; align-items: start; padding: 15px 2px 0; font-size: 13px; line-height: 1.58; color: var(--text-2); }
html:lang(zh) .compare-note { line-height: 1.72; }
.compare-note-k { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; padding-top: 1px; }
.compare-note-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 7px; }
.compare-note-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 9px; align-items: start; }
.compare-note-list .mx { width: 12px; height: 12px; margin-top: 4px; }
html:lang(zh) .compare-note-list .mx { margin-top: 5px; }
.compare-note-list b { font-weight: 500; color: var(--text); }

/* built with — prominent non-endorsement notice above unboxed 4-column typographic institution directory */
#built-with .section-head { margin-bottom: 24px; }
.inst-disclaimer { margin: 0; display: flex; align-items: baseline; gap: 14px; padding: 13px 18px; border-left: 2.5px solid var(--accent); background: rgba(79, 90, 142, .045); border-radius: 0 10px 10px 0; }
.inst-disclaimer-k { flex: none; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap; }
html:lang(zh) .inst-disclaimer-k { font-family: var(--sans); font-size: 12px; letter-spacing: .02em; text-transform: none; }
.inst-disclaimer p { margin: 0; font-size: 13.5px; line-height: 1.58; color: var(--text-2); }
html:lang(zh) .inst-disclaimer p { line-height: 1.7; }
.inst-directory { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inst-col { position: relative; display: flex; flex-direction: column; padding: 30px 32px 32px; min-width: 0; }
.inst-col:first-child { padding-left: 2px; }
.inst-col:last-child { padding-right: 2px; }
.inst-col + .inst-col { border-left: 1px solid var(--line); }
.inst-col-rule { display: block; width: 26px; height: 2px; border-radius: 2px; background: var(--ic, var(--accent)); opacity: .82; margin-bottom: 14px; transition: width .22s ease, opacity .22s ease; }
.inst-col:hover .inst-col-rule { width: 44px; opacity: 1; }
.inst-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.inst-col-head h3 { margin: 0; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.inst-names { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.inst-names li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; }
.inst-names li + li { border-top: 1px solid rgba(26, 29, 36, .06); }
.inst-name { font-family: var(--serif); font-size: clamp(1.3rem, 1.6vw, 1.56rem); font-weight: 400; line-height: 1.24; letter-spacing: -0.014em; color: var(--text); font-variation-settings: "opsz" 36; transition: color .16s ease, transform .16s ease; }
html:lang(zh) .inst-name { font-size: clamp(1.18rem, 1.42vw, 1.38rem); font-weight: 500; line-height: 1.34; letter-spacing: 0; }
.inst-names li:hover .inst-name { color: var(--accent-deep); transform: translateX(2px); }
.inst-sub { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .01em; color: var(--faint); white-space: nowrap; transition: color .16s ease; }
.inst-names li:hover .inst-sub { color: var(--muted); }

.nw-more { font-family: var(--serif); font-style: normal; font-size: 1.08rem; line-height: 1.5; color: var(--text-2); margin-top: 20px; }
#built-with .fineprint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* roadmap — stepped 2-stage progression cards (v1.0 -> v2.0) */
.roadmap { gap: 18px; margin-top: 52px; }
.rm { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 26px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(26, 29, 36, .03); transition: border-color .18s ease, box-shadow .18s ease; }
.rm::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line-2); }
.rm-now { border-color: var(--accent-line); background: #FFFFFF; box-shadow: 0 4px 16px rgba(79, 90, 142, .07); }
.rm-now::before { background: var(--accent); }
.rm-next { background: #FFFFFF; }
.rm-next::before { background: #9BB8D9; }
.rm-future { background: #FFFFFF; }
.rm-future::before { background: #7EC2AA; }
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.rm-now .rm-top { border-bottom-color: var(--accent-line); }
.rm .rm-k { display: inline-flex; align-items: center; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1; padding: 5px 10px; border-radius: 999px; margin: 0; background: var(--paper-2); color: var(--muted); }
.rm-now .rm-k { background: var(--accent); color: #FFFFFF; }
.rm-next .rm-k { background: #E9F1FA; color: var(--v-ib); }
.rm-future .rm-k { background: #E7F4EF; color: #1B7757; }
.rm-step { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--faint); letter-spacing: .04em; }
.rm-now .rm-step { color: var(--accent); }
.rm h4 { color: var(--text); font-family: var(--serif); font-weight: 400; font-size: 1.38rem; line-height: 1.24; margin: 0 0 10px; }
.rm p:last-child { color: var(--text-2); font-size: 14px; line-height: 1.64; margin: 0; }
html:lang(zh) .rm p:last-child { line-height: 1.76; }
.cite { border-color: var(--ink-line); background: #FFFFFF; }
.cite-head { border-bottom-color: var(--line); }
.cite-head h3 { color: var(--text); }
.copy { border-color: var(--line-2); color: var(--text); }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.cite pre { color: var(--text-2); background: var(--card-2); }

/* footer — crisp white architectural colophon bookending the Playfair Display hero */
.footer { background: #FFFFFF; color: var(--text-2); border-top: 1px solid var(--line); padding: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .55fr)); gap: 36px 48px; padding: 60px 0 46px; }
.footer-about { display: flex; flex-direction: column; min-width: 0; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand { font-family: "Playfair Display", var(--serif); font-weight: 500; font-variation-settings: normal; font-size: 1.56rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.footer-brand:hover { color: var(--accent-2); }
.footer-desc { margin: 14px 0 0; font-size: 14px; line-height: 1.62; color: var(--text-2); max-width: 40ch; }
html:lang(zh) .footer-desc { line-height: 1.76; }
.footer-meta { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .01em; }

.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-col-k { margin: 0 0 4px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.footer-col a { font-size: 13.5px; line-height: 1.45; color: var(--text-2); text-decoration: none; width: fit-content; transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid var(--line); }
.footer-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.footer-utils { display: inline-flex; align-items: center; gap: 12px; }
.footer-util { font-size: 13px; color: var(--text-2); text-decoration: none; transition: color .15s ease; }
.footer-util:hover { color: var(--accent); }
.footer-sep { color: var(--faint); font-size: 12px; }

@media (max-width: 960px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; padding: 48px 0 36px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 40px 0 30px; }
  .footer-bottom { padding: 18px 0 24px; }
}

/* task dialog */
.task-dialog { box-shadow: 0 40px 80px -32px rgba(26, 29, 36, .26); overflow: hidden; }
.task-dialog::backdrop { background: rgba(26, 29, 36, .34); }
.td-brief { background: var(--accent-wash); border: 1px solid var(--accent-line); color: var(--text); }
.tds-bars .s { background: var(--accent); }
.tds-bars .l { background: #5BB090; }
.tds-v.l { color: var(--good); }

@media (max-width: 1120px) {
  .inst-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inst-col { padding: 26px 28px 28px; }
  .inst-col:nth-child(odd) { border-left: 0; padding-left: 2px; }
  .inst-col:nth-child(even) { border-left: 1px solid var(--line); padding-right: 2px; }
  .inst-col:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1040px) {
  .hero-head { padding-top: 0; }
  .triad { grid-template-columns: 1fr; padding: 0; gap: 32px; }
  .triad-cards { margin-top: 0; }
  .cov-col { padding: 24px 24px 26px; }
  .tb-top { flex-direction: column; align-items: stretch; gap: 0; }
  .result-count { padding: 10px 0 2px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-head, .hero-copy, .hero-visual { grid-column: 1; grid-row: auto; }
  .hero-head { padding-top: 0; }
  .hero-visual { display: none; }
  .pipeline { grid-template-columns: 1fr; row-gap: 28px; column-gap: 0; }
  .step:nth-child(n)::before, .step:nth-child(n)::after { display: none; }
  .step:not(:last-child)::before { display: block; content: ""; position: absolute; left: 22px; right: auto; top: 46px; bottom: -28px; width: 2px; height: auto; background: var(--line); }
  .step:not(:last-child)::after { display: block; content: ""; position: absolute; left: 22px; right: auto; top: 46px; bottom: -28px; width: 2px; height: auto; background: var(--accent); transform-origin: top center; transform: scaleY(0); transition: transform .5s cubic-bezier(.22, .8, .25, 1); }
  .step.is-done:not(:last-child)::after { transform: scaleY(1); }
  .bc-short { border-right: 0; border-bottom: 1px solid var(--accent-line); }
  .hero-strip .hero-stats { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .hero-strip .hero-stats > div:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) {
  .tax-explorer { grid-template-columns: 1fr; }
  .tax-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tax-rail::-webkit-scrollbar { display: none; }
  .tax-nav { flex: 0 0 auto; width: auto; border-bottom: 0; padding: 13px 16px; white-space: nowrap; }
  .tax-nav::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2.5px; }
  .tax-nav[aria-selected="true"] { box-shadow: none; }
  .tax-pane { padding: 24px 22px 26px; min-height: 0; }
  .tax-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
  .traps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
  .bc-list { grid-template-columns: 1fr; gap: 14px; }
  .tb-right { flex: 1 1 100%; justify-content: flex-start; }
  .tb-search, .tb-search:focus-within { flex: 1 1 200px; width: auto; max-width: none; }
}
@media (max-width: 900px) {
  .nav.menu-open { background: rgba(255, 255, 255, .98); color: var(--text); border-bottom-color: var(--line); }
  .nav.menu-open .nav-links { background: rgba(255, 255, 255, .98); border-bottom-color: var(--line); }
}
@media (max-width: 560px) {
  .tb-bar { padding: 12px 0 0; }
  .tb-right { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; display: block; padding: 100px 0 48px; }
  .hero-title { font-size: clamp(2.15rem, 9.6vw, 3.1rem); }
  .why-punch { margin: 80px 0; }
  .panel { margin-top: 80px; }
  .tax-fams { grid-template-columns: 1fr; }
  .cov-breakdown { grid-template-columns: 1fr; }
  .cov-col { padding: 22px 2px; }
  .cov-col + .cov-col { border-left: 0; border-top: 1px solid var(--line); }
  .inst-disclaimer { flex-direction: column; gap: 6px; padding: 12px 14px; }
  .inst-directory { grid-template-columns: 1fr; }
  .inst-col { padding: 22px 2px 24px; border-left: 0; }
  .inst-col:nth-child(even) { border-left: 0; padding-left: 2px; }
  .inst-col + .inst-col { border-top: 1px solid var(--line); }
  .cov-bars, .cov-deliver { gap: 11px; }
  .compare-note { grid-template-columns: 1fr; gap: 10px; }
  .compare-note-list { grid-template-columns: 1fr; gap: 8px; }
  .traps { grid-template-columns: 1fr; gap: 18px; }
  .hero-strip { padding: 24px 0; }
  .container { width: min(var(--wrap), 100% - 32px); }
  .hero-strip .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .hero-strip .hero-stats > div { padding: 4px 12px 4px 0; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .hero-strip .hero-stats > div:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 4px; }
}

/* ---------- Expert panel (01 Why) — spacious single-card editorial slider ---------- */
.panel { margin-top: 112px; }
.panel-head { margin-bottom: 24px; }
.panel-head .eyebrow { margin-bottom: 12px; }
.panel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v-hf); }
.panel-head h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }

.voices-stage {
  position: relative;
  overflow: hidden;
  padding: 6px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.voices-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 24px;
  will-change: transform;
}
.voices-track.is-snapping .voice { transition: none !important; }
.voice {
  position: relative;
  overflow: hidden;
  flex: 0 0 clamp(300px, 56%, 840px);
  width: clamp(300px, 56%, 840px);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 34px 26px;
  min-height: 270px;
  box-shadow: 0 4px 16px -10px rgba(26, 29, 36, .08);
  opacity: .44;
  transform: scale(.965);
  cursor: pointer;
  transition: opacity .36s ease, transform .38s cubic-bezier(.22, .8, .25, 1), box-shadow .36s ease, border-color .3s ease;
}
.voice::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--vc, var(--v-hf));
}
.voice:not(.is-active):hover { opacity: .72; }
.voice.is-active {
  opacity: 1;
  transform: scale(1);
  cursor: default;
  border-color: var(--line-2);
  box-shadow: 0 18px 42px -26px rgba(26, 29, 36, .16), 0 1px 3px rgba(26, 29, 36, .04);
}
.voice-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.voice-idx { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--faint); white-space: nowrap; }
.voice-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vc, var(--accent)) 10%, #FFFFFF);
  color: var(--vc, var(--accent));
}
.voice blockquote { margin: 0; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.voice-pull {
  font-family: var(--serif);
  font-size: clamp(1.32rem, 1.9vw, 1.62rem);
  line-height: 1.32;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 36;
  margin-bottom: 14px;
  max-width: 44ch;
}
.voice-short .voice-pull { margin-bottom: 0; }
.voice-body { font-size: 14.5px; line-height: 1.7; color: var(--text-2); max-width: 66ch; }
.voice figcaption {
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.voice-author { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.voice-name { font-weight: 600; font-size: 14.5px; color: var(--text); line-height: 1.35; }
.voice-role { font-size: 13px; color: var(--muted); line-height: 1.45; }
.voice-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 14px;
}
.voice-nav .fineprint { margin: 0; flex: 1 1 260px; }
.voice-arrows { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.voice-arrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  transition: all .15s ease;
}
.voice-arrow:hover {
  border-color: color-mix(in srgb, var(--vc, var(--accent)) 60%, var(--line));
  background: color-mix(in srgb, var(--vc, var(--accent)) 10%, #FFFFFF);
  color: var(--text);
}
.voice-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.panel .fineprint { margin-top: 14px; }
html:lang(zh) .voice-pull { line-height: 1.48; letter-spacing: 0; }
html:lang(zh) .voice-body { line-height: 1.82; }
html:lang(zh) .voice-tag { letter-spacing: .04em; }
@media (max-width: 860px) {
  .voices-stage { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%); }
  .voices-track { gap: 14px; }
  .voice { flex: 0 0 84%; width: 84%; padding: 22px 22px 20px; min-height: 0; }
  .voice figcaption { margin-top: 18px; padding-top: 14px; }
}


/* ---------- Hard gates & vertical expert panel (Dec 3, 2026) ---------- */
.rb-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role.role-gate { border-top: 3px solid #DC4C46; }
.role.role-gate .role-k { color: #B42318; }
.r-gate { background: #FDECEA; color: #B42318; border: 1px solid rgba(180, 35, 24, .22); }
.hv-checks .gate b { background: #FDECEA; color: #B42318; }
.hv-checks .gate i { background: #FDECEA; color: #B42318; font-weight: 600; }
.heat-scale i { background: linear-gradient(90deg, rgb(255,241,240), rgb(248,248,250) 18%, rgb(230,247,240) 38%, rgb(168,228,204) 60%, rgb(58,178,132) 82%, rgb(20,134,92)); }

/* Expert voices grouped by vertical — title above, vertical tabs on dedicated full-width row */
.panel-top { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-top .panel-head { margin-bottom: 0; }
.panel-tabs { margin-bottom: -1px; }
.panel-tabs .tab { padding: 10px 14px 13px; }
.panel-tabs .tab:first-child { padding-left: 2px; }
.panel-tabs .tab:first-child::after { left: 2px; }
.panel-tabs .tab-count { font-family: var(--mono); font-size: 10.5px; color: var(--muted); padding: 1px 6px; border-radius: 99px; background: var(--paper-2); }
.panel-tabs .tab[aria-selected="true"] .tab-count { background: color-mix(in srgb, var(--vc, var(--accent)) 14%, #FFFFFF); color: var(--vc, var(--accent)); }
.vpanel[hidden] { display: none; }
.voices-2, .voices-3 { display: flex; }
.voice-tag { background: color-mix(in srgb, var(--vc, var(--v-hf)) 10%, #FFFFFF); color: color-mix(in srgb, var(--vc, var(--v-hf)) 84%, #1A1D24); }
.voice-short .voice-pull { font-size: clamp(1.32rem, 1.95vw, 1.6rem); line-height: 1.46; font-weight: 450; margin-bottom: 0; }
html:lang(zh) .voice-short .voice-pull { line-height: 1.68; }
.vpanel .fineprint { margin-top: 14px; }
.vpanel .voice-nav .fineprint { margin: 0; line-height: 1.4; }

@media (max-width: 1040px) {
  .rb-roles { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .panel-top { align-items: flex-start; }
}

/* ---------- Authors & contributors (12 Built with) ---------- */
.authors { margin-top: 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px 26px; box-shadow: 0 1px 2px rgba(26, 29, 36, .03); }
.authors-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.authors-head h3 { font-size: 1.5rem; color: var(--text); }
.authors-affil { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--accent); font-weight: 600; }
.authors-affil sup { font-size: .72em; margin-right: 2px; }
.author-tier { padding: 18px 0; border-bottom: 1px solid var(--line); }
.author-tier:last-of-type { border-bottom: 0; padding-bottom: 14px; }
.author-tier-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.author-tier-k span { text-transform: none; letter-spacing: .02em; color: var(--faint); }
.author-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text); }
.author-core .author-list, .author-senior .author-list { font-weight: 600; font-size: 16.5px; }
.author-experts .author-list { color: var(--text-2); font-size: 15px; gap: 6px 20px; }
.author-list sup { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent); margin-left: 2px; vertical-align: super; line-height: 0; }
.authors-legend { margin: 8px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; font-size: 12.5px; color: var(--muted); }
.authors-legend sup { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--accent); margin-right: 3px; }
.authors-legend > span:last-child { margin-left: auto; text-align: right; }
@media (max-width: 640px) {
  .authors { padding: 22px 20px 20px; }
  .author-list { gap: 6px 14px; font-size: 14.5px; }
  .author-core .author-list, .author-senior .author-list { font-size: 15px; }
}
