/* EMOON 医梦AI v5 · design system */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --canvas: #ffffff;
  --canvas-2: #f5f7fb;
  --surface: #ffffff;
  --ink: #0d1330;
  --body: #39415a;
  --muted: #5d6678;
  --faint: #79839a;
  --line: #e4e9f1;
  --line-strong: #c9d2e0;
  --brand: #2b1f99;
  --brand-soft: #eceafc;
  --cyan-ink: #0a9aa0;
  --btn-bg: #2b1f99;
  --btn-ink: #ffffff;
  --band: #070c1e;
  --band-2: #0c1328;
  --band-ink: #f2f5fc;
  --band-body: #bcc5da;
  --band-muted: #8d97b0;
  --band-line: rgba(255, 255, 255, 0.14);
  --focus: #0a9aa0;
  --r-card: 22px;
  --r-ctl: 12px;
  --r-pill: 999px;
  --shadow-1: 0 32px 80px -32px rgba(13, 19, 48, 0.35);
  --shadow-2: 0 12px 32px -16px rgba(13, 19, 48, 0.22);
  --section-y: clamp(88px, 10.5vw, 148px);
  --container: 1160px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "New York", ui-serif, Georgia, "Songti SC", serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #070b1a;
  --canvas-2: #0b1122;
  --surface: #0e1528;
  --ink: #eef2fb;
  --body: #c0c8da;
  --muted: #9aa4ba;
  --faint: #7d8799;
  --line: #1c2740;
  --line-strong: #2d3a58;
  --brand: #a5a1ff;
  --brand-soft: #171a3a;
  --cyan-ink: #3ad4d8;
  --btn-bg: #a5a1ff;
  --btn-ink: #10143a;
  --focus: #3ad4d8;
  --shadow-1: 0 32px 80px -32px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 12px 32px -16px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .band { background: color-mix(in srgb, #0c1428 90%, transparent); border-block: 1px solid var(--line); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:not(:has(body.snap-page)) { scroll-padding-top: calc(var(--header-h) + 20px); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; max-width: 68ch; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
::selection { background: rgba(58, 212, 216, 0.28); }

.display {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  font-weight: 600;
}
.h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.16; letter-spacing: -0.01em; }
.h1--xl { font-size: clamp(2.25rem, 4.4vw, 3.9rem); line-height: 1.12; letter-spacing: -0.012em; }
.h2 { font-size: clamp(1.55rem, 2.6vw, 2.3rem); line-height: 1.24; letter-spacing: -0.008em; }
.h2--xl { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.16; letter-spacing: -0.01em; }
.h2--xxl { font-size: clamp(2.5rem, 4.8vw, 4.25rem); line-height: 1.1; letter-spacing: -0.012em; }
.lead--lg { font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.7; }
.h3 { font-size: 1.25rem; line-height: 1.4; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.75; color: var(--muted); }
.small { font-size: 0.9375rem; }
.caption { font-size: 0.8125rem; line-height: 1.6; color: var(--faint); }
.serif-en { font-family: var(--font-serif); font-style: italic; letter-spacing: 0.01em; }
.num { font-variant-numeric: tabular-nums; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--alt { background: color-mix(in srgb, var(--canvas-2) 88%, transparent); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .lead { margin-top: 20px; }
.sec-head--stick {
  position: sticky; top: var(--header-h); z-index: 6;
  max-width: none; margin-bottom: 0; padding: 16px 0 26px;
  isolation: isolate;
}
.sec-head--stick::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background: color-mix(in srgb, var(--canvas-2) 86%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
}
.band .sec-head--stick::before { background: transparent; }
.sec-head--stick .lead { max-width: 760px; }
.sec-head--stick + * { margin-top: clamp(28px, 4vw, 48px); }

.skip {
  position: fixed; top: -64px; left: 16px; z-index: 100;
  background: var(--ink); color: var(--canvas);
  padding: 10px 18px; border-radius: var(--r-pill);
  text-decoration: none; font-size: 0.875rem;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.header.scrolled { border-bottom-color: var(--line); }
.header--dark { background: color-mix(in srgb, #070c1e 82%, transparent); }
.header--dark.scrolled { border-bottom-color: var(--band-line); }
.header--dark .brand { color: #ffffff; }
.header--dark .nav a { color: var(--band-muted); }
.header--dark .nav a:hover, .header--dark .nav a[aria-current="page"] { color: var(--band-ink); }
.header--dark .nav a[aria-current="page"]::after { background: var(--cyan-ink); }
.header--dark .icon-btn { color: var(--band-body); border-color: rgba(255, 255, 255, 0.22); }
.header--dark .icon-btn:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; color: var(--brand); min-height: 44px; }
.brand svg { height: 21px; width: auto; display: block; }
.nav { display: flex; gap: 6px; margin-right: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; color: var(--muted); font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--r-pill); position: relative;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  border-radius: 2px; background: currentColor; opacity: 0;
  transform: scaleX(0.35); transform-origin: left center;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav a:hover::after { opacity: 0.32; transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--brand);
  opacity: 1; transform: scaleX(1);
}
.header-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header-act { margin-left: 0; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--muted); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 30px; border-radius: var(--r-pill);
  font-size: 0.9688rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease-out), box-shadow 0.25s ease, filter 0.2s ease,
    border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--btn-bg) 55%, transparent);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--canvas-2); }
