/* ==========================================================================
   奕拾智能 XNoetic — site.css
   设计说明见 docs/design.md。颜色、字号、间距都集中在 :root 变量里。
   中文衬线字体（思源宋体子集，"XN Serif"）的 @font-face 在 fonts-cjk.css，由 tools/subset-cjk.mjs 生成。
   ========================================================================== */

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #050407;
  --ink: #ece6dc;
  --ink-2: rgba(236, 230, 220, .74);
  --ink-3: rgba(236, 230, 220, .5);
  --ink-4: rgba(236, 230, 220, .38);
  --line: rgba(236, 230, 220, .09);
  --line-2: rgba(236, 230, 220, .17);
  --ember: #ff7a3a;
  --fire: #ffb35c;
  --gold: #f2c27e;
  --cinnabar: #c8402e;
  --mercury: #c3cee0;
  --green: #8fe0b0;
  --fire-grad: linear-gradient(100deg, #fff1cf 0%, #ffc37a 30%, #ff8a45 62%, #d9472a 100%);
  --metal-grad: linear-gradient(100deg, #f4f6fa 0%, #b9c4d6 40%, #f2c27e 100%);

  --serif: "XN Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --en: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: rgba(255, 138, 69, .35); color: #fff; }
a { color: inherit; text-decoration: none; }
svg, canvas { display: block; }
h1, h2, h3, p, figure, ol, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 4px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 100; left: 16px; top: -64px;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg);
  font-size: 14px; transition: top .25s var(--ease);
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- stage (WebGL 背景) ---------- */
#stage {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  pointer-events: none;
}
.stage-fallback {
  display: none;
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 30vmax at 20% 100%, rgba(255, 110, 40, .16), transparent 64%),
    radial-gradient(50vmax 34vmax at 78% 30%, rgba(200, 160, 120, .07), transparent 66%),
    var(--bg);
}
.no-webgl #stage { display: none; }
.no-webgl .stage-fallback { display: block; }

main, .footer { position: relative; z-index: 1; }

/* 页面滚动进度（支持 scroll-driven animations 的浏览器才显示） */
.progress {
  position: fixed; z-index: 40; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--fire-grad); transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none; opacity: .85;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow-x linear both; animation-timeline: scroll(root block); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(5, 4, 7, .55);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-cn { font-family: var(--serif); font-size: 16px; letter-spacing: .2em; }
.brand-en {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .36em; color: var(--ink-3);
  padding-left: 12px; border-left: 1px solid var(--line-2); line-height: 1;
}
.nav-links { display: flex; gap: clamp(22px, 3vw, 40px); font-size: 14px; color: var(--ink-2); }
.nav-links > a { position: relative; display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 0; transition: color .3s; }
.nav-links > a:hover, .nav-links > a[aria-current="true"] { color: var(--ink); }
.nav-idx { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-4); }
.nav-links > a::after, .nav-prod-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--fire-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav-links > a:hover::after, .nav-links > a[aria-current="true"]::after,
.nav-prod-btn:hover::after, .nav-prod-btn[aria-expanded="true"]::after, .nav-prod-btn.is-here::after { transform: scaleX(1); }

/* 页眉「产品」下拉：不编号（产品不是页内章节），用一道短竖线和 01–04 隔开。
   面板沿用 03 运行示意终端的材质；页眉滚动后自带 backdrop-filter，面板里再叠模糊不起作用，所以底色不透明
   （渐变下面垫一层页面底色：舞台上亮的水银、纸面不会从面板后面透出来）。
   产品卡片 a.prod-card 不带 href 时是占位（不可点、不可聚焦）；加上 href 就自动隐藏「即将上线」、显示 ↗ 和悬停态。 */
.nav-prod { position: relative; display: flex; align-items: center; padding-left: clamp(18px, 2.4vw, 32px); }
.nav-prod::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--line-2); }
.nav-prod-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 6px 0;
  border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: color .3s;
}
.nav-prod-btn:hover, .nav-prod-btn[aria-expanded="true"], .nav-prod-btn.is-here { color: var(--ink); }
.nav-caret {
  width: 5px; height: 5px; margin-top: -3px;
  border-right: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .4s var(--ease), margin .4s var(--ease);
}
.nav-prod-btn[aria-expanded="true"] .nav-caret { margin-top: 3px; transform: rotate(225deg); border-color: var(--fire); }
.prod-panel {
  position: absolute; right: 0; top: calc(50% + var(--nav-h) / 2 + 10px);
  width: min(388px, calc(100vw - var(--pad) * 2)); padding: 16px 16px 12px;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 14, 17, .97), rgba(8, 7, 10, .985)), var(--bg);
  box-shadow: 0 40px 100px -40px rgba(255, 110, 40, .3), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  color: var(--ink);
}
.prod-panel[hidden] { display: none; }
.prod-panel::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: var(--fire-grad); opacity: .85; }
/* 面板和菜单产品块里的小字（标签、副题、网址、底部链接）用的 --ink-3 在这里提亮一点（.5 → .55）：
   面板底色比页面略亮，原值对比度踩在 4.5:1 线上，提亮后约 5.2:1 */
