/* Shared existing component mechanics. Visual tokens live in design-system.css. */

/* ============================================================
   LinkGuard — design tokens
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fc;
  --bg-card: #ffffff;
  --line: #d9e3ef;
  --line-soft: #e8eef6;
  --fg: #10233d;
  --fg-mid: #4c5f78;
  --fg-dim: #74859a;
  --brand: #314092;
  --brand-soft: #eef0fa;
  --accent: #315fbd;
  --accent-soft: #edf2ff;
  --alert: #d94a22;
  --ok: #168a67;
  --ph-line: #b9c9dc;
  --shadow-1: 0 1px 2px rgba(16,35,61,.04), 0 8px 24px rgba(23,105,194,.08);
  --shadow-2: 0 2px 6px rgba(16,35,61,.07), 0 18px 44px rgba(23,105,194,.14);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
          "PingFang TC", "Microsoft JhengHei", Roboto, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", Georgia, "Times New Roman", serif;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1626;
    --bg-alt: #0e2036;
    --bg-card: #122842;
    --line: #29445f;
    --line-soft: #203a55;
    --fg: #f7f9fc;
    --fg-mid: #b5c5d8;
    --fg-dim: #8196ad;
    --brand: #91a3ff;
    --brand-soft: #1c2859;
    --accent: #9bb7ff;
    --accent-soft: #1d3268;
    --alert: #ff7048;
    --ok: #35c996;
    --ph-line: #33405a;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 18px 44px rgba(0,0,0,.55);
  }
}

/* ============================================================
   language switching — one language visible at a time
   ============================================================ */
html[data-lang="zh"] .l-en { display: none !important; }
html[data-lang="en"] .l-zh { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 4%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 24rem),
    var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand);
}
.sec-note { font-size: 14.5px; line-height: 1.7; color: var(--fg-dim); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- placeholder convention ---------- */
.ph {
  position: relative;
  border: 1.5px dashed var(--ph-line);
  border-radius: 10px;
  background: repeating-linear-gradient(135deg,
    transparent, transparent 9px,
    color-mix(in srgb, var(--ph-line) 14%, transparent) 9px,
    color-mix(in srgb, var(--ph-line) 14%, transparent) 10px);
  color: var(--fg-dim);
  display: grid; place-items: center; text-align: center;
  padding: 22px; gap: 6px;
  font-size: 13px;
}
.ph-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--alert);
  border: 1px solid color-mix(in srgb, var(--alert) 40%, transparent);
  border-radius: 4px; padding: 2px 7px;
}
.ph-note { font-size: 12px; color: var(--fg-dim); max-width: 46ch; line-height: 1.55; }
.ph-inline {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--alert); border: 1px dashed color-mix(in srgb, var(--alert) 45%, transparent);
  border-radius: 4px; padding: 1px 6px; white-space: nowrap;
}
/* Public presentation: omit fields and media that are not part of the final release. */
.spec:has(.ph-inline),
.contact-row:has(.ph-inline),
.road-list li:has(.ph-inline),
tr:has(.ph-inline),
.ph,
.ph-mini { display: none !important; }
.gallery { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              border-color .18s var(--ease), background .18s var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--brand); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; white-space: nowrap;
}
.brand b { color: var(--brand); font-weight: 700; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  object-fit: cover; background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 12%, transparent);
}
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px; color: var(--fg-mid); text-decoration: none;
  padding: 6px 10px; border-radius: 7px; transition: color .18s, background .18s; white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-alt); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* language switch */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg-card);
}
.lang button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 5px 11px; border-radius: 999px; color: var(--fg-dim);
  transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; place-items: center; }
.nav-toggle svg { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 68px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 7%, transparent),
    transparent 42%,
    color-mix(in srgb, var(--accent) 8%, transparent));
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5.6vw, 66px); line-height: 1.12;
  margin: 20px 0 0; max-width: 20ch;
}
.hero .lede { margin-top: 24px; max-width: 64ch; font-size: 17px; color: var(--fg-mid); }
body[data-page="home"] .hero .hero-title { grid-column: 1; grid-row: 2; margin: 0; min-width: 0; }
.hero .hero-sub { margin-top: 18px; max-width: 30ch; font-family: var(--font-zh, var(--serif)); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.35; letter-spacing: .01em; color: var(--fg); }
body[data-page="home"] .hero .hero-sub { color: var(--fg); }
.hero .hero-sub + .lede { margin-top: 18px; }
body[data-page="home"] .hero .hero-title h1.l-zh { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
body[data-page="home"] .hero .hero-title .hero-sub { font-size: clamp(18px, 1.9vw, 26px); }
@media (max-width: 900px) {
  body[data-page="home"] .hero .hero-title h1.l-zh { font-size: clamp(24px, 7.6vw, 44px); white-space: nowrap; }
  body[data-page="home"] .hero .hero-title .hero-sub { font-size: clamp(17px, 4.6vw, 24px); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- stat chips + tooltip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  position: relative;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg-mid); background: var(--bg-card); cursor: help;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chip b { color: var(--accent); font-weight: 600; }
.chip:hover, .chip:focus-visible { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 6px);
  width: max-content; max-width: 260px;
  background: var(--fg); color: var(--bg);
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; line-height: 1.5;
  padding: 9px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none; z-index: 5;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  box-shadow: var(--shadow-2);
}
.tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--fg);
}
.chip:hover .tip, .chip:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }

/* ---------- entry meta ---------- */
.entry { margin-top: 44px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.entry-row {
  display: grid; grid-template-columns: 148px 1fr; gap: 20px;
  padding: 15px 22px; border-bottom: 1px solid var(--line-soft);
  align-items: baseline; background: var(--bg-card);
}
.entry-row:last-child { border-bottom: none; }
.entry-row dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-dim); margin: 0;
}
.entry-row dd { margin: 0; font-size: 15px; }

/* ---------- sections ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--line); }
section.alt { background: var(--bg-alt); }
.sec-head { max-width: 70ch; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); margin-top: 13px; }
.sec-head .sec-note { margin-top: 15px; }
.body-text { margin-top: 22px; max-width: 66ch; font-size: 17px; color: var(--fg-mid); }
.body-text strong { color: var(--fg); font-weight: 600; }
.quote {
  margin-top: 24px; padding: 18px 22px; max-width: 66ch;
  border-left: 3px solid var(--brand); background: var(--bg-card); border-radius: 0 8px 8px 0;
}
.quote .src { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--fg-dim); }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; margin-top: 40px; }

/* ---------- facts / counters ---------- */
.facts { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-card); }
.fact { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.fact:last-child { border-bottom: none; }
.fact .n { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact .n small { font-size: 15px; color: var(--fg-dim); }
.fact .t { font-size: 13.5px; color: var(--fg-mid); line-height: 1.5; }

/* ---------- generic card ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 44px; }
.card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card);
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* ---------- expandable unit cards ---------- */
.unit { display: block; width: 100%; text-align: left; }
.unit-head {
  width: 100%; text-align: left; display: grid; grid-template-columns: 56px 1fr 26px;
  gap: 16px; align-items: center; padding: 22px 22px;
}
.unit-icon { width: 52px; height: 52px; color: var(--accent); }
.unit-code {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 2px 7px; border-radius: 5px;
}
.unit-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.unit-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unit-title .nm { font-size: 17px; font-weight: 600; }
.unit-title .one { font-size: 13.5px; color: var(--fg-mid); margin-top: 4px; }
.chev { width: 24px; height: 24px; color: var(--fg-dim); transition: transform .28s var(--ease), color .2s; }
.unit[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--brand); }
.unit-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.unit-body > div { overflow: hidden; }
.card.open .unit-body { grid-template-rows: 1fr; }
.unit-inner { padding: 18px 22px 22px; border-top: 1px solid var(--line-soft); margin-top: 2px; }
.unit-inner .desc { font-size: 14px; color: var(--fg-mid); }
.specs { margin-top: 16px; display: grid; gap: 7px; }
.spec { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; padding-bottom: 6px; border-bottom: 1px dashed var(--line-soft); }
.spec .k { color: var(--fg-dim); }
.spec .v { color: var(--fg); text-align: right; }
.unit-photo { margin-top: 16px; aspect-ratio: 16/10; }

/* photo slot: shows the image, falls back to the placeholder if the file is missing */
.shot { margin-top: 16px; position: relative; }
.shot img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); display: block;
  background: var(--bg-alt);
}
.shot .ph { display: none; margin-top: 0; aspect-ratio: 16/10; }
.shot.missing img { display: none; }
.shot.missing .ph { display: grid; }
.shot figcaption {
  margin-top: 8px; font-size: 11.5px; color: var(--fg-dim);
  font-family: var(--mono); letter-spacing: .06em;
}
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  padding: 3px 7px; border-radius: 4px;
  background: var(--bg-alt); color: var(--fg-dim); border: 1px solid var(--line-soft);
}

