/* ==========================================================================
   SHING CIVITAS — research series
   Two registers of one visual language:
   · the paper  — vellum reading surface, ruled electric-blue margin, mounted plates,
                  booktabs tables, dark "instrument" panels for notation and data;
   · the notebook — an obsidian-bound field journal with parchment leaves, blue-ink
                  marginalia and hand-drawn sketches, turned like a real book.
   ========================================================================== */
:root {
  --volt: #168fff;
  --volt-2: #28d8ff;
  --volt-deep: #0b57c9;           /* blue ink on vellum, ≥ 5.5:1 */
  --vellum: #f4eee1;
  --vellum-2: #ebe2cd;
  --vellum-ink: #1b1e24;
  --vellum-ink-2: #4a4e57;
  --vellum-rule: #d9ccb0;
  --obsidian: #05080f;
  --obsidian-2: #0a1222;
  --rust: #a8431f;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .14 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .18' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .31 0 0 0 0 .17 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .15 0 0 0 .16 -.03'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  --sci: 'Source Serif 4', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --hand: 'Caveat', 'Long Cang', 'Kaiti SC', 'STKaiti', cursive;
  --type: 'Special Elite', 'JetBrains Mono', ui-monospace, monospace;
  --book: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', Georgia, serif;
}
html[lang="zh"] { --sci: 'Noto Serif SC', 'Songti SC', 'Source Serif 4', serif; --hand: 'Long Cang', 'Caveat', 'Kaiti SC', 'STKaiti', cursive; --book: 'Noto Serif SC', 'Songti SC', serif; }

/* ---------- Shared hero for paper / data pages ---------- */
.rp-hero {
  position: relative;
  overflow: hidden;
  padding: 140px var(--gutter) 64px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(22, 143, 255, .20), transparent 60%),
    radial-gradient(ellipse 40% 50% at 8% 100%, rgba(98, 91, 255, .12), transparent 70%),
    linear-gradient(180deg, #03060c, #070d18 70%, #08101d);
  color: #eef2f8;
  isolation: isolate;
}
.rp-hero::before { /* constellation dot field */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(150, 200, 255, .55) .8px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 0, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 0, transparent 70%);
  opacity: .35;
}
.rp-hero::after { /* filament along the lower edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 216, 255, .6) 30%, rgba(22, 143, 255, .3) 70%, transparent);
}
.rp-hero-inner { max-width: 1044px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8d9bac; }
.crumbs a { color: #cfe3ff; }
.crumbs a:hover { color: #fff; }
.rp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 0 18px; font: 500 11.5px/1.5 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--volt-2); }
.rp-eyebrow::before { content: ""; width: 28px; height: 1px; margin-right: 14px; background: var(--volt); }
.rp-eyebrow i { font-style: normal; margin: 0 .7em; color: #4e6a8f; }
.rp-hero h1 { margin: 0; max-width: 21em; font: 400 clamp(2.1rem, 4.2vw, 3.6rem)/1.06 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
html[lang="zh"] .rp-hero h1 { font-weight: 600; line-height: 1.3; font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: .01em; }
.rp-deck { margin: 22px 0 0; max-width: 46em; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.7; color: #b4bfcc; text-wrap: pretty; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font: 400 12px/1.5 var(--mono); color: #8d9bac; }
.rp-meta a { color: #cfe3ff; border-bottom: 1px solid rgba(207, 227, 255, .3); }
.rp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px;
  border: 1px solid rgba(22, 143, 255, .35); border-radius: 999px; background: rgba(8, 20, 38, .6);
  color: #dbe9fb; font: 500 12.5px/1 var(--sans); letter-spacing: .01em;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pill:hover { border-color: var(--volt-2); background: rgba(22, 143, 255, .14); box-shadow: 0 0 24px rgba(22, 143, 255, .25); }
.pill-notebook { border-color: rgba(40, 216, 255, .55); color: #fff; }
.pill-ic { width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.pill-ic-book { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M4 5.5c2.8-.9 5.5-.5 8 1.2v12c-2.5-1.7-5.2-2.1-8-1.2v-12ZM20 5.5c-2.8-.9-5.5-.5-8 1.2v12c2.5-1.7 5.2-2.1 8-1.2v-12Z'/%3E%3C/svg%3E"); }
.pill-ic-data { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cellipse cx='12' cy='6' rx='7' ry='2.6'/%3E%3Cpath d='M5 6v12c0 1.4 3.1 2.6 7 2.6s7-1.2 7-2.6V6M5 12c0 1.4 3.1 2.6 7 2.6s7-1.2 7-2.6'/%3E%3C/svg%3E"); }
.rp-edition { margin: 30px 0 0; padding-top: 18px; max-width: 60em; border-top: 1px dashed rgba(141, 155, 172, .25); font: italic 400 13px/1.6 var(--sci); color: #8d9bac; }

/* ---------- Vellum reading surface ---------- */
.rp-paper {
  position: relative;
  padding: 64px var(--gutter) 120px;
  color: var(--vellum-ink);
  background-color: var(--vellum);
  background-image: var(--grain), var(--fibre), var(--mottle), linear-gradient(180deg, #f7f2e7, var(--vellum) 30%, #f1e9d8);
  --fg: var(--vellum-ink); --fg-2: var(--vellum-ink-2); --fg-3: #6a6d73; --hair: var(--vellum-rule); --hair-2: #c8b991;
}
.rp-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
@media (min-width: 1120px) {
  .rp-layout { grid-template-columns: 250px minmax(0, 720px); gap: 72px; max-width: 1042px; }
}

/* rail: contents + evidence profile */
.rp-rail { margin-bottom: 40px; }
@media (min-width: 1120px) {
  .rp-rail { margin: 0; }
  .rp-rail-inner { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
}
.rtoc { border-bottom: 1px solid var(--vellum-rule); padding-bottom: 18px; }
.rtoc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 0 12px; }
.rtoc summary::-webkit-details-marker { display: none; }
.rtoc summary::after { content: "+"; font: 400 16px/1 var(--mono); color: var(--volt-deep); }
.rtoc[open] summary::after { content: "–"; }
@media (min-width: 1120px) { .rtoc summary { pointer-events: none; } .rtoc summary::after { display: none; } }
.rtoc-list, .rtoc-list ol { list-style: none; margin: 0; padding: 0; }
.rtoc-list > li { margin: 2px 0; }
.rtoc-list a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid transparent; font: 400 13px/1.45 var(--sans); color: var(--vellum-ink-2); transition: color .2s, border-color .2s; }
.rtoc-list ol a { padding-left: 24px; font-size: 12.2px; }
.rtoc-list a:hover { color: var(--vellum-ink); }
.rtoc-list a.is-active { color: var(--volt-deep); border-left-color: var(--volt); font-weight: 500; }
.rail-card { margin-top: 26px; }
.evidence-card { margin: 12px 0 0; display: grid; gap: 0; }
.evidence-card > div { padding: 10px 0; border-bottom: 1px dotted var(--vellum-rule); }
.evidence-card dt { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6a6d73; }
.evidence-card dd { margin: 4px 0 0; font: 400 13px/1.5 var(--sans); color: var(--vellum-ink); }
.evidence-card dd small { display: block; margin-top: 2px; color: var(--vellum-ink-2); font-size: 11.5px; }
.evidence-card dd a { color: var(--volt-deep); border-bottom: 1px solid rgba(11, 87, 201, .3); }
.rail-note { margin: 16px 0 0; font: italic 400 12.5px/1.55 var(--sci); color: var(--vellum-ink-2); }

/* the text column, with a ruled notebook margin */
.rp-text { position: relative; min-width: 0; }
@media (min-width: 760px) {
  .rp-text { padding-left: 38px; }
  .rp-text::before, .rp-text::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(22, 143, 255, .28); }
  .rp-text::before { left: 0; }
  .rp-text::after { left: 4px; background: rgba(22, 143, 255, .14); }
}
.prose-sci { font: 400 1.09rem/1.74 var(--sci); font-optical-sizing: auto; color: var(--vellum-ink); hyphens: auto; }
html[lang="zh"] .prose-sci { font-size: 1.04rem; line-height: 1.95; hyphens: manual; text-align: justify; }
.prose-sci p { margin: 0 0 1.05em; text-wrap: pretty; }
.prose-sci h2 { position: relative; margin: 2.6em 0 .8em; padding-top: 22px; font: 400 clamp(1.6rem, 2.3vw, 2.05rem)/1.18 var(--serif); letter-spacing: -.005em; scroll-margin-top: 100px; }
html[lang="zh"] .prose-sci h2 { font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.4; }
.prose-sci h2::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 2px; background: var(--volt); box-shadow: 0 0 10px rgba(22, 143, 255, .5); }
.prose-sci h3 { margin: 2em 0 .6em; font: 600 1.12rem/1.35 var(--sans); letter-spacing: -.005em; scroll-margin-top: 100px; }
.prose-sci h4 { margin: 1.6em 0 .5em; font: 600 1rem/1.4 var(--sans); }
.prose-sci .anchor { position: absolute; margin-left: -1.3em; width: 1.1em; opacity: 0; color: var(--volt); font-weight: 400; text-decoration: none; transition: opacity .2s; }
.prose-sci h3 .anchor { margin-left: -1.1em; }
.prose-sci h2:hover .anchor, .prose-sci h3:hover .anchor { opacity: .8; }
.prose-sci h2 .anchor { top: 22px; }
.prose-sci a { color: var(--volt-deep); text-decoration: underline; text-decoration-color: rgba(11, 87, 201, .3); text-underline-offset: 3px; }
.prose-sci a:hover { text-decoration-color: var(--volt-deep); }
.prose-sci a.url { word-break: break-all; font-size: .92em; }
.prose-sci strong { font-weight: 600; }
.prose-sci code { padding: .08em .36em; border-radius: 4px; background: rgba(11, 87, 201, .08); color: #0d3f8f; font: 500 .82em/1 var(--mono); white-space: nowrap; }
.prose-sci ul, .prose-sci ol:not(.references) { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose-sci li { margin: .35em 0; }
.prose-sci li::marker { color: var(--volt-deep); }
.prose-sci hr { border: 0; height: 1px; margin: 2.4em 0; background: linear-gradient(90deg, var(--vellum-rule), transparent); }
.prose-sci blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 2px solid var(--volt); font-style: italic; }
.prose-sci sub { font-size: .72em; }
.preface { margin-bottom: 28px; padding: 14px 18px; border: 1px solid rgba(11, 87, 201, .18); border-radius: 4px; background: rgba(255, 255, 255, .35); font: italic 400 .98rem/1.6 var(--sci); color: var(--vellum-ink-2); }
.preface p { margin: 0; }
.preface p + p { margin-top: .6em; }
.prose-sci > p:first-of-type + .abstract, .abstract { margin: 6px 0 22px; padding: 22px 24px 8px; border: 1px solid var(--vellum-rule); border-top: 2px solid var(--vellum-ink); background: rgba(255, 255, 255, .42); }
.abstract-title { margin: 0 0 12px !important; font: 500 11px/1.4 var(--mono) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--volt-deep); }
.abstract-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-top: 1px dotted var(--vellum-rule); }
.abstract-row:first-child { border-top: 0; }
.abstract-row p { margin: 0; font-size: .98rem; line-height: 1.66; }
.abstract-label { font: 600 12px/1.6 var(--sans); letter-spacing: .02em; color: var(--vellum-ink); }
@media (min-width: 640px) { .abstract-row { grid-template-columns: 112px 1fr; gap: 18px; } }
.keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 2em; }
.keywords .label { margin-right: 6px; color: #6a6d73; }
.kw { padding: 3px 10px; border: 1px solid var(--vellum-rule); border-radius: 999px; font: 400 12.5px/1.4 var(--sans); color: var(--vellum-ink-2); background: rgba(255, 255, 255, .35); }
.prose-sci p.reading { position: relative; padding: 14px 18px 14px 20px; border-left: 2px solid var(--volt); background: linear-gradient(90deg, rgba(22, 143, 255, .075), rgba(22, 143, 255, .015)); font-size: 1.02rem; }
.cite { white-space: nowrap; font-size: .92em; }
.cite a { text-decoration: none; padding: 0 1px; font-variant-numeric: tabular-nums; }
.xref { text-decoration-style: dotted !important; }
.register-note { margin-top: 2em; font: 400 .9rem/1.6 var(--sans); color: var(--vellum-ink-2); }
.doc-link { font-weight: 500; }

/* ---------- Mounted figure plates ---------- */
.plate { margin: 2.2em 0 2.4em; scroll-margin-top: 100px; }
@media (min-width: 1120px) { .plate, .table-wrap { width: min(940px, calc(720px + (100vw - 1042px) / 2 - var(--gutter) - 38px)); } }
.plate-frame {
  position: relative; display: block; padding: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(60, 45, 20, .1), 0 1px 0 rgba(60, 45, 20, .12), 0 22px 44px -28px rgba(60, 40, 10, .45);
  cursor: zoom-in; transition: box-shadow .25s, transform .25s;
}
.plate-frame::before, .plate-frame::after { /* viewfinder corner marks in electric blue */
  content: ""; position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--volt); pointer-events: none; opacity: .75;
}
.plate-frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.plate-frame::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.plate-frame:hover { box-shadow: 0 0 0 1px rgba(22, 143, 255, .35), 0 26px 50px -26px rgba(22, 60, 120, .45); }
.plate img { width: 100%; height: auto; }
.plate figcaption { max-width: 720px; margin-top: 14px; font: 400 14.5px/1.6 var(--sans); color: var(--vellum-ink-2); }
html[lang="zh"] .plate figcaption { font-size: 14px; line-height: 1.75; }
.plate-no { display: inline-block; margin-right: 10px; font: 600 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--volt-deep); }
.fig-note { display: block; margin-top: 6px; font-style: italic; }