.prod-panel, .menu-prod { --ink-3: rgba(236, 230, 220, .55); }
.prod-label {
  display: flex; align-items: center; gap: 10px; margin: 2px 4px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3);
}
.prod-label em { font-style: normal; color: var(--ink-4); text-transform: uppercase; }
.prod-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.prod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prod-card {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .018);
  transition: border-color .3s, background-color .3s;
}
.prod-mark { position: relative; grid-row: 1 / span 2; width: 48px; height: 48px; }
/* Tether 的 P2-24 像素标志：只按整数倍放大（48px = 2×）；main.js 用 left/top 把它对齐到整数像素 */
.prod-mark[data-pixel-mark] { image-rendering: pixelated; filter: drop-shadow(0 8px 18px rgba(200, 64, 46, .32)); }
.prod-mark-vector { image-rendering: auto; }
.prod-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.prod-name { font-family: var(--en); font-style: italic; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.prod-sub { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-desc { grid-column: 1 / -1; margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.prod-url { grid-column: 1 / -1; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }
.prod-go { display: none; font-size: 15px; color: var(--fire); }
.prod-card[href] { cursor: pointer; }
.prod-card[href]:hover, .prod-card[href]:focus-visible { border-color: rgba(255, 179, 92, .38); background: rgba(255, 179, 92, .05); }
.prod-card[href] .soon { display: none; }
.prod-card[href] .prod-go { display: inline; }
/* 左右内边距 + 等量负外边距：文字位置不变，键盘焦点框和文字之间留出空隙 */
.prod-more { display: flex; align-items: baseline; gap: 8px; margin: 10px -4px 0; padding: 8px; border-radius: 10px; font-size: 13px; color: var(--ink-3); transition: color .3s; }
.prod-more em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-4); }
.prod-more span:last-child { margin-left: auto; font-family: var(--mono); }
.prod-more:hover { color: var(--ink); }
.prod-more:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .prod-panel:not([hidden]) { animation: prod-in .5s var(--ease) both; }
  .prod-panel:not([hidden])::before { transform: scaleX(0); transform-origin: right; animation: grow-x .9s var(--ease) .08s both; }
}

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .03); cursor: pointer;
  font-size: 13px; letter-spacing: .12em;
}
.nav-toggle-lines { position: relative; width: 14px; height: 8px; }
.nav-toggle-lines::before, .nav-toggle-lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle-lines::before { top: 0; }
.nav-toggle-lines::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 3.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 3.5px; transform: rotate(-45deg); }

/* 手机菜单：内容放不下一屏时可以滚动；首尾用 auto 外边距居中（放不下时不会被裁掉顶部） */
.menu {
  position: fixed; z-index: 25; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-h) + env(safe-area-inset-top)) var(--pad) calc(40px + env(safe-area-inset-bottom));
  background: rgba(5, 4, 7, .9);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}
.menu[hidden] { display: none; }
.menu > :first-child { margin-top: auto; }
.menu > :last-child { margin-bottom: auto; }
.menu nav { display: grid; }
.menu nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(30px, 9vw, 46px); letter-spacing: .06em;
}
.menu nav a span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-4); }
/* 菜单末尾的产品块（与页眉下拉同一张卡片；网址那行在这里多余，不显示） */
.menu-prod { margin-top: clamp(22px, 4vh, 36px); }
.menu-prod .prod-label { margin: 0 0 12px; }
.menu-prod .prod-card { padding: 14px; }
.menu-prod .prod-url { display: none; }
@media (max-height: 760px) { .menu nav a { padding-block: 12px; } }
/* 菜单内容滚动后，链接会从页眉底下经过：这时页眉加上和菜单一样的底色、模糊和细线挡住（像页面滚动后的页眉）。
   类名由 main.js 按菜单的 scrollTop 切换；关菜单时直接撤掉，不走渐变。 */
.nav.menu-scrolled {
  background: rgba(5, 4, 7, .9);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-bottom-color: var(--line);
}
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) nav a, .menu:not([hidden]) .menu-prod { animation: menu-in .7s var(--ease) both; }
  .menu nav a:nth-child(2) { animation-delay: .05s; }
  .menu nav a:nth-child(3) { animation-delay: .1s; }
  .menu nav a:nth-child(4) { animation-delay: .15s; }
  .menu nav a:nth-child(5) { animation-delay: .2s; }
  .menu:not([hidden]) .menu-prod { animation-delay: .26s; }
}
body.menu-open { overflow: hidden; }