/* ---------- system communication architecture ---------- */
.arch-wrap {
  margin-top: 46px; padding: 28px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card);
  box-shadow: var(--shadow-1);
}
.arch-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 18px;
}
.arch-head h3 { font-family: var(--serif); font-size: clamp(25px, 3vw, 36px); font-weight: 400; }
.arch-head p { max-width: 540px; color: var(--fg-mid); font-size: 14px; }
.arch-sim {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px; padding: 0 16px; border: 1px solid var(--brand);
  border-radius: 999px; color: #fff; background: var(--brand); cursor: pointer;
  font: 600 12px var(--sans); letter-spacing: .04em;
  transition: transform .2s var(--ease), opacity .2s;
}
.arch-sim:hover { transform: translateY(-2px); }
.arch-sim:disabled { cursor: wait; opacity: .72; transform: none; }
.arch-sim svg { width: 16px; height: 16px; }
.arch-sim .running-label, .arch-sim.running .idle-label { display: none; }
.arch-sim.running .running-label { display: inline; }
.arch-scroll { overflow: visible; padding: 6px 2px 10px; }
.arch-flow {
  width: 100%; display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(68px, .86fr) minmax(100px, 1fr) minmax(68px, .86fr) minmax(100px, 1fr) minmax(68px, .86fr) minmax(100px, 1fr) minmax(68px, .86fr) minmax(100px, 1fr);
  align-items: center; gap: 9px;
}
.arch-node {
  position: relative; min-width: 0; min-height: 112px; display: grid; place-items: center;
  align-content: center; gap: 5px; padding: 12px 7px; text-align: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-alt);
  transition: border-color .25s, box-shadow .25s, transform .25s, background .25s;
}
.arch-node svg { width: 27px; height: 27px; color: var(--fg-mid); transition: color .25s; }
.arch-node strong { font-size: clamp(11px, 1.15vw, 14px); font-weight: 650; white-space: nowrap; }
.arch-node small { color: var(--fg-dim); font: 9px var(--mono); letter-spacing: .03em; }
.arch-node.is-active {
  border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--bg-card));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
  transform: translateY(-4px);
}
.arch-node.is-active svg { color: var(--brand); }
.arch-link {
  --arch-color: var(--brand); position: relative; height: 76px;
  display: flex; align-items: flex-start; justify-content: center; min-width: 0;
  color: var(--arch-color);
}
.arch-link::before {
  content: ""; position: absolute; left: 0; right: 7px; top: 50%;
  height: 3px; border-radius: 999px; background: var(--arch-color); opacity: .62;
}
.arch-link::after {
  content: ""; position: absolute; right: 0; top: calc(50% - 5px);
  border-left: 9px solid var(--arch-color); border-top: 6px solid transparent;
  border-bottom: 6px solid transparent; opacity: .75;
}
.arch-link.search { --arch-color: #1f78d1; }
.arch-link.team-band { --arch-color: #5266c3; }
.arch-link.hq { --arch-color: #173e72; }
.arch-link.ble { --arch-color: #00a8b5; }
.arch-link-label {
  position: absolute; z-index: 2; top: 3px; left: 50%; transform: translateX(-50%);
  display: block; width: max-content; max-width: calc(100% + 18px); padding: 3px 6px;
  border-radius: 5px; background: var(--bg-card); white-space: normal; text-align: center;
  font: 700 clamp(7px, .62vw, 9.5px)/1.25 var(--mono); letter-spacing: 0;
}
.arch-packet {
  position: absolute; z-index: 3; left: 0; top: calc(50% - 6px);
  width: 12px; height: 12px; border: 3px solid var(--bg-card);
  border-radius: 50%; background: var(--alert); opacity: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--alert) 18%, transparent);
}
.arch-link.is-active::before { opacity: 1; }
.arch-link.is-active .arch-packet { animation: arch-travel .72s var(--ease) forwards; }
@keyframes arch-travel {
  0% { left: 0; opacity: 0; transform: scale(.6); }
  12% { opacity: 1; transform: scale(1); }
  88% { opacity: 1; }
  100% { left: calc(100% - 12px); opacity: 0; transform: scale(.7); }
}
.arch-ble-note {
  margin-top: 8px; padding: 10px 16px; display: flex; align-items: center;
  justify-content: center; gap: 10px; border: 1px dashed color-mix(in srgb, #00a8b5 45%, var(--line));
  border-radius: 10px; color: var(--fg-mid); background: color-mix(in srgb, #00a8b5 4%, var(--bg-card));
  font-size: 12.5px; text-align: center;
}
.arch-ble-note b { color: #008c98; font-family: var(--mono); }
.arch-legend {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.arch-key {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 0; color: var(--fg-mid); font-size: 11px; white-space: nowrap;
}
.arch-key i { width: 22px; height: 3px; border-radius: 99px; background: var(--key); }
.arch-key.search { --key: #1f78d1; }
.arch-key.team-band { --key: #5266c3; }
.arch-key.hq { --key: #173e72; }
.arch-key.ble { --key: #00a8b5; }
@media (max-width: 1120px) {
  .arch-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .arch-wrap { padding: 22px 16px; margin-top: 38px; }
  .arch-head { align-items: flex-start; flex-direction: column; }
  .arch-sim { width: 100%; justify-content: center; }
  .arch-flow {
    grid-template-columns: minmax(0, 1fr); gap: 0;
    max-width: 280px; margin: 0 auto;
  }
  .arch-node { width: 100%; min-height: 108px; }
  .arch-node strong { font-size: 14px; }
  .arch-link {
    width: 100%; height: 62px; align-items: center; justify-content: flex-start;
  }
  .arch-link::before {
    left: 50%; right: auto; top: 4px; bottom: 7px;
    width: 3px; height: auto;
  }
  .arch-link::after {
    right: auto; left: calc(50% - 5px); top: auto; bottom: 0;
    border-top: 9px solid var(--arch-color); border-left: 6px solid transparent;
    border-right: 6px solid transparent; border-bottom: 0;
  }
  .arch-link-label {
    top: 50%; left: calc(50% + 15px); transform: translateY(-50%);
    width: max-content; max-width: 120px; font-size: 9px; text-align: left;
  }
  .arch-packet { left: calc(50% - 6px); top: 3px; }
  .arch-link.is-active .arch-packet { animation-name: arch-travel-vertical; }
  .arch-legend { grid-template-columns: 1fr; justify-items: start; }
  .arch-key { justify-content: flex-start; white-space: normal; }
}
@keyframes arch-travel-vertical {
  0% { top: 3px; opacity: 0; transform: scale(.6); }
  12% { opacity: 1; transform: scale(1); }
  88% { opacity: 1; }
  100% { top: calc(100% - 12px); opacity: 0; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  .arch-link.is-active .arch-packet { animation-duration: .01ms; }
}

/* ---------- flow diagram ---------- */
.flow-wrap { margin-top: 40px; }
.diagram-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: color-mix(in srgb, var(--bg-alt) 72%, var(--bg-card));
}
.diagram { min-width: 780px; width: 100%; height: auto; display: block; }
.dg-box { fill: var(--bg-card); stroke: var(--line); stroke-width: 1.2; transition: stroke .25s var(--ease), fill .25s var(--ease); }
.dg-label { fill: var(--fg); font-family: var(--sans); font-size: 13px; font-weight: 500; }
.dg-sub { fill: var(--fg-dim); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; }
.dg-link { fill: none; stroke: var(--line); stroke-width: 1.6; transition: stroke .25s var(--ease), stroke-width .25s var(--ease); }
.dg-link-label { fill: var(--fg-dim); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; transition: fill .25s; }
.dg-packet { fill: var(--accent); opacity: .3; transition: opacity .3s var(--ease); }
.dg-seg.is-active .dg-link { stroke: var(--accent); stroke-width: 2.6; }
.dg-seg.is-active .dg-link-label { fill: var(--accent); }
.dg-seg.is-active .dg-packet { opacity: 1; }
.dg-node.is-active .dg-box { stroke: var(--accent); fill: var(--accent-soft); }
@media (max-width: 700px) {
  .flow-wrap { margin-top: 28px; }
  .diagram-scroll { overflow: hidden; padding: 8px 4px; border-radius: 12px; }
  .diagram { min-width: 0; width: 100%; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.step {
  text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  background: var(--bg-card); cursor: pointer;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease), background .22s;
}
.step:hover, .step.is-active { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.step.is-active { background: color-mix(in srgb, var(--brand) 5%, var(--bg-card)); }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--alert); }
.step h3 { margin-top: 11px; font-size: 20px; font-family: var(--serif); font-weight: 400; }
.step .layer { margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--fg-dim); text-transform: uppercase; }
.step .desc { margin-top: 13px; font-size: 14px; color: var(--fg-mid); }

/* ---------- charts ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 36px; }
.chart-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); padding: 24px; }
.chart-card h3 { font-size: 16px; }
.chart-card .unit-note { margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--fg-dim); }
.bars { margin-top: 24px; display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 118px 1fr 62px; gap: 12px; align-items: center; }
.bar-row .lbl { font-size: 12.5px; color: var(--fg-mid); }
.bar-track {
  height: 20px; border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 7%, var(--bg-alt));
  overflow: hidden; border: 1px solid var(--line-soft);
}
.bar-fill {
  display: block; height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 58%, var(--accent)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  transition: width 1.1s var(--ease);
}
.bar-row .val { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- comparison table ---------- */
.table-scroll { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 14px; vertical-align: top; }
thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); background: var(--bg-alt); }
thead th.hl { color: var(--accent); }
tbody th { font-weight: 500; color: var(--fg); width: 190px; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
td.hl { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--fg); }
tbody tr:hover td, tbody tr:hover th { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.mark { font-family: var(--mono); font-size: 13px; }
.mark.yes { color: var(--ok); }
.mark.no { color: var(--alert); }

/* ---------- timeline (story) ---------- */
.timeline { margin-top: 40px; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 148px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
.tl-item:first-child { border-top: none; }
.tl-when { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); padding-top: 5px; }
.tl-body h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.tl-body .desc { margin-top: 12px; font-size: 15px; color: var(--fg-mid); max-width: 62ch; }
.tl-body .ph { margin-top: 14px; max-width: 62ch; }
.tl-body { min-width: 0; }
.place-profile {
  margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.place-card {
  min-width: 0; padding: 17px; border: 1px solid var(--line-soft);
  border-radius: 12px; background: var(--bg-card);
}
.place-card .place-kicker {
  color: var(--accent); font: 700 10px var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.place-card h4 { margin-top: 8px; font: 500 18px var(--serif); }
.place-card p { margin-top: 8px; color: var(--fg-mid); font-size: 12.5px; line-height: 1.7; }
@media (max-width: 760px) {
  .place-profile { grid-template-columns: 1fr; }
}
.tl-body > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 18px; margin: -16px -18px 0;
  border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; list-style: none;
  transition: color .2s, background .2s, border-color .2s;
}
.tl-body > summary::-webkit-details-marker { display: none; }
.tl-body > summary:hover {
  color: var(--brand); background: var(--bg-card);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.tl-body > summary::after {
  content: "+"; flex: none; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--brand); background: var(--brand-soft);
  font-family: var(--mono); font-size: 18px; line-height: 1;
  transition: transform .25s var(--ease), background .2s;
}
.tl-body[open] > summary::after { content: "−"; transform: rotate(180deg); }
.tl-body[open] > summary {
  color: var(--brand); background: var(--bg-card); border-color: var(--line);
}
.tl-content { padding-top: 8px; animation: tl-open .28s var(--ease); }
@keyframes tl-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- gallery ---------- */
.gallery { margin-top: 36px; }
.slides-viewport { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.slides { display: flex; transition: transform .5s var(--ease); }
.slide { min-width: 100%; padding: 20px; }
.slide .frame { aspect-ratio: 16/9; }
.slide .cap { margin-top: 14px; }
.slide .cap .t { font-size: 15px; font-weight: 600; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.dot.on { background: var(--brand); width: 22px; border-radius: 999px; }
.gallery-nav { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
  display: grid; place-items: center; background: var(--bg-card);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.icon-btn:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- responsive photo wall ---------- */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 112px;
  grid-auto-flow: dense;
  gap: 12px;
  margin-top: 38px;
}
.wall-photo {
  position: relative;
  min-width: 0;
  grid-row: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  cursor: zoom-in;
  box-shadow: var(--shadow-1);
}
.wall-photo.wall-wide { grid-column: span 2; }
.wall-photo.wall-feature {
  grid-column: span 2;
  grid-row: span 4;
}
.wall-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s var(--ease), filter .3s var(--ease);
}
.wall-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(3, 19, 39, .52));
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.wall-photo .wall-photo-no {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font: 700 10px var(--mono);
  letter-spacing: .12em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.wall-photo:hover img,
.wall-photo:focus-visible img { transform: scale(1.035); }
.wall-photo:hover::after,
.wall-photo:focus-visible::after,
.wall-photo:hover .wall-photo-no,
.wall-photo:focus-visible .wall-photo-no { opacity: 1; }
.wall-photo:hover .wall-photo-no,
.wall-photo:focus-visible .wall-photo-no { transform: none; }
.wall-photo:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent);
  outline-offset: 3px;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 12, 25, .9);
  backdrop-filter: blur(12px);
}
.photo-lightbox.open { display: flex; animation: fade .2s var(--ease); }
.photo-lightbox-figure {
  position: relative;
  width: min(1180px, 100%);
  margin: 0;
}
.photo-lightbox img {
  width: 100%;
  max-height: calc(100vh - 96px);
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #07111f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}
.photo-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 19, 39, .82);
  font-size: 24px;
  line-height: 1;
}
body.photo-lightbox-open { overflow: hidden; }
@media (max-width: 900px) {
  .photo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 104px;
  }
}
@media (max-width: 600px) {
  .photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 118px;
    gap: 8px;
    margin-top: 28px;
  }
  .wall-photo { grid-row: span 1; border-radius: 9px; }
  .wall-photo.wall-wide { grid-column: span 2; }
  .wall-photo.wall-feature {
    grid-column: span 2;
    grid-row: span 2;
  }
  .photo-lightbox { padding: 14px; }
  .photo-lightbox-close { top: 10px; right: 10px; }
}

/* Photo wall in single-photo carousel mode */
.photo-wall {
  position: relative;
  display: flex;
  grid-template-columns: none;
  grid-auto-rows: auto;
  grid-auto-flow: initial;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-2);
  scroll-behavior: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.photo-wall::-webkit-scrollbar { display: none; }
.photo-wall .wall-photo,
.photo-wall .wall-photo.wall-wide,
.photo-wall .wall-photo.wall-feature {
  flex: 0 0 calc((100% - 36px) / 4);
  min-width: 0;
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color .2s;
}
.photo-wall .wall-photo:hover { border-color: var(--brand); }
.photo-wall .wall-photo img { object-fit: cover; background: #07111f; }
.photo-wall .wall-photo:hover img,
.photo-wall .wall-photo:focus-visible img { transform: none; }
.photo-wall .wall-photo::after { opacity: 1; }
.photo-wall .wall-photo .wall-photo-no {
  opacity: 1;
  transform: none;
}
.photo-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.photo-carousel-count {
  color: var(--fg-dim);
  font: 700 11px var(--mono);
  letter-spacing: .12em;
}
.photo-carousel-nav { display: flex; gap: 8px; }
@media (max-width: 600px) {
  .photo-wall .wall-photo,
  .photo-wall .wall-photo.wall-wide,
  .photo-wall .wall-photo.wall-feature {
    flex-basis: 86%;
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .photo-wall .wall-photo,
  .photo-wall .wall-photo.wall-wide,
  .photo-wall .wall-photo.wall-feature {
    flex-basis: calc((100% - 12px) / 2);
  }
}

/* ---------- inline video ---------- */
.video-player {
  margin-top: 32px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-card); padding: 20px;
}
.video-frame {
  aspect-ratio: 16/9; position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #05080f;
}
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; display: block; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,.05) 40%, rgba(5,8,15,.4));
  transition: background .25s var(--ease);
}
.video-facade:hover::after { background: linear-gradient(180deg, rgba(5,8,15,.15) 30%, rgba(5,8,15,.5)); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.inline-dl { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; z-index: 2;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 45%, transparent);
  transition: transform .22s var(--ease);
}
.video-facade:hover .play { transform: scale(1.09); }
.play svg { width: 24px; height: 24px; margin-left: 3px; }

/* ---------- accordion (deep dive) ---------- */
.acc { margin-top: 36px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-card); }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-item:last-child { border-bottom: none; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; text-align: left; transition: background .2s; }
.acc-head:hover { background: var(--bg-alt); }
.acc-head .t { font-size: 16px; font-weight: 600; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { padding: 0 22px 22px; }
.fw-role-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 18px;
}
.fw-role {
  min-width: 0; padding: 18px; border: 1px solid var(--line-soft);
  border-radius: 10px; background: var(--bg-alt);
}
.fw-role-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.fw-role-head h4 { font-size: 16px; font-weight: 650; }
.fw-file {
  padding: 4px 8px; border-radius: 999px; background: var(--bg-card);
  color: var(--fg-dim); font: 10px var(--mono); white-space: nowrap;
}
.fw-role ul {
  margin: 0; padding-left: 18px; color: var(--fg-mid);
  font-size: 13px; line-height: 1.75;
}
.fw-role li + li { margin-top: 5px; }
.fw-flow-list { display: grid; gap: 10px; margin-top: 20px; }
.fw-flow {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  padding: 12px; border: 1px solid var(--line-soft);
  border-radius: 10px; background: var(--bg-card);
}
.fw-flow-label {
  flex: 0 0 auto; min-width: 82px; color: var(--fg);
  font-size: 12px; font-weight: 650;
}
.fw-step {
  min-width: 0; padding: 6px 9px; border-radius: 7px;
  color: var(--fg-mid); background: var(--bg-alt); font-size: 11px;
  line-height: 1.35; text-align: center;
}
.fw-step.radio { color: var(--brand); background: var(--brand-soft); font-weight: 650; }
.fw-step.alert { color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.fw-arrow { flex: 0 0 auto; color: var(--fg-dim); font-size: 13px; }
@media (max-width: 900px) {
  .fw-role-grid { grid-template-columns: 1fr; }
  .fw-flow { flex-wrap: wrap; }
  .fw-flow-label { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .fw-role { padding: 15px; }
  .fw-flow {
    display: grid; grid-template-columns: 1fr; justify-items: stretch;
    padding: 14px;
  }
  .fw-flow-label { min-width: 0; }
  .fw-step { width: 100%; }
  .fw-arrow { transform: rotate(90deg); justify-self: center; }
}
.safety-block {
  margin-top: 64px; padding-top: 42px; border-top: 1px solid var(--line);
}
.safety-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  align-items: end; gap: 32px;
}
.safety-head h3 {
  margin-top: 10px; font-family: var(--serif); font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; line-height: 1.16;
}
.safety-head p { color: var(--fg-mid); font-size: 14px; }
.safety-status {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.safety-status > span {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg-mid); background: var(--bg-card);
  font: 10px var(--mono); letter-spacing: .07em;
}
.safety-block .acc { margin-top: 26px; }
.safety-block .acc-head .t { display: flex; align-items: center; gap: 12px; }
.safety-num {
  width: 26px; height: 26px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; color: var(--brand); background: var(--brand-soft);
  font: 700 10px var(--mono);
}
.safety-note {
  margin-top: 13px; padding: 12px 14px; border-left: 3px solid var(--brand);
  color: var(--fg-mid); background: var(--bg-alt); font-size: 13px;
}
@media (max-width: 760px) {
  .safety-block { margin-top: 48px; padding-top: 32px; }
  .safety-head { grid-template-columns: 1fr; gap: 14px; }
  .safety-block .acc-head { padding: 17px 16px; }
  .safety-block .acc-inner { padding: 0 16px 18px; }
}
.code {
  font-family: var(--mono); font-size: 12px; line-height: 1.8;
  background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 16px 18px; overflow-x: auto; color: var(--fg-mid); margin-top: 14px;
}
.code .c { color: var(--fg-dim); }
.code .k { color: var(--accent); }

/* ---------- roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.road-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); padding: 26px 24px; transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease); }
.road-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.road-card .n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--brand); }
.road-card h3 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 21px; }
.road-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.road-list li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14px; color: var(--fg-mid); }
.road-list .b { color: var(--brand); font-family: var(--mono); font-size: 12px; line-height: 1.6; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.member { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease); }
.member:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.member-toggle { width: 100%; display: block; }
.member-head { width: 100%; text-align: center; padding: 26px 22px 20px; display: grid; justify-items: center; gap: 10px; }
.avatar {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 24px; color: var(--brand);
  background: var(--brand-soft); border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent);
  position: relative; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .ph-mini { position: absolute; bottom: 3px; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: var(--alert); }
.member .nm { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }
.member .rl { font-size: 12.5px; color: var(--fg-dim); }
.member .edu {
  max-width: 220px; color: var(--fg-dim); font-size: 11.5px;
  line-height: 1.55; text-wrap: balance;
}
.member-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.member-body > div { overflow: hidden; }
.member.open .member-body { grid-template-rows: 1fr; }
.member-inner { padding: 0 22px 22px; text-align: left; }
.member-inner .ph { text-align: left; place-items: start; padding: 14px 16px; }
.member-inner .bio { font-size: 13.5px; line-height: 1.65; color: var(--fg-mid); }
.member-inner .bio + .ph { margin-top: 14px; }
.member-inner .member-quote {
  margin-top: 13px; padding: 11px 13px; border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; background: var(--bg-alt); color: var(--fg);
}
.member .rl { font-size: 12.5px; color: var(--brand); font-weight: 500; }
.socials { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.social {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--fg-dim);
  transition: color .2s, border-color .2s, transform .2s;
}
.social:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social svg { width: 15px; height: 15px; }
.social img { width: 19px; height: 19px; border-radius: 5px; object-fit: cover; }
.social[aria-disabled="true"] { opacity: .38; pointer-events: none; }
.advisors {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 18px; margin-top: 22px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card);
}
.advisors .label {
  color: var(--brand); font: 700 10px var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
}
.advisors .names {
  color: var(--fg); font-family: var(--serif); font-size: 18px;
}
@media (max-width: 560px) {
  .advisors { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
}
.copy-toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 150; max-width: calc(100vw - 32px); padding: 10px 16px;
  border-radius: 999px; color: #fff; background: var(--fg);
  box-shadow: var(--shadow-2); font-size: 13px; line-height: 1.4;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: color-mix(in srgb, #05080f 62%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal.open { display: flex; animation: fade .22s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal-panel {
  width: min(100%, 720px); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-2); padding: 28px;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.modal-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex: none; transition: border-color .2s, color .2s; }
.modal-close:hover { border-color: var(--alert); color: var(--alert); }
.modal-close svg { width: 15px; height: 15px; }
.modal-body { margin-top: 22px; }
.contact-list { display: grid; gap: 12px; margin-top: 20px; }
.contact-row { display: grid; grid-template-columns: 118px 1fr; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); }
.contact-row .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), border-color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top svg { width: 17px; height: 17px; }
.net-status {
  position: fixed; z-index: 70; left: 50%; bottom: 20px;
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100% - 32px); padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); background: var(--bg-card); box-shadow: var(--shadow-1);
  font-size: 12px; opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px); transition: opacity .25s, transform .25s;
}
.net-status.show { opacity: 1; transform: translate(-50%, 0); }
.net-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--alert); }
.net-status.online::before { background: var(--ok); }

/* ---------- footer ---------- */
footer { padding: 56px 0 44px; border-bottom: none; }
.credits { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: 44px; padding-bottom: 32px; }
.credit-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.credit-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.credit-list li {
  font-size: 13.5px; line-height: 1.5; color: var(--fg-mid);
  display: grid; grid-template-columns: 14px 1fr; gap: 9px;
}
.credit-list .b { color: var(--brand); font-family: var(--mono); font-size: 11px; line-height: 1.7; }
.credit-list .r { color: var(--fg); }
.credit-note {
  padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--fg-dim); line-height: 1.6;
}
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--fg-dim);
  padding-top: 20px; border-top: 1px solid var(--line-soft); }
