/* ===== 造序 · 笔画 —— Eastern editorial ===== */
:root {
  --paper: #f5f3ee;
  --paper-2: #ecE9e1;
  --ink: #0b0b0b;
  --ink-2: #3a3a38;
  --ink-3: #85837d;
  --rule: #0b0b0b;
  --rule-soft: rgba(11, 11, 11, .14);
  --seal: #b5301c;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --latin: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
.dark {
  --paper: #11100e;
  --paper-2: #1a1916;
  --ink: #eeebe4;
  --ink-2: #c6c2b8;
  --ink-3: #8a867d;
  --rule: #eeebe4;
  --rule-soft: rgba(238, 235, 228, .16);
  --seal: #d4553c;
}

html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: 1440px; margin: 0 auto; box-sizing: border-box; width: 100%; }
@media (min-width: 1100px) { .wrap { padding-right: calc(var(--pad) + 40px); } }

/* ---------- progress & nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--seal); transform-origin: 0 50%; transform: scaleX(0); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom-color: var(--rule-soft); }
.nav.hide { transform: translateY(-100%); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-name { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .12em; }
.nav-name em { font-family: var(--latin); font-style: normal; letter-spacing: .2em; font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.nav-links { display: none; gap: 26px; font-size: 13px; letter-spacing: .14em; }
.nav-links a { text-decoration: none; position: relative; padding: 4px 0; color: var(--ink-2); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.seal {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--seal); color: #fff6ee; font-family: var(--serif); font-weight: 900;
  border-radius: 3px; line-height: 1;
}
.seal i { font-style: normal; display: block; }
.seal-sm { width: 26px; height: 34px; font-size: 12px; gap: 2px; }

/* right rail with vertical section label */
.rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: none; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--serif); color: #f5f3ee; pointer-events: none;
  mix-blend-mode: difference; transition: opacity .5s;
}
.rail.at-hero { opacity: 0; }
.rail-num { writing-mode: vertical-rl; font-size: 12px; letter-spacing: .3em; opacity: .6; }
.rail-label { writing-mode: vertical-rl; font-size: 15px; letter-spacing: .5em; padding-top: 14px; border-top: 1px solid currentColor; transition: opacity .3s; }
.rail-label.swap { opacity: 0; }
@media (min-width: 1100px) { .rail { display: flex; } }

/* ---------- shared type ---------- */
.eyebrow { font-size: 12px; letter-spacing: .3em; color: var(--ink-3); margin: 0; }
.display {
  font-family: var(--serif); font-weight: 900; color: var(--ink);
  font-size: clamp(44px, 9vw, 148px); line-height: 1.04; letter-spacing: -.01em; margin: 0;
}
.display-md {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(32px, 5.4vw, 80px); line-height: 1.12; margin: 0; letter-spacing: -.005em;
}
.lead { font-size: clamp(15px, 1.25vw, 18px); color: var(--ink-2); max-width: 36em; line-height: 1.9; margin: 0; }
.accent-dot { font-weight: inherit; position: relative; }
.accent-dot::after { content: ""; position: absolute; right: -.12em; top: .06em; width: .14em; height: .14em; border-radius: 50%; background: var(--seal); }

/* masked line reveal */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); will-change: transform; }
.in .line > span, .line.in > span { transform: none; }
.in .line:nth-child(2) > span { transition-delay: .09s; }
.in .line:nth-child(3) > span { transition-delay: .18s; }
.in .line:nth-child(4) > span { transition-delay: .27s; }
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }

/* section labels */
.sec-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); margin-bottom: clamp(36px, 6vw, 80px);
  padding-top: 18px; border-top: 1px solid var(--rule);
}
.sec-no { font-size: 13px; letter-spacing: .3em; color: var(--seal); }
.sec-name { font-size: 13px; letter-spacing: .5em; color: var(--ink-2); }
section { scroll-margin-top: 70px; }

