/* Orvane 星軌: concept build. Tokens first. */
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-opsz.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/PlexSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/PlexSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* metric-matched fallbacks so the swap does not shift the layout */
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 92%; ascent-override: 112%; descent-override: 36%; line-gap-override: 0%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 104%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --paper: #ECEAE4;
  --paper-2: #E3E0D8;
  --sheet: #F6F4EF;
  --ink: #0E2A22;
  --ink-m: #4B5D55;          /* muted on paper: 6.4:1 */
  --line: rgba(14, 42, 34, .16);
  --on-ink: #ECEAE4;
  --on-ink-m: #A7B8AF;       /* muted on ink: 7.6:1 */
  --line-d: rgba(236, 234, 228, .14);
  --seal: #C8302A;           /* accent: primary CTA + role seal only */
  --seal-h: #AE2620;
  --on-seal: #FBF7F2;        /* 4.9:1 on seal */

  --f-d: "Source Serif 4", "Serif Fallback", Georgia, serif;
  --f-b: "IBM Plex Sans", "Sans Fallback", Arial, sans-serif;

  --fs-xs: .8125rem;                                         /* 13 */
  --fs-0: clamp(1rem, .967rem + .14vw, 1.125rem);            /* 16 > 18 */
  --fs-1: clamp(1.1875rem, 1.06rem + .55vw, 1.5rem);         /* 19 > 24 */
  --fs-3: clamp(2.125rem, 1.4rem + 3.1vw, 4.25rem);          /* 34 > 68 */
  --fs-5: clamp(2.75rem, 1.2rem + 6.6vw, 7.5rem);            /* 44 > 120 */
  --fs-hero: clamp(4.1rem, .9rem + 13.4vw, 13rem);           /* 66 > 208 */

  --m: clamp(1.25rem, .28rem + 4.13vw, 4rem);
  --g: clamp(1rem, .82rem + .75vw, 1.5rem);
  --sec: clamp(5.5rem, 2.6rem + 12vw, 13rem);

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .28s; --t-mid: .8s; --t-slow: 1.2s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-0)/1.55 var(--f-b); overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-kerning: normal; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, figure, blockquote { margin: 0; }
ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- Chinese mode ---------- */
html.zh { --f-d: "Source Serif 4", "Noto Serif TC", "Serif Fallback", serif; --f-b: "IBM Plex Sans", "Noto Sans TC", "Sans Fallback", sans-serif; }
html.zh body { line-height: 1.8; line-break: strict; }
html.zh :is(h1, h2, h3, h4, .ct-h, .thesis-h, .sec-h, .orb-name, .pull p) { letter-spacing: 0 !important; font-weight: 600; line-height: 1.28; }
html.zh :is(p, dd, li) { text-wrap: pretty; }
.zh-only { display: none; }
html.zh .zh-only { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 0; font: 500 var(--fs-0)/1 var(--f-b); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--e-out); }
.btn:active { transform: translateY(1px); }
.btn-seal { background: var(--seal); color: var(--on-seal); }
.btn-seal:hover { background: var(--seal-h); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); min-height: 44px; padding: 0 16px; font-size: var(--fs-xs); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.link { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 68px; display: flex; align-items: center; gap: 24px; padding: 0 var(--m); color: var(--on-ink); transition: color .4s, background-color .4s, box-shadow .4s; }
.nav[data-on="light"] { color: var(--ink); background: rgba(236, 234, 228, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.logo-word { font: 500 1.375rem/1 var(--f-d); font-variation-settings: "opsz" 36; letter-spacing: -.01em; }
.logo-zh { font: 500 .9375rem/1 "Noto Serif TC", var(--f-d); opacity: .72; letter-spacing: .08em; padding-left: 10px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 30%, transparent); }
.nav-links { display: none; gap: 28px; font-size: .9375rem; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--e-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 32%, transparent); }
.lang button { min-width: 40px; height: 40px; padding: 0 10px; border: 0; background: none; cursor: pointer; font-size: .875rem; opacity: .62; transition: opacity var(--t-fast), background-color var(--t-fast); }
.lang button[lang] { font-family: "Noto Sans TC", "PingFang TC", "Heiti TC", var(--f-b); }
.lang button[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.lang button:hover { opacity: 1; }
.nav .btn-sm { display: none; }
.nav-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.drawer { position: fixed; inset: 68px 0 0; z-index: 49; background: var(--ink); color: var(--on-ink); padding: 32px var(--m); }
.drawer nav { display: grid; }
.drawer a { font: 400 2.25rem/1.25 var(--f-d); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line-d); }
html.zh .drawer a { font-size: 1.75rem; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-toggle { display: none; } .nav .btn-sm { display: inline-flex; } .logo { margin-right: 0; } .nav-links { margin: 0 auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 230vh; background: var(--ink); color: var(--on-ink); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-copy { position: absolute; left: var(--m); right: var(--m); top: clamp(96px, 14vh, 150px); pointer-events: none; }
.hero-kicker { font-size: var(--fs-xs); color: var(--on-ink-m); max-width: 24ch; margin-bottom: clamp(14px, 2vh, 24px); }
.hero-title { font: 400 var(--fs-hero)/.88 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.035em; margin-left: -.05em; }
.hero-title span { display: block; }
.ht-2 { font-style: italic; font-weight: 300; font-size: .46em; letter-spacing: -.015em; line-height: 1; margin-top: .25em; margin-left: .06em; color: var(--on-ink); }
html.zh .hero-title { font-size: clamp(3.3rem, .9rem + 10vw, 9.5rem); line-height: 1.08; }
html.zh .ht-2 { font-style: normal; font-weight: 500; font-size: .5em; margin-top: .4em; }
.hero-foot { position: absolute; left: var(--m); right: var(--m); bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hero-hint { font-size: var(--fs-xs); color: var(--on-ink-m); max-width: 22ch; padding-bottom: 56px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-fine { display: none; } }
.readout { display: grid; grid-template-columns: repeat(3, auto); column-gap: clamp(18px, 3vw, 44px); align-items: end; text-align: left; }
.ro { opacity: .45; transition: opacity .5s; }
.ro.on { opacity: 1; }
.ro dt { font-size: var(--fs-xs); color: var(--on-ink-m); }
.ro dd { font: 400 clamp(2rem, 1.3rem + 2.6vw, 3.6rem)/1 var(--f-d); font-variation-settings: "opsz" 60; font-variant-numeric: lining-nums tabular-nums; margin-top: 4px; }
.ro-note { grid-column: 1 / -1; font-size: .75rem; color: var(--on-ink-m); margin-top: 10px; }
.hero-poster .hero-copy { opacity: 1; }
@media (max-width: 759px) {
  .hero { height: 210vh; }
  .hero-foot { display: block; }
  .hero-hint { padding: 0 0 14px; max-width: none; }
  .readout { grid-template-columns: repeat(3, 1fr); }
}

/* intro choreography: content readable by ~1s */
.js .hero-kicker, .js .hero-title span, .js .hero-foot { opacity: 0; transform: translateY(24px); }
.js.ready .hero-kicker, .js.ready .hero-title span, .js.ready .hero-foot { opacity: 1; transform: none; transition: opacity .9s var(--e-out), transform 1.1s var(--e-out); }
.js.ready .ht-1 { transition-delay: .08s; }
.js.ready .ht-2 { transition-delay: .26s; }
.js.ready .hero-foot { transition-delay: .5s; }

/* ---------- Shared section bits ---------- */
.run { font-size: var(--fs-xs); color: var(--ink-m); display: flex; align-items: center; gap: 10px; }
.run::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.sec-h { font: 400 var(--fs-3)/1.02 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.02em; text-wrap: balance; }
.reveal { clip-path: inset(0 0 0 0); }
.js .reveal { opacity: 0; transform: translateY(.5em); clip-path: inset(0 0 100% 0); }
.js .reveal.in { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); transition: opacity .9s var(--e-out), transform 1.1s var(--e-out), clip-path 1.1s var(--e-out); }

/* ---------- Thesis ---------- */
.thesis { padding: var(--sec) var(--m) calc(var(--sec) * .7); display: grid; gap: 28px; }
.thesis-h { font: 400 var(--fs-5)/.98 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
html.zh .thesis-h { font-size: clamp(2.125rem, .9rem + 4.6vw, 5.5rem); max-width: 13em; }
.thesis-body { display: grid; gap: 24px; max-width: 36rem; font-size: var(--fs-1); line-height: 1.5; }
.thesis-body .link { font-size: var(--fs-0); }
@media (min-width: 900px) {
  .thesis { grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
  .thesis .run { grid-column: 1 / 3; align-self: start; padding-top: 1.4em; }
  .thesis-h { grid-column: 3 / 12; }
  .thesis-body { grid-column: 7 / 12; margin-top: clamp(24px, 4vw, 64px); }
}

/* ---------- Practices: an orbit list, each row on a wider ring ---------- */
.practices { padding: calc(var(--sec) * .6) var(--m) var(--sec); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 6vw, 96px); }
.orbit-list { counter-reset: none; }
.orb-row { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; row-gap: 10px; padding: 26px 0 28px; border-top: 1px solid var(--line); }
.orb-row:last-child { border-bottom: 1px solid var(--line); }
.orb-n { grid-row: 1; width: 34px; height: 20px; margin-top: .55em; position: relative; }
.orb-n::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--ink); border-radius: 50%; opacity: .45; }
.orb-n::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); left: calc(50% - 3px + cos(calc(var(--i) * 72deg - 40deg)) * 17px); top: calc(50% - 3px + sin(calc(var(--i) * 72deg - 40deg)) * 10px); transition: left .9s var(--e-out), top .9s var(--e-out); }
.orb-name { font: 400 clamp(1.9rem, 1.2rem + 3.2vw, 4.6rem)/1.02 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.025em; }
.orb-desc { grid-column: 2; color: var(--ink-m); max-width: 38ch; }
.orb-seat { grid-column: 2; font-size: var(--fs-xs); display: grid; gap: 2px; }
.orb-seat span { color: var(--ink-m); }
.orb-seat b { font-weight: 500; }
@media (min-width: 900px) {
  .practices { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
  .practices .sec-head { grid-column: 1 / 8; }
  .orbit-list { grid-column: 1 / -1; }
  .orb-row { grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: baseline; padding: 30px 0 34px; }
  .orb-n { grid-column: 1; }
  .orb-name { grid-column: calc(2 + var(--i)) / span 6; transition: transform .7s var(--e-out); }
  .orb-desc { grid-column: 9 / 12; grid-row: 1; }
  .orb-seat { grid-column: 9 / 12; grid-row: 2; }
  .orb-row:hover .orb-name { transform: translateX(.25em); }
  .orb-row:hover .orb-n::after { left: calc(50% - 3px + cos(calc(var(--i) * 72deg + 140deg)) * 17px); top: calc(50% - 3px + sin(calc(var(--i) * 72deg + 140deg)) * 10px); }
}

/* ---------- Method: pinned horizontal timeline ---------- */
.method { position: relative; background: var(--paper-2); }
.method-pin { padding: calc(var(--sec) * .6) var(--m); }
.method-head { display: grid; gap: 14px; max-width: 40rem; }
.method-sub { color: var(--ink-m); }
.week-rail { display: none; }
.track { display: grid; gap: 0; margin-top: 44px; border-left: 1px solid var(--ink); }
.step { position: relative; padding: 0 0 36px 24px; }
.step::before { content: ""; position: absolute; left: -5px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink); }
.step-key::before { background: var(--ink); }
.step-w { font-size: var(--fs-xs); color: var(--ink-m); font-variant-numeric: tabular-nums; }
.step h3 { font: 400 clamp(1.75rem, 1.3rem + 1.8vw, 3rem)/1.05 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.02em; margin: 6px 0 10px; }
.step p:last-child { color: var(--ink-m); max-width: 34ch; }
@media (min-width: 900px) {
  .method { height: 340vh; }
  .method-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; padding-top: 120px; padding-bottom: 48px; }
  .week-rail { display: block; position: relative; height: 1px; margin: 48px 0 0; background: var(--line); }
  .week-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; }
  .week-ticks i { width: 1px; height: 9px; margin-top: -4px; background: var(--ink); opacity: .4; }
  .week-fill { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .week-now { position: absolute; right: 0; top: -1px; transform: translateY(-100%); padding-bottom: 14px; font: 400 var(--fs-xs)/1 var(--f-b); color: var(--ink-m); display: flex; align-items: baseline; gap: 10px; }
  .week-now b { font: 400 clamp(5rem, 2rem + 8vw, 10.5rem)/.8 var(--f-d); font-variation-settings: "opsz" 60; color: var(--ink); letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; min-width: 1.3em; text-align: right; }
  .track { display: flex; gap: clamp(40px, 5vw, 96px); border-left: 0; margin-top: 0; align-self: center; width: max-content; padding-right: 30vw; will-change: transform; }
  .step { width: clamp(280px, 24vw, 360px); padding: 28px 0 0; border-top: 1px solid transparent; }
  .step::before { left: 0; top: -5px; }
  .step-key h3 { font-style: italic; }
}