/* ---------- 通用：标签、标题 ---------- */
.label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(34px, 6vh, 64px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--ink-3);
}
.label b { font-weight: 500; color: var(--fire); }
.label em { font-style: normal; color: var(--ink-4); text-transform: uppercase; }
.label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

.h2 {
  max-width: 16em;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, .9rem + 3.2vw, 4rem);
  line-height: 1.3; letter-spacing: .02em;
}
.em {
  background: var(--fire-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.body { max-width: 28em; margin-top: 28px; color: var(--ink-2); font-size: clamp(15.5px, .35vw + 13.5px, 18px); line-height: 1.9; }
.hero-lede, .body, .desc, .tether-copy p { text-wrap: pretty; }

/* ==========================================================================
   首屏：火
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: clamp(56px, 12vh, 140px);
}
.hero-inner {
  position: relative;
  opacity: calc(1 - var(--hp, 0) * 1.4);   /* 纸随页面上移，文字跟着走，只淡出、不做视差，免得和烧出的洞错位 */
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: clamp(18px, 3.4vh, 34px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .26em; color: var(--ink-3);
}
.live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 12px var(--ember), 0 0 2px #fff;
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: min(10.4vw, 17vh);
  line-height: 1.08; letter-spacing: .04em;
  margin-left: -.06em;
}
.hero-title .l1, .hero-title .l2 { display: block; white-space: nowrap; }
.ch { display: inline-block; }
.ht-fire {
  display: inline-block;
  filter: drop-shadow(0 0 .14em rgba(255, 110, 40, .55)) drop-shadow(0 0 .5em rgba(255, 90, 30, .28));
}
.ht-fire .ch {
  background: linear-gradient(180deg, #fff6df 0%, #ffd08a 26%, #ff9a4a 58%, #e2502b 86%, #9e2a17 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero-title .l2 { color: var(--ink); }

.hero-en {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-family: var(--en); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, .8rem + 1.6vw, 2.3rem); line-height: 1.2;
  color: var(--ink-2); letter-spacing: .01em;
}
.hero-lede {
  margin-top: clamp(10px, 1.8vh, 20px);
  font-family: var(--serif); font-size: clamp(16px, .5vw + 13px, 20px); letter-spacing: .14em;
  color: var(--ink-2);
}

.scroll-cue {
  position: absolute; z-index: 1; right: var(--pad); bottom: clamp(44px, 9vh, 112px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--ink-3);
}
.cue-line { position: relative; width: 1px; height: 72px; background: var(--line-2); overflow: hidden; }
.cue-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: linear-gradient(180deg, transparent, var(--fire), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
.cue-text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .32em; writing-mode: vertical-rl; }

/* 开场：字随火光烧出来（纯 CSS，不依赖脚本） */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .ch {
    opacity: 0;
    filter: blur(16px) brightness(3);
    transform: translate3d(0, .14em, 0);
    animation: heat-in 1.7s var(--ease) forwards;
    animation-delay: calc(1.5s + var(--i) * 95ms);
  }
  .ht-fire { animation: ember 4.2s ease-in-out 3.4s infinite; }
  .hero-anim {
    opacity: 0; transform: translate3d(0, 14px, 0);
    animation: fade-up 1.3s var(--ease) forwards;
    animation-delay: var(--d, 2.4s);
  }
}

/* ==========================================================================
   两幕（愿景 · 汞 / 解牛 · 牛）：钉住画面，随滚动推进
   html.acts 由 main.js 加上（有 WebGL、未要求减少动态效果）。没有它时按普通段落排版。
   ========================================================================== */
.act { position: relative; }
.act-pin { position: relative; }
.act-frame { position: relative; }
.beat { font-family: var(--serif); }

html.acts .act-vision { height: 470vh; }
html.acts .act-ox { height: 560vh; }
html.acts .act-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
html.acts .act-frame { height: 100%; }
html.acts .act .label {
  position: absolute; top: calc(var(--nav-h) + 3.4vh);
  left: var(--pad); right: var(--pad); margin: 0;
}
html.acts .beats { position: absolute; }
html.acts .beat {
  position: absolute; left: 0; right: 0; top: 0;
  opacity: 0; visibility: hidden;
  will-change: opacity, transform;
}
html.acts .beat.flow { position: relative; }

/* 不钉住时（减少动态 / 无 WebGL）：普通段落 */
html:not(.acts) .act { padding-block: clamp(110px, 17vh, 210px); }
html:not(.acts) .beat + .beat { margin-top: 1.2em; }

/* ---------- 01 愿景 ---------- */
.vq { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(10px, 1.2vw, 22px); width: fit-content; }
.vq-text p {
  writing-mode: vertical-rl;
  font-family: var(--serif); font-weight: 300;
  font-size: min(6.6vh, 5.2vw);
  line-height: 1.1; letter-spacing: .12em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(5, 4, 7, .9);
}
.vq-src {
  writing-mode: vertical-rl; align-self: flex-end;
  font-family: var(--serif); font-size: clamp(13px, 1.6vh, 16px); letter-spacing: .32em; color: var(--ink-3);
}
.v-en {
  font-family: var(--en); font-style: italic;
  font-size: clamp(1.5rem, .9rem + 1.7vw, 2.7rem); line-height: 1.15;
  background: var(--metal-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.v-beats .beat {
  font-size: clamp(18px, .7vw + 12px, 24px); line-height: 2; letter-spacing: .04em;
  color: var(--ink);
  text-shadow: 0 0 24px rgba(5, 4, 7, .95), 0 0 6px rgba(5, 4, 7, .9);
}

html.acts .vq { position: absolute; left: var(--pad); top: calc(var(--nav-h) + 11vh); }
html.acts .v-en {
  position: absolute; top: calc(var(--nav-h) + 11.4vh);
  left: calc(var(--pad) + min(6.6vh, 5.2vw) * 1.3 + clamp(13px, 1.6vh, 16px) * 1.6 + clamp(34px, 4vw, 72px));
  max-width: 11em;
}
html.acts .v-beats {
  top: calc(var(--nav-h) + 11.4vh + clamp(1.5rem, .9rem + 1.7vw, 2.7rem) * 1.3 + 5vh);
  left: calc(var(--pad) + min(6.6vh, 5.2vw) * 1.3 + clamp(13px, 1.6vh, 16px) * 1.6 + clamp(34px, 4vw, 72px));
  width: min(36vw, 30rem);
}
html:not(.acts) .vq { margin-bottom: 36px; }
html:not(.acts) .v-en { margin-bottom: 28px; }
html:not(.acts) .v-beats { max-width: 30em; }

/* ---------- 06 解牛 ---------- */
.ox-copy .beat { color: var(--ink); text-shadow: 0 0 26px rgba(5, 4, 7, .95), 0 0 6px rgba(5, 4, 7, .9); }
.ox-a, .ox-b { font-size: clamp(22px, 1.1vw + 14px, 34px); line-height: 1.7; letter-spacing: .05em; }
.ox-final { font-weight: 300; font-size: clamp(24px, 2.6vw, 44px); line-height: 1.55; letter-spacing: .04em; }   /* 字号跟栏宽走：「我们帮你换一把更快的刀，」12 个字一行放得下 */
.ox-en {
  margin-top: .9em;
  font-family: var(--en); font-style: italic;
  font-size: clamp(1.15rem, .8rem + .9vw, 1.8rem); line-height: 1.3; color: var(--ink-2);
}
.ox-b { margin-top: .5em; }
html.acts .ox-copy { left: var(--pad); top: calc(var(--nav-h) + 17vh); width: min(34vw, 36rem); }
html.acts .ox-lines { position: absolute; left: 0; right: 0; top: 0; }
html:not(.acts) .ox-end { margin-top: 1.6em; }

/* ==========================================================================
   普通段落（02–05）
   ========================================================================== */
.section { position: relative; padding-block: clamp(110px, 17vh, 210px); }
.section::before {
  /* 段落背后压一层暗，让文字压得住舞台上的余烬 */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 70% at 30% 50%, rgba(5, 4, 7, .55), transparent 75%);
}

/* ---------- 02 domains ---------- */
.tiles {
  margin-top: clamp(42px, 7vh, 76px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 22px);
}
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px;
  min-height: clamp(380px, 36vw, 460px);
  padding: clamp(26px, 2.6vw, 40px);
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(145deg, rgba(18, 15, 19, .7), rgba(7, 6, 9, .56));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .012) inset;
  transition: border-color .4s, background-color .4s, box-shadow .5s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 150, 80, .12), transparent 62%);
  transition: opacity .5s;
}
.tile::after {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 92, .72), transparent);
  transition: opacity .5s;
}
.tile:hover { border-color: rgba(255, 179, 92, .24); box-shadow: 0 26px 80px -46px rgba(255, 110, 40, .38); }
.tile:hover::before, .tile:hover::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .tile { transition: transform .6s var(--ease), border-color .4s, background-color .4s, box-shadow .6s; }
  .tile:hover { transform: translateY(-4px); }
}
.tile-vis { flex: 1; display: grid; place-items: center; min-height: 160px; }
.tile-vis svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.tile-body { padding-top: 22px; border-top: 1px solid var(--line); }
.tile-idx { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }
.tile h3 { margin: 8px 0 10px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.45rem, 1rem + 1vw, 2rem); letter-spacing: .06em; }
.tile .desc { max-width: 30em; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }

/* 小图示通用 */
.vis text { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; fill: var(--ink-3); text-anchor: middle; }
.vis .cap { text-anchor: start; font-size: 9px; fill: var(--ink-4); }
.vis .cap.mid { text-anchor: middle; }
.vis .cap.end { text-anchor: end; }

/* 01 运行底座：总线 + 模块逐个接入 */
.vis-runtime .bus { stroke: var(--line-2); stroke-width: 1; }
.vis-runtime .bus-flow { stroke: var(--fire); stroke-width: 1.4; stroke-dasharray: 36 340; animation: flow 3.2s linear infinite; }
.vis-runtime .mod rect { fill: rgba(255, 255, 255, .02); stroke: var(--line-2); }
.vis-runtime .mod .pin { stroke: var(--line-2); }
.vis-runtime .mod { animation: plug 6s var(--ease) infinite; animation-delay: calc(var(--k) * .42s); }
.vis-runtime .mod rect, .vis-runtime .mod .pin { animation: plug-stroke 6s var(--ease) infinite; animation-delay: calc(var(--k) * .42s); }

/* 02 可信执行：一点沿轨道前进，在审批门前停一下，进入沙箱 */
.vis-trust .box { fill: rgba(255, 255, 255, .015); stroke: var(--line-2); stroke-dasharray: 3 4; }
.vis-trust .rail { stroke: var(--line-2); }
.vis-trust .gate { fill: rgba(255, 179, 92, .14); stroke: var(--fire); animation: gate 6.4s linear infinite; }
.vis-trust .dot { fill: var(--gold); filter: drop-shadow(0 0 6px var(--fire)); animation: travel 6.4s linear infinite; }
.vis-trust .log { stroke: var(--line); }
.vis-trust .ticks line { stroke: var(--gold); stroke-width: 1.4; opacity: .15; animation: tick 6.4s linear infinite; animation-delay: var(--d); }