.btn--inv { border-color: var(--band-line); color: var(--band-ink); background: transparent; }
.btn--inv:hover { border-color: var(--band-ink); }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 0.875rem; }
.btn svg { width: 16px; height: 16px; }
.tlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--brand); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.tlink svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease-out); }
.tlink:hover svg { transform: translate(3px, -3px); }
.band .tlink { color: var(--cyan-ink); }

/* ---------- dark brand band ---------- */
.band {
  background: color-mix(in srgb, var(--band) 90%, transparent);
  color: var(--band-body);
  position: relative;
  isolation: isolate;
}
.band h1, .band h2, .band h3 { color: var(--band-ink); }
.band .lead { color: var(--band-muted); }
.band--field::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("img/band-field.png") center / cover no-repeat;
  opacity: 0.5;
}
.band--net::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("img/ecosystem-network.png") center 30% / cover no-repeat;
  opacity: 0.34;
}
.band--net::after, .band--field::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 12, 30, 0.55), rgba(7, 12, 30, 0.88));
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(72px, 10vw, 140px));
  padding-bottom: clamp(96px, 12vw, 176px);
}
.hero::before {
  content: ""; position: absolute; inset: var(--header-h) 0 0 0; z-index: -1;
  background: url("img/hero-field.png") center right / cover no-repeat;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 52%, transparent 98%);
}
.band .hero-slogan .cn { color: var(--cyan-ink); }
.band .hero-slogan .en { color: var(--band-muted); }
.hero-copy { max-width: 880px; }
.hero .container { max-width: 1320px; }
.hero-slogan { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-slogan .cn { color: var(--brand); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.14em; }
.hero-slogan .en { color: var(--faint); font-size: 0.9375rem; }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.page-hero { padding-top: calc(var(--header-h) + clamp(64px, 9vw, 128px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero.band.sec--blue { display: grid; align-content: center; min-height: 620px; }
.page-hero .lead { margin-top: 22px; }
.page-hero .crumb { margin-bottom: 26px; }
.crumb { font-size: 0.875rem; color: var(--faint); }
.crumb a { color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 8px; }

/* line-mask reveal (hero orchestration) */
.lines span { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines i { display: block; font-style: normal; }
.js .lines i { transform: translateY(112%); animation: line-up 0.95s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
.js .fade-seq { opacity: 0; transform: translateY(18px); animation: fade-up 0.9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- scroll reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- split sticky narrative ---------- */
.split { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-side { position: sticky; top: calc(var(--header-h) + 44px); min-width: 0; }
.split-side .idx { display: block; color: var(--cyan-ink); font-weight: 600; letter-spacing: 0.1em; font-size: 0.875rem; margin-bottom: 12px; }
.split-body { min-width: 0; }
.split-side .lead { margin-top: 18px; }
.split-side .tlink { margin-top: 26px; }
.split-body > * + * { margin-top: clamp(56px, 7vw, 88px); position: relative; }
.split-body > * + *::before {
  content: ""; position: absolute; left: 0; top: calc(-0.5 * clamp(56px, 7vw, 88px) - 1px);
  width: 52px; height: 2px; background: var(--cyan-ink); opacity: 0.75;
}
.band .split-body > * + *::before { background: #7ee7ea; }
.chapter { border-top: 1px solid var(--line); padding-top: 32px; }
.chapter:first-child { border-top: 0; padding-top: 0; }
.split-body .chapter { border-top: 0; padding-top: 0; }
.chapter h3 { display: flex; align-items: baseline; gap: 12px; }
.chapter h3 .idx { color: var(--cyan-ink); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; }
.chapter p { margin-top: 12px; }
.chapter .tlink { margin-top: 14px; }

/* ---------- editorial rows ---------- */
.rows { border-top: 1px solid var(--line); }
.band .rows { border-top-color: var(--band-line); }
.row {
  display: grid; grid-template-columns: minmax(180px, 0.9fr) 1.6fr auto;
  gap: clamp(16px, 3vw, 40px); align-items: baseline;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
  transition: background-color 0.25s ease, padding-left 0.25s var(--ease-out);
}
a.row:hover { background: var(--canvas-2); padding-left: 16px; }
.row h3 { font-size: 1.125rem; }
.row .who { color: var(--faint); font-size: 0.875rem; display: block; margin-top: 6px; font-weight: 400; }
.row p { color: var(--muted); font-size: 0.9688rem; line-height: 1.7; }
.row .arr { color: var(--line-strong); transition: color 0.2s ease, transform 0.25s var(--ease-out); }
a.row:hover .arr { color: var(--brand); transform: translate(3px, -3px); }
.row .arr svg { width: 18px; height: 18px; display: block; }

/* ---------- domain blocks with sticky index ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: 0.8438rem; color: var(--muted); background: var(--canvas-2);
}
.dom-layout { display: grid; grid-template-columns: 200px 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.dom-index { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 8px; }
.dom-index a { display: flex; align-items: baseline; gap: 10px; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s ease; }
.dom-index a .num { font-size: 0.75rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.dom-index a:hover { color: var(--ink); }
.dom-index a:hover .num { color: var(--cyan-ink); }
.dom-index a[aria-current="true"] { color: var(--brand); font-weight: 600; }
.dom-index a[aria-current="true"] .num { color: var(--cyan-ink); }
.band .dom-index a { color: var(--band-muted); }
.band .dom-index a:hover { color: var(--band-ink); }
.band .dom-index a[aria-current="true"] { color: #7ee7ea; }
.dom-block { border-top: 1px solid var(--line); padding: clamp(28px, 4vw, 48px) 0; position: relative; }
.dom-block:first-child { border-top: 0; padding-top: 0; }
.dom-block .ghost { position: absolute; right: 0; top: 6px; font-size: clamp(4rem, 8vw, 7rem); font-weight: 600; line-height: 1; color: var(--ink); opacity: 0.06; pointer-events: none; }
.dom-block:first-child .ghost { top: calc(6px - clamp(28px, 4vw, 48px)); }
.dom-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.dom-block .lead { margin-top: 14px; padding-right: clamp(96px, 13vw, 200px); }
.dom-meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.band .dom-meta { border-top-color: var(--band-line); }
.dom-meta h4 { color: var(--faint); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; margin: 0 0 10px; }
.dom-meta .who { color: var(--muted); font-size: 0.9375rem; }
.band .dom-block { border-top-color: var(--band-line); }
.band .dom-block .ghost { color: #ffffff; opacity: 0.08; }
.band .dom-meta h4 { color: var(--band-muted); }
.band .dom-meta .who { color: var(--band-body); }
.band .chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.85); }
@media (max-width: 900px) {
  .dom-layout { grid-template-columns: 1fr; }
  .dom-index { display: none; }
}

/* ---------- partner orbit ---------- */
.orbit-wrap { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.orbit-partners { position: relative; aspect-ratio: 1; width: 100%; }
.orbit-partners .ring { position: absolute; inset: 9%; border: 1px solid var(--line-strong); border-radius: 50%; }
.orbit-partners .hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 36%; aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  color: var(--ink); font-weight: 600; font-size: 1.0625rem; background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.op-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; }
.op-node i { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-ink); }
.op-node span { font-size: 0.9375rem; font-weight: 600; color: var(--ink); text-align: center; white-space: nowrap; line-height: 1.4; }
.band .orbit-partners .ring, .band .orbit-partners .hub { border-color: var(--band-line); }
.band .orbit-partners .hub { color: var(--band-ink); background: rgba(255, 255, 255, 0.04); }
.band .op-node span { color: var(--band-ink); }
@media (max-width: 1080px) { .orbit-wrap { grid-template-columns: 1fr; } .orbit-partners { max-width: 420px; margin-inline: auto; } .op-node span { white-space: normal; max-width: 7.5em; } }

/* ---------- vertical timeline steps ---------- */
.steps { display: grid; }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 0 clamp(16px, 3vw, 32px); padding: 22px 4px; border-top: 1px solid var(--line); position: relative; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { grid-row: 1 / span 2; color: var(--cyan-ink); font-weight: 600; font-size: 1rem; position: relative; padding-right: 18px; border-right: 1px solid var(--line); }
.step .n::after { content: ""; position: absolute; right: -4px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-ink); }
.step h4, .step p { grid-column: 2; }
.step .n { white-space: nowrap; }
.steps--wide .step { grid-template-columns: 6.5em 1fr; }
.step h4 { margin: 0 0 6px; font-size: 1.125rem; color: var(--ink); }
.step p { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }
.band .step { border-top-color: var(--band-line); }
.band .step:last-child { border-bottom-color: var(--band-line); }
.band .step .n { border-right-color: var(--band-line); }
.band .step h4 { color: var(--band-ink); }
.band .step p { color: var(--band-body); }

/* ---------- parallel principles list ---------- */
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 44px 7em 1fr; gap: 18px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.principle i { width: 10px; height: 10px; border: 1.5px solid var(--cyan-ink); transform: rotate(45deg) translateY(2px); }
.principle h4 { font-size: 1.25rem; color: var(--ink); margin: 0; }
.principle p { color: var(--muted); font-size: 0.9688rem; }
.band .principles { border-top-color: var(--band-line); }
.band .principle { border-bottom-color: var(--band-line); }
.band .principle i { border-color: #7ee7ea; }
.band .principle h4 { color: var(--band-ink); }
.band .principle p { color: var(--band-body); }

/* ---------- flywheel ---------- */
.wheel-wrap { display: grid; grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.wheel { width: 100%; height: auto; display: block; overflow: visible; }
.wheel .ring { transform-origin: 250px 210px; animation: spin 45s linear infinite; }
.wheel .flow { stroke-dasharray: 2 10; animation: wheel-flow 3s linear infinite; }
.wheel .spoke { stroke: rgba(255, 255, 255, 0.1); }
.wheel .inner-track { stroke: rgba(255, 255, 255, 0.14); }
.wheel .hub { stroke: rgba(255, 255, 255, 0.2); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wheel-flow { to { stroke-dashoffset: -120; } }
.wheel text { fill: var(--band-body); font-size: 15px; font-family: var(--font-sans); }
.wheel .core { fill: var(--band-ink); font-size: 17px; font-weight: 600; }
.wheel .node { fill: #3ad4d8; stroke: #7ee7ea; stroke-width: 2; stroke-opacity: 0; animation: node-pulse 22.5s linear infinite; animation-delay: var(--nd, 0s); }
@keyframes node-pulse {
  0%, 7%, 100% { r: 5; stroke-opacity: 0; }
  2.5% { r: 8.5; stroke-opacity: 0.55; }
  5% { r: 5.5; stroke-opacity: 0; }
}
.wheel .track { stroke: rgba(255, 255, 255, 0.16); }
.wheel .arc { stroke: url(#wheelGrad); }

/* ---------- terms / prose ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.35rem; margin-top: 48px; }
.prose h3 { font-size: 1.1rem; margin-top: 28px; }
.prose p, .prose li { font-size: 1rem; line-height: 1.85; color: var(--body); }
.prose ul { padding-left: 1.2em; margin: 14px 0; }
.prose li + li { margin-top: 8px; }
.prose .updated { color: var(--faint); font-size: 0.875rem; margin-top: 10px; }
dl.terms { margin: 0; border-top: 1px solid var(--line); }
dl.terms dt { font-weight: 600; color: var(--ink); padding-top: 22px; font-size: 1.0625rem; }
dl.terms dd { margin: 6px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9688rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 720px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9063rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--cyan-ink); margin-left: 2px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl); padding: 12px 16px; min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.field .err { color: #c2402f; font-size: 0.8438rem; min-height: 1.2em; }
[data-theme="dark"] .field .err { color: #ff8f7d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #ff8f7d; } }
.form-note { margin-top: 18px; }
.form-ok {
  margin-top: 20px; padding: 14px 18px; border-radius: var(--r-ctl);
  background: var(--brand-soft); color: var(--ink); font-size: 0.9375rem;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
}

/* ---------- contact aside ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.cta-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.info-card { background: var(--canvas-2); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); }
.info-card--ghost { background: color-mix(in srgb, var(--surface) 42%, transparent); border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent); }
.info-card h3 { font-size: 1.0625rem; }
.info-card dl { margin: 18px 0 0; display: grid; gap: 14px; }
.info-card dt { font-size: 0.8125rem; color: var(--faint); letter-spacing: 0.06em; }
.info-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
.info-card a { text-decoration: none; }
.info-card a:hover { color: var(--brand); }

/* ---------- footer ---------- */
.footer { background: var(--band); color: var(--band-muted); position: relative; overflow: hidden; isolation: isolate; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("img/band-field.png") center bottom / cover no-repeat; opacity: 0.28;
}
.footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 12, 30, 0.82); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 56px); padding-block: clamp(56px, 7vw, 88px) 40px; }
.footer .brand { color: #fff; }
.footer-slogan { margin-top: 18px; color: var(--band-body); font-size: 0.9688rem; }
.footer-slogan .serif-en { display: block; margin-top: 4px; color: var(--band-muted); font-size: 0.9063rem; }
.footer-contact { margin-top: 22px; display: grid; gap: 6px; font-size: 0.9063rem; }
.footer-contact a { text-decoration: none; color: var(--band-body); display: inline-flex; min-height: 32px; align-items: center; }
.footer-contact a:hover { color: #fff; }
.footer h4 { color: var(--band-ink); font-size: 0.875rem; letter-spacing: 0.08em; margin: 6px 0 14px; }
.footer-col a { display: flex; align-items: center; min-height: 40px; color: var(--band-muted); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--band-line);
  padding-block: 22px 26px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  font-size: 0.8438rem;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-bottom a { color: var(--band-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.nf .code { font-size: clamp(5rem, 16vw, 11rem); font-weight: 600; letter-spacing: -0.03em; color: var(--brand); line-height: 1; }
.nf p { margin: 18px auto 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cta-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .wheel-wrap { grid-template-columns: 1fr; }
  .wheel { max-width: 640px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-in .btn--primary { display: none; }
  .header.menu-open { background: var(--canvas); }
  .header--dark.menu-open { background: var(--band); }
  .mobile-menu {
    display: block; position: absolute; inset: var(--header-h) 0 auto;
    animation: menu-in 0.3s var(--ease-out);
    max-height: calc(100vh - var(--header-h) - 24px);
    max-height: min(78dvh, calc(100dvh - var(--header-h) - 24px));
    background: var(--canvas);
    padding: 20px clamp(20px, 4vw, 40px) calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    border-radius: 0 0 18px 18px; box-shadow: 0 16px 32px rgba(7, 12, 30, 0.12);
  }
  .mobile-menu[hidden] { display: none; }  .mobile-menu a:not(.btn) {
    display: flex; align-items: center; min-height: 56px;
    text-decoration: none; color: var(--ink); font-size: 1.125rem; font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a:not(.btn)[aria-current="page"] { color: var(--brand); }
  .mobile-menu .btn { margin-top: 24px; width: 100%; }
  .header--dark .mobile-menu {
    background: var(--band); border-top-color: var(--band-line); border-bottom-color: var(--band-line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  }
  .header--dark .mobile-menu a:not(.btn) { color: var(--band-body); border-bottom-color: var(--band-line); }
  .header--dark .mobile-menu a:not(.btn)[aria-current="page"] { color: var(--band-ink); }
  .row { grid-template-columns: 1fr auto; }
  .row p { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .step { grid-template-columns: 56px 1fr; }
  .principle { grid-template-columns: 32px 1fr; }
  .principle p { grid-column: 2; }
  .page-hero.band.sec--blue { min-height: 580px; }
}

@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }

body.menu-open::after {
  content: ""; position: fixed; inset: var(--header-h) 0 0; z-index: 59; pointer-events: none;
  background: rgba(7, 12, 30, 0.12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
[data-theme="dark"] body.menu-open::after { background: rgba(0, 0, 0, 0.24); }

/* ---------- page-level background art (inner modules) ---------- */
body.page-art { position: relative; }
body.page-art::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--page-art) center 22% / cover no-repeat;
  opacity: var(--page-art-op, 0.1);
}
body.page-art .page-hero { background: color-mix(in srgb, var(--canvas-2) 60%, transparent); }
body.page-art .section { background: color-mix(in srgb, var(--canvas-2) 68%, transparent); }
body.page-art .section--alt { background: color-mix(in srgb, var(--canvas-2) 95%, transparent); }
body.page-art .band.sec--blue, .band.sec--blue { background: color-mix(in srgb, #0c1c3d 88%, transparent); }
.page-hero.band .crumb, .page-hero.band .crumb a { color: var(--band-muted); }
.band.sec--blue .lead, .band.sec--blue .row p { color: rgba(255, 255, 255, 0.84); }
.band.sec--blue .row .who, .band.sec--blue .caption, .band.sec--blue .chain .c, .band.sec--blue .sec-head .lead { color: rgba(255, 255, 255, 0.7); }
.band.sec--blue .row { border-color: rgba(255, 255, 255, 0.22); }
.band.sec--blue .row .arr { color: rgba(255, 255, 255, 0.4); }
.band .row { border-color: var(--band-line); }
.band .row h3 { color: var(--band-ink); }
.band .row p { color: var(--band-body); }
.band .row .who { color: var(--band-muted); }
.band .row .arr { color: var(--band-line); }
.band .rows--tight .idx, .band .split-side .idx { color: #7ee7ea; }
.band .caption { color: var(--band-muted); }
.band .chain .c { color: var(--band-body); }
.band .chain .sep { color: var(--band-line); }
body.page-art--platform { --page-art: url("img/platform-art.png"); --page-art-op: 0.5; }
body.page-art--domains { --page-art: url("img/domains-art.png"); --page-art-op: 0.45; }
body.page-art--eco { --page-art: url("img/eco-art.png"); --page-art-op: 0.5; }
body.page-art--about { --page-art: url("img/about-art.png"); --page-art-op: 0.5; }
[data-theme="dark"] body.page-art--platform::before,
[data-theme="dark"] body.page-art--domains::before,
[data-theme="dark"] body.page-art--eco::before,
[data-theme="dark"] body.page-art--about::before { filter: invert(1) hue-rotate(180deg); opacity: 0.22; }

/* ---------- full-screen slide paging (home) ---------- */
html:has(body.snap-page) { scroll-snap-type: y mandatory; }
body.snap-page .slide {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + 28px) 44px;
}
body.snap-page .slide > .container { width: 100%; }
body.snap-page .footer { scroll-snap-align: start; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vh, 44px); }
.grid4 .chapter {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 28px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.grid4 .chapter:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.grid4 .chapter p { font-size: 0.9688rem; margin-top: 8px; }
.rows--tight .row { padding: 15px 4px; }
.rows--tight .row p { font-size: 0.9063rem; }
.rows--tight .row h3 { font-size: 1.0625rem; }
.rows--tight .idx { color: var(--cyan-ink); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; margin-right: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.fact { border: 1px solid var(--line); border-radius: 14px; padding: 14px 22px; background: var(--surface); }
.fact .n { display: block; color: var(--faint); font-size: 0.8125rem; letter-spacing: 0.08em; margin-bottom: 6px; }
.fact p { color: var(--ink); font-size: 1rem; font-weight: 600; }
.band .fact { border-color: var(--band-line); background: rgba(255, 255, 255, 0.03); }
.band .fact .n { color: var(--band-muted); }
.band .fact p { color: var(--band-ink); }
.slide--art { position: relative; isolation: isolate; }
.slide--art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--art, url("img/hero-field-light.png")) var(--art-pos, center right) / cover no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(200deg, #000 35%, transparent 80%);
  mask-image: linear-gradient(200deg, #000 35%, transparent 80%);
}
[data-theme="dark"] .slide--art::before { filter: invert(1) hue-rotate(180deg); opacity: 0.3; }
.slide-nav {
  position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: grid; gap: 10px; justify-items: end;
}
.slide-nav::before {
  content: ""; position: absolute; right: 4px; top: 14px; bottom: 14px; width: 1px;
  background: var(--line-strong);
}
.slide-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  min-height: 52px; padding: 0 0 0 4px;
  color: var(--faint); text-decoration: none; font-size: 0.875rem; letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.slide-nav a .num { width: 2ch; text-align: right; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; opacity: 0.75; font-variant-numeric: tabular-nums; }
.slide-nav a span:not(.num) { width: 2.5em; text-align: left; }
.slide-nav a i {
  position: relative; z-index: 1;
  width: 9px; height: 9px; border-radius: 50%; background: var(--canvas);
  border: 1.5px solid var(--faint);
  transition: all 0.25s var(--ease-out);
}
.slide-nav a:hover { color: var(--ink); }
.slide-nav a:hover i { border-color: currentColor; transform: scale(1.3); }
.slide-nav a[aria-current="true"] { color: var(--brand); font-weight: 600; }
.slide-nav a[aria-current="true"] .num { opacity: 1; }
.slide-nav a[aria-current="true"] i {
  width: 11px; height: 11px; background: var(--brand); border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.slide-nav--dark::before { background: var(--band-line); }
.slide-nav--dark a { color: var(--band-muted); }
.slide-nav--dark a i { background: var(--band); border-color: var(--band-muted); }
.slide-nav--dark a:hover { color: var(--band-ink); }
.slide-nav--dark a[aria-current="true"] { color: var(--cyan-ink); }
.slide-nav--dark a[aria-current="true"] i { background: var(--cyan-ink); border-color: var(--cyan-ink); box-shadow: 0 0 0 4px rgba(58, 212, 216, 0.22); }
@media (max-width: 1279px) { .slide-nav { display: none; } }
.chain { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chain .c { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.chain .c i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-ink); }
.chain .sep { color: var(--line-strong); display: inline-flex; }
.chain .sep svg { width: 15px; height: 15px; }
.chain a.c { text-decoration: none; transition: color 0.2s ease; }
.chain a.c:hover { color: var(--ink); }
@media (max-height: 720px) {
  html:has(body.snap-page) { scroll-snap-type: y proximity; }
  body.snap-page .slide { min-height: auto; }
}
@media (hover: none) {
  .nav a:hover::after { opacity: 0; transform: scaleX(0.35); }
  a.row:hover { background: transparent; padding-left: 4px; }
  a.row:hover .arr { transform: none; }
  .btn--primary:hover { transform: none; filter: none; }
  .footer-bottom a { min-height: 44px; }
}
@media (max-width: 900px) {
  html:has(body.snap-page) { scroll-snap-type: y proximity; }
  body.snap-page .slide { min-height: auto; }
  .grid4 { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js .rv, .js .lines i, .js .fade-seq { opacity: 1 !important; transform: none !important; animation: none !important; }
  .wheel .ring, .wheel .flow { animation: none; }
  .wheel .node { animation: none; stroke-opacity: 0; }
}