/* ---------- Booktabs tables ---------- */
.table-wrap { margin: 2em 0 2.2em; scroll-margin-top: 100px; text-align: left; }
.table-caption { margin: 0 0 10px !important; font: 400 14px/1.55 var(--sans); color: var(--vellum-ink-2); }
.table-caption strong { color: var(--vellum-ink); }
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  background:
    linear-gradient(90deg, var(--vellum) 30%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--vellum) 30%, transparent) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(40, 30, 10, .18), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(40, 30, 10, .18), transparent) right / 12px 100% no-repeat scroll;
}
.table-scroll:focus-visible { outline: 2px solid var(--volt); outline-offset: 4px; }
.prose-sci table { width: 100%; min-width: 560px; border-collapse: collapse; font: 400 13.5px/1.45 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
html[lang="zh"] .prose-sci table { font-size: 13.5px; line-height: 1.6; }
.prose-sci thead th { padding: 10px 12px 9px; border-top: 2px solid var(--vellum-ink); border-bottom: 1px solid var(--vellum-ink); text-align: left; vertical-align: bottom; font: 600 10.5px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vellum-ink); }
html[lang="zh"] .prose-sci thead th { font: 600 12px/1.4 var(--sans); text-transform: none; letter-spacing: .02em; }
.prose-sci tbody th, .prose-sci tbody td { padding: 9px 12px; border-bottom: 1px solid rgba(217, 204, 176, .7); text-align: left; vertical-align: top; }
.prose-sci tbody th { font-weight: 600; white-space: nowrap; }
.prose-sci tbody tr:last-child th, .prose-sci tbody tr:last-child td { border-bottom: 2px solid var(--vellum-ink); }
.prose-sci tbody tr:hover { background: rgba(22, 143, 255, .055); }
.prose-sci .num { text-align: right; white-space: nowrap; }
/* Chrome ignores min-width on cells: size the table by column count instead (scrolls on phones) */
.prose-sci table.cols-2 { min-width: 20em; } .prose-sci table.cols-3 { min-width: 30em; } .prose-sci table.cols-4 { min-width: 38em; }
.prose-sci table.cols-5 { min-width: 44em; } .prose-sci table.cols-6 { min-width: 50em; } .prose-sci table.cols-7 { min-width: 56em; } .prose-sci table.cols-8 { min-width: 62em; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.verdict-yes { color: var(--volt-deep); }
.verdict-yes::before { background: var(--volt); box-shadow: 0 0 6px rgba(22, 143, 255, .7); }
.verdict-no { color: #6b6e74; }
.verdict-no::before { border: 1.5px solid #8b8e94; }

/* ---------- Notation: a dark instrument panel ---------- */
.notation {
  position: relative; margin: 2.4em 0; padding: 22px 26px 8px; border-radius: 6px;
  background: radial-gradient(ellipse at 100% 0, rgba(22, 143, 255, .22), transparent 55%), linear-gradient(160deg, #06101f, #040810);
  color: #dfe9f6; box-shadow: 0 0 0 1px rgba(22, 143, 255, .3), 0 24px 50px -30px rgba(4, 20, 50, .8);
}
.notation::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--volt-2), transparent); }
.notation-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0 0 6px !important; }
.notation .label { color: var(--volt-2); }
.notation-note { font: italic 400 12.5px/1.5 var(--sci); color: #8fa3bd; }
.formula { padding: 14px 0 10px; border-top: 1px solid rgba(143, 163, 189, .15); }
.formula:first-of-type { border-top: 0; }
.formula math { font-size: 1.18em; color: #fff; margin: 4px 0 8px; overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: 2px 0; }
.formula p { margin: 0 !important; font: 400 13px/1.6 var(--sans); color: #a9bad0; }

/* ---------- Dataset capsule ---------- */
.dataset {
  position: relative; margin: 2.6em 0 2.8em; padding: 28px 28px 22px; border-radius: 8px; scroll-margin-top: 100px;
  background: radial-gradient(ellipse 70% 60% at 100% 0, rgba(22, 143, 255, .2), transparent 60%), linear-gradient(165deg, #071122, #03060c);
  color: #dfe8f4; font: 400 14px/1.6 var(--sans); text-align: left; hyphens: manual;
  box-shadow: 0 0 0 1px rgba(22, 143, 255, .32), 0 30px 60px -36px rgba(3, 15, 40, .9);
  --fg: #dfe8f4;
}
.dataset::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--volt-2), transparent); }
.dataset code { background: rgba(40, 216, 255, .1); color: #bfe9ff; white-space: normal; word-break: break-word; }
.dataset .label { color: var(--volt-2); }
.ds-head { margin-bottom: 12px; }
.prose-sci .ds-title, .ds-title { margin: 6px 0 2px; padding: 0; font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--serif); color: #fff; }
.prose-sci .ds-title::before { display: none; }
html[lang="zh"] .ds-title { font-weight: 600; font-size: 1.25rem; line-height: 1.45; }
.ds-alt { margin: 0 !important; font-size: 12.5px; color: #8fa3bd; }
.ds-ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ds-id { padding: 2px 9px; border: 1px solid rgba(40, 216, 255, .35); border-radius: 999px; font: 500 11px/1.6 var(--mono); color: #bfe9ff; }
.ds-desc { margin: 0 0 18px !important; color: #b9c6d6; font-size: 14.5px; line-height: 1.65; }
.ds-download { display: grid; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(143, 163, 189, .16); border-bottom: 1px solid rgba(143, 163, 189, .16); }
.btn-download {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #1c97ff, #0a6fe0); color: #fff !important; text-decoration: none !important;
  box-shadow: 0 10px 30px -10px rgba(22, 143, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s, box-shadow .2s;
}
.btn-download:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(40, 216, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-download strong { display: block; font: 600 15px/1.2 var(--sans); }
.btn-download small { display: block; margin-top: 3px; font: 400 11.5px/1.3 var(--mono); opacity: .85; word-break: break-all; }
.dl-icon { width: 30px; height: 30px; flex: none; border-radius: 8px; background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ds-facts { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0; }
.btn-download { justify-self: start; max-width: 100%; }
.ds-facts dt { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7f93ad; }
.ds-facts dd { margin: 2px 0 0; color: #fff; font-size: 13.5px; }
.ds-hash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 0 6px; }
.ds-hash .label { flex-basis: 100%; }
.hash { flex: 1 1 260px; min-width: 0; padding: 9px 12px !important; border-radius: 6px; background: rgba(0, 0, 0, .35) !important; border: 1px solid rgba(143, 163, 189, .2); font: 400 12.5px/1.5 var(--mono) !important; color: #9fe3ff !important; word-break: break-all; white-space: normal !important; user-select: all; }
.copy-btn { flex: none; min-height: 34px; padding: 0 14px; border: 1px solid rgba(40, 216, 255, .4); border-radius: 999px; background: transparent; color: #cfefff; font: 500 12px/1 var(--sans); transition: background .2s, border-color .2s; }
.copy-btn:hover { background: rgba(22, 143, 255, .18); border-color: var(--volt-2); }
.copy-btn.is-done { border-color: #39d98a; color: #9df3c4; }
.ds-verify { flex-basis: 100%; margin: 0 !important; font-size: 12px; color: #7f93ad; }
.ds-licences { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 0; }
.licence { padding: 4px 11px; border-radius: 4px; background: #e9eef5; color: #08101d !important; font: 700 11.5px/1.4 var(--mono); letter-spacing: .04em; text-decoration: none !important; }
.licence:hover { background: #fff; }
.ds-licences p { flex-basis: 100%; margin: 4px 0 0 !important; font-size: 13px; color: #b9c6d6; }
.ds-cite { padding: 14px 0; border-top: 1px solid rgba(143, 163, 189, .16); }
.apa { margin: 8px 0 10px !important; padding: 12px 14px; border-left: 2px solid var(--volt); background: rgba(255, 255, 255, .04); font: 400 14px/1.6 var(--sci); color: #eef3fa; }
.ds-cite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-cite details { margin-top: 12px; }
.ds-cite summary { cursor: pointer; font: 500 12px/1.5 var(--mono); color: #9fb4cf; }
.ds-cite pre { overflow-x: auto; margin: 10px 0; padding: 12px 14px; border-radius: 6px; background: rgba(0, 0, 0, .4); font: 400 12px/1.6 var(--mono); color: #cde7ff; }
.ds-small { margin: 0 !important; font-size: 12px; color: #8fa3bd; }
.ds-scope { padding: 14px 0 6px; border-top: 1px solid rgba(143, 163, 189, .16); }
.ds-repro { display: grid; gap: 10px; margin: 10px 0 0; }
.ds-repro > div { position: relative; padding: 10px 12px 10px 30px; border-radius: 6px; background: rgba(255, 255, 255, .03); }
.ds-repro > div::before { content: ""; position: absolute; left: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; }
.repro-supported::before { background: #39d98a; box-shadow: 0 0 6px #39d98a; }
.repro-partial::before { background: #ffbd4a; }
.repro-not::before { border: 1.5px solid #ff7a6b; }
.ds-repro dt { font: 600 12.5px/1.5 var(--sans); color: #fff; }
.ds-repro dd { margin: 2px 0 0; font-size: 12.8px; line-height: 1.55; color: #b9c6d6; }
.ds-tr { display: block; margin-top: 3px; color: #dfe8f4; }
.ds-limits { margin: 10px 0 0 !important; padding-left: 1.2em; font-size: 12.8px; color: #b9c6d6; }
.ds-inside { margin: 12px 0 0 !important; font-size: 12.5px; color: #8fa3bd; }
.dataset-blocked { background: repeating-linear-gradient(135deg, rgba(255, 122, 107, .05) 0 10px, transparent 10px 22px), linear-gradient(165deg, #140c12, #05060b); box-shadow: 0 0 0 1px rgba(255, 122, 107, .35); }
.dataset-blocked::before { background: linear-gradient(90deg, transparent, #ff7a6b, transparent); }
.ds-blocked { display: grid; grid-template-columns: 34px 1fr; gap: 6px 14px; padding: 16px 0 6px; border-top: 1px solid rgba(255, 122, 107, .22); }
.ds-blocked p { grid-column: 2; margin: 0 0 8px !important; color: #e8d6d3; }
.ds-reason { font-size: 12.5px; color: #b49c98 !important; }
.ds-lock { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; background: rgba(255, 122, 107, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9b8f' stroke-width='1.7'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='1.6'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / 19px no-repeat; }
.archive-summary { text-align: left; margin: 2.4em 0; padding: 20px 22px; border: 1px solid var(--vellum-rule); border-top: 2px solid var(--volt); background: rgba(255, 255, 255, .4); font: 400 14px/1.6 var(--sans); }
.archive-summary ul { list-style: none; margin: 10px 0 12px !important; padding: 0 !important; }
.archive-summary li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px dotted var(--vellum-rule); }
.archive-summary li span { color: var(--vellum-ink-2); font: 400 12px/1.6 var(--mono); }

/* references */
.references { list-style: none; margin: 0; padding: 0; counter-reset: none; font: 400 14.5px/1.6 var(--sans); }
html[lang="zh"] .references { font-size: 14px; }
.references li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 6px; border-bottom: 1px dotted var(--vellum-rule); scroll-margin-top: 110px; border-radius: 3px; transition: background .4s; }
.references li:target, .references li.is-flash { background: rgba(22, 143, 255, .12); }
.ref-no { font: 600 12px/1.9 var(--mono); color: var(--volt-deep); }
.ref-body { min-width: 0; }
.cite-pop { position: absolute; z-index: 70; max-width: min(420px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 6px; background: #071122; color: #dfe8f4; font: 400 13px/1.55 var(--sans); box-shadow: 0 0 0 1px rgba(22, 143, 255, .4), 0 18px 40px -16px rgba(0, 0, 0, .6); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.cite-pop.is-on { opacity: 1; transform: none; }
.cite-pop b { color: var(--volt-2); font-family: var(--mono); margin-right: 6px; }

/* series navigation */
.rp-seq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1042px; margin: 80px auto 0; padding-top: 28px; border-top: 1px solid var(--vellum-rule); }
.rp-seq a { display: block; padding: 18px 20px; border: 1px solid var(--vellum-rule); border-radius: 6px; background: rgba(255, 255, 255, .35); transition: border-color .2s, background .2s; }
.rp-seq a:hover { border-color: var(--volt); background: rgba(255, 255, 255, .6); }
.rp-seq strong { display: block; margin-top: 6px; font: 400 1.15rem/1.3 var(--serif); }
.seq-next { text-align: right; }
@media (max-width: 640px) { .rp-seq { grid-template-columns: 1fr; } .seq-next { text-align: left; } }

/* zoom dialog */
.zoom { max-width: min(1400px, 96vw); max-height: 94vh; padding: 18px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 143, 255, .5), 0 40px 120px rgba(0, 0, 0, .7); }
.zoom::backdrop { background: rgba(3, 6, 12, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom img { display: block; max-width: 100%; max-height: calc(94vh - 90px); width: auto; height: auto; margin: 0 auto; }
.zoom-cap { max-width: 900px; margin: 10px auto 0; color: #333; font: 400 13px/1.5 var(--sans); }
.zoom-close { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #0a1222; color: #fff; font-size: 20px; line-height: 1; }

/* ---------- Data archive page ---------- */
.rp-hero-data { padding-bottom: 40px; }
.ds-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.ds-index a { display: grid; gap: 2px; min-width: 180px; padding: 12px 16px; border: 1px solid rgba(22, 143, 255, .3); border-radius: 8px; background: rgba(8, 20, 38, .55); color: #dbe9fb; transition: border-color .2s, background .2s; }
.ds-index a:hover { border-color: var(--volt-2); background: rgba(22, 143, 255, .12); }
.ds-index-id { font: 600 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--volt-2); }
.ds-index small { font: 400 11.5px/1.4 var(--mono); color: #8d9bac; }
.data-list { max-width: 900px; margin: 0 auto; }
.data-item { scroll-margin-top: 90px; }
.data-item .dataset { margin-top: 0; margin-bottom: 12px; }
.data-article { margin: 0 0 56px; font: 400 14px/1.6 var(--sans); color: var(--vellum-ink-2); }
.data-article a, .data-meta a { color: var(--volt-deep); border-bottom: 1px solid rgba(11, 87, 201, .3); }
.data-meta { padding-top: 22px; border-top: 1px solid var(--vellum-rule); font: 400 12.5px/1.7 var(--mono); color: var(--vellum-ink-2); }

/* ---------- Research index: the series band ---------- */
.series-band {
  position: relative; overflow: hidden; padding: 64px var(--gutter) 72px;
  background: radial-gradient(ellipse 50% 60% at 90% 0, rgba(22, 143, 255, .16), transparent 60%), linear-gradient(180deg, #070a11, #050810);
  color: #eef2f8; border-top: 1px solid rgba(22, 143, 255, .14);
}
.series-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(22, 143, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 143, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.series-band .container { position: relative; }
.series-band .eyebrow { color: #9fb4cf; }
.series-band .eyebrow::before { background: var(--volt); }
.series-head h2 { margin: 0; font: 400 clamp(2rem, 3.6vw, 3.1rem)/1.08 var(--serif); letter-spacing: -.01em; }
html[lang="zh"] .series-head h2 { font-weight: 600; line-height: 1.3; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.series-lead { max-width: 52em; margin: 18px 0 0; color: #a9b6c6; font-size: 1.04rem; line-height: 1.7; }
.series-feature { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 960px) { .series-feature { grid-template-columns: 1.35fr 1fr; } }
.notebook-card, .intro-card, .paper-card { position: relative; border: 1px solid rgba(22, 143, 255, .22); border-radius: 12px; background: linear-gradient(160deg, rgba(14, 26, 46, .7), rgba(6, 10, 18, .85)); transition: border-color .25s, transform .25s, box-shadow .25s; }
.notebook-card:hover, .intro-card:hover, .paper-card:hover { border-color: rgba(40, 216, 255, .6); box-shadow: 0 20px 60px -30px rgba(22, 143, 255, .55); }
.notebook-card { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; padding: 26px; overflow: hidden; }
@media (min-width: 560px) { .notebook-card { grid-template-columns: 150px 1fr; } }
.nc-text { display: grid; gap: 8px; }
.nc-text strong { font: 400 1.65rem/1.15 var(--serif); color: #fff; }
html[lang="zh"] .nc-text strong { font-weight: 600; font-size: 1.4rem; }
.nc-text > span:not(.label):not(.nc-cta) { color: #a9b6c6; line-height: 1.6; }
.nc-text .label, .notebook-card .label { color: var(--volt-2); }
.nc-cta { font: 500 13px/1.4 var(--sans); color: var(--volt-2); }
.mini-book { position: relative; width: 132px; height: 176px; margin: 0 auto; perspective: 800px; }
.mini-cover { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; border-radius: 3px 8px 8px 3px; background: radial-gradient(ellipse at 30% 20%, #1a2740, #070b14 70%); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .45), inset 7px 0 0 rgba(40, 216, 255, .35), 0 18px 30px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(22, 143, 255, .3); transform-origin: left center; transform: rotateY(-14deg); transition: transform .5s var(--ease); z-index: 2; }
.notebook-card:hover .mini-cover { transform: rotateY(-32deg); }
.mini-pages { position: absolute; inset: 4px 2px 4px 8px; border-radius: 2px 6px 6px 2px; background: repeating-linear-gradient(0deg, #e8dcbf 0 2px, #d8c8a2 2px 3px); }
.mini-sigil { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(40, 216, 255, .5); box-shadow: 0 0 20px rgba(22, 143, 255, .45), inset 0 0 14px rgba(22, 143, 255, .4); background: radial-gradient(circle, rgba(40, 216, 255, .5) 0 2px, transparent 3px), conic-gradient(from 200deg, transparent 0 40%, rgba(40, 216, 255, .7) 40% 41%, transparent 41% 70%, rgba(22, 143, 255, .6) 70% 71%, transparent 71%); }
.mini-title { font: 400 10px/1.3 var(--type); letter-spacing: .22em; color: #9fdcff; }
.intro-card { display: grid; align-content: start; gap: 10px; padding: 26px; }
.intro-card h3, .paper-card h3 { margin: 0; font: 400 1.32rem/1.25 var(--serif); color: #fff; }
html[lang="zh"] .intro-card h3, html[lang="zh"] .paper-card h3 { font-weight: 600; font-size: 1.12rem; line-height: 1.5; }
.intro-card p, .paper-card p { margin: 0; color: #a9b6c6; font-size: .95rem; line-height: 1.6; }
.pc-no { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--volt-2); }
.pc-studies { margin-top: -6px; font: 400 11px/1.4 var(--mono); color: #8d9bac; }
.paper-grid { list-style: none; display: grid; gap: 18px; margin: 18px 0 0; padding: 0; }
@media (min-width: 760px) { .paper-grid { grid-template-columns: 1fr 1fr; } }
.paper-card { display: flex; flex-direction: column; }
.paper-card-main { display: grid; gap: 10px; padding: 24px 24px 18px; flex: 1; align-content: start; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 24px; border-top: 1px solid rgba(22, 143, 255, .14); font: 400 12px/1.4 var(--sans); }
.pc-tests { color: #a9b6c6; }
.pc-tests b { color: #fff; font-weight: 600; }
.tag-data { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(40, 216, 255, .4); color: #bfe9ff; }
a.tag-data:hover { background: rgba(22, 143, 255, .16); }
.tag-withheld { border-color: rgba(255, 122, 107, .45); color: #ffb3a9; }
.pc-nb { margin-left: auto; color: var(--volt-2); }
.series-band .btn-primary { background: linear-gradient(180deg, #1c97ff, #0a6fe0); color: #fff; box-shadow: 0 10px 30px -10px rgba(22, 143, 255, .8); }
.series-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; }
.appendix-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: #a9b6c6; font-size: 13.5px; }
.appendix-links .label { color: #7f93ad; }
.appendix-links a:hover { color: #fff; }
.appendix-links b { font: 500 11px/1 var(--mono); color: var(--volt-2); margin-right: 4px; }

/* ==========================================================================
   The field notebook
   ========================================================================== */
.notebook-page main { background: #02040a; }
.nb-stage { position: relative; overflow: hidden; overflow: clip; padding: 116px 16px 140px; color: #e8eef7; isolation: isolate; }
.nb-sky { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 55% 45% at 50% 52%, rgba(22, 143, 255, .20), transparent 70%),
  radial-gradient(ellipse 30% 30% at 12% 20%, rgba(98, 91, 255, .12), transparent 70%),
  radial-gradient(rgba(170, 210, 255, .5) .7px, transparent 1.1px) 0 0 / 34px 34px,
  linear-gradient(180deg, #02040a, #050a15 60%, #02040a); }
.nb-sky::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 92vw); aspect-ratio: 1.6; transform: translate(-50%, -48%); border-radius: 50%; border: 1px solid rgba(40, 216, 255, .08); box-shadow: 0 0 0 60px rgba(22, 143, 255, .015), 0 0 0 140px rgba(22, 143, 255, .012); }
.nb-head { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.nb-head .crumbs { justify-content: center; margin-bottom: 14px; }
.nb-head h1 { margin: 0; font: 400 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 var(--serif); }
html[lang="zh"] .nb-head h1 { font-weight: 600; letter-spacing: .06em; }
.nb-head p { margin: 12px auto 0; max-width: 40em; color: #93a3b8; font-size: .95rem; }
.nb-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; }
.nb-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(22, 143, 255, .25); border-radius: 999px; background: rgba(8, 18, 34, .6); color: #b8c8dc; font: 500 12.5px/1 var(--sans); transition: all .2s; }
.nb-tabs a span { font: 400 12px/1 var(--type); color: var(--volt-2); }
.nb-tabs a:hover, .nb-tabs a.is-active { border-color: var(--volt-2); color: #fff; background: rgba(22, 143, 255, .16); }
.nb-book-wrap { position: relative; max-width: min(1080px, calc((100svh - 250px) * 1.444)); min-width: min(100%, 280px); margin: 0 auto; }
@media (max-width: 700px) { .nb-book-wrap { max-width: min(100%, calc((100svh - 260px) * .722)); } }
.nb-book-wrap::after { /* soft glow on the table under the book */
  content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -30px; height: 60px; border-radius: 50%; background: radial-gradient(ellipse, rgba(22, 143, 255, .3), transparent 70%); filter: blur(10px);
}
.nb-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.nb-controls[hidden] { display: none; }
.nb-btn { width: 46px; height: 46px; border: 1px solid rgba(22, 143, 255, .4); border-radius: 50%; background: rgba(8, 18, 34, .7); color: #e8eef7; font: 400 18px/1 var(--sans); transition: all .2s; }
.nb-btn:hover { border-color: var(--volt-2); box-shadow: 0 0 20px rgba(22, 143, 255, .4); }
.nb-btn:disabled { opacity: .3; cursor: default; box-shadow: none; }
.nb-count { min-width: 90px; text-align: center; font: 400 13px/1 var(--type); color: #9fb4cf; }
.nb-hint { margin: 18px auto 0; text-align: center; font: 400 12.5px/1.6 var(--sans); color: #7f93ad; }
.nb-hint a { color: var(--volt-2); }

/* StPageFlip base rules (moved here from the library's inline <style>) */
.stf__parent { position: relative; display: block; box-sizing: border-box; transform: translateZ(0); -ms-touch-action: pan-y; touch-action: pan-y; }
.stf__wrapper, .sft__wrapper { position: relative; width: 100%; box-sizing: border-box; } /* upstream CSS misspells this class */
.stf__parent canvas { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
.stf__block { position: absolute; width: 100%; height: 100%; box-sizing: border-box; perspective: 2000px; }
.stf__item { display: none; position: absolute; transform-style: preserve-3d; }
.stf__outerShadow, .stf__innerShadow, .stf__hardShadow, .stf__hardInnerShadow { position: absolute; left: 0; top: 0; }

/* pages — fallback (no JS / reduced motion): a vertical stack of leaves */
.nb-book { display: grid; gap: 22px; justify-items: center; }
.nb-page { position: relative; width: min(100%, 520px); aspect-ratio: 520 / 720; container-type: size; }
.nb-book.is-flip { display: block; }
.nb-book.is-flip .nb-page { width: auto; aspect-ratio: auto; }
.nb-sheet {
  position: absolute; inset: 0; overflow: hidden; padding: 7.5cqh 8cqw 6cqh 9cqw;
  color: #2b2217; font: 500 3.15cqw/1.48 var(--book);
  background-color: #eadcbd;
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(122, 86, 34, .28) 100%),
    radial-gradient(circle at 82% 88%, rgba(140, 92, 30, .12) 0 3%, transparent 9%),
    radial-gradient(circle at 14% 18%, rgba(140, 92, 30, .09) 0 2%, transparent 7%),
    repeating-linear-gradient(0deg, transparent 0 calc(4.44cqw - 1px), rgba(22, 100, 200, .06) calc(4.44cqw - 1px) 4.44cqw),
    var(--grain), var(--fibre), var(--mottle),
    linear-gradient(180deg, #efe3c6, #e6d5b0);
}
html[lang="zh"] .nb-sheet { font-size: 2.95cqw; line-height: 1.7; }
.nb-sheet::after { /* a faint electric-blue registration rule: the future in the old book */
  content: ""; position: absolute; top: 4.5cqh; bottom: 4.5cqh; width: 1px; background: linear-gradient(180deg, transparent, rgba(22, 143, 255, .35) 15%, rgba(22, 143, 255, .35) 85%, transparent);
}
.nb-page.--left .nb-sheet::after, .nb-page:nth-child(even) .nb-sheet::after { right: 4.5cqw; }
.nb-page.--right .nb-sheet::after, .nb-page:nth-child(odd) .nb-sheet::after { left: 4.5cqw; right: auto; }
.nb-page.--left .nb-sheet { box-shadow: inset -26px 0 34px -22px rgba(70, 45, 10, .55); }
.nb-page.--right .nb-sheet { box-shadow: inset 26px 0 34px -22px rgba(70, 45, 10, .55); }
.nb-folio { position: absolute; bottom: 3.2cqh; font: 400 2.4cqw/1 var(--type); color: rgba(70, 52, 30, .6); }
.nb-page.--left .nb-folio, .nb-page:nth-child(even) .nb-folio { left: 7cqw; }
.nb-page.--right .nb-folio, .nb-page:nth-child(odd) .nb-folio { right: 7cqw; }
.nb-sheet p { margin: 0 0 .7em; }
.nb-sheet b { font-weight: 700; }
.nb-sheet code { font: 400 .85em/1 var(--mono); background: rgba(22, 90, 200, .08); padding: 0 .25em; border-radius: 2px; }
.nb-date { margin: 0 0 1.2em !important; font: 400 2.3cqw/1.2 var(--type); letter-spacing: .14em; text-transform: uppercase; color: #6d5737; }
.nb-h { margin: 0 0 .5em; font: 600 5.6cqw/1.08 var(--book); letter-spacing: -.005em; color: #1e170e; }
html[lang="zh"] .nb-h { font-size: 5cqw; line-height: 1.3; }
.nb-h3 { margin: .6em 0 .35em; font: 600 4.1cqw/1.15 var(--book); color: #1e170e; }
html[lang="zh"] .nb-h3 { font-size: 3.8cqw; line-height: 1.35; }
.nb-entry-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 3cqw; margin-bottom: 1em; padding-bottom: .8em; border-bottom: 1px solid rgba(70, 52, 30, .3); }
.nb-entry-no { grid-row: span 2; font: 500 13cqw/.8 var(--book); color: rgba(22, 90, 200, .75); text-shadow: 0 0 1px rgba(22, 143, 255, .3); }
.nb-kicker { font: 400 2.3cqw/1.3 var(--type); letter-spacing: .12em; text-transform: uppercase; color: #6d5737; }
.nb-entry-head h2 { margin: .15em 0 0; font: 600 5.4cqw/1.05 var(--book); color: #1e170e; }
html[lang="zh"] .nb-entry-head h2 { font-size: 4.8cqw; line-height: 1.3; }
.nb-note { position: relative; margin: .8em 0 .8em 1.5cqw !important; font: 600 4.2cqw/1.12 var(--hand); color: var(--volt-deep); transform: rotate(-.6deg); }
html[lang="zh"] .nb-note { font: 400 3.9cqw/1.35 var(--hand); }
.nb-note-big { font-size: 4.6cqw; margin-top: 1.4em !important; }
.nb-note-red { color: var(--rust); }
.nb-note-arrow::before { content: "↳"; position: absolute; left: -3.2cqw; top: 0; font: 400 4cqw/1 var(--hand); }
.nb-hand { font: 600 4cqw/1 var(--hand); color: var(--volt-deep); }
.nb-small { font-size: 2.65cqw; line-height: 1.5; color: #4b3d2a; }
html[lang="zh"] .nb-small { font-size: 2.55cqw; line-height: 1.65; }
.nb-list { margin: 0 0 .8em; padding-left: 1.1em; }
.nb-list li { margin: .25em 0; }
.nb-list-x { list-style: none; padding: 0; }
.nb-list-x li { position: relative; padding-left: 1.3em; }
.nb-list-x li::before { content: "×"; position: absolute; left: 0; color: var(--rust); font: 700 1.05em/1.3 var(--hand); }
.nb-figure-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .55em; margin: .4em 0 .6em !important; }
.nb-figure-line small { flex-basis: 100%; font: 400 2.3cqw/1.4 var(--mono); color: #6d5737; }
.nb-big { font: 600 8.6cqw/1 var(--book); color: #13100a; }
.nb-stamp { display: inline-block; padding: .25em .6em; border: 1.5px solid rgba(22, 100, 210, .75); border-radius: 3px; font: 400 2.1cqw/1.1 var(--type); letter-spacing: .12em; text-transform: uppercase; color: rgba(14, 82, 190, .9); transform: rotate(-4deg); box-shadow: inset 0 0 0 1px rgba(22, 100, 210, .2); mix-blend-mode: multiply; }
.nb-stamp-sm { font-size: 1.8cqw; }
.nb-stamp-red { border-color: rgba(168, 67, 31, .8); color: rgba(150, 55, 25, .92); box-shadow: inset 0 0 0 1px rgba(168, 67, 31, .2); }
.nb-key { display: grid; gap: .55em; margin: 1.2em 0; padding: 1em 0; border-top: 1px dashed rgba(70, 52, 30, .3); border-bottom: 1px dashed rgba(70, 52, 30, .3); font-size: 2.75cqw; }
.nb-key div { display: grid; grid-template-columns: 22cqw 1fr; align-items: center; gap: 2cqw; }
.nb-key dd { margin: 0; color: #4b3d2a; }
.nb-plate-key { display: block; width: 9cqw; height: 6cqw; background: #fff; box-shadow: 0 1px 4px rgba(60, 40, 10, .35); transform: rotate(-3deg); }
.nb-plate { position: relative; margin: .6em auto .8em; padding: 1.4cqw 1.4cqw .8cqw; background: #fff; box-shadow: 0 2px 6px rgba(60, 40, 10, .3), 0 10px 22px -12px rgba(60, 40, 10, .5); transform: rotate(.8deg); }
.nb-plate::before { /* tape */ content: ""; position: absolute; top: -1.6cqw; left: 50%; width: 15cqw; height: 3.6cqw; transform: translateX(-50%) rotate(-2deg); background: rgba(210, 230, 255, .55); box-shadow: 0 0 0 1px rgba(22, 143, 255, .2); }
.nb-plate-sm { width: 82%; }
.nb-plate-xs { width: 56%; }
.nb-sk-sm .sketch { width: 80%; margin-inline: auto; }
.nb-plate img { width: 100%; height: auto; }
.nb-plate figcaption { margin-top: .4em; font: 400 2.1cqw/1.35 var(--type); color: #5a4a33; text-align: center; }
.nb-go { display: inline-block; margin-top: .4em; font: 400 2.55cqw/1.4 var(--type); letter-spacing: .06em; color: var(--volt-deep); border-bottom: 1px solid rgba(11, 87, 201, .4); }
.nb-go:hover { color: #003a99; }
.nb-legend { display: flex; flex-wrap: wrap; gap: .2em 1.2em; margin: -.2em 0 .6em !important; padding-left: 1.2em; font-size: 2.4cqw; color: #4b3d2a; }
.nb-legend li.b { color: var(--volt-deep); }
.nb-withheld { display: flex; align-items: center; gap: 2cqw; font-size: 2.55cqw; line-height: 1.45; color: #5a3a2a; }
.nb-twins { display: flex; justify-content: center; align-items: center; gap: 4cqw; margin: 1em 0; text-align: center; font-size: 2.6cqw; }
.nb-twins div { display: grid; justify-items: center; gap: .5em; }
.nb-child { display: block; width: 9cqw; height: 13cqw; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 60' fill='none' stroke='%233a2c1a' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='20' cy='10' r='7'/%3E%3Cpath d='M20 17v20M8 26l12-4 12 4M20 37l-8 18M20 37l8 18'/%3E%3C/svg%3E"); }
.nb-eq { font: 600 7cqw/1 var(--hand); color: var(--volt-deep); }
.nb-drawer { list-style: none; margin: .8em 0; padding: 0; }
.nb-drawer li { display: grid; grid-template-columns: 17cqw 1fr auto; gap: 2cqw; align-items: center; padding: .55em 0; border-bottom: 1px dotted rgba(70, 52, 30, .4); }
.nb-drawer a { font: 400 2.5cqw/1 var(--type); color: var(--volt-deep); }
.nb-drawer em { font: 400 2.5cqw/1 var(--type); color: var(--rust); font-style: normal; }
.nb-tag { padding: .2em .4em; border: 1px solid rgba(70, 52, 30, .5); font: 400 2.1cqw/1 var(--type); text-align: center; }
.nb-papers { margin: 0; padding-left: 1.2em; }
.nb-papers li { margin: .3em 0; }
.nb-papers a { color: #2b2217; border-bottom: 1px solid rgba(22, 90, 200, .35); }
.nb-colophon { display: grid; place-items: center; align-content: center; gap: 1em; height: 100%; padding: 0 4cqw; text-align: center; }
.nb-quote { font: italic 500 4.4cqw/1.35 var(--book); color: #2b2217; }
html[lang="zh"] .nb-quote { font: 500 3.8cqw/1.7 var(--book); }
.nb-colo { margin-top: 2em !important; font-family: var(--type); }

/* sketches */
.sketch { display: block; width: 100%; height: auto; margin: .3em 0 .7em; overflow: visible; }
.sketch .ink { fill: none; stroke: #33271a; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sketch .ink-blue { stroke: #0e5bd0; stroke-width: 1.6; }
.sketch .ink-red { stroke: var(--rust); }
.sketch .ink-faint { stroke: rgba(70, 52, 30, .35); stroke-width: 1; }
.sketch .ink-thick { stroke-width: 5; stroke-linecap: round; }
.sketch .ink-dash { stroke-dasharray: 4 4 !important; }
.sketch .hatch { fill: rgba(14, 91, 208, .14); }
.sketch .tk { stroke: rgba(51, 39, 26, .55); stroke-width: 1; }
.sketch .tk-w { stroke: #0e5bd0; stroke-width: 1.4; }
.sketch text { fill: #33271a; font: 400 10px/1 var(--book); }
.sketch .sk-t { font: 600 13px/1 var(--book); }
.sketch .sk-s { font: 400 9.5px/1 var(--sans); fill: #4b3d2a; }
.sketch .sk-hand { font: 600 13px/1 var(--hand); fill: #0e5bd0; }
html[lang="zh"] .sketch .sk-hand { font: 400 12px/1 var(--hand); }
.sketch .sk-num { font: 600 13px/1 var(--mono); }
.sketch .sk-num-b { fill: #0e5bd0; }
.sketch .sk-num-s { font: 500 8.5px/1 var(--mono); fill: #33271a; }
.sketch .sk-c { fill: #1e170e; }
.sketch .mk-up { fill: #0e5bd0; }
.sketch .mk-eq { fill: rgba(70, 52, 30, .45); }
.sketch .mk-dn { fill: var(--rust); }
.sketch .dot { fill: none; stroke: rgba(70, 52, 30, .45); stroke-width: 1; }
.sketch .dot-on.dot-care { fill: #0e5bd0; stroke: none; }
.sketch .dot-on.dot-rest { fill: #6d5737; stroke: none; }

/* ink draws itself when a page opens */
.nb-book.is-flip .nb-page .ink { stroke-dasharray: 1; stroke-dashoffset: 1; }
.nb-book.is-flip .nb-page.is-shown .ink { animation: ink-draw 1.6s var(--ease) forwards; }
.nb-book.is-flip .nb-page.is-shown .ink:nth-of-type(3n+1) { animation-delay: .25s; }
.nb-book.is-flip .nb-page.is-shown .ink:nth-of-type(3n+2) { animation-delay: .5s; }
.nb-book.is-flip .nb-page .dot-on, .nb-book.is-flip .nb-page .mk { opacity: 0; }
.nb-book.is-flip .nb-page.is-shown .dot-on, .nb-book.is-flip .nb-page.is-shown .mk { animation: dot-in .4s ease forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.nb-book.is-flip .nb-page .nb-note { opacity: 0; transform: translateY(4px) rotate(-.6deg); transition: opacity .8s .6s, transform .8s .6s; }
.nb-book.is-flip .nb-page.is-shown .nb-note { opacity: 1; transform: rotate(-.6deg); }
.nb-book.is-flip .nb-page .nb-stamp { opacity: 0; transform: scale(1.6) rotate(-4deg); transition: opacity .25s 1s, transform .35s 1s cubic-bezier(.3, 1.6, .5, 1); }
.nb-book.is-flip .nb-page.is-shown .nb-stamp { opacity: 1; transform: scale(1) rotate(-4deg); }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
@keyframes dot-in { to { opacity: 1; } }

/* covers: obsidian leather with an electric-blue tooled sigil */
.nb-cover .nb-cover-face {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 3cqh; padding: 8cqw; text-align: center; overflow: hidden;
  color: #d9e8fb; border-radius: 2px 10px 10px 2px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(22, 143, 255, .14), transparent 70%),
    var(--grain),
    radial-gradient(ellipse at 30% 20%, #18233a, #070b14 65%, #03050a);
  box-shadow: inset 0 0 0 1px rgba(40, 216, 255, .25), inset 0 0 0 7px #05080f, inset 0 0 0 8px rgba(40, 216, 255, .35), inset 0 0 60px rgba(0, 0, 0, .8);
}
.nb-back .nb-cover-face { border-radius: 10px 2px 2px 10px; }
.nb-cover-sigil {
  width: 34cqw; height: 34cqw; border-radius: 50%; border: 1px solid rgba(40, 216, 255, .55);
  background:
    radial-gradient(circle, rgba(220, 245, 255, .95) 0 1.2%, transparent 2%),
    radial-gradient(circle at 30% 34%, rgba(40, 216, 255, .9) 0 1.2%, transparent 2%),
    radial-gradient(circle at 72% 30%, rgba(40, 216, 255, .9) 0 1%, transparent 1.8%),
    radial-gradient(circle at 66% 72%, rgba(40, 216, 255, .9) 0 1.2%, transparent 2%),
    radial-gradient(circle at 26% 68%, rgba(40, 216, 255, .9) 0 1%, transparent 1.8%),
    conic-gradient(from 210deg, transparent 0 30%, rgba(40, 216, 255, .55) 30% 30.6%, transparent 30.6% 62%, rgba(22, 143, 255, .5) 62% 62.6%, transparent 62.6%),
    radial-gradient(circle, transparent 0 46%, rgba(22, 143, 255, .22) 47% 48%, transparent 49% 64%, rgba(22, 143, 255, .14) 65% 66%, transparent 67%);
  box-shadow: 0 0 40px rgba(22, 143, 255, .35), inset 0 0 30px rgba(22, 143, 255, .3);
  animation: sigil 18s linear infinite;
}
.nb-sigil-ink { width: 18cqw; height: 18cqw; opacity: .7; filter: saturate(.8); animation: none; }
@keyframes sigil { to { transform: rotate(360deg); } }
.nb-cover-kicker { margin: 0; font: 700 3.2cqw/1 var(--brand); letter-spacing: .4em; color: #9fdcff; }
.nb-cover-title { margin: 0; font: 500 7.6cqw/1.1 var(--book); color: #f2f7ff; text-shadow: 0 0 18px rgba(22, 143, 255, .5); }
html[lang="zh"] .nb-cover-title { font-size: 9cqw; letter-spacing: .12em; line-height: 1.35; }
.nb-cover-sub { margin: 0; font: 400 2.6cqw/1.4 var(--type); letter-spacing: .14em; text-transform: uppercase; color: #8fb4dc; }
.nb-cover-foot { margin: 0; font: 400 2.2cqw/1.4 var(--mono); letter-spacing: .1em; color: #5f7fa6; }

@media (max-width: 700px) {
  .nb-stage { padding-top: 96px; }
  .nb-tabs { gap: 6px; }
  .nb-tabs a { padding: 6px 10px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-cover-sigil { animation: none; }
  .mini-cover { transition: none; }
}

/* dock clearance on long pages */
.research-page .rp-paper { padding-bottom: 150px; }
@media print {
  .site-header, .site-dock, .rp-rail, .rp-actions, .rp-seq, .site-footer { display: none !important; }
  .rp-hero { padding: 0 0 20px; background: none; color: #000; }
  .rp-hero::before, .rp-hero::after { display: none; }
  .rp-paper { background: none; padding: 0; }
  .rp-text::before, .rp-text::after { display: none; }
  .dataset, .notation { box-shadow: none; border: 1px solid #999; background: none; color: #000; }
}

/* ==========================================================================
   The research archive as an issue — blueprint masthead + one paper desk
   ========================================================================== */
.issue-page main, .journal-page main { background: #03050a; }
.issue-mast {
  position: relative; overflow: hidden; padding: 104px var(--gutter) 72px; color: #eef3fa; isolation: isolate;
  background: radial-gradient(ellipse 50% 60% at 78% 45%, rgba(22, 143, 255, .16), transparent 70%), radial-gradient(ellipse 40% 40% at 10% 90%, rgba(98, 91, 255, .10), transparent 70%), #03050a;
}
.mast-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1240px; margin: 0 auto; padding: 14px 0; border-top: 1px solid rgba(40, 216, 255, .35); border-bottom: 1px solid rgba(40, 216, 255, .12); font: 500 10.5px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #8fb4dc; }
.mast-grid { display: grid; gap: 40px; align-items: center; max-width: 1240px; margin: 34px auto 0; }
@media (min-width: 1000px) { .mast-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; } }
.mast-kicker { margin: 0 0 18px; font: 500 11px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--volt-2); }
.mast-title { margin: 0; font: 400 clamp(4rem, 9.4vw, 8.6rem)/.86 var(--serif); letter-spacing: -.025em; }
.mast-title em { font-style: italic; color: transparent; background: linear-gradient(100deg, #9fdcff 0%, #168fff 55%, #625bff 100%); -webkit-background-clip: text; background-clip: text; padding-right: .06em; }
html[lang="zh"] .mast-title { font: 600 clamp(3.4rem, 7.4vw, 6.6rem)/1.05 'Noto Serif SC', var(--serif); letter-spacing: .08em; }
.mast-lead { max-width: 30em; margin: 28px 0 0; font: 400 1.08rem/1.7 var(--sans); color: #a9b6c6; }
.mast-toc { list-style: none; margin: 34px 0 0; padding: 0; max-width: 520px; }
.mast-toc li { border-top: 1px solid rgba(143, 180, 220, .14); }
.mast-toc li:last-child { border-bottom: 1px solid rgba(143, 180, 220, .14); }
.mast-toc a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 10px; padding: 11px 2px; font: 400 1.18rem/1.3 var(--serif); color: #e6edf6; transition: color .25s, padding .35s cubic-bezier(.22, 1, .36, 1); }
html[lang="zh"] .mast-toc a { font: 500 1.02rem/1.4 'Noto Serif SC', serif; }
.mast-toc span { font: 500 11px/1 var(--mono); color: var(--volt-2); letter-spacing: .1em; }
.mast-toc small { font: 400 10.5px/1 var(--mono); color: #6f86a3; letter-spacing: .08em; }
.mast-toc a:hover { color: #fff; padding-left: 10px; }
.mast-chart { position: relative; width: min(100%, 620px); margin: 0 auto; }
.mast-side { position: absolute; right: 18px; top: 50%; margin: 0; transform: translateY(-50%); writing-mode: vertical-rl; white-space: nowrap; font: 500 9.5px/1 var(--mono); letter-spacing: .3em; color: rgba(143, 180, 220, .45); }
@media (max-width: 999px) { .mast-side { display: none; } }

.blueprint { width: 100%; height: auto; overflow: visible; }
.blueprint .bp-grid line { stroke: rgba(22, 143, 255, .07); stroke-width: 1; }
.blueprint .bp-rings circle { fill: none; stroke: rgba(40, 216, 255, .32); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.blueprint .bp-ticks line { stroke: rgba(40, 216, 255, .35); stroke-width: 1; }
.blueprint .bp-orbit { fill: none; stroke: rgba(98, 91, 255, .4); stroke-width: 1; stroke-dasharray: 2 9; transform-box: view-box; transform-origin: 300px 300px; animation: bp-orbit 140s linear infinite; }
.blueprint .bp-axes path { fill: none; stroke: rgba(159, 220, 255, .45); stroke-width: 1; }
.blueprint .bp-seed { fill: #03050a; stroke: #9fdcff; stroke-width: 1.4; }
.blueprint .bp-seed-half { fill: #9fdcff; }
.blueprint text { font-family: var(--mono); }
.blueprint .bp-axis-t { font-size: 9.5px; letter-spacing: .14em; fill: rgba(143, 180, 220, .7); }
.blueprint .bp-chain { fill: none; stroke: rgba(40, 216, 255, .55); stroke-width: 1.2; }
.blueprint .bp-lead { fill: none; stroke: rgba(40, 216, 255, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.blueprint .bp-dot { fill: #28d8ff; filter: drop-shadow(0 0 4px rgba(40, 216, 255, .9)); animation: bp-pulse 5s ease-in-out infinite; }
.blueprint .bp-study:nth-of-type(2) .bp-dot { animation-delay: -1.2s; }
.blueprint .bp-study:nth-of-type(3) .bp-dot { animation-delay: -2.4s; }
.blueprint .bp-study:nth-of-type(4) .bp-dot { animation-delay: -3.6s; }
.blueprint .bp-id { font-size: 10px; fill: #bfe9ff; letter-spacing: .06em; }
.blueprint .bp-box { fill: rgba(4, 10, 22, .88); stroke: rgba(40, 216, 255, .45); stroke-width: 1; transition: stroke .3s, fill .3s; }
.blueprint .bp-box-k { font-size: 9.5px; letter-spacing: .1em; fill: #6fb6ff; }
.blueprint .bp-box-t { font-size: 12.5px; fill: #eef6ff; font-family: var(--sans); }
html[lang="zh"] .blueprint .bp-box-t { font-family: 'Noto Sans SC', var(--sans); }
.blueprint .bp-study:hover .bp-box, .blueprint .bp-study:focus .bp-box { stroke: #fff; fill: rgba(22, 143, 255, .22); }
.blueprint .bp-study:hover .bp-lead, .blueprint .bp-study:focus .bp-lead { stroke: #9fdcff; stroke-dasharray: none; }
.blueprint .bp-study:focus { outline: none; }
.js .blueprint .bp-rings circle { animation: bp-draw 2.4s cubic-bezier(.22, 1, .36, 1) both; }
.js .blueprint .bp-rings circle:nth-child(2) { animation-delay: .25s; }
.js .blueprint .bp-rings circle:nth-child(3) { animation-delay: .5s; }
.js .blueprint .bp-study { animation: bp-fade 1s ease both; animation-delay: 1.1s; }
@keyframes bp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bp-orbit { to { transform: rotate(360deg); } }
@keyframes bp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- The paper desk: aged parchment shared by every section below the masthead ---------- */
.desk {
  position: relative; padding: 70px var(--gutter) 160px; color: #241c12;
  background-color: #eadcbd;
  background-image:
    radial-gradient(ellipse 120% 70% at 50% 0, rgba(255, 250, 235, .55), transparent 60%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 60%, rgba(122, 86, 34, .22) 100%),
    var(--grain), var(--fibre), var(--mottle),
    linear-gradient(180deg, #efe3c6, #e4d2ab);
  --fg: #241c12; --fg-2: #4b3d2a; --fg-3: #6d5737; --hair: rgba(70, 52, 30, .25);
}
.desk::before { /* torn upper edge where the paper meets the night */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; background: #efe3c6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9l6-2 7 3 9-4 8 3 6-5 9 4 7-2 8 3 10-5 7 4 8-1 9 3 7-4 9 2 10-3V16Z'/%3E%3C/svg%3E") 0 0 / 240px 16px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9l6-2 7 3 9-4 8 3 6-5 9 4 7-2 8 3 10-5 7 4 8-1 9 3 7-4 9 2 10-3V16Z'/%3E%3C/svg%3E") 0 0 / 240px 16px repeat-x;
}
.desk > * { position: relative; max-width: 1180px; margin-left: auto; margin-right: auto; }
.desk::after { /* electric-blue registration rule down the margin */
  content: ""; position: absolute; top: 40px; bottom: 40px; left: max(14px, calc(var(--gutter) / 2)); width: 1px; background: linear-gradient(180deg, transparent, rgba(22, 100, 210, .35) 6%, rgba(22, 100, 210, .35) 94%, transparent); }
.desk a { color: inherit; }
.desk-kicker, .spread-kicker { margin: 0 0 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #0b57c9; }
html[lang="zh"] .desk-kicker, html[lang="zh"] .spread-kicker { letter-spacing: .12em; }
.hand-note { font: 700 1.55rem/1.1 var(--hand); color: #0e5bd0; }
html[lang="zh"] .hand-note { font: 400 1.45rem/1.3 var(--hand); }

.desk-timeline { margin-bottom: 64px; }
.desk-timeline ol { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); margin: 0; padding: 8px 0 6px; overflow-x: auto; background: linear-gradient(#241c12, #241c12) 0 7px / 100% 2px no-repeat; scrollbar-width: thin; }
.desk-timeline li { position: relative; padding: 18px 12px 0 0; }
.desk-timeline li::before { content: ""; position: absolute; top: 2px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #eadcbd; border: 2px solid #241c12; transition: all .3s; }
.desk-timeline li:hover::before { background: #168fff; border-color: #0b57c9; box-shadow: 0 0 10px rgba(22, 143, 255, .7); }
.desk-timeline b { display: block; font: 700 1.05rem/1 var(--mono); color: #241c12; }
.desk-timeline span { display: block; margin-top: 6px; font: italic 400 .88rem/1.35 var(--sci); color: #4b3d2a; }

/* spreads: each paper laid out like a magazine page */
.spread { margin: 0 auto 96px; border-top: 3px double #241c12; padding-top: 12px; scroll-margin-top: 90px; }
.spread-folio { display: flex; justify-content: space-between; margin-bottom: 30px; font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #6d5737; }
.spread-body { display: grid; gap: 56px; align-items: start; }
@media (min-width: 900px) {
  .spread-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; }
  .spread-flip .spread-body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .spread-flip .plate-col { order: -1; }
}
.spread h2 { margin: 0; font: 400 clamp(2rem, 3.5vw, 3.15rem)/1.04 var(--serif); letter-spacing: -.012em; color: #17120b; text-wrap: balance; }
html[lang="zh"] .spread h2 { font: 600 clamp(1.55rem, 2.6vw, 2.15rem)/1.38 'Noto Serif SC', serif; letter-spacing: .01em; }
.spread h2 a { background: linear-gradient(#0b57c9, #0b57c9) 0 100% / 0 2px no-repeat; transition: background-size .5s cubic-bezier(.22, 1, .36, 1); }
.spread h2 a:hover { background-size: 100% 2px; }
.spread-deck { margin: 22px 0 0; font: 400 1.14rem/1.62 var(--sci); color: #3a2f20; text-wrap: pretty; }
html[lang="zh"] .spread-deck { font-size: 1.06rem; line-height: 1.85; }
html[lang="en"] .dropcap::first-letter { float: left; margin: .06em .1em 0 0; font: 400 4.2em/.8 var(--serif); color: #0b57c9; }
.pull { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; margin: 30px 0 0; padding: 18px 0; border-top: 1px solid rgba(70, 52, 30, .3); border-bottom: 1px solid rgba(70, 52, 30, .3); }
.pull-v { font: 400 clamp(3rem, 6vw, 4.8rem)/.9 var(--serif); color: #0b57c9; letter-spacing: -.02em; white-space: nowrap; }
.pull-c { font: 400 .92rem/1.5 var(--sans); color: #4b3d2a; }
html[lang="zh"] .pull-c { font-family: 'Noto Sans SC', var(--sans); line-height: 1.7; }
@media (max-width: 560px) { .pull { grid-template-columns: 1fr; } }
.spread-stamps { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.stamp { display: inline-grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; padding: 8px 14px; border: 2px solid currentColor; border-radius: 5px; font: 700 13px/1.1 var(--type); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg); opacity: .88; mix-blend-mode: multiply; }
.stamp small { font: 400 9.5px/1.2 var(--type); letter-spacing: .1em; }
html[lang="zh"] .stamp, html[lang="zh"] .stamp small { font-family: 'Noto Sans SC', var(--sans); letter-spacing: .04em; }
.stamp-ink { width: 100px; height: 100px; border-radius: 50%; color: #1d2a44; transform: rotate(-8deg); box-shadow: inset 0 0 0 4px #eadcbd, inset 0 0 0 5.5px #1d2a44; }
.stamp-ink b { font: 700 1.5rem/1 var(--serif); letter-spacing: 0; }
.stamp-ink small { max-width: 72px; text-align: center; font-size: 8.5px; }
.stamp-blue { color: #0b57c9; }
.stamp-red { color: #a8431f; transform: rotate(2deg); }
.stamp-link { display: inline-block; transition: transform .3s; }
.stamp-link:hover { transform: scale(1.05); }
.spread-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin: 26px 0 0; font: 400 12px/1.4 var(--mono); color: #6d5737; }
.ink-link { font: 500 .98rem/1.4 var(--sans); color: #0b57c9 !important; border-bottom: 1.5px solid rgba(11, 87, 201, .35); transition: border-color .25s; }
.ink-link:hover { border-color: #0b57c9; }
.ink-link.soft { color: #4b3d2a !important; border-color: rgba(70, 52, 30, .3); }
html[lang="zh"] .ink-link { font-family: 'Noto Sans SC', var(--sans); }

/* taped figure plates */
.desk-plate { position: relative; margin: 0 0 40px; padding: 12px 12px 14px; background: #fffdf8; box-shadow: 0 1px 2px rgba(60, 40, 10, .25), 0 16px 34px -18px rgba(60, 40, 10, .55); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.desk-plate.tilt-r { transform: rotate(1.6deg); }
.desk-plate.tilt-l { transform: rotate(-1.4deg); }
.desk-plate:hover { transform: rotate(0) translateY(-3px); }
.desk-plate::before, .desk-plate::after { content: ""; position: absolute; width: 92px; height: 26px; background: rgba(214, 228, 245, .62); box-shadow: 0 0 0 1px rgba(22, 100, 210, .12); pointer-events: none; }
.desk-plate::before { top: -12px; left: -18px; transform: rotate(-32deg); }
.desk-plate::after { top: -10px; right: -20px; transform: rotate(28deg); }
.desk-plate img { width: 100%; height: auto; }
.desk-plate a { display: block; cursor: zoom-in; }
.desk-plate .hand-note { position: absolute; left: 12px; bottom: -40px; transform: rotate(-2.5deg); white-space: nowrap; }
.desk-plate .hand-note::before { content: "↖ "; }
.spread-lead { border-top-width: 5px; }
.spread-lead h2 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); }

/* the notebook as an object on the desk */
.desk-notebook { display: grid; gap: 40px; align-items: center; margin: 20px auto 96px; padding: 44px 0; border-top: 3px double #241c12; border-bottom: 1px solid rgba(70, 52, 30, .3); }
@media (min-width: 760px) { .desk-notebook { grid-template-columns: 300px 1fr; gap: 72px; } }
.nb-object { position: relative; display: block; width: 230px; height: 310px; margin: 0 auto; transform: rotate(-4deg); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.desk-notebook:hover .nb-object { transform: rotate(-1deg) translateY(-4px); }
.nb-object-cover { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; border-radius: 4px 12px 12px 4px; background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(22, 143, 255, .16), transparent 70%), var(--grain), radial-gradient(ellipse at 30% 20%, #1b2740, #070b14 65%, #03050a); box-shadow: inset 8px 0 0 rgba(0, 0, 0, .5), inset 9px 0 0 rgba(40, 216, 255, .3), 0 26px 40px -16px rgba(30, 20, 5, .8), 0 0 0 1px rgba(40, 216, 255, .25); }
.nb-object-cover .mini-sigil { width: 84px; height: 84px; }
.nb-object-title { font: 400 12px/1 var(--type); letter-spacing: .3em; color: #9fdcff; }
.nb-object-vol { font: 500 9px/1 var(--mono); letter-spacing: .3em; color: #5f7fa6; }
.nb-object-band { position: absolute; top: -4px; bottom: -4px; right: 34px; width: 9px; border-radius: 3px; background: linear-gradient(90deg, #0a0f1a, #1b2436 50%, #0a0f1a); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.sticky { position: absolute; right: -96px; bottom: 24px; width: 150px; padding: 14px 14px 18px; background: linear-gradient(180deg, #fbe58c, #f4d86a); box-shadow: 0 10px 20px -10px rgba(60, 40, 10, .6); transform: rotate(6deg); font: 700 1.25rem/1.15 var(--hand); color: #2a2213; }
html[lang="zh"] .sticky { font: 400 1.2rem/1.4 var(--hand); }
@media (max-width: 760px) { .sticky { right: -40px; bottom: -20px; } .nb-object { margin-bottom: 30px; } }
.nb-feature-text h2 { margin: 0; font: 400 clamp(2rem, 3.4vw, 3rem)/1.05 var(--serif); color: #17120b; }
html[lang="zh"] .nb-feature-text h2 { font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1.35 'Noto Serif SC', serif; }

/* field notes: library index cards */
.desk-notes { margin: 0 auto 90px; scroll-margin-top: 80px; }
.desk-head h2 { margin: 0; font: 400 clamp(2rem, 3.4vw, 3rem)/1.05 var(--serif); color: #17120b; }
html[lang="zh"] .desk-head h2 { font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1.35 'Noto Serif SC', serif; }
.desk-head-lead { margin: 12px 0 0; max-width: 40em; font: italic 400 1.04rem/1.6 var(--sci); color: #4b3d2a; }
.catalogue { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 26px; margin: 32px 0 30px; border-bottom: 2px solid #241c12; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { position: relative; top: 2px; padding: 9px 18px 8px; border: 1.5px solid rgba(70, 52, 30, .45); border-bottom: 0; border-radius: 8px 8px 0 0; background: #e0cfa6; font: 500 12px/1 var(--mono); letter-spacing: .06em; color: #4b3d2a; transition: background .25s; }
.tab:hover { background: #ead9b1; }
.tab.is-on { background: #f6ecd6; color: #17120b; border-color: #241c12; border-bottom: 2px solid #f6ecd6; }
.typed-search { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-bottom: 8px; }
.typed-search input { width: min(280px, 60vw); border: 0; border-bottom: 1px dashed rgba(70, 52, 30, .5); background: transparent; padding: 6px 2px; font: 400 14px/1.2 var(--type); color: #241c12; }
.typed-search input:focus { outline: none; border-bottom-color: #0b57c9; }
.typed-search button { border: 1.5px solid #241c12; border-radius: 3px; background: transparent; padding: 6px 12px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #241c12; }
.typed-search button:hover { background: #241c12; color: #f6ecd6; }
.note-count { padding-bottom: 10px; font: 400 12px/1 var(--mono); color: #6d5737; }
.note-cards { list-style: none; display: grid; gap: 30px; margin: 0; padding: 0; }
@media (min-width: 760px) { .note-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .note-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note-card a { position: relative; display: grid; gap: 10px; height: 100%; padding: 30px 24px 20px; background-color: #fbf6ea; background-image: linear-gradient(#c8463a, #c8463a) 0 54px / 100% 1px no-repeat, repeating-linear-gradient(180deg, transparent 0 27px, rgba(22, 100, 210, .13) 27px 28px); box-shadow: 0 1px 2px rgba(60, 40, 10, .2), 0 14px 26px -18px rgba(60, 40, 10, .6); transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s; }
.note-card:nth-child(odd) a { transform: rotate(-.8deg); }
.note-card:nth-child(even) a { transform: rotate(.7deg); }
.note-card a:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 2px 3px rgba(60, 40, 10, .2), 0 22px 34px -18px rgba(60, 40, 10, .6); }
.clip { position: absolute; top: -12px; left: 22px; width: 16px; height: 40px; border: 2px solid #8b95a3; border-radius: 9px; border-bottom-color: transparent; }
.clip::after { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 24px; border: 2px solid #8b95a3; border-radius: 6px; border-top-color: transparent; }
.note-no { justify-self: end; margin-top: -14px; font: 400 11px/1 var(--type); color: #a8431f; }
.note-meta { font: 500 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6d5737; margin-top: 8px; }
.note-card h3 { margin: 0; font: 400 1.55rem/1.15 var(--serif); color: #17120b; }
html[lang="zh"] .note-card h3 { font: 600 1.2rem/1.45 'Noto Serif SC', serif; }
.note-card p { margin: 0; font: 400 .98rem/1.6 var(--sci); color: #3a2f20; }
.note-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 10px; font: 400 11px/1.4 var(--mono); color: #6d5737; }
.note-foot i { font-style: normal; margin-left: 10px; color: #0b57c9; }
.note-empty { font: italic 400 1.05rem/1.6 var(--sci); }

/* appendices as folders; the data as an archive box */
.desk-drawer { display: grid; gap: 22px; align-items: stretch; margin: 0 auto; padding-top: 30px; border-top: 3px double #241c12; }
@media (min-width: 900px) { .desk-drawer { grid-template-columns: 1fr 300px; } }
.folders { display: grid; gap: 18px; }
@media (min-width: 640px) { .folders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.folder { position: relative; display: grid; align-content: start; gap: 6px; margin-top: 18px; padding: 20px 18px 18px; border-radius: 0 6px 6px 6px; background: linear-gradient(180deg, #dcc38c, #d2b67a); box-shadow: 0 10px 20px -14px rgba(60, 40, 10, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.folder:hover { transform: translateY(-4px); }
.folder-tab { position: absolute; top: -18px; left: 0; padding: 4px 14px 3px; border-radius: 6px 6px 0 0; background: #dcc38c; font: 500 10px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #4b3d2a; }
.folder strong { font: 400 1.35rem/1.2 var(--serif); color: #17120b; }
html[lang="zh"] .folder strong { font: 600 1.08rem/1.4 'Noto Serif SC', serif; }
.folder small { font: 400 .86rem/1.5 var(--sci); color: #4b3d2a; }
.data-box { display: grid; align-content: space-between; gap: 18px; margin-top: 18px; padding: 22px; border-radius: 8px; color: #dfe8f4 !important; background: radial-gradient(ellipse at 100% 0, rgba(22, 143, 255, .28), transparent 60%), linear-gradient(160deg, #071122, #03060c); box-shadow: 0 0 0 1px rgba(22, 143, 255, .35), 0 24px 40px -22px rgba(3, 15, 40, .9); transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s; }
.data-box:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(40, 216, 255, .7), 0 30px 50px -22px rgba(22, 143, 255, .5); }
.data-box-label { font: 400 1.4rem/1.2 var(--serif); color: #fff; }
html[lang="zh"] .data-box-label { font: 600 1.15rem/1.4 'Noto Serif SC', serif; }
.data-box-body { display: flex; flex-wrap: wrap; gap: 6px; }
.data-box-body i { padding: 3px 9px; border: 1px solid rgba(40, 216, 255, .45); border-radius: 999px; font: 500 11px/1.4 var(--mono); font-style: normal; color: #bfe9ff; }
.data-box-body i.off { border-style: dashed; border-color: rgba(255, 122, 107, .6); color: #ffb3a9; }
.data-box-foot { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--volt-2); }

/* ==========================================================================
   About — an open journal on the desk
   ========================================================================== */
.journal-page { --hand: 'Caveat', cursive; --jbody: 'Kalam', 'Caveat', cursive; }
html[lang="zh"] .journal-page { --hand: 'Ma Shan Zheng', 'Long Cang', 'KaiTi', 'STKaiti', cursive; --jbody: 'KaiTi', 'STKaiti', 'Kaiti SC', 'Noto Serif SC', serif; }
.journal-stage { position: relative; overflow: hidden; overflow: clip; padding: 100px 16px 70px; isolation: isolate; }
.journal-sky { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(22, 143, 255, .2), transparent 70%), radial-gradient(rgba(170, 210, 255, .45) .7px, transparent 1.1px) 0 0 / 34px 34px, linear-gradient(180deg, #02040a, #050a15 60%, #02040a); }
.journal { position: relative; display: grid; max-width: 1220px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
@media (min-width: 980px) { .journal { grid-template-columns: 1fr 22px 1fr; min-height: min(calc(100svh - 150px), 780px); } }
.jpage { position: relative; padding: 46px 52px 54px 56px; color: #2b2217;
  background-color: #eadcbd;
  background-image: repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 100, 200, .07) 33px 34px), var(--grain), var(--fibre), var(--mottle), linear-gradient(180deg, #efe3c6, #e6d5b0); }
.jpage-l { border-radius: 10px 2px 2px 14px; box-shadow: inset -40px 0 50px -36px rgba(70, 45, 10, .6), inset 0 0 80px rgba(122, 86, 34, .18); }
.jpage-r { border-radius: 2px 10px 14px 2px; box-shadow: inset 40px 0 50px -36px rgba(70, 45, 10, .6), inset 0 0 80px rgba(122, 86, 34, .18); }
.jpage::before { content: ""; position: absolute; top: 26px; bottom: 26px; width: 1px; background: linear-gradient(180deg, transparent, rgba(22, 143, 255, .45) 12%, rgba(22, 143, 255, .45) 88%, transparent); }
.jpage-l::before { left: 34px; }
.jpage-r::before { right: 34px; }
.j-spine { display: none; }
@media (min-width: 980px) { .j-spine { display: block; background: linear-gradient(90deg, #6e5634, #2a1f12 45%, #2a1f12 55%, #6e5634); box-shadow: inset 0 0 6px rgba(0, 0, 0, .6); } }
@media (max-width: 979px) { .jpage-l { border-radius: 10px 10px 2px 2px; } .jpage-r { border-radius: 2px 2px 10px 10px; margin-top: 2px; } .jpage { padding: 36px 26px 48px 40px; } }
.j-date { margin: 0 0 16px; font: 400 11px/1.3 var(--type); letter-spacing: .16em; text-transform: uppercase; color: #6d5737; }
.j-title { margin: 0; font: 500 11px/1.3 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: #0b57c9; }
.j-lead { margin: 10px 0 18px; font: 700 clamp(2.2rem, 3.6vw, 3.25rem)/1.02 var(--hand); color: #17120b; }
html[lang="zh"] .j-lead { font: 400 clamp(1.9rem, 3vw, 2.7rem)/1.3 var(--hand); }
.j-intro { margin: 0; font: 400 1.12rem/1.62 var(--jbody); color: #2b2217; }
html[lang="zh"] .j-intro { font-size: 1.15rem; line-height: 1.9; }
.j-fig { display: flex; align-items: center; gap: 18px; margin: 22px 0 0; }
.j-sketch { width: 190px; height: auto; flex: none; }
.j-sketch .ink { fill: none; stroke: #33271a; stroke-width: 1.6; stroke-linecap: round; }
.j-sketch .ink-blue { stroke: #0e5bd0; }
.j-dots circle { fill: #0e5bd0; }
.j-fig figcaption { font: 700 1.35rem/1.15 var(--hand); color: #0e5bd0; transform: rotate(-3deg); }
html[lang="zh"] .j-fig figcaption { font: 400 1.3rem/1.4 var(--hand); }
.j-stamp { flex: none; margin-left: auto; display: grid; place-items: center; width: 104px; height: 104px; padding: 12px; border: 2.5px solid rgba(14, 82, 190, .8); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(234, 220, 189, .9), inset 0 0 0 6.5px rgba(14, 82, 190, .7); font: 700 12px/1.2 var(--type); letter-spacing: .14em; text-align: center; color: rgba(14, 82, 190, .85); transform: rotate(-12deg); mix-blend-mode: multiply; }
@media (max-width: 560px) { .j-fig { flex-wrap: wrap; } .j-sketch { width: 150px; } .j-stamp { width: 86px; height: 86px; font-size: 10px; } }
.j-folio { position: absolute; bottom: 18px; font: 400 11px/1 var(--type); color: rgba(70, 52, 30, .6); }
.jpage-l .j-folio { left: 50px; }
.jpage-r .j-folio { right: 50px; }
.j-clip { position: absolute; top: -14px; right: 90px; width: 20px; height: 54px; border: 2.5px solid #8b95a3; border-radius: 11px; border-bottom-color: transparent; }
.j-clip::after { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 34px; border: 2.5px solid #8b95a3; border-radius: 7px; border-top-color: transparent; }
.j-entry { margin: 0 0 22px; }
.j-entry h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font: 700 clamp(1.55rem, 2.2vw, 1.95rem)/1.1 var(--hand); color: #17120b; }
html[lang="zh"] .j-entry h2 { font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.35 var(--hand); }
.j-mark { font: 400 1.2em/1 var(--hand); color: #0e5bd0; }
.j-entry h2::after { content: ""; flex: 1; min-width: 20px; height: 1px; margin-left: 6px; background: repeating-linear-gradient(90deg, rgba(14, 91, 208, .45) 0 6px, transparent 6px 10px); }
.j-entry p { margin: 0; font: 400 1.02rem/1.6 var(--jbody); color: #2b2217; }
html[lang="zh"] .j-entry p { font-size: 1.06rem; line-height: 1.85; }
.j-sticky { position: relative; display: block; width: max-content; max-width: 100%; margin: 8px 0 18px auto; padding: 14px 18px 16px; background: linear-gradient(180deg, #fbe58c, #f4d86a); box-shadow: 0 12px 22px -12px rgba(60, 40, 10, .7); transform: rotate(2.5deg); font: 700 1.3rem/1.15 var(--hand); color: #2a2213 !important; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
html[lang="zh"] .j-sticky { font: 400 1.25rem/1.45 var(--hand); }
.j-sticky:hover { transform: rotate(0) translateY(-3px); }
.j-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; border-top: 1px dashed rgba(70, 52, 30, .4); font: 400 13px/1.4 var(--type); }
html[lang="zh"] .j-links { font-family: 'Noto Sans SC', var(--sans); }
.j-links a { color: #0b57c9; border-bottom: 1px solid rgba(11, 87, 201, .3); }
.j-links a:hover { border-color: #0b57c9; }
.js .j-lead { animation: j-write 1.6s cubic-bezier(.45, 0, .2, 1) .2s both; }
.js .j-sketch .ink { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink-draw 1.8s cubic-bezier(.22, 1, .36, 1) .9s forwards; }
.js .j-dots circle { opacity: 0; animation: dot-in .5s ease 2s forwards; }
@keyframes j-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .js .j-lead, .js .j-sketch .ink, .js .j-dots circle { animation: none; clip-path: none; stroke-dashoffset: 0; opacity: 1; }
  .blueprint .bp-orbit, .blueprint .bp-dot, .js .blueprint .bp-rings circle, .js .blueprint .bp-study { animation: none; }
}

.desk-letters { padding-top: 64px; }
.letters-head h2 { margin: 0 0 26px; font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--serif); color: #17120b; }
html[lang="zh"] .letters-head h2 { font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.4 'Noto Serif SC', serif; }
.letter-row { display: grid; gap: 22px; }
.letter { background: #fbf6ea; box-shadow: 0 1px 2px rgba(60, 40, 10, .2), 0 16px 30px -20px rgba(60, 40, 10, .6); }
.letter summary { position: relative; display: grid; gap: 6px; padding: 22px 28px 22px 76px; cursor: pointer; list-style: none; }
.letter summary::-webkit-details-marker { display: none; }
.letter summary::before { content: ""; position: absolute; left: 24px; top: 24px; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3d8bff, #0b57c9 60%, #073b8a); box-shadow: 0 2px 4px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(255, 255, 255, .15); }
.letter-no { font: 500 10.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #6d5737; }
.letter strong { font: 400 1.5rem/1.2 var(--serif); color: #17120b; }
html[lang="zh"] .letter strong { font: 600 1.15rem/1.45 'Noto Serif SC', serif; }
.letter-open { font: 700 1.15rem/1 var(--hand); color: #0e5bd0; }
.letter[open] .letter-open { display: none; }
.letter-body { max-width: 720px; padding: 4px 28px 30px 76px; color: #241c12; }
@media (max-width: 640px) { .letter summary { padding-left: 64px; } .letter-body { padding-left: 24px; } }

.plate-col { display: grid; gap: 56px; }
.specimen { justify-self: start; margin: 0; padding: 12px 16px; border: 1px solid rgba(70, 52, 30, .45); background: rgba(251, 246, 234, .55); box-shadow: 3px 3px 0 rgba(70, 52, 30, .12); font: 400 12px/1.5 var(--type); color: #3a2f20; max-width: 360px; }
.specimen div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 3px 0; }
.specimen div + div { border-top: 1px dotted rgba(70, 52, 30, .35); }
.specimen dt { font: 500 9.5px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #a8431f; }
.specimen dd { margin: 0; }
html[lang="zh"] .specimen { font-family: 'Noto Sans SC', var(--sans); font-size: 12.5px; }
.mast-grid > * { min-width: 0; }
.spread-body > *, .desk-notebook > *, .desk-drawer > * { min-width: 0; }
.desk { overflow-x: clip; }