/* 03 持久记忆：事件柱 + 回放指针 */
.vis-memory .axis { stroke: var(--line-2); }
.vis-memory .bars rect { fill: rgba(236, 230, 220, .14); animation: bar-lit 5.2s linear infinite; animation-delay: var(--t); }
.vis-memory .bars rect.new { fill: var(--fire); animation: none; opacity: .9; }
.vis-memory .head line { stroke: var(--gold); }
.vis-memory .head circle { fill: var(--gold); }
.vis-memory .head { animation: replay 5.2s linear infinite; }

/* 04 领域智能体：中心 + 轮辐，依次点亮 */
.vis-domain .spin { transform-origin: 200px 100px; animation: spin 40s linear infinite; }
.vis-domain .ring { fill: none; stroke: var(--line-2); }
.vis-domain .ring.faint { stroke: var(--line); stroke-dasharray: 2 5; }
.vis-domain .spokes line { stroke: var(--fire); stroke-width: 1.2; stroke-dasharray: 78; stroke-dashoffset: 78; animation: spoke 6s var(--ease) infinite; animation-delay: calc(var(--k) * .5s); }
.vis-domain .sats > * { fill: rgba(255, 255, 255, .04); stroke: var(--ink-4); animation: sat 6s var(--ease) infinite; animation-delay: calc(var(--k) * .5s); }
.vis-domain .hub { fill: #fff; }
.vis-domain .hub-glow { fill: rgba(255, 150, 80, .2); animation: pulse 3s ease-in-out infinite; transform-origin: 200px 100px; }

/* ---------- 03 motion ---------- */
.motion-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.motion .h2 { font-size: clamp(2rem, .9rem + 2.4vw, 3.4rem); }
.trace { list-style: none; padding: 0; margin-top: clamp(30px, 5vh, 52px); max-width: 26em; }
.trace li {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0 11px 26px; font-size: 15.5px; color: var(--ink-3);
  transition: color .45s var(--ease);
}
.trace li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  border: 1px solid var(--ink-4); transition: background-color .45s, border-color .45s, box-shadow .45s;
}
.trace li:not(:last-child)::after { content: ""; position: absolute; left: 3px; top: calc(50% + 8px); width: 1px; height: calc(100% - 16px); background: var(--line); }
.trace .t-en { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-4); }
.trace li.done { color: var(--ink-2); }
.trace li.done::before { background: var(--ink-3); border-color: var(--ink-3); }
.trace li.active { color: var(--ink); }
.trace li.active::before { background: var(--fire); border-color: var(--fire); box-shadow: 0 0 12px rgba(255, 179, 92, .7); }

