/* ───────── Fonts ───────── */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ───────── Tokens ───────── */
:root {
  --bg: #05070f;
  --bg-2: #0a0e1c;
  --ink: #eef1fa;
  --muted: #a3acc6;
  --faint: #6f7895;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --acc: #8fbaf0;
  --acc-rgb: 143, 186, 240;
  /* deck blues (#7FB1E6 / #2775C9 / #DDE8F4) + a warm tone reserved for the human signal */
  --acc-deep: #2775c9;
  --acc-pale: #dde8f4;
  --warm: #ffb169;
  --warm-rgb: 255, 177, 105;
  --good: #7be0a8;
  --side-w: 344px;
  --serif: "Instrument Serif", "Iowan Old Style", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-project="why"]  { --acc: #8fbaf0; --acc-rgb: 143, 186, 240; }
[data-project="tech"] { --acc: #7cd0ff; --acc-rgb: 124, 208, 255; }
[data-project="tw"]   { --acc: #ffb169; --acc-rgb: 255, 177, 105; }
[data-project="api"]  { --acc: #a9b8ff; --acc-rgb: 169, 184, 255; }
[data-project="moat"] { --acc: #9fd8ff; --acc-rgb: 159, 216, 255; }
[data-project="road"] { --acc: #8fbaf0; --acc-rgb: 143, 186, 240; }
[data-project="team"] { --acc: #c3d4ff; --acc-rgb: 195, 212, 255; }
[data-project="join"] { --acc: #7fe0c8; --acc-rgb: 127, 224, 200; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  transition: grid-template-columns 0.7s var(--ease);
}
body[data-view="slide"] { --side-w: 92px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }

/* ───────── Sky ───────── */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(var(--acc-rgb), 0.13), transparent 70%),
    radial-gradient(50% 45% at 30% 95%, rgba(64, 86, 190, 0.2), transparent 70%),
    radial-gradient(40% 40% at 5% 10%, rgba(30, 44, 110, 0.35), transparent 70%),
    linear-gradient(180deg, #04070f, #061225 58%, #04070f);
  transition: background 0.8s;
}
.sky canvas { width: 100%; height: 100%; display: block; }

/* ───────── Side panel ───────── */
.side {
  position: relative;
  height: 100dvh;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.side-full {
  width: 344px; height: 100%;
  padding: 28px 28px 22px;
  display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto;
  transition: opacity 0.35s, transform 0.6s var(--ease);
}
.side-top { display: flex; align-items: center; gap: 16px; flex: none; }
.side-head { min-width: 0; }
.portrait {
  position: relative;
  width: clamp(88px, 14dvh, 112px);
  aspect-ratio: 4 / 4.8;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-2);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 28%, transparent 70%, rgba(5, 7, 15, 0.45));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); line-height: 1.5;
  transition: color 0.6s;
}
.side h1 { display: flex; align-items: baseline; gap: 2px 12px; flex-wrap: wrap; line-height: 1.15; margin-top: 8px; }
.side h1 .zh { font-size: 28px; font-weight: 600; letter-spacing: 0.04em; }
.side h1 .en { font-family: var(--serif); font-style: italic; font-size: 23px; color: var(--muted); font-weight: 400; }
.bio { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.cv { display: grid; gap: 9px; font-size: 13.5px; line-height: 1.5; }
.cv li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; color: var(--muted); }
.cv time { color: var(--faint); font-family: var(--mono); font-size: 11.5px; padding-top: 2px; white-space: nowrap; }
.cv b { color: var(--ink); font-weight: 500; }
.links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel);
  font-size: 13px; text-decoration: none; color: var(--ink);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
}
.pill:hover { background: var(--panel-2); border-color: rgba(var(--acc-rgb), 0.6); transform: translateY(-1px); }
.pill.sm { padding: 3px 11px; font-size: 12px; margin-left: 4px; border-color: rgba(var(--acc-rgb), 0.45); }
.tags { align-items: center; }
.pill svg { width: 13px; height: 13px; opacity: 0.75; }

.side-mini {
  position: absolute; inset: 0 auto 0 0; width: 92px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 22px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
  text-decoration: none;
}
.side-mini img {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 10%;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 5px rgba(255, 255, 255, 0.04);
}
.side-mini span {
  writing-mode: vertical-rl; font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--muted); letter-spacing: 0.04em;
}
body[data-view="slide"] .side-full { opacity: 0; pointer-events: none; transform: translateX(-30px); }
body[data-view="slide"] .side-mini { opacity: 1; pointer-events: auto; transition-delay: 0.25s; }

/* ───────── Stage ───────── */
.stage { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 18px clamp(20px, 3.2vw, 48px) 0;
  min-height: 56px;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--faint); flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--muted); padding: 4px 2px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--acc); }
.hint { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
kbd {
  font-family: var(--mono); font-size: 11px; line-height: 1;
  padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted);
}

.views { position: relative; min-height: 0; }
.view {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: clamp(14px, 2.2vh, 28px) clamp(20px, 3.2vw, 48px) 20px;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.985);
  transition: opacity 0.4s, transform 0.6s var(--ease), visibility 0s 0.4s;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.view.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.08s, 0.08s, 0s; }
.view-inner { max-width: 1180px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }

.navbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px clamp(20px, 3.2vw, 48px) 16px;
}
.nav-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel);
  font-size: 13.5px; color: var(--ink); max-width: 100%;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s;
}
.nav-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-btn:hover { background: var(--panel-2); border-color: rgba(var(--acc-rgb), 0.6); }
.nav-btn[disabled] { opacity: 0.25; pointer-events: none; }
.nav-btn.next { justify-self: end; background: rgba(var(--acc-rgb), 0.14); border-color: rgba(var(--acc-rgb), 0.45); }
.nav-btn.prev { justify-self: start; }
.nav-btn small { color: var(--faint); font-size: 12px; }
.progress { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--faint); font-size: 12px; font-family: var(--mono); }
.progress-track { width: clamp(80px, 14vw, 220px); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--acc); border-radius: 3px; transition: width 0.5s var(--ease), background 0.5s; }

/* ───────── Orbs ───────── */
.orbs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 46px) clamp(20px, 3.4vw, 56px); }
.orbit {
  --d: clamp(96px, min(10.4vw, 13.6dvh), 160px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: calc(var(--d) + 36px);
  text-decoration: none; text-align: center;
  animation: bob 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.37s);
  -webkit-tap-highlight-color: transparent;
}
.orbit.big { --d: clamp(108px, min(10.5vw, 15.6dvh), 184px); gap: calc(var(--lh) / 2 + 8px); }
.orbit.mid { --d: clamp(74px, min(7vw, 10.4dvh), 112px); gap: calc(var(--lh) / 2 + 6px); width: calc(var(--d) + 84px); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.orb {
  position: relative; display: block; width: var(--d); aspect-ratio: 1; border-radius: 50%;
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s;
  box-shadow:
    0 36px 50px -34px rgba(var(--acc-rgb), 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.orbit:hover .orb, .orbit:focus-visible .orb { transform: scale(1.07); box-shadow: 0 40px 70px -30px rgba(var(--acc-rgb), 0.9), 0 0 0 1px rgba(255, 255, 255, 0.16); }
.orbit:focus-visible { outline: none; }
.orbit:focus-visible .orb { outline: 2px solid var(--acc); outline-offset: 6px; }
.orb-media { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #0c1122; }
.orb-media > img, .orb-media > video, .orb-media > svg {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.14);
  transition: transform 1.2s var(--ease);
}
.orbit:hover .orb-media > * { transform: scale(1.22); }
/* thick glass edge: blur what's behind the outer ring */
.orb-rim {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  -webkit-backdrop-filter: blur(5px) saturate(1.35) brightness(1.12);
  backdrop-filter: blur(5px) saturate(1.35) brightness(1.12);
  -webkit-mask: radial-gradient(circle closest-side, transparent 72%, #000 90%);
  mask: radial-gradient(circle closest-side, transparent 72%, #000 90%);
}
.orb-glass {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(ellipse 36% 20% at 31% 13%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 9% 6% at 74% 22%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 56% 26% at 56% 97%, rgba(255, 255, 255, 0.3), transparent 72%),
    radial-gradient(circle closest-side, transparent 62%, rgba(190, 214, 255, 0.1) 80%, rgba(214, 228, 255, 0.34) 95%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.38),
    inset 0 0 26px 4px rgba(196, 218, 255, 0.26),
    inset 0 -20px 34px -10px rgba(255, 255, 255, 0.26),
    inset 12px 22px 40px -22px rgba(255, 255, 255, 0.36),
    inset -18px -8px 40px -22px rgba(8, 12, 30, 0.75);
}
.orb-ring {
  position: absolute; inset: -9px; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(var(--acc-rgb), 0.85); opacity: 0;
}
.orbit.is-next .orb-ring { animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.96); } 80%, 100% { opacity: 0; transform: scale(1.16); } }

/* organisation badge: its centre sits exactly on the orb's lowest point */
.orb-logo {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -50%); z-index: 3;
  box-sizing: border-box; height: var(--lh, 40px); width: var(--lh, 40px); max-width: none; object-fit: contain;
  padding: calc(var(--lh, 40px) * 0.2); border-radius: 999px; background: #fff;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 4px rgba(8, 11, 24, 0.6);
}
.orb-logo.wide { width: auto; padding: calc(var(--lh, 40px) * 0.31) calc(var(--lh, 40px) * 0.3); }
.orbit.big { --lh: clamp(34px, 4.6dvh, 42px); }
.orbit.mid { --lh: clamp(26px, 3.6dvh, 32px); }
.orb-label { display: grid; gap: 3px; justify-items: center; }
.orb-label i {
  font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--acc);
  display: inline-flex; align-items: center; gap: 6px;
}
.orbit.is-seen .orb-label i::after { content: "✓"; color: var(--good); font-size: 11px; }
.orb-label b { font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--ink); }
.orb-label small { font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.orbit.big .orb-label b { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); font-weight: 400; line-height: 1.15; white-space: nowrap; }
.orbit.big .orb-label small { font-size: 13.5px; color: var(--muted); }
.orbit.big { width: calc(var(--d) + 100px); }
.orbit.big .tags { flex-wrap: nowrap; }
.home .orbs { flex-wrap: nowrap; gap: clamp(14px, 2.4vw, 44px); }