.credit-note + .foot { border-top: none; padding-top: 16px; }
.foot .slogan { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 6px 8px; font-size: 12.5px; }
}
@media (max-width: 1020px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px 24px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 14px; }
  .nav-toggle { display: grid; }
  .tl-item { grid-template-columns: 1fr; gap: 14px; }
  .tl-when { padding: 0 4px; }
  .tl-body > summary {
    margin: 0;
    padding: 16px 18px;
  }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .entry-row { grid-template-columns: 1fr; gap: 4px; }
  .unit-head { grid-template-columns: 44px 1fr 22px; gap: 12px; padding: 18px; }
  .unit-icon { width: 40px; height: 40px; }
  .bar-row { grid-template-columns: 92px 1fr 54px; gap: 8px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .modal-panel { padding: 22px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .nav-right .btn-label { display: none; }
  .credits { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .credits { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   device-aware layouts — JS assigns mobile / tablet / desktop
   ============================================================ */
html[data-device="tablet"] .nav-links,
html[data-device="mobile"] .nav-links {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; flex-wrap: nowrap; gap: 0;
  max-height: calc(100dvh - 66px); overflow-y: auto;
  padding: 10px max(18px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1);
  display: none;
}
html[data-device="tablet"] .nav-links.open,
html[data-device="mobile"] .nav-links.open { display: flex; }
html[data-device="tablet"] .nav-links a,
html[data-device="mobile"] .nav-links a {
  min-height: 44px; display: flex; align-items: center;
  padding: 10px 12px; font-size: 14px;
}
html[data-device="tablet"] .nav-toggle,
html[data-device="mobile"] .nav-toggle { display: grid; min-width: 42px; min-height: 42px; }

html[data-device="tablet"] .split { grid-template-columns: 1fr; gap: 36px; }
html[data-device="tablet"] .steps { grid-template-columns: 1fr; }
html[data-device="tablet"] .cards,
html[data-device="tablet"] .chart-grid,
html[data-device="tablet"] .road,
html[data-device="tablet"] .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-device="tablet"] .tl-item { grid-template-columns: 1fr; gap: 14px; }

html[data-device="mobile"] {
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
html[data-device="mobile"] body { font-size: 15px; }
html[data-device="mobile"] .wrap { width: min(100% - 28px, var(--maxw)); }
html[data-device="mobile"] section { padding: 52px 0; }
html[data-device="mobile"] .nav-inner { gap: 8px; padding: 10px 0; }
html[data-device="mobile"] .brand { gap: 7px; font-size: 11px; letter-spacing: .09em; }
html[data-device="mobile"] .brand-logo { width: 34px; height: 34px; border-radius: 8px; }
html[data-device="mobile"] .nav-right { gap: 5px; }
html[data-device="mobile"] .lang button { min-height: 36px; padding: 5px 8px; font-size: 10px; }
html[data-device="mobile"] .nav-right .btn {
  width: 40px; min-width: 40px; min-height: 40px; padding: 0; justify-content: center;
}
html[data-device="mobile"] .nav-right .btn-label { display: none; }
html[data-device="mobile"] .hero {
  padding: 48px 0 42px;
  padding-top: max(48px, calc(32px + env(safe-area-inset-top)));
}
html[data-device="mobile"] .hero h1 { font-size: clamp(33px, 11vw, 48px); margin-top: 15px; }
html[data-device="mobile"] .hero .lede { margin-top: 18px; font-size: 15px; line-height: 1.75; }
html[data-device="mobile"] .cta-row { margin-top: 24px; }
html[data-device="mobile"] .cta-row .btn { flex: 1 1 100%; min-height: 46px; justify-content: center; }
html[data-device="mobile"] .chips { margin-top: 26px; gap: 8px; }
html[data-device="mobile"] .chip { max-width: 100%; }
html[data-device="mobile"] .sec-head h2 { font-size: clamp(29px, 9vw, 42px); }
html[data-device="mobile"] .sec-note { font-size: 13.5px; }
html[data-device="mobile"] .split,
html[data-device="mobile"] .cards,
html[data-device="mobile"] .steps,
html[data-device="mobile"] .chart-grid,
html[data-device="mobile"] .road,
html[data-device="mobile"] .team,
html[data-device="mobile"] .credits { grid-template-columns: minmax(0, 1fr); }
html[data-device="mobile"] .cards,
html[data-device="mobile"] .chart-grid,
html[data-device="mobile"] .road,
html[data-device="mobile"] .team { gap: 14px; margin-top: 28px; }
html[data-device="mobile"] .card,
html[data-device="mobile"] .chart-card,
html[data-device="mobile"] .road-card,
html[data-device="mobile"] .member { min-width: 0; }
html[data-device="mobile"] .unit-head { grid-template-columns: 40px minmax(0, 1fr) 20px; padding: 16px 14px; gap: 10px; }
html[data-device="mobile"] .unit-icon { width: 38px; height: 38px; }
html[data-device="mobile"] .unit-title .nm { font-size: 18px; }
html[data-device="mobile"] .unit-inner { padding: 0 14px 18px; }
html[data-device="mobile"] .fact { grid-template-columns: 74px minmax(0, 1fr); padding: 16px 14px; gap: 12px; }
html[data-device="mobile"] .chart-card { padding: 18px 14px; }
html[data-device="mobile"] .bar-row { grid-template-columns: 78px minmax(0, 1fr) 49px; gap: 7px; }
html[data-device="mobile"] .bar-row .lbl,
html[data-device="mobile"] .bar-row .val { font-size: 10.5px; }
html[data-device="mobile"] .table-scroll {
  width: 100%; max-width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
html[data-device="mobile"] table { min-width: 650px; }
html[data-device="mobile"] th,
html[data-device="mobile"] td { padding: 12px 13px; font-size: 12.5px; }
html[data-device="mobile"] .code { max-width: 100%; overflow-x: auto; font-size: 10.5px; }
html[data-device="mobile"] .acc { margin-top: 24px; }
html[data-device="mobile"] .acc-head { min-height: 58px; padding: 16px 14px; }
html[data-device="mobile"] .acc-head .t { min-width: 0; font-size: 14px; }
html[data-device="mobile"] .acc-inner { padding: 0 14px 18px; }
html[data-device="mobile"] .body-text { overflow-wrap: anywhere; }
html[data-device="mobile"] .arch-wrap { padding: 20px 14px; }
html[data-device="mobile"] .arch-head h3 { font-size: 28px; }
html[data-device="mobile"] .arch-ble-note { align-items: flex-start; padding: 10px 12px; text-align: left; }
html[data-device="mobile"] .video-player,
html[data-device="mobile"] .video-frame { border-radius: 10px; }
html[data-device="mobile"] .modal { align-items: flex-end; padding: 0; }
html[data-device="mobile"] .modal-panel {
  width: 100%; max-height: 92dvh; padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
}
html[data-device="mobile"] .contact-row { grid-template-columns: 1fr; gap: 4px; }
html[data-device="mobile"] .to-top {
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: 42px; height: 42px;
}
html[data-device="mobile"] .net-status {
  bottom: max(14px, env(safe-area-inset-bottom)); font-size: 11.5px;
}
html[data-device="mobile"] footer {
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover, .chip:hover, .step:hover, .social:hover, .arch-sim:hover {
    transform: none;
  }
  button, a { -webkit-tap-highlight-color: color-mix(in srgb, var(--brand) 18%, transparent); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
html.no-motion .reveal { opacity: 1; transform: none; }
html.no-motion .slides { transition: none; }