.btn-ghost {
  background: none; border: 1px solid var(--rule); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; letter-spacing: .14em;
  transition: background .3s, color .3s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-rows: auto 1fr auto; overflow: clip;
  padding-top: 76px; box-sizing: border-box;
}
.hero-top { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.eyebrow-r { font-family: var(--latin); letter-spacing: .18em; font-size: 13px; }
.hero-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 2vh var(--pad); min-height: 46vh; touch-action: pan-y; }
.stroke-svg { width: min(88vw, 1000px, 150vh); height: auto; overflow: visible; display: block; }
.stroke-svg .st path.c {
  fill: none; stroke: var(--ink); stroke-width: 7.4;
  stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 6;
  transition: stroke .8s var(--ease);
}
.stroke-svg .st path.f { fill: var(--ink); stroke: none; transition: fill .8s var(--ease), opacity .5s; }
.stroke-svg .st { transition: opacity .8s var(--ease); }
.stroke-svg .st.pending { opacity: .35; }
.stroke-svg .st.pending path.c { stroke: var(--ink-3); }
.stroke-svg .st.pending path.f { fill: var(--ink-3); }
.stroke-svg .st.hot path.c { stroke: var(--seal); }
.stroke-svg .st.hot path.f { fill: var(--seal); }
.stroke-svg .grid-line { stroke: var(--rule-soft); stroke-width: .25; stroke-dasharray: 1.2 1.6; fill: none; }
.stroke-svg .seal-g { opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); transform: scale(1.4); transform-box: fill-box; transform-origin: center; }
.stroke-svg .seal-g.on { opacity: 1; transform: scale(1); }
.stroke-svg .seal-g rect { fill: var(--seal); }
.stroke-svg .seal-g text { fill: #fff6ee; font-family: var(--serif); font-weight: 900; font-size: 5.6px; }

.hero-vert {
  position: absolute; right: calc(var(--pad) + 6px); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 15px; letter-spacing: .6em;
  color: var(--ink-2); display: none; gap: 18px;
}
.hero-vert span:last-child { color: var(--ink); }
@media (min-width: 760px) { .hero-vert { display: flex; } .stroke-svg { width: min(76vw, 1000px, 150vh); } }
@media (max-width: 759px) { .hero-stage { min-height: 34vh; } #labCanvas { height: max(300px, 82vw); } }

.hero-bottom { display: grid; gap: 22px; padding-bottom: clamp(24px, 5vh, 52px); align-items: end; }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.15; }
.hero-title em { font-family: var(--latin); font-style: normal; font-weight: 500; letter-spacing: .18em; font-size: .52em; color: var(--ink-3); vertical-align: .32em; margin-left: .3em; }
.hero-sub { text-wrap: balance; font-weight: 400; font-size: clamp(15px, 1.35vw, 19px); color: var(--ink-2); letter-spacing: .08em; line-height: 1.8; margin-top: .5em; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; border-top: 1px solid var(--rule); padding-top: 16px; }
.stroke-caption { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); min-width: 160px; }
.sc-label { font-size: 12px; letter-spacing: .3em; color: var(--ink-3); }
.sc-num { font-family: var(--latin); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-name { font-size: 15px; letter-spacing: .2em; }
.hint { margin: 0 0 0 auto; font-size: 12px; letter-spacing: .24em; color: var(--ink-3); }
@media (min-width: 900px) {
  .hero-bottom { grid-template-columns: 1.2fr 1fr; gap: 48px; }
  .hero-meta { border-top: 0; padding-top: 0; justify-content: flex-end; }
}

/* ---------- manifesto ---------- */
.manifesto { padding-top: clamp(80px, 14vh, 180px); padding-bottom: clamp(60px, 10vh, 140px); }
.manifesto-grid { display: grid; gap: 48px; }
.vert-creed {
  display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: clamp(10px, 2vw, 26px);
  font-family: var(--serif); font-weight: 600;
}
.vert-creed .vc {
  writing-mode: vertical-rl; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: .28em;
  line-height: 1; padding: 0 0 0 0; position: relative; overflow: hidden;
}
.vert-creed .vc > span { display: inline-block; transform: translateY(-105%); transition: transform 1.1s var(--ease); }
.vert-creed.in .vc > span { transform: none; }
.vert-creed .vc:last-child { color: var(--seal); }
.vert-creed .vc-rule { width: 1px; background: var(--rule-soft); align-self: stretch; }
.manifesto-body { display: grid; gap: clamp(40px, 6vw, 80px); }
.define { display: grid; gap: 28px; border-top: 1px solid var(--rule-soft); padding-top: 32px; }
.define-item { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.define-char { font-family: var(--serif); font-weight: 900; font-size: 64px; line-height: .95; }
.define-item p { margin: 6px 0 0; color: var(--ink-2); max-width: 26em; }
.define-item b { color: var(--ink); font-weight: 600; display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.stance { margin: 0; border-left: 3px solid var(--seal); padding: 6px 0 6px clamp(18px, 3vw, 36px); max-width: 30em; }
.stance p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.6; margin: 0 0 14px; font-weight: 600; }
.stance cite { font-style: normal; font-size: 13px; letter-spacing: .2em; color: var(--ink-3); }
@media (min-width: 900px) {
  .manifesto-grid { grid-template-columns: minmax(180px, 22%) 1fr; gap: 6vw; }
  .vert-creed { justify-content: flex-start; position: sticky; top: 110px; align-self: start; min-height: 60vh; }
  .vert-creed .vc { font-size: clamp(28px, 2.8vw, 42px); }
  .define { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---------- method horizontal ---------- */
.hscroll { position: relative; background: var(--ink); color: var(--paper); }
.hscroll .sec-label { border-top-color: var(--paper); margin-bottom: 0; }
.hscroll .sec-name { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.hs-sticky { position: relative; padding: clamp(60px, 10vh, 120px) 0; }
.hs-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 40px; }
.hs-head .sec-label { flex: 1; }
.hs-count { display: none; align-items: center; gap: 12px; font-family: var(--latin); font-size: 18px; font-variant-numeric: tabular-nums; padding-top: 18px; }
.hs-count i { display: block; width: 60px; height: 1px; background: color-mix(in srgb, var(--paper) 40%, transparent); position: relative; overflow: hidden; }
.hs-count i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hs-track { display: grid; gap: 0; padding: 0 var(--pad); }
.panel { position: relative; padding: 48px 0; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); display: grid; gap: 18px; }
.panel-intro { border-top: 0; padding-top: 0; }
.panel-intro .lead { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.hs-hint { display: none; gap: 14px; align-items: center; font-size: 13px; letter-spacing: .26em; color: color-mix(in srgb, var(--paper) 60%, transparent); margin: 0; }
.hs-hint .arrow { display: inline-block; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
.p-num { font-family: var(--latin); font-size: 22px; letter-spacing: .1em; color: var(--seal); }
.p-char { font-family: var(--serif); font-weight: 900; font-size: clamp(120px, 34vw, 200px); line-height: .9; color: var(--paper); }
.p-text h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4vw, 52px); margin: 0 0 12px; letter-spacing: .1em; }
.p-text p { margin: 0 0 16px; color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: 24em; }
.p-text ul { list-style: none; padding: 0; margin: 0; font-size: 13px; letter-spacing: .14em; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.p-text li::before { content: "— "; color: var(--seal); }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hscroll.hs-on .hs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0; box-sizing: border-box; }
  .hscroll.hs-on .hs-head { position: absolute; top: 80px; left: 0; right: 0; margin: 0; }
  .hscroll.hs-on .hs-count { display: flex; }
  .hscroll.hs-on .hs-hint { display: flex; }
  .hscroll.hs-on .hs-track { display: flex; width: max-content; padding: 60px 0 0 var(--pad); will-change: transform; }
  .hscroll.hs-on .panel { width: min(64vw, 820px); flex: none; border-top: 0; border-left: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); padding: 0 5vw; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-items: end; column-gap: 3vw; min-height: 56vh; box-sizing: border-box; }
  .hscroll.hs-on .panel-intro { width: min(52vw, 700px); border-left: 0; padding-left: 0; grid-template-columns: 1fr; align-content: center; gap: 30px; }
  .hscroll.hs-on .panel .p-num { grid-column: 1 / -1; align-self: start; }
  .hscroll.hs-on .p-char { font-size: clamp(180px, 30vh, 340px); transform: translateX(var(--px, 0)); }
  .hscroll.hs-on .p-text { padding-bottom: 1.2em; }
  .hscroll.hs-on .panel:last-child { margin-right: 18vw; }
}

/* ---------- builds ---------- */
.builds { padding-top: clamp(90px, 14vh, 180px); padding-bottom: clamp(60px, 10vh, 120px); }
.sec-head { display: grid; gap: 28px; margin-bottom: 56px; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 6vw; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 18px; }
.filters button {
  background: none; border: 1px solid var(--rule-soft); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; letter-spacing: .12em; color: var(--ink-2); transition: all .3s var(--ease);
}
.filters button sup { font-family: var(--latin); font-size: 12px; margin-left: 4px; color: var(--ink-3); vertical-align: .3em; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button[aria-selected="true"] sup { color: inherit; opacity: .7; }

.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { border-bottom: 1px solid var(--rule-soft); transition: opacity .4s, transform .5s var(--ease); }
.entry.out { display: none; }
.entry.enter { animation: entryIn .7s var(--ease) both; }
@keyframes entryIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.entry-row {
  width: 100%; background: none; border: 0; text-align: left; padding: 26px 0;
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: baseline;
}
.e-no { font-family: var(--latin); font-size: clamp(38px, 6vw, 84px); line-height: .9; font-weight: 500; font-variant-numeric: tabular-nums; grid-row: span 2; transition: color .3s; min-width: 1.9em; }
.entry-row:hover .e-no { color: var(--seal); }
.e-title { font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.e-sum { grid-column: 2 / 4; color: var(--ink-2); font-size: 15px; max-width: 40em; }
.e-side { display: flex; align-items: center; gap: 14px; grid-column: 3; grid-row: 1; justify-self: end; }
.e-status { font-size: 12px; letter-spacing: .2em; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink-2); }
.e-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); }
.e-status[data-s="live"]::before { background: var(--seal); border-color: var(--seal); animation: pulse 2.4s ease-in-out infinite; }
.e-status[data-s="lab"]::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.e-status[data-s="shelved"]::before { border-style: dashed; opacity: .6; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--seal) 18%, transparent); } }
.e-toggle { width: 34px; height: 34px; border: 1px solid var(--rule-soft); border-radius: 50%; position: relative; flex: none; transition: transform .5s var(--ease), border-color .3s; }
.e-toggle::before, .e-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.e-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.entry.open .e-toggle { transform: rotate(180deg); border-color: var(--ink); }
.entry.open .e-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.tag-ex {
  font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .16em;
  color: var(--seal); border: 1px solid var(--seal); padding: 2px 8px; border-radius: 2px; white-space: nowrap;
}
.e-tags { font-size: 12px; color: var(--ink-3); letter-spacing: .12em; }
.e-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.entry.open .e-detail { grid-template-rows: 1fr; }
.e-detail > div { overflow: hidden; }
.e-cols { display: grid; gap: 22px; padding: 4px 0 34px; }
.e-col h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 13px; letter-spacing: .4em; color: var(--seal); font-weight: 600; }
.e-col p { margin: 0; color: var(--ink-2); font-size: 15px; }
.e-meta { font-size: 12px; letter-spacing: .14em; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
@media (min-width: 760px) {
  .e-cols { grid-template-columns: repeat(3, 1fr); gap: 4vw; padding-left: calc(clamp(38px, 6vw, 84px) * 1.9 + 18px); }
}
@media (max-width: 600px) {
  .entry-row { grid-template-columns: auto 1fr; }
  .e-side { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; justify-content: space-between; order: 3; }
  .e-sum { grid-column: 1 / -1; }
  .e-no { grid-row: auto; }
}
.log-empty { padding: 40px 0; color: var(--ink-3); font-family: var(--serif); }

/* ---------- lab ---------- */
.lab { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(60px, 10vh, 120px); background: var(--paper-2); }
.lab-head { display: grid; gap: 24px; margin-bottom: 40px; }
@media (min-width: 900px) { .lab-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 6vw; } }
.lab-frame { position: relative; }
#labCanvas { display: block; width: 100%; height: clamp(320px, 58vh, 620px); background: var(--paper); border: 1px solid var(--rule); touch-action: pan-y; cursor: crosshair; }
.lab-ui { display: grid; gap: 16px; padding: 18px 0 0; align-items: center; }
@media (min-width: 900px) { .lab-ui { grid-template-columns: 1.3fr 1fr auto; gap: 32px; } }
.lab-slider { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 15px; letter-spacing: .2em; }
.lab-slider input { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; height: 28px; background: transparent; }
.lab-slider input::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
.lab-slider input::-moz-range-track { height: 1px; background: var(--ink); }
.lab-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--seal); border: 0; }
.lab-slider input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--seal); border: 0; }
.lab-readout { display: flex; gap: 22px; font-size: 13px; letter-spacing: .14em; color: var(--ink-2); flex-wrap: wrap; }
.lab-readout b { font-family: var(--latin); font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lab-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- notes ---------- */
.notes { padding-top: clamp(90px, 14vh, 180px); padding-bottom: clamp(60px, 10vh, 120px); }
.notes-grid { display: grid; gap: 40px; }
.notes-side { display: grid; gap: 24px; align-content: start; }
@media (min-width: 900px) { .notes-grid { grid-template-columns: 1fr 1.25fr; gap: 6vw; } .notes-side { position: sticky; top: 110px; align-self: start; } }
.note-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.note {
  display: grid; grid-template-columns: 2.4em 1fr auto; gap: 14px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule-soft); position: relative;
}
.note::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.note:hover::after { transform: scaleX(1); }
.note-i { font-family: var(--latin); font-size: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.note-t { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; line-height: 1.45; }
.note-s { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.note-s[data-s="draft"] { color: var(--ink); }
.note-s[data-s="draft"]::before { content: ""; width: 14px; height: 1px; background: var(--seal); display: inline-block; animation: typing 1.6s steps(2) infinite; }
@keyframes typing { 50% { opacity: 0; } }

/* ---------- principles ---------- */
.principles { padding-top: clamp(90px, 14vh, 180px); padding-bottom: clamp(60px, 10vh, 120px); }
.principles .sec-label { margin-bottom: 0; }
.prin-list { list-style: none; margin: 0; padding: 0; }
.prin {
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 14px; row-gap: 10px;
  align-items: baseline; padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--rule-soft);
}
.prin-n { font-family: var(--serif); font-weight: 400; font-size: clamp(15px, 1.3vw, 19px); color: var(--seal); letter-spacing: .1em; writing-mode: vertical-rl; align-self: start; padding-top: .35em; }
.prin-main { min-width: 0; container-type: inline-size; }
.prin-t {
  font-family: var(--serif); font-weight: 900; margin: 0; line-height: 1.15; color: var(--ink);
  white-space: nowrap; font-size: clamp(24px, 4.2vw, 72px);
  letter-spacing: 0; transition: letter-spacing .5s cubic-bezier(.2,.8,.2,1);
}
@supports (font-size: 1cqi) { .prin-t { font-size: min(72px, 9.4cqi); } }
.prin-t .cl { white-space: nowrap; }
.prin-t .p-comma { color: inherit; margin-right: -.42em; }
.prin:hover .prin-t { letter-spacing: .06em; }
.prin-x { grid-column: 2; align-self: start; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; max-width: 19em; text-wrap: pretty; }
.prin-x .nw { white-space: nowrap; }
@media (min-width: 900px) {
  .prin { grid-template-columns: 3.2em minmax(0, 1fr) 16em; column-gap: clamp(20px, 3vw, 48px); }
  .prin-x { grid-column: 3; max-width: 16em; align-self: center; }
}

/* ---------- contact ---------- */
.contact { padding-top: clamp(90px, 14vh, 180px); padding-bottom: clamp(60px, 10vh, 120px); }
.mail {
  display: inline-flex; align-items: baseline; gap: .3em; margin-top: clamp(36px, 6vw, 70px);
  font-family: var(--latin); font-weight: 500; font-size: clamp(28px, 6vw, 84px);
  text-decoration: none; line-height: 1.1; position: relative; max-width: 100%; word-break: break-all;
}
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 2px; background: var(--ink); transform-origin: left; transition: transform .7s var(--ease); }
.mail:hover::after { transform: scaleX(.0); transform-origin: right; }
.mail-arrow { color: var(--seal); font-family: var(--sans); font-size: .6em; transition: transform .5s var(--ease); }
.mail:hover .mail-arrow { transform: translate(.15em, -.15em); }
.mail-note { margin: 22px 0 0; display: flex !important; width: fit-content; font-size: 13px; letter-spacing: .14em; color: var(--seal); display: inline-flex; gap: 8px; align-items: center; }
.mail-note[hidden] { display: none !important; }
.mail-note::before { content: "※"; }