/* ---------- Desk: tools ---------- */
.desk { padding: var(--sec) var(--m); }
.desk-sub { color: var(--ink-m); max-width: 36ch; }
.tools { display: grid; gap: clamp(56px, 7vw, 96px); }
.tool-h { font: 400 clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem)/1.1 var(--f-d); font-variation-settings: "opsz" 48; letter-spacing: -.015em; margin-bottom: 22px; }
.f { display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--ink-m); border: 0; padding: 0; margin: 0; min-width: 0; }
.f legend { padding: 0; margin-bottom: 6px; }
.f input, .f select, .f textarea { width: 100%; min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-size: 1rem; appearance: none; -webkit-appearance: none; }
.f textarea { resize: vertical; }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A22' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; padding-right: 26px; cursor: pointer; }
.f input::placeholder, .f textarea::placeholder { color: #53605A; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-bottom-width: 2px; }
.f :focus-visible { outline: none; }
.bform { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.f-wide { grid-column: 1 / -1; }
.bform fieldset input { margin-top: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { position: relative; }
.chk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chk span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: .9375rem; transition: background-color var(--t-fast), color var(--t-fast); }
.chk input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chk input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sheet { margin-top: 32px; background: var(--sheet); padding: clamp(22px, 3vw, 40px); box-shadow: 0 1px 0 rgba(14, 42, 34, .08), 0 24px 48px -36px rgba(14, 42, 34, .5); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.sheet-mark { display: inline-flex; gap: 8px; align-items: center; font: 500 1rem/1 var(--f-d); }
.sheet-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sheet-mark span { font-family: "Noto Serif TC", var(--f-d); font-size: .8125rem; opacity: .7; }
.sheet-draft { font-size: .75rem; padding: 4px 8px; box-shadow: inset 0 0 0 1px var(--ink); }
.sheet-title { font: 400 clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem)/1.06 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.02em; margin-bottom: 20px; overflow-wrap: anywhere; }
.sheet-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 22px; }
.sheet-dl div { border-top: 1px solid var(--line); padding-top: 8px; }
.sheet-dl dt, .sheet-k { font-size: .75rem; color: var(--ink-m); }
.sheet-dl dd { font-size: .9375rem; margin-top: 2px; }
.sheet-must ol { list-style: decimal; padding-left: 1.2em; margin: 6px 0 20px; font-size: .9375rem; }
.sheet-must li + li { margin-top: 4px; }
.sheet-must li.empty { color: #53605A; }
.sheet-next { font-size: .9375rem; margin: 4px 0 18px; max-width: 52ch; }
.sheet-code { font-size: .8125rem; color: var(--ink-m); border-top: 1px solid var(--line); padding-top: 12px; }
.sheet-code b { color: var(--ink); font-weight: 500; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.tool-status { font-size: var(--fs-xs); color: var(--ink-m); }

.warn { display: inline-block; font: 500 .9375rem/1.35 var(--f-b); padding: 10px 14px; background: var(--ink); color: var(--paper); margin-bottom: 26px; }
.seg { margin-bottom: 18px; }
.seg-l { font-size: var(--fs-xs); color: var(--ink-m); margin-bottom: 8px; }
.seg-b { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-b button { min-height: 40px; padding: 0 14px; border: 0; background: none; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: .9375rem; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.seg-b button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.seg-b button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.range { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ink); }
.range-cap { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--ink-m); }
.range-med b { display: block; font: 400 clamp(2.4rem, 1.6rem + 3vw, 4.25rem)/1 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; text-align: right; margin-top: 4px; }
.range-plot { position: relative; height: 104px; margin-top: 18px; }
.range-axis { position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--line); }
.range-axis i { position: absolute; bottom: 0; width: 1px; height: 7px; background: var(--ink); opacity: .35; }
.range-axis span { position: absolute; top: 10px; transform: translateX(-50%); font-size: .6875rem; color: var(--ink-m); white-space: nowrap; font-variant-numeric: tabular-nums; }
.range-band { position: absolute; bottom: 30px; height: 40px; background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 6px); box-shadow: inset 0 0 0 1px var(--ink); transition: left .7s var(--e-out), width .7s var(--e-out); }
.rb-med { position: absolute; top: -10px; bottom: -10px; width: 2px; background: var(--ink); left: var(--med, 50%); transition: left .7s var(--e-out); }
.rb-l, .rb-h { position: absolute; top: -24px; font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-l { right: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.rb-h { left: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.range-keys { font-size: .75rem; color: var(--ink-m); margin-top: 4px; }
.range-keys > span { display: inline-flex; gap: 8px; align-items: center; }
.k-band { width: 18px; height: 10px; background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 5px); box-shadow: inset 0 0 0 1px var(--ink); }
.range-bonus { margin-top: 14px; font-size: .9375rem; }
.pay-foot { margin-top: 22px; font-size: var(--fs-xs); color: var(--ink-m); max-width: 46ch; }
@media (min-width: 1000px) {
  .desk { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
  .desk-head { grid-column: 1 / 8; }
  .tools { grid-column: 1 / -1; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
  .tool-brief { grid-column: 1 / 7; }
  .tool-pay { grid-column: 8 / 13; position: sticky; top: 100px; align-self: start; }
}

/* ---------- Standards (dark band) ---------- */
.standards { background: var(--ink); color: var(--on-ink); padding: var(--sec) var(--m); }
.standards .run { color: var(--on-ink-m); }
.std-head { display: grid; gap: 14px; margin-bottom: clamp(48px, 6vw, 88px); }
.std-grid { display: grid; gap: 0; }
.std { padding: 22px 0 26px; border-top: 1px solid var(--line-d); }
.std h3 { font: 400 clamp(1.4rem, 1.15rem + 1vw, 2rem)/1.15 var(--f-d); font-variation-settings: "opsz" 48; letter-spacing: -.01em; margin-bottom: 8px; }
.std p { color: var(--on-ink-m); max-width: 40ch; }
@media (min-width: 900px) {
  .std-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
  .std { grid-column: span 4; padding: 26px 0 40px; padding-right: 12%; }
  .std:nth-child(4) { grid-column: 3 / span 4; }
  .std:nth-child(5) { grid-column: 7 / span 3; padding-right: 0; }
  .std:nth-child(6) { grid-column: 10 / span 3; }
}
.team { display: grid; gap: 32px; margin-top: clamp(64px, 9vw, 150px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-d); }
.team-orb { width: 100%; max-width: 520px; fill: none; stroke: var(--on-ink); stroke-width: 1; }
.team-orb ellipse { opacity: .35; }
.team-orb .t-you { fill: var(--on-ink); stroke: none; }
.team-orb .t-p { fill: var(--ink); stroke: var(--on-ink); stroke-width: 1.4; }
.team-h { font: 400 var(--fs-3)/1.04 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.02em; max-width: 16ch; margin-bottom: 30px; text-wrap: balance; }
.team-dl { display: grid; gap: 18px; }
.team-dl div { display: grid; gap: 4px; }
.team-dl dt { font-weight: 500; }
.team-dl dd { color: var(--on-ink-m); max-width: 44ch; }
@media (min-width: 900px) {
  .team { grid-template-columns: repeat(12, 1fr); column-gap: var(--g); align-items: center; }
  .team-orb { grid-column: 1 / 6; }
  .team-copy { grid-column: 7 / 13; }
  .team-dl { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.js .team-orb .t-p { transition: transform 1.6s var(--e-io); transform-box: fill-box; }

/* ---------- Proof (sample ledger) ---------- */
.proof { padding: var(--sec) var(--m) calc(var(--sec) * .8); }
.sample-tag { justify-self: start; font-size: .75rem; padding: 5px 9px; box-shadow: inset 0 0 0 1px var(--ink); }
.ledger { border-top: 1px solid var(--ink); }
.lg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.lg-row span:first-child { font: 400 1.25rem/1.25 var(--f-d); grid-column: 1 / -1; }
.lg-row span:nth-child(2), .lg-row span:nth-child(3) { color: var(--ink-m); }
.lg-row span:nth-child(4) { grid-column: 1 / -1; font-variant-numeric: tabular-nums; }
.lg-headrow { display: none; }
@media (min-width: 760px) {
  .lg-row { grid-template-columns: 2.2fr 2fr 1fr 1.2fr; align-items: baseline; padding: 20px 0; }
  .lg-row span:first-child, .lg-row span:nth-child(4) { grid-column: auto; }
  .lg-row span:first-child { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); }
  .lg-headrow { display: grid; font-size: .75rem; color: var(--ink-m); padding: 12px 0; }
  .lg-headrow span:first-child { font: 400 .75rem/1.2 var(--f-b); }
  .lg-row span:nth-child(4) { text-align: right; }
}
.pull { margin: clamp(80px, 12vw, 200px) 0 0; max-width: none; padding-left: 0; }
.pull p { max-width: 17ch; font: 300 italic var(--fs-5)/1.02 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.025em; text-indent: -.4em; padding-left: .4em; }
html.zh .pull p { font-style: normal; font-weight: 500; font-size: clamp(2rem, 1rem + 4vw, 4.5rem); text-indent: 0; padding-left: 0; }
html.zh .pull p { max-width: 11em; }
.pull footer { margin-top: 22px; font-size: var(--fs-xs); color: var(--ink-m); }
@media (min-width: 900px) { .pull { margin-left: 16.66%; } }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); padding: var(--sec) var(--m); display: grid; gap: 48px; }
.ct-h { font: 400 var(--fs-5)/.95 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.03em; margin: 14px 0 22px; }
.ct-p { max-width: 34ch; font-size: var(--fs-1); line-height: 1.45; }
.ct-addr { font-style: normal; display: grid; gap: 6px; margin-top: 28px; font-size: .9375rem; }
.ct-addr a { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.ct-form { display: grid; grid-template-columns: 1fr; gap: 22px 22px; align-content: start; }
.ct-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.ct-status { font-size: .9375rem; max-width: 40ch; }
.f.err input { border-bottom-color: var(--seal-h); }
.f.err > span::after { content: " *"; }
@media (min-width: 900px) {
  .contact { grid-template-columns: repeat(12, 1fr); column-gap: var(--g); }
  .ct-left { grid-column: 1 / 6; }
  .ct-form { grid-column: 7 / 13; grid-template-columns: 1fr 1fr; padding-top: 40px; }
}

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-ink); padding: clamp(48px, 7vw, 96px) var(--m) calc(80px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-mark { display: flex; align-items: baseline; gap: .12em; line-height: .8; margin-left: -.04em; }
.fm-en { font: 400 clamp(6rem, -1rem + 30vw, 27rem)/.8 var(--f-d); font-variation-settings: "opsz" 60; letter-spacing: -.045em; }
.fm-zh { font: 500 clamp(1.5rem, .6rem + 3.6vw, 4rem)/1 "Noto Serif TC", "Songti TC", var(--f-d); letter-spacing: .1em; writing-mode: vertical-rl; color: var(--on-ink-m); align-self: flex-start; margin-top: .3em; }
.foot-row { display: grid; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-d); font-size: .9375rem; }
.foot-row a { text-underline-offset: .25em; }
.foot-legal { margin-top: 28px; display: grid; gap: 6px; font-size: .8125rem; color: var(--on-ink-m); max-width: 76ch; }
.concept-line { color: var(--on-ink); }
@media (min-width: 900px) { .foot-row { grid-template-columns: 2fr 1.4fr 1fr; } .foot-row p:last-child { text-align: right; } }

/* ---------- Concept badge ---------- */
.concept-badge { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--paper); color: var(--ink); font: 500 12px/1.2 var(--f-b); text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(14, 42, 34, .7); transition: transform var(--t-fast) var(--e-out); }
.concept-badge:hover { transform: translateY(-1px); }

/* ---------- Print: only the brief ---------- */
@media print {
  body * { visibility: hidden !important; }
  .sheet, .sheet * { visibility: visible !important; }
  .sheet { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; background: #fff; margin: 0; }
  .nav, .concept-badge { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal, .js .hero-kicker, .js .hero-title span, .js .hero-foot { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Added: method states, pay detail ---------- */
@media (min-width: 900px) {
  .step { opacity: .42; transition: opacity .6s var(--e-out); }
  .step.on { opacity: 1; }
  .step.on::before { background: var(--ink); }
}
.range-bonus span { display: block; }
.rb-month { margin-top: 4px; font-size: var(--fs-xs); color: var(--ink-m); font-variant-numeric: tabular-nums; }
html.zh :is(.hero-hint, .ro-note, .seg-b button, .chk span, .btn, .nav-links a, .run) { word-break: keep-all; }
html.zh :is(.hero-title, .thesis-h, .ct-h, .team-h, .orb-name, .step h3) { text-wrap: balance; }
/* zh headings: break at punctuation first (keep-all), never overflow (anywhere) */
html.zh :is(h1, h2, h3, .pull p, .ct-h, .thesis-h, .sec-h, .team-h, .orb-name) { word-break: keep-all; overflow-wrap: anywhere; font-weight: 500; }
html.zh .ct-h { font-size: clamp(2.5rem, 1.2rem + 4vw, 5rem); }
html.zh .week-now { gap: 6px; }
html.zh .week-now span { font-size: 1rem; color: var(--ink); }
.nav.is-open { background: var(--ink); color: var(--on-ink); box-shadow: 0 1px 0 var(--line-d); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .hero-hint { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .method { height: auto; }
  .method-pin { position: static; height: auto; overflow: visible; padding-bottom: calc(var(--sec) * .6); }
  .week-rail { display: none; }
  .track { display: grid; grid-template-columns: repeat(3, 1fr); width: auto; padding-right: 0; gap: 56px var(--g); margin-top: 56px; }
  .step { width: auto; opacity: 1; }
}