/* art inside non-photo orbs */
.orb-art { background: radial-gradient(circle at 50% 38%, rgba(var(--acc-rgb), 0.5), rgba(var(--acc-rgb), 0.12) 55%, #0a0f20 100%); }
.orb-art svg { stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.orb-art .a { stroke: var(--acc); }
.orb-art .af { fill: var(--acc); stroke: none; }
.orb-art .wf { fill: #fff; stroke: none; }
.orb-art .dim { opacity: 0.35; }
.orb-art text { fill: #fff; stroke: none; font-family: var(--serif); }

/* ───────── Home ───────── */
.home .view-inner { justify-content: center; gap: clamp(12px, 2.4vh, 34px); padding-bottom: 1vh; }
.home-rule { display: flex; align-items: center; gap: 16px; color: var(--faint); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; max-width: 860px; width: 100%; margin: 0 auto; }
.home-rule::before, .home-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.orbit.mid .orb-label b { font-family: var(--serif); font-weight: 400; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.15; }
.orbit.mid .orb-label small { font-size: 12px; color: var(--muted); }
.home-head { text-align: center; display: grid; gap: 12px; justify-items: center; }
.home-head h2 { font-size: clamp(28px, min(3.2vw, 5.4dvh), 48px); font-weight: 600; line-height: 1.2; letter-spacing: 0.04em; }
.home-head h2 em { font-family: var(--serif); font-weight: 400; color: var(--acc); font-size: 1.12em; }
.home-head { gap: 8px; }
.home-sub { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: clamp(17px, min(1.7vw, 3dvh), 24px); line-height: 1.25; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.tag {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px; line-height: 1.5;
  border: 1px solid rgba(var(--acc-rgb), 0.4); color: var(--acc); background: rgba(var(--acc-rgb), 0.08);
  white-space: nowrap;
}
.tag.plain { border-color: var(--line-2); color: var(--muted); background: var(--panel); }

/* ───────── Gallery ───────── */
.gallery .view-inner { justify-content: center; gap: clamp(12px, 2.6vh, 40px); }
.g-head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.g-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, min(4.3vw, 7.4dvh), 64px); line-height: 1; letter-spacing: -0.01em; }
.g-head h2 em { color: var(--acc); }
.g-sub { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: clamp(16px, 1.6vw, 21px); max-width: 34em; line-height: 1.3; }
.g-lead { color: var(--ink); font-size: 16px; max-width: 40em; }
.gallery .orbs { max-width: 780px; margin: 0 auto; gap: clamp(10px, 2vh, 30px) clamp(20px, 3.4vw, 56px); }
.g-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ───────── Slides ───────── */
.slide .view-inner { gap: clamp(12px, 2vh, 22px); justify-content: center; padding-bottom: 2vh; }
.s-head { display: grid; gap: 8px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--acc); text-transform: uppercase; }
.s-head h2 { font-size: clamp(22px, min(2.3vw, 4.2dvh), 34px); font-weight: 600; line-height: 1.3; letter-spacing: 0.005em; max-width: 34em; text-wrap: balance; }
.s-head h2 em { font-style: normal; color: var(--acc); }
.lead { color: var(--muted); font-size: 15.5px; max-width: 54em; }
.lead b, .card b, .points b { color: var(--ink); font-weight: 600; }
.cols { display: grid; gap: clamp(16px, 2.2vw, 30px); align-items: start; }
.cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cols.c-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cols.c-4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.cols.c-9-3 { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
.cols.center { align-items: center; }
.stack { display: grid; gap: 14px; align-content: start; }

.card { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 16px 18px; }
.card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.card.hot { border-color: rgba(var(--acc-rgb), 0.55); background: linear-gradient(160deg, rgba(var(--acc-rgb), 0.16), rgba(var(--acc-rgb), 0.04)); }
.card .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; display: block; margin-bottom: 6px; }
.card.hot .label { color: var(--acc); }

.points { display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.points li > i {
  font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--acc);
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(var(--acc-rgb), 0.5);
  display: grid; place-items: center; margin-top: 1px;
}
.points strong { display: block; color: var(--ink); font-weight: 600; font-size: 15.5px; }

.fig { display: grid; gap: 8px; }
.paper {
  background: #fff; border-radius: 14px; padding: 10px; overflow: hidden; cursor: zoom-in; border: 0; width: 100%;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.4s var(--ease);
}
.paper:hover { transform: translateY(-2px); }
.paper img { width: 100%; height: auto; border-radius: 6px; }
.paper.tall img { max-height: 52dvh; width: auto; margin: 0 auto; }
.fig figcaption, .cap { font-size: 12.5px; color: var(--faint); line-height: 1.5; }

.vids { display: grid; gap: 12px; }
.vids.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vids.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vids.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vid { position: relative; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.vid video { width: 100%; aspect-ratio: 3 / 2; max-height: 29dvh; object-fit: cover; }
.vid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px;
  font-size: 13px; line-height: 1.4; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}
.vid figcaption b { font-weight: 600; }
.vid .badge {
  position: absolute; top: 9px; left: 9px; font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2);
}
.vid.ours { border-color: rgba(var(--acc-rgb), 0.8); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), 0.5), 0 20px 50px -28px rgba(var(--acc-rgb), 0.9); }
.vid.ours .badge { background: var(--acc); color: #1a1206; border-color: transparent; font-weight: 600; }
.vid.bad figcaption { color: #ffd0c8; }

.stats { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.stat { display: grid; gap: 0; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, min(3.6vw, 6.2dvh), 52px); line-height: 1; color: var(--acc); letter-spacing: -0.01em; }
.stat b small { font-size: 0.45em; color: var(--muted); margin-left: 4px; font-family: var(--sans); }
.stat span { font-size: 13px; color: var(--muted); max-width: 17em; line-height: 1.5; margin-top: 6px; }

/* tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs.vertical { flex-direction: column; flex-wrap: nowrap; }
.tab {
  text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--panel);
  border-radius: 14px; padding: 11px 14px; display: grid; gap: 2px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.tab:hover { background: var(--panel-2); }
.tab[aria-selected="true"] { border-color: rgba(var(--acc-rgb), 0.7); background: linear-gradient(120deg, rgba(var(--acc-rgb), 0.2), rgba(var(--acc-rgb), 0.05)); }
.tab i { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--acc); }
.tab b { font-weight: 600; font-size: 15px; }
.tab small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.tabs.row .tab { padding: 8px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.panel { display: none; gap: 14px; align-content: start; }
.panel.is-on { display: grid; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* comparison bars */
.bars { display: grid; gap: 7px; }
.bars h4 { margin: 0 0 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.bar { display: grid; grid-template-columns: 124px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.bar .track { height: 9px; border-radius: 9px; background: var(--line); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 9px; background: rgba(255, 255, 255, 0.34); transform-origin: left; animation: grow 0.9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--ink); text-align: right; }
.bar.ours { color: var(--ink); }
.bar.ours .fill { background: var(--acc); }
.bar.ours b { color: var(--acc); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 6px 14px; text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { font-weight: 500; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.tbl tbody tr + tr td { border-top: 1px solid var(--line); }
.tbl td { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tbl td:first-child { font-family: var(--sans); font-size: 14px; color: var(--ink); }
.tbl tr.ours td { background: rgba(var(--acc-rgb), 0.09); color: var(--ink); }
.tbl td.best { color: var(--acc); font-weight: 700; }
.tbl tr.ref td, .tbl tr.ref td:first-child { color: var(--faint); }
.tbl .note { display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-family: var(--sans); vertical-align: 1px; }
.tbl .note.warn { border-color: rgba(255, 150, 130, 0.5); color: #ffb3a4; }
.tbl tr.group td { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-top: 12px; padding-bottom: 4px; }

/* TW · eras */
.eras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.keys { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.era-art { margin-top: 10px; height: 26px; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.era-art svg { height: 24px; width: auto; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card.hot .era-art { color: var(--acc); }

/* bylines */
.byline { font-size: 14px; color: var(--muted); line-height: 1.7; }
.byline mark { background: none; color: var(--acc); font-weight: 600; }
.byline sup { font-size: 0.72em; }

/* SAE */
.formula { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.3; word-spacing: 0.12em; }
.formula i { font-style: italic; }
.formula sub, .formula sup { font-size: 0.6em; font-style: normal; }
.frac { display: inline-grid; text-align: center; vertical-align: middle; margin-left: 4px; }
.frac > span { padding: 2px 8px; }
.frac > span + span { border-top: 1px solid currentColor; }
.t-s { color: #9fc0ff; }
.t-w { color: var(--acc); }
.mixer { display: grid; gap: 12px; }
.mixer-row { display: grid; grid-template-columns: 96px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.mixer-row output { font-family: var(--mono); color: var(--ink); text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); border: 2px solid #0b0f1e; cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); border: 2px solid #0b0f1e; cursor: pointer; }
input[type="range"].s::-webkit-slider-thumb { background: #9fc0ff; }
input[type="range"].s::-moz-range-thumb { background: #9fc0ff; }
.mixbar { height: 34px; border-radius: 10px; overflow: hidden; display: flex; font-size: 12.5px; font-family: var(--mono); border: 1px solid var(--line-2); }
.mixbar span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; transition: flex-basis 0.3s var(--ease); color: #10131f; font-weight: 600; }
.mixbar .a { background: #d7b8ff; }
.mixbar .b { background: #a9d2ff; }
.diagram { width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--sans); fill: var(--muted); font-size: 13px; }
.diagram .t-ink { fill: var(--ink); }
.diagram .t-acc { fill: var(--acc); font-weight: 600; }
.grid-demo { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; max-width: 720px; margin: 0 auto; }
.cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.cells i { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.14); }
.cells i.a { background: #c9a8ff; border: 0; }
.cells i.b { background: #9fcbff; border: 0; }
.grid-demo .op { font-family: var(--serif); font-size: 26px; color: var(--muted); }
.grid-cap { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.grid-cap b { color: var(--ink); display: block; font-weight: 600; }

/* LEAFLET flow */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: f; }
.flow li { position: relative; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.flow li b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.flow li::before { counter-increment: f; content: "0" counter(f); font-family: var(--mono); font-size: 11px; color: var(--acc); display: block; margin-bottom: 4px; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--faint); z-index: 1; font-size: 13px; }
.flow li.hot { border-color: rgba(var(--acc-rgb), 0.55); background: rgba(var(--acc-rgb), 0.1); }

/* input / output / features / training-signal block */
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.spec.col { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.spec > div { border: 1px solid var(--line); border-top: 2px solid rgba(var(--acc-rgb), 0.75); background: var(--panel); border-radius: 4px 4px 12px 12px; padding: 9px 13px 11px; }
.spec > div.hot { background: rgba(var(--acc-rgb), 0.1); border-color: rgba(var(--acc-rgb), 0.5); }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--acc); margin-bottom: 3px; }
.spec dd { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.spec dd b { color: var(--ink); font-weight: 600; }
.spec dd b.num { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--acc); white-space: nowrap; }
.gallery .orbs.four { max-width: 860px; }
.tbl.tight th, .tbl.tight td { padding-top: 4px; padding-bottom: 4px; }

/* early projects */
.prompt { font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--muted); white-space: pre-wrap; margin: 0; }
.prompt b { color: var(--acc); font-weight: 500; }
.strategies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.strategies .card { padding: 10px 14px; }
.strategies .card .label { margin-bottom: 2px; }
.ph { display: inline-block; }
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.voice blockquote { margin: 8px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.voice .traits { font-size: 12px; color: var(--faint); line-height: 1.5; }
.voice h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--acc); margin: 0; }
.arch { width: 100%; height: auto; max-height: 33dvh; display: block; margin: 0 auto; }
.arch text { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
.arch .t-ink { fill: var(--ink); }
.arch .t-mono { font-family: var(--mono); font-size: 12px; }
.arch .t-acc { fill: var(--acc); font-weight: 600; }
.arch .box { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.22); }
.arch .box-acc { fill: rgba(var(--acc-rgb), 0.14); stroke: rgba(var(--acc-rgb), 0.7); }
.arch .wire { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; fill: none; }
.arch .pull { stroke: var(--acc); stroke-width: 2; fill: none; }
.arch .push { stroke: #ff8f8f; stroke-width: 2; fill: none; stroke-dasharray: 5 5; }

/* ───────── Lightbox ───────── */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 3vmin;
  background: rgba(3, 5, 12, 0.88); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-width: 100%; max-height: 92dvh; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8); }

@media (min-width: 901px) and (max-height: 700px) {
  .side-full { gap: 12px; padding-top: 18px; padding-bottom: 14px; }
  .cv { gap: 6px; font-size: 13px; }
  .bio { font-size: 13.5px; line-height: 1.6; }
}
@media (min-width: 901px) and (max-height: 770px) {
  .g-sub, .orbit:not(.big) .orb-label small { display: none; }
  .points { gap: 8px; }
  .card { padding: 12px 16px; }
  .tbl th, .tbl td { padding: 4px 12px; }
  .stats { gap: 8px 22px; }
  .lead { font-size: 14.5px; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1180px) {
  :root { --side-w: 290px; }
  .side-full { width: 290px; padding: 22px 20px 18px; }
}
@media (max-width: 900px) {
  body, body[data-view="slide"] { display: block; overflow: auto; --side-w: 100%; }
  .side { height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-full { width: 100%; height: auto; padding: 16px 18px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; overflow: visible; }
  .side-top { flex: 1; min-width: 240px; }
  .portrait { width: 84px; aspect-ratio: 1; border-radius: 50%; }
  .bio, .cv { display: none; }
  .links { margin: 0; padding: 0; width: 100%; }
  body[data-view="slide"] .side-full { opacity: 1; pointer-events: auto; transform: none; }
  body[data-view="slide"] .portrait, body[data-view="slide"] .links { display: none; }
  body[data-view="slide"] .side h1 { margin-top: 2px; }
  .side-mini { display: none; }
  .stage { height: auto; min-height: 100dvh; display: block; }
  .views { position: static; }
  .view { position: static; display: none; overflow: visible; transform: none; }
  .view.is-active { display: block; }
  .navbar { position: sticky; bottom: 0; background: rgba(5, 7, 15, 0.9); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 5; }
  .hint { display: none; }
  .cols.c2, .cols.c-5-7, .cols.c-7-5, .cols.c-4-8, .cols.c-9-3 { grid-template-columns: minmax(0, 1fr); }
  .eras, .flow, .voices, .strategies, .spec { grid-template-columns: minmax(0, 1fr); }
  .flow[style] { grid-template-columns: minmax(0, 1fr) !important; }
  .orbit.mid { --d: 104px; width: calc(var(--d) + 44px); }
  .flow li:not(:last-child)::after { display: none; }
  .vids.n3, .vids.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs.vertical { flex-direction: row; flex-wrap: wrap; }
  .tabs.vertical .tab small { display: none; }
  .progress-track { display: none; }
  .nav-btn small { display: none; }
  .orbit { --d: 118px; }
  .orbit.big { --d: 150px; width: calc(var(--d) + 60px); }
  .orbit.big .orb-label b { white-space: normal; }
  .orbit.big .tags { flex-wrap: wrap; }
  .home .orbs { flex-wrap: wrap; }
  .arch { max-height: none; }
  .paper.tall img { max-height: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ═════════════════════ Touché additions ═════════════════════ */
.hl-warm { color: var(--warm); }
.hl { color: var(--acc); }

/* side panel: a glass orb in place of the portrait */
.side-orb { --d: clamp(88px, 14dvh, 112px); position: relative; flex: none; animation: bob 8s ease-in-out infinite; }
.side .side-head h1 { flex-direction: column; align-items: flex-start; gap: 2px; }
.side .side-head h1 .zh { font-size: 19px; letter-spacing: 0.06em; white-space: nowrap; }
.side h1 .en.brand { font-size: 30px; color: var(--ink); }
.cv li { grid-template-columns: 46px 1fr; }
.side-mini .mini-orb {
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0, #cfe2fb 16%, var(--acc) 44%, var(--acc-deep) 76%, #0b1c3a 100%);
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 5px rgba(255, 255, 255, 0.04), 0 0 28px rgba(var(--acc-rgb), 0.45);
}
.home-head h2 .hl-warm, .home-head h2 .hl { font-weight: 600; }
.home .orbs.four-big { gap: clamp(10px, 2vw, 36px); }
.home .orbs.four-big .orbit.big { --d: clamp(100px, min(9vw, 14.4dvh), 168px); width: calc(var(--d) + 64px); }
.home .orbs.four-big .orbit.big .orb-label b { font-size: clamp(18px, 1.45vw, 23px); }

/* orb art (abstract chapters) */
.orb-art text.big { font-size: 64px; }
.orb-art text.mid { font-size: 40px; }
.orb-art text.small { font-family: var(--mono); font-size: 15px; opacity: 0.85; font-style: normal; }

/* statements */
.statement { text-align: center; font-size: clamp(16px, min(1.6vw, 2.8dvh), 21px); line-height: 1.6; font-weight: 500; }
.statement .en { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); font-size: 0.92em; }

/* why · paradigm ladder */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.step { display: flex; flex-direction: column; gap: 4px; min-height: calc(min(150px, 20dvh) + var(--k) * min(34px, 4.4dvh)); }
.step .lv { font-family: var(--serif); font-size: clamp(34px, 5dvh, 46px); line-height: 1; color: rgba(var(--acc-rgb), calc(0.35 + var(--k) * 0.2)); }
.step h3 { margin: 4px 0 0; }
.step .what { color: var(--ink); }
.step .ex { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.step.hot .lv { color: var(--acc); text-shadow: 0 0 24px rgba(var(--acc-rgb), 0.6); }
.ladder-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; font-family: var(--mono); margin-top: -6px; }
.ladder-axis span:last-child { color: var(--acc); }

/* why · problem */
.symptoms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.symptoms .card p.quote { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.symptoms .card .cause { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--warm); }
.aside-note { border-left: 2px solid var(--warm); padding: 2px 0 2px 14px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.aside-note b { color: #ffd6b0; display: block; }
.equation { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; font-size: clamp(14px, 1.3vw, 17px); }
.equation .term { padding: 8px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); }
.equation .term small { display: block; font-size: 11.5px; color: var(--faint); }
.equation .op { font-family: var(--serif); font-size: 28px; color: var(--faint); }
.equation .term.res { border-color: rgba(var(--acc-rgb), 0.6); background: rgba(var(--acc-rgb), 0.12); color: var(--acc-pale); font-weight: 600; }

/* why · duplex lanes */
.lanes { display: grid; gap: 12px; }
.lane { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: center; }
.lane h3 { font-size: 16px; font-weight: 600; }
.lane .en { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; }
.lane ul { margin-top: 6px; display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.lane ul b { color: var(--faint); font-weight: 500; margin-right: 6px; }
.viz { border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); padding: 8px 12px; overflow: hidden; }
.viz svg { width: 100%; height: auto; max-height: 17dvh; display: block; }
.viz text { font-family: var(--sans); font-size: 12px; fill: var(--faint); }
.viz .t-h { fill: #ffd6b0; } .viz .t-w { fill: var(--acc-pale); }
.dash-flow { stroke-dasharray: 6 8; animation: dashflow 1.2s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -14; } }
.criteria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.criteria .card h3 { display: flex; align-items: baseline; gap: 8px; }
.criteria .card h3 .n { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--acc); line-height: 1; }
.verdict { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; }

/* tech · architecture stack */
.arch-stack { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 12px; }
.layers { display: grid; gap: 8px; }
.layer {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: center;
  border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 11px 16px;
}
.layer .lt b { display: block; font-size: 14.5px; color: var(--ink); }
.layer .lt small { font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.layer .lt small.own { color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.chips span small { display: block; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.layer.top .chips span { flex: 1 1 220px; }
.layer.core { border-color: rgba(var(--acc-rgb), 0.55); background: linear-gradient(90deg, rgba(var(--acc-rgb), 0.16), rgba(var(--acc-rgb), 0.04)); box-shadow: 0 24px 50px -36px rgba(var(--acc-rgb), 0.9); }
.layer.core .chips span { border-color: rgba(var(--acc-rgb), 0.35); background: rgba(var(--acc-rgb), 0.08); }
.layer.base { border-style: dashed; background: transparent; }
.layer.base .chips span { color: var(--muted); }
.wheel-rail {
  border-radius: 14px; border: 1px solid rgba(var(--warm-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--warm-rgb), 0.12), rgba(var(--warm-rgb), 0.02));
  display: grid; place-items: center;
}
.wheel-rail span { writing-mode: vertical-rl; letter-spacing: 0.4em; font-size: 13.5px; color: #ffd6b0; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* tech · figures */
.figbox { border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); padding: 14px; }
.figbox svg { width: 100%; height: auto; display: block; max-height: 46dvh; }
.figbox text { font-family: var(--sans); font-size: 11.5px; fill: var(--muted); }
.figbox .t-strong { fill: var(--ink); font-weight: 600; }
.figbox .t-acc { fill: var(--acc-pale); }
.figbox .t-warm { fill: #ffd6b0; }
.figbox .t-mono { font-family: var(--mono); font-size: 10.5px; fill: var(--faint); }
.bw { display: grid; gap: 12px; }
.bw .row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.bw .bw-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bw .bw-bar i { display: block; height: 100%; border-radius: 6px; background: var(--faint); width: var(--w); transform-origin: left; animation: grow 1.2s var(--ease) both; }
.bw .row.hi .bw-bar i { background: linear-gradient(90deg, var(--warm), #ffd6b0); }
.bw .row .v { font-family: var(--mono); font-size: 12px; text-align: right; white-space: nowrap; }
.bw .row.hi .v { color: #ffd6b0; }
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.triad .card .en { font-family: var(--serif); font-style: italic; color: var(--muted); font-weight: 400; margin-left: 4px; }
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: p; }
.pipe li { position: relative; padding: 0 12px 0 0; }
.pipe li::before {
  counter-increment: p; content: "0" counter(p);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--mono); font-size: 11px; color: var(--acc-pale);
  border: 1px solid rgba(var(--acc-rgb), 0.5); background: #08142a; position: relative; z-index: 1;
}
.pipe li::after { content: ""; position: absolute; left: 30px; right: 0; top: 15px; height: 1px; background: linear-gradient(90deg, rgba(var(--acc-rgb), 0.55), rgba(var(--acc-rgb), 0.1)); }
.pipe li:last-child::after { display: none; }
.pipe b { display: block; margin-top: 10px; font-size: 14px; color: var(--ink); }
.pipe small { display: block; font-size: 12.5px; color: var(--faint); margin-top: 3px; line-height: 1.55; }
.train { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.train .card b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--acc); line-height: 1.2; }

/* tw · demo */
.vid .live {
  position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.2);
}
.vid .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--warm); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.vids.n4.tall { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 86dvh); margin-inline: auto; }
.vids.tall .vid video { max-height: none; }
.vid figcaption small { display: block; opacity: 0.8; font-size: 12px; }
.vid.wide video { aspect-ratio: 1600 / 576; max-height: 40dvh; object-fit: contain; background: #000; }

/* api · flow table */
.cols.c-8-4-x { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; }
.cols.c-8-4-x .vid video { aspect-ratio: 3 / 4; max-height: 52dvh; }
.cols.c-8-4-x .ft-head, .cols.c-8-4-x .ft-row { grid-template-columns: 112px repeat(3, minmax(0, 1fr)); }
.flow-table { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: rgba(0, 0, 0, 0.18); }
.ft-head, .ft-row { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)); }
.ft-head > div { padding: 12px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.08em; border-bottom: 1px solid var(--line); }
.ft-head > div b { color: var(--ink); font-family: var(--sans); font-size: 14px; letter-spacing: 0; margin-left: 6px; }
.ft-row > div { padding: 14px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.ft-row:last-of-type > div { border-bottom: 0; }
.ft-row > div:first-child { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.ft-row > div:first-child i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ft-row.streamer > div:first-child i { background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.ft-row.world > div:first-child i { background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.ft-row.audience > div:first-child i { background: #e0c8ff; box-shadow: 0 0 10px #e0c8ff; }
.ft-row.world { background: rgba(var(--acc-rgb), 0.07); }
.ft-row > div + div::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.flow-cap { padding: 10px 16px; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--line); text-align: center; }
.pillar-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px;
  background: rgba(var(--acc-rgb), 0.1); border: 1px solid rgba(var(--acc-rgb), 0.3);
}
.pillar-ico svg { width: 19px; height: 19px; stroke: var(--acc-pale); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card.warm .pillar-ico { background: rgba(var(--warm-rgb), 0.1); border-color: rgba(var(--warm-rgb), 0.35); }
.card.warm .pillar-ico svg { stroke: #ffd6b0; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* api · route */
.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route .stage-pt { padding-right: clamp(12px, 2vw, 28px); position: relative; }
.route .dot { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--acc); background: var(--bg); position: relative; z-index: 1; }
.route .now .dot { background: var(--acc); box-shadow: 0 0 0 6px rgba(var(--acc-rgb), 0.18), 0 0 20px var(--acc); }
.route .stage-pt::after { content: ""; position: absolute; left: 16px; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--acc), rgba(var(--acc-rgb), 0.15)); }
.route .stage-pt:last-child::after { display: none; }
.route .when { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--acc); letter-spacing: 0.1em; }
.route h3 { font-size: 18px; margin-top: 2px; font-weight: 600; }
.route p { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.6; }
.route ul { margin-top: 6px; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.route ul li::before { content: "· "; color: var(--acc); }
.access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.access .card { display: flex; gap: 12px; align-items: flex-start; }
.access .card .n { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--acc); }

/* moat */
.moat-figs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 28px); align-items: center; }
.moat-figs figure { border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); padding: clamp(10px, 1.6vw, 20px); }
.moat-figs svg { width: 100%; height: auto; max-height: 50dvh; display: block; margin: 0 auto; }
.moat-figs figcaption { margin-top: 8px; font-size: 12.5px; color: var(--faint); text-align: center; }
.moat-figs text { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
.moat-figs .t-strong { fill: var(--ink); font-weight: 600; font-size: 14px; }
.moat-figs .t-en { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--muted); }
.moat-figs .t-mono { font-family: var(--mono); font-size: 10.5px; fill: var(--faint); }
.moat-figs .t-acc { fill: var(--acc-pale); }
.moat-figs .spin { transform-origin: 210px 210px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 0.9fr); gap: 12px; }
.road .card { display: flex; flex-direction: column; gap: 2px; }
.road .m { font-family: var(--serif); font-size: clamp(26px, 4dvh, 32px); line-height: 1.1; color: var(--acc); }
.road .goal { font-size: 11.5px; color: var(--faint); font-family: var(--mono); }
.road h3 { font-size: 16px; margin: 8px 0 0; }
.road ul { margin-top: 6px; display: grid; gap: 3px; font-size: 13.5px; color: var(--muted); }
.road ul li::before { content: "— "; color: var(--faint); }
.road .card.later { background: transparent; border-style: dashed; }
.road .card.later .m { color: var(--faint); font-size: 22px; font-style: italic; }
.road-bar { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--acc-deep), var(--acc) 78%, rgba(var(--acc-rgb), 0.12) 80%); }

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.team .card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; }
.team .orb { --d: 84px; }
.team .orb-art span { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--serif); font-style: italic; font-size: 36px; color: #fff; }
.team h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.1; margin: 0; }
.team .role { font-size: 13px; color: var(--acc); margin: 2px 0 8px; }
.team ul { display: grid; gap: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* join */
.join-list { display: grid; gap: 10px; }
.join-list li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); line-height: 1.6; }
.join-list li b { display: block; color: var(--ink); font-weight: 600; }
.join-list li::before { content: attr(data-n); font-family: var(--serif); font-size: 22px; color: var(--acc); line-height: 1.15; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill.solid { background: rgba(var(--acc-rgb), 0.2); border-color: rgba(var(--acc-rgb), 0.6); font-size: 14px; padding: 9px 18px; }

@media (min-width: 901px) and (max-height: 770px) {
  .step { min-height: calc(120px + var(--k) * 26px); }
  .ft-row > div { padding: 10px 16px; }
}
@media (max-width: 900px) {
  .side-orb { --d: 84px; }
  body[data-view="slide"] .side-orb { display: none; }
  .ladder, .pillars, .train { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .step { min-height: 0; }
  .ladder-axis { display: none; }
  .criteria, .principles, .triad, .access, .team, .moat-figs, .symptoms { grid-template-columns: minmax(0, 1fr); }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .viz { overflow-x: auto; }
  .viz svg { min-width: 540px; max-height: none; }
  .layer { grid-template-columns: 150px minmax(0, 1fr); }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .pipe li:nth-child(3)::after { display: none; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .route .stage-pt { padding: 0 0 0 30px; }
  .route .dot { position: absolute; left: 0; top: 2px; }
  .route .when { margin-top: 0; }
  .route .stage-pt::after { left: 7px; top: 22px; bottom: -24px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--acc), rgba(var(--acc-rgb), 0.15)); }
  .ft-head { display: none; }
  .ft-row { grid-template-columns: minmax(0, 1fr); }
  .ft-row > div { border-bottom: 0; padding: 6px 16px 6px 37px; }
  .ft-row > div:first-child { padding: 14px 16px 4px; }
  .ft-row > div:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .ft-row > div + div::before { display: none; }
  .ft-row > div + div::after { content: attr(data-s); font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: 8px; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road .card.later { grid-column: 1 / -1; }
  .cols.c-8-4-x { grid-template-columns: minmax(0, 1fr); }
  .cols.c-8-4-x .vid video { aspect-ratio: 3 / 2; max-height: none; }
  .home .orbs.four-big .orbit.big { --d: 130px; width: calc(var(--d) + 36px); }
  .vids.tall .vid video, .vid.wide video { max-height: none; }
}
@media (max-width: 560px) {
  .ladder, .pillars, .train, .road, .vids.n4 { grid-template-columns: minmax(0, 1fr); }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe li:nth-child(3)::after { display: block; }
  .pipe li:nth-child(2n)::after { display: none; }
  .arch-stack { grid-template-columns: minmax(0, 1fr); }
  .wheel-rail { min-height: 46px; }
  .wheel-rail span { writing-mode: horizontal-tb; letter-spacing: 0.3em; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bw .row { grid-template-columns: 6.8em minmax(0, 1fr) auto; }
  .team .card { grid-template-columns: 68px minmax(0, 1fr); }
  .team .orb { --d: 68px; }
}