.console {
  position: relative; border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 14, 18, .9), rgba(8, 7, 10, .94));
  box-shadow: 0 40px 120px -40px rgba(255, 110, 40, .22), 0 0 0 1px rgba(255, 255, 255, .025) inset;
}
.console::before {
  content: ""; position: absolute; z-index: 1; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 92, .62), transparent);
}
.console-bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .018);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s ease-in-out infinite; }
.console-time { font-variant-numeric: tabular-nums; color: var(--ink-4); }
.console-tag { margin-left: auto; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; letter-spacing: .1em; }
.console-body {
  min-height: 25em; padding: 22px 22px 26px;
  font-family: var(--mono); font-size: 13.5px; line-height: 2.05;
  transition: opacity .5s;
}
.console-body.fade { opacity: 0; }
.ln { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; }
.ln.enter { animation: ln-in .45s var(--ease) both; }
.tg { font-size: 12px; letter-spacing: .06em; }
.tg-goal { color: var(--gold); }
.tg-plan { color: #d9c6ff; }
.tg-tool { color: var(--mercury); }
.tg-gate { color: var(--fire); }
.tg-ok { color: var(--green); }
.tg-audit { color: #e6b7a0; }
.tx { color: var(--ink); overflow-wrap: anywhere; }
.tx.typing::after {
  content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 3px; vertical-align: -.18em;
  background: var(--ink); animation: blink 1s steps(1) infinite;
}
.rs { white-space: nowrap; color: var(--ink-4); opacity: 0; transition: opacity .35s; }
.rs.on { opacity: 1; }
.rs.ok { color: var(--green); }
.rs.wait { color: var(--fire); animation: blink 1.1s steps(1) infinite; }

/* ---------- 04 principles ---------- */
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pr { position: relative; padding: clamp(34px, 4vw, 56px) clamp(16px, 2.4vw, 40px) clamp(32px, 4vw, 52px); border-left: 1px solid var(--line); }
.pr:first-child { border-left: 0; padding-left: 0; }
.pr::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--fire-grad); transform: scaleX(0); transform-origin: left;
}
.pr-en { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--ink-3); }
.pr-cn {
  margin: 16px 0 22px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 1rem + 4.2vw, 5.4rem); line-height: 1.1; letter-spacing: .08em;
}
.pr .desc { max-width: 21em; color: var(--ink-2); line-height: 1.85; }

/* ---------- 05 foundation (Tether) ---------- */
.tether {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 88px); align-items: end;
  padding-block: clamp(36px, 6vh, 64px) clamp(56px, 9vh, 92px);
  border-top: 1px solid var(--line);
}
.tether-word {
  font-family: var(--en); font-style: italic; font-weight: 400;
  font-size: clamp(4.4rem, 1.8rem + 9vw, 11.5rem); line-height: .9; letter-spacing: -.02em;
}
.tether-sub { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; color: var(--ink-3); }
.tether-copy p { color: var(--ink-2); font-size: clamp(15.5px, .35vw + 13.5px, 18px); line-height: 1.9; max-width: 30em; }
.tether-url { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }
.tether-url a { display: inline-flex; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line-2); color: var(--ink); transition: color .3s, border-color .3s; }
.tether-url a:hover, .tether-url a:focus-visible { color: var(--fire); border-color: currentColor; }
.tether-go { color: var(--fire); }
.soon { padding: 3px 10px; border: 1px solid rgba(255, 179, 92, .35); border-radius: 999px; color: var(--fire); font-size: 11px; letter-spacing: .14em; }
.tether-rope { position: absolute; left: 0; right: 0; bottom: 8px; width: 100%; height: 40px; overflow: visible; }
.tether-rope path { fill: none; vector-effect: non-scaling-stroke; }
.tether-rope .rope { stroke: var(--line-2); stroke-width: 1; }
.tether-rope .rope-pulse { stroke: var(--fire); stroke-width: 1.6; stroke-dasharray: 90 2400; stroke-linecap: round; animation: rope-pulse 5.5s linear infinite; }