/* ---------- footer ---------- */
.footer { position: relative; padding-top: 34px; padding-bottom: 40px; display: grid; gap: 26px; margin-top: 40px; }
.footer::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--rule); }
@media (min-width: 1100px) { .footer::before { right: calc(var(--pad) + 40px); } }
.foot-grow { display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); }
.foot-label { font-size: 15px; letter-spacing: .3em; color: var(--ink-2); }
.foot-days { font-family: var(--latin); font-weight: 500; font-size: clamp(64px, 10vw, 140px); line-height: .9; font-variant-numeric: tabular-nums; }
.foot-meta { display: grid; gap: 6px; font-size: 13px; letter-spacing: .12em; color: var(--ink-3); }
.foot-meta p { margin: 0; }
.foot-meta a { text-decoration: none; border-bottom: 1px solid var(--rule-soft); }
.foot-clock span { font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (min-width: 900px) { .footer { grid-template-columns: 1fr auto; align-items: end; } .foot-meta { text-align: right; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span, .reveal-up, .vert-creed .vc > span { transform: none !important; opacity: 1 !important; transition: none !important; }
  .hs-hint .arrow, .e-status::before, .note-s::before { animation: none !important; }
}

.e-no, .sc-num, .p-num, .foot-days, .lab-readout b, .note-i, .hs-count, .eyebrow-r, .mail, .filters sup { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* ---------- v2: hero line field ---------- */
.hero .field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.hero-top, .hero-stage, .hero-bottom { position: relative; z-index: 1; }
.hero-vert { z-index: 1; }

/* ---------- v3: cursor variants ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cur.on { opacity: 1; }
.cur > * { position: fixed; left: 0; top: 0; display: none; will-change: transform; }
.cur-label { font: 500 11px/1 var(--mono); font-style: normal; white-space: nowrap; letter-spacing: .06em; }
.cur-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 199; display: none; }
html.cur-on[data-cur="b"], html.cur-on[data-cur="b"] *, html.cur-on[data-cur="c"], html.cur-on[data-cur="c"] *, html.cur-on[data-cur="d"], html.cur-on[data-cur="d"] * { cursor: none !important; }
html.cur-on .cur-switch, html.cur-on .cur-switch * { cursor: pointer !important; }

/* A · 系统指针：仅在可交互元素上显示小标签 */
[data-cur="a"] .cur-label { display: block; opacity: 0; transition: opacity .2s; background: var(--ink); color: var(--paper); padding: 5px 7px 4px; border-radius: 2px; }
[data-cur="a"] .cur.hot .cur-label { opacity: 1; }

/* B · 朱砂点 */
[data-cur="b"] .cur-dot { display: block; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--seal); }
[data-cur="b"] .cur-ring { display: block; width: 0; height: 0; }
[data-cur="b"] .cur-ring::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; box-sizing: border-box; transition: all .35s cubic-bezier(.2,.8,.2,1); }
[data-cur="b"] .cur.hot .cur-ring::before { left: -22px; top: -22px; width: 44px; height: 44px; border-color: var(--seal); }
[data-cur="b"] .cur.press .cur-ring::before { animation: curPress .32s ease; }
@keyframes curPress { 40% { transform: scale(.62); } }
[data-cur="b"] .cur-label { display: block; opacity: 0; color: var(--ink); transition: opacity .2s; background: color-mix(in srgb, var(--paper) 85%, transparent); padding: 3px 5px; }
[data-cur="b"] .cur.hot .cur-label { opacity: 1; }

/* C · 墨滴：差值混合，悬停时扩成带字的圆 */
[data-cur="c"] .cur { mix-blend-mode: difference; }
[data-cur="c"] .cur-dot { display: block; width: 0; height: 0; }
[data-cur="c"] .cur-dot::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: all .4s cubic-bezier(.2,.8,.2,1); }
[data-cur="c"] .cur.hot .cur-dot::before { left: -44px; top: -44px; width: 88px; height: 88px; }
[data-cur="c"] .cur.press .cur-dot::before { animation: curPress .32s ease; }
[data-cur="c"] .cur-label { display: block; width: 0; height: 0; }
[data-cur="c"] .cur-label span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 68px; text-align: center; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
[data-cur="c"] .cur-label { color: #000; font: 700 12px/1.3 var(--sans); letter-spacing: .1em; }
[data-cur="c"] .cur-label { opacity: 0; transition: opacity .2s; }
[data-cur="c"] .cur.hot .cur-label { opacity: 1; transition-delay: .1s; }

/* D · 笔锋：斜置的墨滴笔尖 + 短拖尾 */
[data-cur="d"] .cur-trail { display: block; }
[data-cur="d"] .cur-dot { display: block; width: 0; height: 0; }
[data-cur="d"] .cur-dot::before { content: ""; position: absolute; left: -18px; top: -5px; width: 18px; height: 10px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M18 5C12 .6 4.5 0 2 2.6C.2 4.6 1.4 8 4.2 8C9 8 13 6.4 18 5Z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M18 5C12 .6 4.5 0 2 2.6C.2 4.6 1.4 8 4.2 8C9 8 13 6.4 18 5Z'/%3E%3C/svg%3E") no-repeat center / contain; transform-origin: 18px 5px; transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s; }
[data-cur="d"] .cur.hot .cur-dot::before { transform: scale(1.5); background: var(--seal); }
[data-cur="d"] .cur-label { display: block; opacity: 0; color: var(--ink); font-family: var(--serif); font-size: 12px; letter-spacing: .2em; transition: opacity .2s; background: color-mix(in srgb, var(--paper) 90%, transparent); padding: 4px 6px; border-left: 2px solid var(--seal); }
[data-cur="d"] .cur.hot .cur-label { opacity: 1; }

/* 临时切换器 */
.cur-switch { position: fixed; right: 14px; bottom: 14px; z-index: 210; display: none; flex-direction: column; gap: 6px; padding: 8px 10px; background: color-mix(in srgb, var(--paper) 92%, transparent); border: 1px dashed var(--ink-3); font: 500 10px/1.2 var(--mono); color: var(--ink-2); backdrop-filter: blur(6px); }
html.cur-on .cur-switch { display: flex; }
.cs-title { letter-spacing: .08em; }
.cs-title i { font-style: normal; color: var(--seal); margin-left: 6px; }
.cs-btns { display: flex; gap: 4px; }
.cur-switch button { background: none; border: 1px solid var(--rule-soft); padding: 4px 6px; font: inherit; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: baseline; }
.cur-switch button b { font-weight: 700; color: var(--ink); }
.cur-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cur-switch button[aria-pressed="true"] b { color: var(--paper); }
@media (hover: none) { .cur, .cur-trail { display: none !important; } html.cur-on .cur-switch { display: none; } .cursor-force .cur { display: block !important; } .cursor-force[data-cur="d"] .cur-trail { display: block !important; } .cursor-force.cur-on .cur-switch { display: flex !important; } }

.note-d { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); margin-top: 4px; font-weight: 400; }
.note-t a { text-decoration: none; border-bottom: 1px solid var(--rule-soft); }
