:root {
  color-scheme: dark;
  --ink: #121214;
  --paper: #efeee8;
  --cream: #f7f3e9;
  --orange: #ff9a75;
  --lilac: #b6a8e6;
  --line: #363539;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "SFMono-Regular", monospace;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--ink);
  font-synthesis: none;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button, a, input, summary, select { -webkit-tap-highlight-color: transparent; }
button, summary, select, input[type=range] { cursor: pointer; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #ec784e; outline-offset: 4px; }
:where(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - clamp(48px, 9.6vw, 160px)), 1440px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-160%); padding: .7rem 1rem; background: var(--cream); color: var(--ink); }
.skip-link:focus { transform: none; }
.masthead { border-bottom: 1px solid #39383a; background: var(--ink); }
.nav-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-tools { display: flex; align-items: center; gap: clamp(8px,1.3vw,20px); flex: none; }
.language-switch { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border-radius: 30px; border: 1px solid #554c50; background: #1d1a1d; }
.language-switch button { min-width: 37px; min-height: 29px; padding: 2px 8px; border: 0; border-radius: 24px; color: #d5cbca; background: transparent; font-size: .83rem; line-height: 1.25; }
.language-switch button[aria-pressed=true] { color: #271b18; background: #ffb18f; font-weight: 650; }
.language-switch button:hover:not([aria-pressed=true]) { background: #383238; }
.brand { display: inline-flex; align-items: center; gap: .54rem; font-size: 1.6rem; letter-spacing: -.065em; font-weight: 650; line-height: 1; white-space: nowrap; }
.brand img { width: 35px; height: 35px; }
.nav-inner nav { display: flex; gap: clamp(18px, 3vw, 52px); align-self: stretch; }
nav a { display: grid; align-content: center; color: #c2bdbe; font-size: .9rem; position: relative; }
nav a:hover, nav a[aria-current] { color: #fff5eb; }
nav a[aria-current]::after { content: ""; height: 2px; background: var(--orange); position: absolute; bottom: 0; width: 100%; }
.method-link { background: none; border: 1px solid #4a474c; padding: .48rem .9rem; border-radius: 99px; font-size: .87rem; display: inline-flex; gap: .5rem; align-items: center; }
.method-link:hover, .circle-btn:hover { background: #302e33; border-color: #b7aaa9; }
.info-icon { border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; width: 15px; height: 15px; font: italic 12px var(--serif); }
.hero { background: radial-gradient(ellipse at 72% 45%, #20191c 0, #161517 34%, var(--ink) 67%); }
.hero-inner { display: grid; grid-template-columns: 0.85fr 1.25fr; gap: 1vw; align-items: center; min-height: clamp(480px, 39vw, 660px); }
.hero-copy { position: relative; z-index: 1; padding: 46px 0; }
.eyebrow, .field-label, .field-small, .source-kind, .model-tag, .field-topline, .axis-labels, .field-caption { font-family: var(--mono); font-size: .77rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; letter-spacing: .13em; font-weight: 600; line-height: 1.6; }
.eyebrow.warm { color: #ffae8c; }
.short-rule { width: 26px; height: 2px; background: currentColor; display: inline-block; }
h1 { margin: 23px 0 20px; font-size: clamp(4rem, 6.65vw, 7.55rem); line-height: 1.06; font-weight: 600; letter-spacing: -.055em; }
.hero-stop { color: var(--orange); margin-inline-start: .04em; }
.title-line { display: block; }
html:lang(en) h1 { font: 400 clamp(3.9rem,5.65vw,6.85rem)/.99 var(--serif); letter-spacing: -.058em; }
html:lang(en) .title-tail { font-style: italic; }
html:lang(en) .hero-sub { max-width: 33ch; line-height: 1.62; }
html:lang(en) .hero-stop { margin-left: .015em; }
html:lang(zh) .hero-stop { margin-left: -.04em; }
html:lang(zh) .eyebrow, html:lang(zh) .field-label { font-family: var(--sans); letter-spacing: .09em; }
html:lang(en) .section-title h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.hero-sub { color: #bfb9b8; max-width: 23em; font-size: clamp(1rem, 1.15vw, 1.16rem); line-height: 1.88; }
.hero-models { max-width: 30rem; margin-top: 1.45rem; }
.hero-model-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .55rem; color: #e7ddd7; font-size: .88rem; }
.hero-model-heading span+span { font-size: .75rem; color: #bdb1b4; }
#hero-model-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
#hero-model-choices button { min-width: 0; padding: .48rem clamp(.35rem, 1vw, .65rem); border: 1px solid #51474d; border-radius: 4px; background: #201d20; color: #e6dde0; overflow-wrap: anywhere; text-align: left; font-size: .86rem; font-weight: 600; line-height: 1.3; }
#hero-model-choices button:hover { border-color: #ad9291; }
#hero-model-choices button[aria-pressed=true] { background: #3a2927; border-color: #e89c7b; color: #ffd0b7; }
#hero-model-choices small { display: block; margin-top: .23rem; font: .73rem/1.35 var(--mono); color: #bfb5b9; }
#hero-model-choices button[aria-pressed=true] small { color: #f0bca2; }
.intro-link { display: inline-flex; align-items: center; gap: .65rem; color: #1a191c; background: var(--cream); border-radius: 4px; padding: .82rem 1.2rem; margin-top: 25px; font-size: .93rem; font-weight: 650; }
.intro-link:hover { background: #ffd8c6; }
.scan-icon { width: 17px; height: 17px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; }
.scan-icon::after { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.field-instrument { position: relative; align-self: stretch; display: grid; grid-template-rows: auto minmax(0,1fr) auto; padding: 30px 0 22px; }
.field-topline, .field-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.field-topline { color: #b7acaf; }
.field-label { display: inline-flex; align-items: center; gap: .6rem; letter-spacing: .12em; font-size: .75rem; }
.field-label i { width: 19px; height: 7px; background: repeating-linear-gradient(112deg, transparent 0 2px, #e6a18a 2px 3px, transparent 3px 5px); }
.field-legend { display: inline-flex; gap: 14px; align-items: center; }
.field-legend span { display: inline-flex; align-items: center; gap: 6px; }
.field-legend span::before { content: ""; background: var(--orange); width: 13px; height: 2px; }
.field-legend span+span::before { background: var(--lilac); }
.art-view { position: relative; min-height: 320px; isolation: isolate; }
.art-view::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#6d5e65 0.65px, transparent 1px); background-size: 23px 23px; opacity: .45; mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%); }
#field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#field-canvas:active { cursor: grabbing; }
.fiducial { position: absolute; width: 10px; height: 10px; pointer-events: none; opacity: .6; background: linear-gradient(#a0959b,#a0959b) center/1px 100% no-repeat,linear-gradient(#a0959b,#a0959b) center/100% 1px no-repeat; }
.top-left { top: 12%; left: 0; }.bottom-right { bottom: 7%; right: 0; }
.field-controls { border-top: 1px solid #40393b; padding-top: 12px; color: #b8aeb1; }
.field-caption { display: flex; align-items: center; gap: 12px; }
.field-caption select { font: italic 1.55rem/1.2 var(--serif); color: #f1dfd5; appearance: none; border: 0; border-bottom: 1px solid #786a69; border-radius: 0; padding: 0 19px 0 0; background: linear-gradient(45deg, transparent 50%, #bea9a2 50%) calc(100% - 5px) 56%/5px 5px no-repeat,linear-gradient(135deg, #bea9a2 50%, transparent 50%) 100% 56%/5px 5px no-repeat; }
.field-caption option { background: #211e21; color: var(--cream); font: 1rem var(--sans); }
.field-caption input[type=range] { width: clamp(60px,8vw,140px); accent-color: var(--orange); margin: 0; }
.field-caption label { color: #dacec9; }
.caption-divider { color: #756d71; }
.art-actions { display: flex; align-items: center; gap: .45rem; }
.drag-note { font-size: .78rem; margin-right: .4rem; }
.circle-btn { width: 33px; height: 33px; border: 1px solid #50494c; background: #19181b; border-radius: 50%; display: grid; place-items: center; }
.pause-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.play-icon { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; margin-left: 2px; }
.reset-icon { font: 1.25rem/1 var(--sans); }
.readout { border-block: 1px solid var(--line); background: #171719; }
.readout-inner { display: grid; grid-template-columns: 1.12fr .95fr .95fr 1.08fr; padding: 19px 0; }
.readout-inner>div { padding-inline: clamp(18px, 3vw, 50px); border-left: 1px solid #39373b; }
.readout-inner>div:first-child { padding-left: 0; border: 0; }
.readout dt { color: #b2acae; font-size: .78rem; margin-bottom: 5px; }
.readout dd { font-family: var(--mono); font-size: clamp(1.06rem,1.45vw,1.52rem); letter-spacing: -.035em; line-height: 1.2; }
.readout .word-readout { font: italic 1.48rem/1.1 var(--serif); }
.read-spark { color: var(--orange); margin-right: 7px; }
.paper { color-scheme: light; color: #252426; background: var(--paper); }
.section-pad { padding-block: clamp(52px, 5.6vw, 96px); }
.section-title { display: flex; gap: 32px; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.paper .eyebrow { color: #8e4c36; }
h2 { font-size: clamp(2.3rem, 3.8vw, 4.3rem); letter-spacing: -.07em; font-weight: 600; line-height: 1.16; margin-top: 12px; }
.section-title>p { max-width: 27em; color: #635f60; line-height: 1.8; margin-bottom: 3px; }
.lab-grid, .vision-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(25px, 4vw, 78px); }
.lab-grid { border-top: 1px solid #b8b3a9; padding-top: 25px; }
.control-title, .layer-label, .axis-labels, .plot-head, .dim-controls, .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
h3, .layer-label label { font-size: 1rem; font-weight: 650; }
.field-small { color: #726c69; }
.word-choices, .vision-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 22px; }
.word-choices button, .vision-choices button { border: 1px solid #b6b1a9; border-radius: 40px; padding: .5rem 1.1rem; font-family: var(--mono); background: transparent; color: inherit; font-size: .94rem; }
.word-choices button[aria-pressed=true] { background: #282529; border-color: #282529; color: #fff6ee; }
.word-choices button:hover { border-color: #302829; }
.context { padding: 14px 0; border-top: 1px solid #ccc8bf; }
.context-label { display: flex; align-items: center; gap: .6rem; color: #625b58; font-size: .84rem; }
.key { width: 10px; height: 10px; display: inline-block; border-radius: 50%; background: #bd6349; }
.context-b .key { background: #8072a7; }
.context p { font: clamp(1.28rem,1.85vw,2rem)/1.35 var(--serif); margin: 6px 0 0; }
mark { padding: 0 .07em; background: #f2c7b2; color: #342625; }
.context-b mark { background: #d9cee7; }
.model-control { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: .9rem; }
.model-control select { appearance: none; padding: .5rem 2rem .5rem .7rem; background: linear-gradient(45deg, transparent 50%, #514747 50%) calc(100% - 14px) 52%/5px 5px no-repeat,linear-gradient(135deg, #514747 50%, transparent 50%) calc(100% - 9px) 52%/5px 5px no-repeat; color: #252426; border: 1px solid #b7b2a9; border-radius: 4px; max-width: 100%; }
.plot-pane { padding: 22px clamp(18px, 2.1vw, 36px); border: 1px solid #c9c3b9; border-radius: 4px; background: #f7f5ef; }
.control-kicker { color: #645b57; font-size: .89rem; }
.cosine-number { font: 2.8rem/1.2 var(--serif); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.model-tag { align-self: flex-start; color: #564e4f; border: 1px solid #cbc4ba; padding: .3rem .5rem; }
.cosine-chart { display: block; overflow: visible; width: 100%; height: auto; margin: 7px 0 15px; }
.layer-label output, .dim-controls output, .vision-score output { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.layer-label output { font-size: .9rem; color: #7d402b; }
input[type=range] { width: 100%; accent-color: #a65037; }
.layer { margin: 12px 0 3px; }
.axis-labels { font-size: .78rem; color: #736c66; }
.layer-observation { border-top: 1px solid #d9d2c8; margin-top: 15px; padding-top: 12px; color: #635951; line-height: 1.7; font-size: .9rem; }
.geo-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(14px,2vw,28px); align-items: stretch; }
.geo-card { padding: clamp(16px,2vw,29px); border: 1px solid #c8c1b8; border-radius: 5px; min-width: 0; }
.geo-card h3, .pairing-head h3 { font-size: clamp(1.3rem,2vw,1.85rem); font-weight: 600; letter-spacing: -.04em; }
.plot-heading, .geo-controls, .matrix-selection, .pairing-head, .pair-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plot-heading { flex-wrap: wrap; }
.geo-card select { appearance: none; background: linear-gradient(45deg,transparent 50%,currentColor 50%) calc(100% - 13px) 53%/4px 4px no-repeat,linear-gradient(135deg,currentColor 50%,transparent 50%) calc(100% - 9px) 53%/4px 4px no-repeat; color: inherit; border: 1px solid #a8998f; border-radius: 4px; padding: .36rem 1.5rem .36rem .55rem; font-size: .86rem; }
.geo-card select option { background: var(--paper); color: #242126; }
.geo-card > p, .pairing-head p { font-size: .96rem; line-height: 1.7; margin: 12px 0; }
.geo-card .figure-note { margin: 14px 0 0; font-size: .83rem; }
.trajectory { color: #f0e9e1; background: #211f24; border-color: #39363b; }
.trajectory p { color: #d3c8cb; }
#trajectory-plot { display: block; width: 100%; margin: 12px 0 3px; }
#trajectory-plot [data-layer] { cursor: pointer; }
.plot-annotation { fill: #e2d9d9; font: 14px var(--mono); paint-order: stroke; stroke: #211f24; stroke-width: 3px; stroke-linejoin: round; }
.trajectory-key { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; }
.trajectory-key span::before { content: ""; display: inline-block; width: 20px; border-top: 2px solid #ffab82; vertical-align: middle; margin-right: 6px; }
.trajectory-key span+span::before { border-color: #c0b5ff; border-top-style: dashed; }
.geo-controls { margin-top: 16px; padding-top: 12px; border-top: 1px solid #4a4349; }
.geo-controls label { white-space: nowrap; font-size: .9rem; }.geo-controls output { font-family: var(--mono); }
.geo-controls input[type=range] { accent-color: var(--orange); }
.matrix { background: #f8f6ef; }.matrix p { color: #5f5853; }
.layer-table { width: 100%; border-spacing: 3px; table-layout: fixed; margin: 16px 0 8px; font-family: var(--mono); }
.layer-table th { font-size: .77rem; font-weight: 500; }.layer-table th:first-child { width: 30px; }
.layer-table td { padding: 0; }.layer-table button { display: block; width: 100%; min-height: 29px; border: 0; border-radius: 2px; font: .78rem var(--mono); padding: 0; }
.layer-table button[aria-pressed=true] { outline: 2px solid #2a2327; outline-offset: 1px; }
.layer-table button:focus-visible { outline: 3px double #221d20; outline-offset: 2px; }
.matrix-scale { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font: .75rem var(--mono); }
.matrix-scale i { height: 5px; width: 78px; background: linear-gradient(90deg,#60529e,#f1ebde,#a44324); }
.matrix-selection { flex-wrap: wrap; margin-top: 10px; }.matrix-selection output { font: .95rem var(--mono); }
.matrix-selection button { background: transparent; border: 1px solid #b4a99e; border-radius: 4px; padding: .27rem .5rem; font-size: .82rem; }
.distance-plot { border-top: 1px solid #d9d2c8; margin-top: 18px; padding-top: 14px; }
.distance-plot h4 { font-size: .95rem; margin: 0 0 8px; }
.distance-plot > div { display: grid; grid-template-columns: auto 1fr 3.4em; align-items: center; gap: 10px; margin-top: 4px; font-size: .83rem; }
.distance-plot output { font-family: var(--mono); text-align: right; }
.distance-plot meter { width: 100%; height: 8px; border: none; border-radius: 4px; background: #e3dcd3; appearance: none; }
.distance-plot meter::-webkit-meter-bar { background: #e3dcd3; border: none; border-radius: 4px; height: 8px; }
.distance-plot meter::-webkit-meter-optimum-value { background: #a96044; border-radius: 4px; }
.distance-plot #flat-distance::-webkit-meter-optimum-value { background: #8575a4; }
.distance-plot meter::-moz-meter-bar { background: #a96044; border-radius: 4px; }
.distance-plot #flat-distance::-moz-meter-bar { background: #8575a4; }
.pairing-lab { border-top: 1px solid #4b454d; margin-top: 36px; padding-top: 24px; }
.pairing-head { align-items: flex-end; }.pairing-head p { color: #c6bdc5; margin-bottom: 0; }.pair-total { flex: none; text-align: right; }
.pair-total span { display: block; font-size: .82rem; color: #c6bdc5; }.pair-total output { font: 2.4rem var(--serif); color: #ffd0b2; }
.pair-board { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(48px, 1.35fr) minmax(132px,1fr); align-items: stretch; margin: 20px 0; padding: 12px clamp(8px,2.2vw,32px); border: 1px solid #4b454d; border-radius: 4px; background: #211f24; }
.pair-nodes { display: grid; grid-template-rows: repeat(3,60px); align-items: center; }
.pair-nodes button { display: flex; align-items: center; gap: 9px; min-width: 0; width: 100%; height: 43px; padding: 4px 9px; text-align: left; font-size: .9rem; border: 1px solid #534f59; border-radius: 4px; background: #29272c; }
.pair-nodes button:hover, .pair-nodes button[aria-pressed=true] { border-color: var(--pair-color); }
.pair-nodes button img { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; }
#pair-lines { width: 100%; height: 180px; }
#pair-texts button span:last-child { margin-left: auto; color: var(--pair-color); font: .85rem var(--mono); }
.pair-footer { flex-wrap: wrap; }.pair-footer output { font-size: .9rem; color: #d9cfce; }.pair-footer div { display: flex; gap: 8px; }
.pair-footer button { background: #29272b; color: var(--cream); border: 1px solid #6d626a; border-radius: 4px; padding: .4rem .75rem; font-size: .86rem; }
.pair-footer button:hover { border-color: var(--orange); }
@media (max-width: 850px) { .geo-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 480px) {
  .pairing-head { align-items: flex-start; }
  .pair-board { grid-template-columns: minmax(80px,.9fr) minmax(22px,.4fr) minmax(124px,1.15fr); padding-inline: 5px; }
  .pair-nodes button { font-size: .8rem; padding: 3px 5px; gap: 4px; }
  .pair-nodes button img { width: 24px; height: 24px; }
  .layer-table { border-spacing: 2px; }.layer-table th:first-child { width: 26px; }
  .layer-table button { font-size: .7rem; }
}
.dimension-panel { margin-top: 24px; border-block: 1px solid #c6c1b9; }
.dimension-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: .94rem; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
.expand-glyph::before { content: "+"; font: 1.35rem/1 var(--mono); }
details[open] .expand-glyph::before { content: "−"; }
.dim-content { padding-bottom: 20px; }
.dim-content p { color: #595454; line-height: 1.8; }
.heat-wrap { display: flex; gap: 8px; align-items: center; margin-block: 14px; }
.heat-wrap span { font: .83rem/20px var(--mono); }
#heatmap { display: block; width: calc(100% - 22px); height: 40px; cursor: crosshair; }
.dim-controls { justify-content: flex-start; flex-wrap: wrap; font-size: .9rem; }
.dim-controls input { width: min(220px, 45%); margin-inline: 5px; }
.dim-controls output { white-space: pre; }
.vision { background: #1b1a1d; }
.vision .section-title>p { color: #c3bdbd; }
.vision-grid { border-top: 1px solid #4c464b; padding-top: 26px; align-items: center; }
.vision-figure { position: relative; overflow: hidden; border-radius: 3px; margin: 0; background: #242329; }
.vision-figure img { width: 100%; height: clamp(260px, 22vw, 385px); object-fit: contain; display: block; }
.vision-figure figcaption { padding: 11px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; border-top: 1px solid #49464a; font-size: .8rem; }
.vision-figure figcaption a { color: #c4bbbe; text-decoration: underline; text-underline-offset: 3px; }
.vision .field-small { color: #c2b8bd; }
.vision-choices button { border-color: #625c62; font-family: var(--sans); }
.vision-choices button[aria-pressed=true] { background: #edc0a9; border-color: #edc0a9; color: #211b1a; }
.vision-choices button:hover { border-color: #dbc2b9; }
.score-heading { margin: 25px 0 16px; }
.vision-score { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 7px 15px; margin-top: 13px; font-size: .94rem; color: #e0dbdb; }
.vision-score output { font-size: .9rem; color: #f8c3a9; }
.score-track { height: 3px; grid-column: 1/-1; background: #423c43; }
.score-track i { background: #a79bb9; display: block; height: 100%; }
.vision-score.best .score-track i { background: var(--orange); }
.vision-note { margin-top: 18px; color: #b5adb2; font-size: .82rem; line-height: 1.7; }
.reading-index { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-bottom: 16px; border-bottom: 1px solid #beb8af; }
.reading-index a { padding: .48rem .85rem; border: 1px solid #b9afa4; border-radius: 20px; font-size: .9rem; }
.reading-index a:hover { color: #6e3523; border-color: #935139; background: #f4e4d7; }
.reading-chapter { margin-top: clamp(36px, 4vw, 65px); scroll-margin-top: 20px; }
.reading-chapter > h3 { font-size: clamp(1.48rem, 2.4vw, 2.3rem); line-height: 1.35; letter-spacing: -.035em; }
.chapter-intro { max-width: 49em; margin: 10px 0 22px; line-height: 1.8; color: #5e5954; }
.chapter-intro a { color: #814830; text-underline-offset: 4px; text-decoration: underline; }
.reading-list article { display: grid; grid-template-columns: 130px minmax(0,1fr) minmax(135px, .27fr); gap: clamp(12px, 3vw, 42px); padding: 24px 0; border-top: 1px solid #beb8af; }
.reading-list article:last-child { border-bottom: 1px solid #beb8af; }
.source-kind { color: #6d6059; padding-top: .32rem; }
.reading-list h4 { margin: 0; font: clamp(1.3rem, 1.8vw, 1.9rem)/1.14 var(--serif); overflow-wrap: anywhere; }
.reading-list p { line-height: 1.8; color: #645d58; margin-top: 9px; max-width: 48em; }
.sources { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.sources a, .method-sources { color: #814830; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: .9rem; }
.foot .wrap { min-height: 96px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-block: 20px; }
.foot .brand { font-size: 1.22rem; }.foot .brand img { width: 27px; }
.foot-details, .foot-back { font-size: .85rem; color: #beb6b6; }
.foot-details p { margin: .25rem 0 0; line-height: 1.6; }
.foot-details a { color: #ffae8c; text-decoration: underline; text-underline-offset: .18em; }
dialog { color-scheme: light; background: var(--paper); color: #262226; border: 1px solid #918780; padding: 0; width: min(550px, 92%); max-height: 85vh; border-radius: 6px; }
dialog::backdrop { background: #0c0b10ba; }
.method-inner { padding: clamp(22px,4vw,43px); }
.dialog-head .eyebrow { color: #92583d; }
.dialog-head button { border: 1px solid #b6aaa2; border-radius: 50%; background: none; font: 1.3rem/1 var(--sans); width: 32px; height: 32px; }
dialog h2 { font-size: 2.1rem; margin: 18px 0 23px; }
dialog h3 { margin: 15px 0 4px; }
dialog p:not(.eyebrow) { line-height: 1.8; color: #5e5756; }
.method-resources { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.method-resources a { color: #814830; text-decoration: underline; text-underline-offset: 4px; font-size: .9rem; }
.no-js { padding: 20px; }
@media (min-width: 1600px) { .hero-inner { min-height: 655px; } }
@media (max-width: 900px) {
  .nav-inner { min-height: 65px; }
  .hero-inner { grid-template-columns: .82fr 1.1fr; }
  h1 { font-size: clamp(3.7rem, 7.5vw, 4.6rem); }
  .section-title>p { max-width: 21em; }
  .reading-list article { grid-template-columns: 100px 1fr 118px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .nav-inner { gap: 0 12px; flex-wrap: wrap; padding-top: 13px; }
  .nav-inner .brand { font-size: 1.3rem; }.brand img { width: 29px; height: 29px; }
  .nav-inner nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
  nav a { padding: 13px 3px 10px; }
  .method-link { padding: .35rem .62rem; font-size: .8rem; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { padding: 34px 0 0; }
  h1 { font-size: clamp(2.45rem, 10.9vw, 4.2rem); margin: 13px 0; }
  h1 br { display: none; }
  .hero-sub { line-height: 1.7; }
  .intro-link { padding: .6rem .9rem; margin-top: 15px; }
  .field-instrument { padding: 22px 0 15px; }
  .art-view { height: clamp(232px,66vw,375px); min-height: 0; }
  .field-controls { padding-top: 8px; }
  .field-caption { gap: 7px; }.drag-note { display: none; }
  .readout-inner { grid-template-columns: 1.25fr 1fr; gap: 14px 0; padding: 16px 0; }
  .readout-inner>div { padding: 0 0 0 18px; }
  .readout-inner>div:nth-child(odd) { border: 0; padding-left: 0; }
  .readout dt { margin-bottom: 3px; }
  .section-title { display: block; margin-bottom: 23px; }
  .section-title>p { margin-top: 12px; max-width: none; }
  .lab-grid, .vision-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .reading-list article { display: block; }
  .reading-list h4 { margin-top: 8px; }
  .sources { flex-direction: row; flex-wrap: wrap; gap: 9px 20px; margin-top: 14px; }
  .model-control { flex-wrap: wrap; }
  .foot .wrap { grid-template-columns: 1fr auto; row-gap: 12px; }
  .foot-details { grid-column: 1 / -1; }
  .foot-back { grid-area: 1 / 2; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
@media (min-width:681px) and (max-width:850px) {
  .nav-inner { flex-wrap: wrap; padding-top: 12px; gap: 0 12px; }
  .nav-inner nav { width: 100%; order: 3; justify-content: space-between; }
  .nav-inner nav a { padding-block: 10px; }
}
@media (max-width:680px) {
  html:lang(en) h1 { font-size: clamp(2.85rem, 10.7vw, 4.25rem); }
  html:lang(en) .hero-sub { max-width: 41ch; }
  html:lang(zh) h1 { word-spacing: -.23em; }
  html:lang(zh) .title-line { display: inline-block; }
  .language-switch button { min-width: 32px; min-height: 25px; padding-inline: 6px; }
  .pair-nodes button span { overflow-wrap: anywhere; }
  html:lang(en) .pair-board { grid-template-columns: minmax(84px,.8fr) minmax(20px,.38fr) minmax(136px,1.2fr); }
  html:lang(en) .pairing-head { align-items: flex-start; }
  html:lang(en) .pair-total span { max-width: 8em; }
  .field-legend { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .field-label, .field-legend span { white-space: nowrap; }
  .matrix-selection output { overflow-wrap: anywhere; }
}
@media (max-width:390px) {
  .nav-inner { gap: 0 6px; }
  .nav-tools { gap: 5px; }
  .nav-inner .brand { font-size: 1.16rem; }
  .nav-inner .method-link .info-icon { display: none; }
  html:lang(en) nav a { font-size: .79rem; padding-inline: 0; }
  .nav-inner nav { gap: 4px; }
}
@media (max-width:360px) {
  .nav-inner .method-link { width: 30px; height: 30px; padding: 0; justify-content: center; }
  .nav-inner .method-link .info-icon { display: grid; }
  .nav-inner .method-link span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