/* ---------- footer ---------- */
.footer {
  --ink-3: rgba(236, 230, 220, .64);
  --ink-4: rgba(236, 230, 220, .56);
  isolation: isolate; overflow: hidden;
  border-top: 1px solid var(--line-2);
  background:
    radial-gradient(70% 130% at 8% 100%, rgba(255, 110, 40, .09), transparent 68%),
    linear-gradient(180deg, rgba(5, 4, 7, .94), #050407 32%);
}
.footer::before {
  content: ""; position: absolute; z-index: -1; top: -1px; left: var(--pad); width: min(240px, 34vw); height: 1px;
  background: linear-gradient(90deg, var(--ember), rgba(255, 179, 92, .28), transparent);
}
.footer-main {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(56px, 9vw, 144px);
  padding-block: clamp(64px, 10vh, 112px) clamp(52px, 8vh, 88px);
}
.footer-signature { display: flex; flex-direction: column; align-items: flex-start; }
.footer .brand-mark { width: 30px; height: 30px; }
.footer .brand-cn { color: var(--ink); }
.footer-tagline {
  margin-top: clamp(32px, 5vh, 52px);
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 1.5rem + 2.8vw, 4.8rem);
  line-height: 1.2; letter-spacing: .08em;
}
.footer-nav { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); }
.footer-kicker {
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3);
}
.footer-kicker span { color: var(--ink-4); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; margin-top: 14px; }
.footer-links a {
  display: flex; align-items: baseline; gap: 12px; padding: 8px 0;
  font-size: 14px; color: var(--ink-2); transition: color .3s, transform .3s var(--ease);
}
.footer-links a span { min-width: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-4); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--fire); transform: translateX(3px); }
.footer-product {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 20px;
  font-family: var(--en); font-style: italic; font-size: clamp(2.4rem, 1.8rem + 1.8vw, 3.8rem); line-height: 1;
  transition: color .3s;
}
.footer-product span:last-child { font-family: var(--sans); font-style: normal; font-size: 18px; color: var(--fire); }
.footer-product:hover, .footer-product:focus-visible { color: var(--fire); }
.footer-prod-sub { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-4); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3);
}
.footer-copy { letter-spacing: .04em; }
.footer-copy span { margin-left: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ink-4); }
.footer-top { display: inline-flex; align-items: center; gap: 12px; transition: color .3s; }
.footer-top span { color: var(--fire); }
.footer-top:hover, .footer-top:focus-visible { color: var(--ink); }
.footer-icp { color: var(--ink-3); }
.footer-icp:hover, .footer-icp:focus-visible { color: var(--ink); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .pr::before { animation: grow-x linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
  .io [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .io [data-reveal].is-in { opacity: 1; transform: none; }
  .io .pr::before { transition: transform 1.4s var(--ease) .2s; }
  .io .pr.is-in::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pr::before { transform: scaleX(1); }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .vis-runtime .bus-flow, .vis-trust .dot, .vis-memory .head { animation: none !important; }
}

/* ---------- keyframes ---------- */
@keyframes heat-in {
  0% { opacity: 0; filter: blur(16px) brightness(3); transform: translate3d(0, .14em, 0); }
  35% { opacity: 1; filter: blur(5px) brightness(2.2); }
  100% { opacity: 1; filter: blur(0) brightness(1); transform: none; }
}
@keyframes ember {
  0%, 100% { filter: drop-shadow(0 0 .14em rgba(255, 110, 40, .55)) drop-shadow(0 0 .5em rgba(255, 90, 30, .28)) brightness(1); }
  42% { filter: drop-shadow(0 0 .18em rgba(255, 120, 45, .7)) drop-shadow(0 0 .7em rgba(255, 90, 30, .36)) brightness(1.08); }
  58% { filter: drop-shadow(0 0 .12em rgba(255, 100, 35, .5)) drop-shadow(0 0 .45em rgba(255, 90, 30, .24)) brightness(.96); }
}
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes reveal { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }
@keyframes grow-x { to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes menu-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes prod-in { from { opacity: 0; transform: translate3d(0, -8px, 0); } }
@keyframes ln-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { from { stroke-dashoffset: 376; } to { stroke-dashoffset: 0; } }
@keyframes plug { 0%, 6% { opacity: .25; } 14%, 78% { opacity: 1; } 92%, 100% { opacity: .25; } }
@keyframes plug-stroke { 0%, 6% { stroke: var(--line-2); } 14%, 30% { stroke: var(--fire); } 44%, 100% { stroke: var(--line-2); } }
@keyframes travel {
  0% { transform: translateX(0); opacity: 0; }
  4% { opacity: 1; }
  40%, 52% { transform: translateX(160px); }
  92% { transform: translateX(360px); opacity: 1; }
  100% { transform: translateX(360px); opacity: 0; }
}
@keyframes gate { 0%, 38% { fill: rgba(255, 179, 92, .14); } 42%, 50% { fill: rgba(255, 179, 92, .7); } 54%, 100% { fill: rgba(143, 224, 176, .16); stroke: var(--green); } }
@keyframes tick { 0% { opacity: .15; } 3% { opacity: 1; } 30%, 100% { opacity: .3; } }
@keyframes bar-lit { 0% { fill: var(--gold); } 12%, 100% { fill: rgba(236, 230, 220, .14); } }
@keyframes replay { 0% { transform: translateX(0); } 80%, 100% { transform: translateX(352px); } }
@keyframes spoke {
  0% { stroke-dashoffset: 78; opacity: 1; }
  18%, 60% { stroke-dashoffset: 0; opacity: 1; }
  80%, 100% { stroke-dashoffset: 0; opacity: .12; }
}
@keyframes sat {
  0%, 14% { stroke: var(--ink-4); fill: rgba(255, 255, 255, .04); }
  20%, 58% { stroke: var(--fire); fill: rgba(255, 179, 92, .28); }
  80%, 100% { stroke: var(--ink-4); fill: rgba(255, 255, 255, .04); }
}
@keyframes rope-pulse { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -2400; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .motion-grid { grid-template-columns: minmax(0, 1fr); }
  .tether { grid-template-columns: minmax(0, 1fr); align-items: start; }
  /* 步骤改成紧凑的小标签，让示意终端与步骤同屏 */
  .trace { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 32px; max-width: none; }
  .trace li { justify-content: center; gap: 8px; padding: 9px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease); }
  .trace li::before { width: 6px; height: 6px; }
  .trace li:not(:last-child)::after, .trace .t-en { display: none; }
  .trace li.active { border-color: rgba(255, 179, 92, .5); background: rgba(255, 179, 92, .06); }
  .trace li.active::before { box-shadow: 0 0 10px rgba(255, 179, 92, .7); }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .tile-vis { min-height: 150px; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .pr { border-left: 0; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
  .pr:first-child { padding-left: 0; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .footer-tagline { margin-top: 28px; }
  .footer-nav { max-width: 640px; }
  .scroll-cue { display: none; }
  .hero-title { font-size: min(19vw, 14vh); }

  /* 愿景：竖排引文在左，文字落在下方 */
  html.acts .vq { top: calc(var(--nav-h) + 9vh); }
  .vq-text p { font-size: min(5.3vh, 10vw); }
  html.acts .v-en {
    left: var(--pad); right: var(--pad); top: auto; bottom: calc(23vh + env(safe-area-inset-bottom));
    max-width: none; font-size: clamp(1.3rem, 5.6vw, 1.8rem);
  }
  html.acts .v-beats {
    left: var(--pad); right: var(--pad); width: auto; top: auto;
    bottom: calc(5vh + env(safe-area-inset-bottom)); height: 17vh;
  }
  .v-beats .beat { font-size: clamp(16px, 4.3vw, 19px); line-height: 1.85; }

  /* 解牛：牛在上，文字在下 */
  html.acts .ox-copy {
    left: var(--pad); right: var(--pad); width: auto; top: auto;
    bottom: calc(9vh + env(safe-area-inset-bottom)); height: 28vh;
    font-size: clamp(19px, 5vw, 24px);
  }
  .ox-final { font-size: clamp(22px, 6vw, 28px); }
}
@media (max-width: 560px) {
  .brand-en { display: none; }
  .console-body { font-size: 12.5px; line-height: 1.9; min-height: 31em; padding: 18px 16px 22px; }
  .ln { grid-template-columns: 3em minmax(0, 1fr); gap: 4px 10px; }
  .ln .rs { grid-column: 2; }
  .console-bar { padding: 12px 16px; gap: 10px; }
  .footer-nav { gap: 24px; }
  .footer-kicker { font-size: 10px; letter-spacing: .14em; white-space: nowrap; }
  .hero-lede { font-size: 15.5px; letter-spacing: .1em; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .hero-title { font-size: min(8vw, 22vh); }
}

/* ---------- 404 ---------- */
.stage-fallback.is-on { display: block; }
.nf {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 40px var(--pad);
}
.nf-mark { width: 76px; height: 76px; margin-bottom: 40px; filter: drop-shadow(0 0 26px rgba(255, 170, 110, .4)); }
.nf .label { margin-bottom: 26px; }
.nf .label::after { display: none; }
.nf-title { font-family: var(--serif); font-size: clamp(2.4rem, 1rem + 5vw, 5rem); font-weight: 300; line-height: 1.2; letter-spacing: .04em; }
.nf-desc { margin-top: 18px; color: var(--ink-2); }
.nf-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; padding: 12px 22px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; letter-spacing: .08em;
  transition: border-color .3s, background-color .3s;
}
.nf-link:hover { border-color: var(--fire); background: rgba(255, 179, 92, .06); }
