

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --s12: 96px; --s16: 128px;
  --radius-sm: 2px; --radius-md: 3px; --radius-lg: 4px; --radius-xl: 6px;
  --maxw: 1400px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --win-bg: #101317; --win-bg-2: #14181d; --win-bg-3: #191e24;
  --win-border: rgba(255, 255, 255, 0.09);
  --win-border-soft: rgba(255, 255, 255, 0.06);
  --win-text: #e8edf2; --win-muted: #8b96a1; --win-dim: #5d6772;
  --win-ice: #8ed7ff; --win-teal: #4aa2d3;
  --win-pass: #63d6a4; --win-warn: #e2b563; --win-red: #e2695f;
  --logo-dark: url("logo-dark.png");
  --logo-light: url("logo-light.png");
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090b; --bg-panel: #16191d; --bg-panel-2: #1e2329;
  --border: rgba(255, 255, 255, 0.12); --border-strong: rgba(255, 255, 255, 0.20);

  --text: #eef2f5; --muted: #9aa4ad; --faint: #858f99;

  --note: #d9b98c; --note-ink: #e9dcc6; --note-bg: rgba(217, 185, 140, 0.07);
  --accent: #8ed7ff; --accent-deep: #4aa2d3; --accent-deeper: #3880b2;
  --accent-ink: #0c1216; --link: #8ed7ff;
  --pass: #63d6a4; --pass-border: rgba(99, 214, 164, 0.45); --pass-glow: rgba(99, 214, 164, 0.16);
  --warn: #e2b563;
  --band-hairline: rgba(238, 242, 245, 0.4);
  --hero-scrim: rgba(8, 9, 11, 0.62);
  --btn-solid-bg: #8ed7ff; --btn-solid-text: #0c1216; --btn-solid-hover: #a8e2ff;
  --header-bg: rgba(8, 9, 11, 0.74);
  --hairline-cell: rgba(255, 255, 255, 0.045);
  --aurora-a: rgba(142, 215, 255, 0.13); --aurora-b: rgba(74, 162, 211, 0.11); --aurora-c: rgba(50, 96, 170, 0.14);
  --band-bg: linear-gradient(135deg, #14202e 0%, #12283a 45%, #16334a 100%);
  --band-text: #eef2f5; --band-muted: #a9c3d6;
  --dot-grid: rgba(142, 215, 255, 0.13);
  --shadow-term: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 0 48px -16px rgba(142, 215, 255, 0.12);
  --shadow-card: 0 12px 32px -16px rgba(0, 0, 0, 0.4);
  --toggle-sun: none; --toggle-moon: block;

  --mark-light: #eef2f5; --mark-blue: #8ed7ff;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f7; --bg-panel: #ffffff; --bg-panel-2: #efece5;
  --border: rgba(15, 23, 32, 0.14); --border-strong: rgba(15, 23, 32, 0.26);
  --text: #16202a; --muted: #4d5964; --faint: #5f6a74;
  --note: #8a5a1c; --note-ink: #4a3a22; --note-bg: rgba(138, 90, 28, 0.07);
  --accent: #2a7fb8; --accent-deep: #3260aa; --accent-deeper: #24537d;
  --accent-ink: #faf9f7; --link: #1f6899;
  --pass: #1e8a63; --pass-border: rgba(30, 138, 99, 0.45); --pass-glow: rgba(30, 138, 99, 0.1);
  --warn: #8f5f00;
  --band-hairline: rgba(20, 41, 58, 0.4);
  --hero-scrim: rgba(250, 249, 247, 0.6);
  --btn-solid-bg: #16202a; --btn-solid-text: #faf9f7; --btn-solid-hover: #24313d;
  --header-bg: rgba(250, 249, 247, 0.78);
  --hairline-cell: rgba(15, 23, 32, 0.03);
  --aurora-a: rgba(142, 215, 255, 0.38); --aurora-b: rgba(74, 162, 211, 0.24); --aurora-c: rgba(50, 96, 170, 0.16);
  --band-bg: linear-gradient(135deg, #cfe7f8 0%, #b9d8ef 45%, #a7c9e6 100%);
  --band-text: #14293a; --band-muted: #34506b;
  --dot-grid: rgba(50, 96, 170, 0.26);
  --shadow-term: 0 16px 40px -12px rgba(22, 32, 42, 0.32), 0 0 48px -16px rgba(74, 162, 211, 0.2);
  --shadow-card: 0 12px 32px -16px rgba(22, 32, 42, 0.2);
  --toggle-sun: block; --toggle-moon: none;
  --mark-light: #2a7fb8; --mark-blue: #24537d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, .site-header, .sol, .buyer-grid, .spec-cell, .heritage-panel, .aurora-band,
.site-footer, .btn, .nav-links a, .rail-item {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s3); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-deep); color: #fff; }

.microlabel {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.microlabel::before { content: ""; width: 20px; height: 1px; background: var(--accent); flex: none; }

.section-rule { display: block; width: 20px; height: 1px; background: var(--accent); }

.section-head { margin-bottom: var(--s6); }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.025em;
  margin-top: var(--s2);
  max-width: 18em;
  color: var(--text);
}
.section-intro {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17.5px);
  max-width: 40em;
  line-height: 1.65;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--btn-solid-bg); color: var(--btn-solid-text); }
.btn-solid:hover {
  background: var(--btn-solid-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px var(--aurora-b), 0 2px 8px rgba(0,0,0,0.18);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent); transform: translateY(-2px); }
:root[data-theme="light"] .btn-ghost:hover { color: var(--link); }
.btn-sm { font-size: 13.5px; padding: 9px 20px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { display: inline-flex; flex: 0 1 auto; min-width: 0; align-items: center; }
.brand-logo .logo-lockup {
  display: block;
  aspect-ratio: 736 / 64;
  background-image: var(--logo-dark);
  background-size: contain; background-repeat: no-repeat; background-position: left center;
}
:root[data-theme="light"] .brand-logo .logo-lockup { background-image: var(--logo-light); }
.brand-logo .logo-header { height: 24px; width: 275px; }
.brand-logo .logo-footer { height: 22px; width: 252px; }
.nav-links { display: flex; align-items: center; gap: var(--s3); margin-left: var(--s2); }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); padding-bottom: 3px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.theme-toggle {
  appearance: none; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.theme-toggle .icon-sun { display: var(--toggle-sun); }
.theme-toggle .icon-moon { display: var(--toggle-moon); }
.nav-burger {
  display: none; appearance: none; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  width: 40px; height: 38px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}

html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js .win-reveal { opacity: 0; transform: translateY(22px) scale(0.985); }
html.js .win-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.hero {
  position: relative;
  padding-block: clamp(48px, 7vh, 88px) var(--s12);
  overflow: clip;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; }
.hero-eyebrow .microlabel { color: var(--text); letter-spacing: 0.22em; font-weight: 600; }
.hero-eyebrow .microlabel::before { display: none; }
.hero-mark { width: 44px; height: 44px; flex: none; overflow: visible; }
.hero h1 {
  font-size: clamp(36px, 4.3vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: var(--s4);
  text-wrap: balance;
}
.hero-sub {
  margin-top: var(--s3);
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero-stage { position: relative; }
.hero-aurora {
  position: absolute; inset: -18% -14% -24% -14%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 50% at 62% 40%, var(--aurora-a) 0%, transparent 70%),
    radial-gradient(38% 48% at 28% 76%, var(--aurora-b) 0%, transparent 72%),
    radial-gradient(48% 56% at 88% 82%, var(--aurora-c) 0%, transparent 75%);
  filter: blur(52px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 82%);
}
.hero-stage .term { position: relative; z-index: 1; }
.hero-strip {
  margin-top: var(--s4);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--faint);
}
.hero-strip a { color: var(--text); padding: 2px 0; border-bottom: 1px solid var(--border-strong); }
.hero-strip a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
:root[data-theme="light"] .hero-strip a:hover { color: var(--link); }
.hero-ctas { margin-top: var(--s4); }
.hero-sheet {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s3);
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.hero-sheet svg { width: 14px; height: 14px; }
.hero-sheet:hover { color: var(--text); }
.nobr { white-space: nowrap; }

.mark-piece { transform-box: fill-box; transform-origin: 50% 50%; }
.hero-mark .light polygon { fill: var(--mark-light); }
.hero-mark .blue polygon { fill: var(--mark-blue); }
html.js .assemble .mark-piece {
  opacity: 0;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
}
html.js .assemble.is-assembled .mark-piece {
  opacity: 1; transform: none;
  transition: transform 0.95s var(--ease-out), opacity 0.5s ease;
  transition-delay: var(--d, 0ms);
}
html.js .hero-mark.is-locked { animation: mark-lock 0.6s var(--ease-out) 1; }
@keyframes mark-lock {
  0% { filter: drop-shadow(0 0 0 rgba(142, 215, 255, 0)); }
  40% { filter: drop-shadow(0 0 10px rgba(142, 215, 255, 0.55)); }
  100% { filter: drop-shadow(0 0 0 rgba(142, 215, 255, 0)); }
}

.term {
  margin: 0;
  background: #0b0e12;
  border: 1px solid var(--win-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-term);
  overflow: hidden;
  --tfs: 12px; --lh: 18px;
}
.term-lg { --tfs: 14px; --lh: 21px; }
.win-chrome {
  display: flex; align-items: center; gap: var(--s2);
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid var(--win-border-soft);
  background: var(--win-bg-2);
}
.traffic { display: flex; gap: 7px; flex: none; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; background: #3a4149; }
.traffic i:nth-child(1) { background: #e0655c; }
.traffic i:nth-child(2) { background: #e2b563; }
.traffic i:nth-child(3) { background: #63c76a; }
.win-title {
  flex: 1; text-align: center;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--win-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.term-replay {
  appearance: none; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 47px; justify-content: flex-end;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 3px 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--win-muted); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.term-replay svg { width: 11px; height: 11px; }
.term-replay:hover, .term-replay:focus-visible { color: var(--win-ice); border-color: var(--win-border); }
html:not(.js) .term-replay { visibility: hidden; }

.term-out {

  height: calc(var(--rows, 12) * var(--lh) + 30px);
  padding: 14px 18px 16px;

  overflow-x: auto; overflow-y: hidden;
  font-family: var(--font-mono);
  font-size: var(--tfs);
  line-height: var(--lh);
  color: #c9d4dd;
  font-variant-ligatures: none;
  tab-size: 8;
  scrollbar-width: thin;
  scrollbar-color: #2a3139 transparent;
  overscroll-behavior: auto;
}
.term-out::-webkit-scrollbar { width: 8px; height: 8px; }
.term-out::-webkit-scrollbar-thumb { background: #2a3139; border-radius: 4px; }
.term-out:focus-visible { outline-offset: -3px; }
.term-line { white-space: pre; min-height: var(--lh); }
.term-out.wrap .term-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-cmd { color: var(--win-text); }
.term-cmd + .term-cmd { margin-top: 0; }
.term-line.term-cmd:not(:first-child):not(.term-cont) { margin-top: calc(var(--lh) * 0.5); }
.t-hl { background: rgba(226, 181, 99, 0.16); box-shadow: 0 0 0 2px rgba(226, 181, 99, 0.16); border-radius: 1px; }
.a-245 { color: #8a8a8a; }
.t-path { color: #7e8994; }
.t-prompt { color: var(--win-ice); }
.t-cmd { color: var(--win-text); }
.term-gap {
  height: calc(var(--lh) * 0.7); min-height: 0;
  background: linear-gradient(90deg, var(--win-dim) 0 3px, transparent 3px 7px) left center / 7px 1px repeat-x;
  opacity: 0.55; max-width: 120px;
}
.term-pending {
  display: inline-block;
  margin-top: 2px;
  padding: 0 8px;
  border: 1px dashed rgba(226, 181, 99, 0.55);
  border-radius: var(--radius-sm);
  color: var(--win-warn);
  background: rgba(226, 181, 99, 0.06);
  white-space: pre-wrap;
}
.term-cursor {
  display: inline-block; width: 0.6em; height: calc(var(--tfs) + 1px);
  background: var(--win-ice); vertical-align: -2px; margin-left: 1px;
}
html.js .term-cursor { animation: blink 1.1s steps(1) infinite; }
html.js .term.is-typing .term-cursor { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
html.js .term-line.is-new { animation: line-in 0.16s ease-out both; }
@keyframes line-in { from { opacity: 0; } to { opacity: 1; } }

.a-b { font-weight: 700; }
.a-d { opacity: 0.62; }
.a-i { font-style: italic; }
.a-u { text-decoration: underline; text-underline-offset: 2px; }
.a-f0 { color: #5d6772; }  .a-f8  { color: #7e8994; }
.a-f1 { color: #e2695f; }  .a-f9  { color: #ff8b80; }
.a-f2 { color: #63d6a4; }  .a-f10 { color: #7fe6b8; }
.a-f3 { color: #e2b563; }  .a-f11 { color: #f2cd80; }
.a-f4 { color: #4aa2d3; }  .a-f12 { color: #8ed7ff; }
.a-f5 { color: #c49ad8; }  .a-f13 { color: #dcb6ee; }
.a-f6 { color: #5cc3c7; }  .a-f14 { color: #92e3e5; }
.a-f7 { color: #c9d4dd; }  .a-f15 { color: #f5f8fa; }
.a-g0 { background: #1b2026; } .a-g8  { background: #2a3139; }
.a-g1 { background: #5a2420; } .a-g9  { background: #7a302a; }
.a-g2 { background: #1d4a38; } .a-g10 { background: #23604a; }
.a-g3 { background: #54431f; } .a-g11 { background: #6c5626; }
.a-g4 { background: #1b3c55; } .a-g12 { background: #245072; }
.a-g5 { background: #47304f; } .a-g13 { background: #5b3d66; }
.a-g6 { background: #1b4547; } .a-g14 { background: #245a5c; }
.a-g7 { background: #c9d4dd; color: #0b0e12; } .a-g15 { background: #f5f8fa; color: #0b0e12; }

.section { padding-block: var(--s4) var(--s12); scroll-margin-top: 72px; }
.section + .section { padding-top: var(--s4); }

.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.sol {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-panel);
  padding: var(--s4);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.3s var(--ease-out);
}
.sol:hover { border-color: var(--border-strong); }
.sol-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: var(--s3);
}
:root[data-theme="light"] .sol-num { color: var(--accent-deep); }
.sol h3 { font-size: 18.5px; letter-spacing: -0.015em; line-height: 1.25; }
.sol p { margin-top: var(--s1); color: var(--muted); font-size: 15px; line-height: 1.65; }

.strip {
  position: sticky; top: 64px; z-index: 20;
  margin-bottom: var(--s2);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-fill {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent-deep);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.strip-item a {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  padding: 15px 0 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.strip-item a:hover { color: var(--text); text-decoration: none; }
.strip-num { color: var(--faint); }
.strip-item.is-done a { color: var(--text); }
.strip-item.is-active a { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.strip-item.is-active .strip-num { color: var(--accent); }
:root[data-theme="light"] .strip-item.is-active .strip-num { color: var(--accent-deep); }

.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s6);
  align-items: start;
  padding-block: var(--s8);
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.step:first-child { border-top: 0; padding-top: var(--s2); }
.step:last-child { padding-bottom: 0; }
.step h3, .section-head h2, .feature-copy h2, .heritage-panel h2, .aurora-band h2 { text-wrap: balance; }
.step-copy { position: sticky; top: 112px; }
.step h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; margin-top: var(--s2); }
.step p { margin-top: var(--s2); color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 30em; }
.step .step-kicker {
  margin-top: 0;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; line-height: 1.4;
  text-transform: uppercase; color: var(--accent);
}
:root[data-theme="light"] .step .step-kicker { color: var(--accent-deep); }
.step-media { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }

.subbeat { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--border); }
.subbeat h4 { font-size: 16px; letter-spacing: -0.01em; color: var(--text); }
.subbeat p { margin-top: var(--s1); font-size: 15px; }

.page-note {
  position: relative;
  margin-top: var(--s4);
  padding: 12px 16px 12px 18px;
  border-left: 2px solid var(--note);
  background: var(--note-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 30em;
}
.step .page-note p, .page-note p {
  margin: 0; font-family: var(--font-sans); font-style: italic;
  font-size: 15px; line-height: 1.6; color: var(--note-ink);
}
.page-note strong { font-style: normal; font-weight: 650; color: var(--note-ink); }
.note-ref {
  display: inline-block; margin-right: 8px;
  font-family: var(--font-mono); font-style: normal; font-size: 12px; letter-spacing: 0.04em;
  color: var(--note); vertical-align: 1px;
}
@media (min-width: 1081px) {
  .page-note::after {
    content: ""; position: absolute; top: 50%; right: -40px; width: 32px; height: 1px;
    background: linear-gradient(90deg, var(--note) 0 2px, transparent 2px 5px) 0 0 / 5px 1px repeat-x;
  }
}

.code-out {
  margin: 0; padding: 14px 18px 16px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.75;
  color: #cfd9e2; background: #0b0e12;
  overflow-x: auto; tab-size: 4;
}
.code-out code { display: block; font: inherit; }
.code-out .code-line { display: block; white-space: pre; }
.c-kw { color: var(--win-ice); }
.c-type { color: #b7a6f0; }
.c-field { color: #8b96a1; }
.c-verify { color: var(--win-pass); }
.c-dim { color: #7a8591; }
.c-str { color: #e2b563; }
.diff .code-line { padding-left: 22px; position: relative; margin-inline: -18px; padding-right: 18px; }
.diff .code-line::before {
  content: attr(data-sign); position: absolute; left: 8px; color: inherit; opacity: 0.9;
}
.diff .code-del { background: rgba(226, 105, 95, 0.10); }
.diff .code-del::before { color: #ff8b80; }
.diff .code-add { background: rgba(99, 214, 164, 0.10); }
.diff .code-add::before { color: #7fe6b8; }
.diff code + code { margin-top: 10px; }
.diff .code-line:first-child { margin-left: -18px; }

.artifact-dark { background: #0b0e12; padding: var(--s3) var(--s4); display: flex; justify-content: center; }
.artifact-dark img { width: 100%; max-width: 460px; height: auto; }

.idea-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: center; }
.idea-copy h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.025em; margin-top: var(--s2); max-width: 12em; text-wrap: balance; }
.idea-panel {
  position: relative; margin: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: radial-gradient(var(--dot-grid) 1px, transparent 1.4px) 0 0 / 20px 20px, var(--hairline-cell);
  padding: var(--s4) var(--s3) var(--s3);
}
.idea-panel .idea-replay { position: absolute; top: 10px; right: 10px; color: var(--muted); }
.idea-panel .idea-replay:hover, .idea-panel .idea-replay:focus-visible { color: var(--accent); border-color: var(--border); }
.idea-fig { width: 100%; height: auto; overflow: visible; }
.idea-fig .lf-box { fill: var(--bg-panel); stroke: var(--accent-deep); stroke-width: 1; }
.idea-fig .lf-name { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; fill: var(--text); text-anchor: middle; }
.idea-fig .lf-line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 5; }
.idea-fig .msg-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; }
.idea-fig .wait-label { fill: var(--warn); }
.idea-fig .fix-label { fill: var(--accent); text-anchor: middle; }
.idea-fig .wait-line { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 7 6; }
.idea-fig .wait-dot { fill: var(--warn); }
.idea-fig .fix-path { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 100; }
.idea-fig .fix-head { fill: var(--accent); }
.idea-fig .chip rect { stroke-width: 1; }
.idea-fig .chip text { font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-anchor: middle; }
.idea-fig .chip-bad rect { fill: rgba(226, 181, 99, 0.10); stroke: var(--warn); }
.idea-fig .chip-bad text { fill: var(--warn); }
.idea-fig .chip-good rect { fill: var(--pass-glow); stroke: var(--pass-border); }
.idea-fig .chip-good text { fill: var(--pass); }
.idea-fig .wait-a .wait-line { transform-origin: 120px 166px; }
.idea-fig .wait-b .wait-line { transform-origin: 400px 254px; }

.idea-fig[data-phase="final"] .wait, .idea-fig[data-phase="final"] .chip-bad { opacity: 0; }
.idea-fig[data-phase="final"] .fix-path { stroke-dashoffset: 0; }

.idea-fig[data-phase="hold"] .fix, .idea-fig[data-phase="hold"] .chip-good { opacity: 0; }

.idea-fig[data-phase="reset"] .wait, .idea-fig[data-phase="reset"] .fix,
.idea-fig[data-phase="reset"] .chip { opacity: 0; }

.idea-fig[data-phase="wait"] .fix, .idea-fig[data-phase="wait"] .chip-good { opacity: 0; }
.idea-fig[data-phase="wait"] .wait-line { animation: idea-reach 0.9s var(--ease-out) both; }
.idea-fig[data-phase="wait"] .wait-b .wait-line { animation-delay: 0.45s; }
.idea-fig[data-phase="wait"] .wait-label { animation: idea-in 0.4s ease both; }
.idea-fig[data-phase="wait"] .wait-b .wait-label { animation-delay: 0.45s; }
.idea-fig[data-phase="wait"] .wait-dot { animation: idea-pulse 1.2s ease-in-out 1s infinite both; }
.idea-fig[data-phase="wait"] .wait-dot.d2 { animation-delay: 1.15s; }
.idea-fig[data-phase="wait"] .wait-dot.d3 { animation-delay: 1.3s; }
.idea-fig[data-phase="wait"] .chip-bad { animation: idea-in 0.4s ease 1.5s both; }

.idea-fig[data-phase="fix"] .wait { animation: idea-out 0.4s ease both; }
.idea-fig[data-phase="fix"] .chip-bad { animation: idea-out 0.3s ease 1.9s both; }
.idea-fig[data-phase="fix"] .fix-label { animation: idea-in 0.3s ease 0.4s both; }
.idea-fig[data-phase="fix"] .fix-b .fix-label { animation-delay: 1.2s; }
.idea-fig[data-phase="fix"] .fix-path { animation: idea-draw 0.75s var(--ease-out) 0.4s both; }
.idea-fig[data-phase="fix"] .fix-b .fix-path { animation-delay: 1.2s; }
.idea-fig[data-phase="fix"] .fix-head { animation: idea-in 0.2s ease 1.1s both; }
.idea-fig[data-phase="fix"] .fix-b .fix-head { animation-delay: 1.9s; }
.idea-fig[data-phase="fix"] .chip-good { animation: idea-in 0.4s ease 2.1s both; }
@keyframes idea-reach { 0% { transform: scaleX(0); opacity: 0; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes idea-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes idea-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes idea-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes idea-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.hero-eyebrow { gap: 18px; }
.hero .hero-mark { width: 76px; height: 76px; }
.hero-name { margin: 0; display: flex; flex-direction: column; line-height: 1; }
.hn-tangram {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.42em;
  color: var(--muted); margin-bottom: 8px;
}
.hn-tenon { font-size: 40px; font-weight: 800; letter-spacing: 0.14em; color: var(--text); }
.cards-label { margin-bottom: var(--s3); }

.t-comment { color: #a6e1ff; font-style: italic; font-weight: 600; }

.idea-panel { padding: var(--s3); }
.idea-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.idea-split .idea-fig + .idea-fig { border-left: 1px solid var(--border); padding-left: var(--s3); }

.idea-split .lf-name { font-size: 22px; }
.idea-split .msg-label { font-size: 20px; }
.idea-split .chip text { font-size: 18px; }
.idea-split .lf-box { stroke-width: 1.6; }
.artifact-dark { padding: var(--s2) var(--s4) var(--s3); }
.artifact-dark img { max-width: 380px; }
.idea-anim { display: none; position: relative; }
html.js:not(.static) .idea-anim { display: block; }
html.js:not(.static) .idea-split { display: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .idea-anim { display: none !important; }
  html.js .idea-split { display: grid !important; }
}
.idea-anim .idea-replay { position: absolute; top: -14px; right: -14px; }

.wf-row { display: grid; grid-template-columns: minmax(0, 6fr) auto minmax(0, 6fr); gap: var(--s3); align-items: center; }
.wf-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--accent); }
:root[data-theme="light"] .wf-arrow { color: var(--accent-deep); }
.wf-arrow svg { width: 64px; height: 24px; }
.wf-arrow-line, .wf-arrow-head { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-arrow-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.pipeline {
  margin: 0; padding: var(--s4) var(--s3) var(--s3);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: radial-gradient(var(--dot-grid) 1px, transparent 1.4px) 0 0 / 20px 20px, var(--bg-panel);
}

.pl-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pl-stage { position: relative; display: flex; flex-direction: row; align-items: center; gap: 16px; min-width: 0; }
.pl-stage-name { width: 72px; flex: none; }
.pl-job { flex: 1; }
.pl-stage + .pl-stage::before {
  content: ""; position: absolute; left: 106px; top: -16px; width: 2px; height: 16px;
  background: var(--pass); opacity: 0.8;
}
.pl-stage-name {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.pl-job {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 10px 10px; border: 1px solid var(--pass-border); border-radius: 999px;
  background: var(--bg-panel-2);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-dot {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--pass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230c1216' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.pl-caption { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--border); }
.pl-file { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.pipeline.pl-armed .pl-job { border-color: var(--border); }
.pipeline.pl-armed .pl-dot { background: var(--border-strong); }
.pipeline.pl-armed .pl-stage + .pl-stage::before { background: var(--border); }
.pipeline.pl-run .pl-job { animation: pl-job 0.4s ease both; animation-delay: calc(var(--i) * 0.55s + 0.1s); }
.pipeline.pl-run .pl-dot { animation: pl-dot 0.4s ease both; animation-delay: calc(var(--i) * 0.55s + 0.1s); }
.pipeline.pl-run .pl-stage + .pl-stage::before { animation: pl-conn 0.3s ease both; animation-delay: calc(var(--i) * 0.55s - 0.15s); }
@keyframes pl-job { to { border-color: var(--pass-border); box-shadow: 0 0 0 3px var(--pass-glow); } }
@keyframes pl-dot { 0% { background-color: var(--border-strong); } 100% { background-color: var(--pass); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%230c1216' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
@keyframes pl-conn { to { background: var(--pass); } }

.agent-split .agent-illus { justify-content: flex-start; padding-top: var(--s4); }
.agent-split .agent-illus figcaption { order: -1; padding-top: 0; padding-bottom: var(--s2); border-top: 0; border-bottom: 1px solid var(--border); color: var(--note); }
.agent-say .agent-then { padding-top: var(--s1); }

.change-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.change-table th {
  text-align: left; padding: 0 var(--s4) var(--s2) 0;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.change-table th.ch-stop { color: var(--faint); }
.change-table th.ch-start { color: var(--accent); padding-left: var(--s4); }
:root[data-theme="light"] .change-table th.ch-start { color: var(--accent-deep); }
.change-table td { padding: 20px var(--s4) 20px 0; border-top: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.change-table td.ch-stop { color: var(--faint); font-size: 16.5px; text-decoration: line-through; text-decoration-color: var(--border-strong); text-decoration-thickness: 1px; }
.change-table td.ch-start {
  position: relative; padding-left: var(--s4); color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.change-table td.ch-start::before {
  content: "→"; position: absolute; left: 0; top: 20px; color: var(--pass); font-weight: 400;
}

.checks-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--hairline-cell); }
.checks-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.checks-table th, .checks-table td { text-align: left; vertical-align: top; padding: 18px 24px; border-top: 1px solid var(--border); }
.checks-table thead th, .checks-table thead td { border-top: 0; }
.checks-table th + td, .checks-table td + td, .checks-table th + th, .checks-table td + th { border-left: 1px solid var(--border); }
.checks-table thead th {
  font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--text); padding-block: 22px;
}
.checks-table .ct-corner { width: 18%; }
.checks-table tbody th {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); padding-top: 21px;
}
.checks-table tbody td { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.checks-table .ct-limit td { color: var(--muted); }
.checks-table .ct-limit th { color: var(--warn); }

.ci-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.ci .feature-wide { margin-top: var(--s3); }
.inline-code {
  font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-panel);
  color: var(--text);
}

.agent-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s3); align-items: stretch; }
.agent-illus {
  margin: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--s3);
  padding: var(--s5) var(--s4);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--hairline-cell);
}
.agent-say { display: flex; flex-direction: column; gap: var(--s2); }
.agent-say p {
  font-family: var(--font-sans); font-style: italic; font-size: 16px; line-height: 1.6; color: var(--note-ink);
}
.agent-who {
  display: block; margin-bottom: 2px;
  font-family: var(--font-mono); font-style: normal; font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--note);
}
.agent-illus figcaption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding-top: var(--s2); border-top: 1px solid var(--border);
}

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6); margin: 0; }
.faq-item { padding: var(--s3) 0; border-top: 1px solid var(--border); }
.faq-item dt { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.faq-item dd { margin: var(--s1) 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

.artifact { margin: 0; }
.artifact[hidden] { display: none; }

.artifact-paper {
  background: #ffffff;
  padding: var(--s3) var(--s4);
  display: flex; justify-content: center;
}
.artifact-paper img { width: 100%; max-width: 440px; height: auto; }
.artifact-shot { overflow: hidden; }
.artifact-shot img { width: 100%; height: auto; }
.win-chrome-spacer { width: 47px; flex: none; }
.feature-wide { max-width: 1160px; margin-inline: auto; }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: center;
}
.feature-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.025em; margin-top: var(--s2); max-width: 15em; }
.feature-copy p { margin-top: var(--s3); color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.7; max-width: 34em; }
.feature-wide { margin-top: var(--s8); }

.heritage-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s8);
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--hairline-cell);
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.heritage-panel::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%;
  background: radial-gradient(var(--dot-grid) 1px, transparent 1.4px) 0 0 / 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  opacity: 0.6; pointer-events: none;
}
.heritage-panel > * { position: relative; z-index: 1; }
.heritage-panel h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.025em; margin-top: var(--s2); max-width: 12em; }
.heritage-panel p { color: var(--muted); font-size: clamp(15.5px, 1.35vw, 18px); line-height: 1.7; max-width: 36em; }

.buyer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--hairline-cell);
}
.buyer { padding: var(--s5) var(--s4); border-left: 1px solid var(--border); }
.buyer:first-child { border-left: 0; }
.buyer-role {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; line-height: 1.35; color: var(--text); margin: 0;
}
.buyer-role .colon { position: absolute; opacity: 0; width: 1px; overflow: hidden; }
.buyer p { position: relative; margin-top: var(--s3); padding-left: 26px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.buyer p::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--pass);
}

.spec-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--hairline-cell);
}
.spec-cell { padding: var(--s4) var(--s4) var(--s4); border-left: 1px solid var(--border); }
.spec-cell:first-child { border-left: 0; }
.spec-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 10px;
}
.spec-label .colon { position: absolute; opacity: 0; width: 1px; overflow: hidden; }
.spec-strip, .spec-value { margin: 0; }
.spec-value { font-size: 15px; line-height: 1.55; color: var(--text); }

.aurora-band-wrap { padding-block: var(--s8) var(--s16); scroll-margin-top: 72px; }
.aurora-band {
  position: relative; border-radius: var(--radius-xl);
  background: var(--band-bg); border: 1px solid var(--border);
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  color: var(--band-text);
}
.aurora-band::before {
  content: ""; position: absolute; inset: -40%;
  background:
    radial-gradient(38% 45% at 30% 30%, var(--aurora-a) 0%, transparent 70%),
    radial-gradient(42% 50% at 75% 65%, var(--aurora-b) 0%, transparent 72%),
    radial-gradient(30% 40% at 55% 90%, var(--aurora-c) 0%, transparent 70%);
  filter: blur(48px); pointer-events: none;
}
.aurora-band > * { position: relative; }
.af-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s8); align-items: start; }
.aurora-band h2 { font-size: clamp(28px, 4vw, 50px); letter-spacing: -0.025em; max-width: 12em; margin-top: var(--s2); }
.aurora-band .af-sub { margin-top: var(--s3); color: var(--band-muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; max-width: 28em; }
.aurora-band .microlabel { color: var(--band-muted); }
.contact-links { margin-top: var(--s5); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--band-text);
}
.contact-links a .ico {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--band-hairline); border-radius: var(--radius-md);
}
.contact-links a .ico svg { width: 14px; height: 14px; }
.contact-links a:hover { text-decoration: none; }
.contact-links a:hover .lbl { text-decoration: underline; text-underline-offset: 3px; }
.contact-links .docs { font-size: 13px; font-weight: 500; color: var(--band-muted); }

.form-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-term);
  padding: 30px 30px 26px;
  color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.demo-field { margin-bottom: 14px; }
.demo-field label {
  display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--muted); margin-bottom: 6px;
}
.demo-field .opt { color: var(--faint); }
.demo-req { color: var(--accent); }
.demo-field input, .demo-field textarea, .demo-field select {
  width: 100%; box-sizing: border-box;
  background: var(--bg-panel-2);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text); font-family: var(--font-sans); font-size: 15px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.demo-field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 34px;
}
.demo-field textarea { resize: vertical; min-height: 112px; }
.demo-field input:focus, .demo-field textarea:focus, .demo-field select:focus {
  outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 2px var(--aurora-b);
}
.demo-field .is-invalid { border-color: var(--win-red); }
.demo-form__submit { width: 100%; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { border-top: 1px solid var(--border); padding-block: var(--s6) var(--s4); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr) minmax(0, 4fr); gap: var(--s5); }
.footer-brand p { margin-top: var(--s2); color: var(--muted); font-size: 14px; max-width: 24em; }
.footer-contact { margin-top: var(--s3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s5); max-width: 30em; }
.footer-contact h3, .footer-col h3 {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 var(--s1); line-height: 1.4;
}
.footer-col h3 { margin-bottom: var(--s2); }
.footer-contact p { margin: 0 0 var(--s2); color: var(--muted); font-size: 14px; line-height: 1.7; max-width: none; }
.footer-contact p:last-child { margin-bottom: 0; }
.footer-contact a { color: var(--muted); font-size: 14px; }
.footer-contact a:hover { color: var(--text); text-decoration: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-top: 10px; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-legal {
  margin-top: var(--s5); padding-top: var(--s2); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between;
  font-size: 12.5px; color: var(--faint);
}
.footer-policies { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.footer-policies a { color: var(--muted); }
.footer-policies a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-copy { max-width: 760px; }
  .hero h1 { font-size: clamp(36px, 6.4vw, 60px); }
  .idea-grid, .agent-split { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .strip { margin-inline: calc(var(--s3) * -1); padding: 0 var(--s3); }
  .step { grid-template-columns: 1fr; gap: var(--s4); }
  .step:first-child { padding-top: var(--s6); }
  .step-copy { position: static; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: var(--s5); }
  .feature-row.flip .feature-copy { order: 0; }
  .heritage-panel { grid-template-columns: 1fr; gap: var(--s3); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--s2) var(--s3) var(--s3); margin: 0;
  }
  .nav-open .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 16px; box-shadow: none; }
  .nav-open .nav-links a:last-child { border-bottom: 0; }
  .ci-pair, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .buyer-grid { grid-template-columns: 1fr; }
  .buyer, .buyer:first-child { border-left: 0; }
  .buyer:nth-child(n + 2) { border-top: 1px solid var(--border); }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec-cell:nth-child(odd) { border-left: 0; }
  .spec-cell:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .af-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section { padding-block: var(--s3) var(--s6); }
  .section + .section { padding-top: var(--s5); }
  .section-head { margin-bottom: var(--s3); }
  .hero { padding-bottom: var(--s6); }
  .aurora-band-wrap { padding-block: var(--s3) var(--s8); }
  .term, .term-lg { --tfs: 11px; --lh: 16.5px; }

  .term-out.wrap .term-line { white-space: pre; overflow-wrap: normal; }
  .term-out { padding: 12px 14px 14px; }
  .step { padding-block: var(--s5); }
  .feature-wide { margin-top: var(--s5); }
  .artifact-paper { padding: var(--s3) var(--s2); }
}
@media (max-width: 640px) {
  .header-actions .btn { display: none; }
  .brand-logo .logo-header { height: 20px; width: 210px; }
  .form-row { grid-template-columns: 1fr; }
  .form-panel { padding: 24px 20px 20px; }
  .checks-table th, .checks-table td { padding: 14px 14px; }
  .checks-table tbody td { font-size: 14.5px; }
  .checks-table thead th { font-size: 16px; }
  .checks-table .ct-corner { width: 22%; }
}
@media (max-width: 560px) {
  .sol-grid { grid-template-columns: 1fr; }
  .strip-item a { font-size: 10px; letter-spacing: 0.12em; }
  .strip-num { display: none; }

  .t-col { display: none; }

  .term { margin-inline: calc(var(--s3) * -1); border-radius: 0; border-left: 0; border-right: 0; }
  .term, .term-lg { --tfs: 10.5px; --lh: 16px; }
  .term-out, .code-out { padding-inline: 12px; }
  .code-out { font-size: 10.5px; }
  .diff .code-line { margin-inline: -12px; padding-right: 12px; }
  .artifact .term { margin-inline: calc(var(--s3) * -1); }

  .checks-table, .checks-table thead, .checks-table tbody, .checks-table tr { display: block; }
  .checks-table thead tr, .checks-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .checks-table .ct-corner { display: none; }
  .checks-table tbody th { grid-column: 1 / -1; padding-bottom: 0; border-left: 0 !important; }
  .checks-table tbody td { border-top: 0; }
  .checks-table td, .checks-table th { display: block; width: auto; }
  .checks-table thead th:first-of-type { border-left: 0; }
  .checks-table tbody th + td { border-left: 0; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .brand-logo .logo-header { width: 168px; }
}

.hero-c { padding-block: clamp(56px, 9vh, 104px) var(--s10); text-align: center; }
.hero-c .hero-aurora { inset: 30% -10% -10% -10%; height: auto; }
.hero-c-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-lockup { display: flex; align-items: center; gap: 28px; }
.hero-c .hero-mark { width: 168px; height: 168px; }
.hero-c .hero-name { text-align: left; }
.hero-c .hn-tangram { font-size: 22px; letter-spacing: 0.5em; margin-bottom: 12px; }
.hero-c .hn-tenon { font-size: clamp(64px, 8vw, 104px); letter-spacing: 0.1em; line-height: 0.9; }
.hero-c h1 {
  margin-top: var(--s6);
  font-size: clamp(44px, 6.6vw, 92px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  max-width: 14em; text-wrap: balance;
}
.hero-c .hero-sub { margin-top: var(--s3); max-width: 40em; margin-inline: auto; font-size: clamp(17px, 1.5vw, 20px); }
.hero-c .hero-ctas { justify-content: center; margin-top: var(--s5); }
.hero-term { width: 100%; max-width: 900px; margin-top: var(--s8); text-align: left; position: relative; z-index: 1; }
.hero-term.term-lg { --tfs: 15px; --lh: 23px; }
.hero-term .term-out { padding: 20px 26px 22px; }
.hero-term .term-out.is-stacked, html:not(.js) .hero-term .term-out { height: auto; }
.scene-block + .scene-block { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--win-border); }
.scene-block::before {
  display: block; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--win-muted);
}
.scene-block[data-scene="hero_define"]::before { content: "DEFINE"; }
.scene-block[data-scene="hero_check"]::before { content: "CHECK"; }
.scene-block[data-scene="hero_test"]::before { content: "TEST"; }
.scene-block[data-scene="hero_trace"]::before { content: "TRACE"; }
.term-replay[hidden] { display: none; }
.cycle-pause .ic-play { display: none; }
.hero-term.is-paused .cycle-pause .ic-play { display: inline; }
.hero-term.is-paused .cycle-pause .ic-pause { display: none; }
.scene-steps {
  margin-top: var(--s3); display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em; color: var(--faint);
}
.scene-step {
  appearance: none; background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 6px 4px; font: inherit; letter-spacing: inherit; color: var(--muted); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.scene-step:hover { color: var(--text); }
.scene-step.is-current { color: var(--text); border-bottom-color: var(--accent); }
.scene-step:disabled { cursor: default; color: var(--muted); }

html:not(.js) .scene-steps, html.static .scene-steps { display: none; }
@media (prefers-reduced-motion: reduce) { .scene-steps { display: none; } }

.hz-on .hz-pin {
  position: sticky; top: var(--hh, 64px);
  height: calc(100vh - var(--hh, 64px));
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hz-on .hz-pin > .container { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hz-on .strip { position: relative; top: auto; margin-bottom: 0; }
.hz-on .hz-viewport { flex: 1; overflow: hidden; display: flex; align-items: center; min-height: 0; }
.hz-on .hz-track { display: flex; flex-direction: row; align-items: flex-start; will-change: transform; }
.hz-on .hz-panel {
  flex: 0 0 var(--pw, 100%); width: var(--pw, 100%);
  border-top: 0; padding: var(--s4) 0 var(--s3);
}
.hz-on .hz-panel .step-copy { position: static; }
.hz-on .hz-panel .idea-fig { max-height: 200px; }
.hz-on .hz-panel .idea-panel { padding: var(--s2); }
.hz-on .hz-panel .idea-anim .idea-replay { top: -8px; right: -8px; }
.hz-on .hz-panel .artifact-dark img { max-width: 330px; }

.bg-shape-left {
  position: fixed; top: 64px; left: 0; width: clamp(300px, 35vw, 665px); height: auto;
  pointer-events: none; z-index: -1; opacity: 0.6; user-select: none;
}
.bg-shape-left-light {
  position: fixed; top: 64px; left: 0; width: clamp(300px, 35vw, 665px); height: auto;
  pointer-events: none; z-index: -1; opacity: 0.6; user-select: none; display: none;
}
:root[data-theme="light"] .bg-shape-left { display: none; }
:root[data-theme="light"] .bg-shape-left-light { display: block; }
.bg-shape-right {
  position: fixed; top: 64px; right: 0; width: clamp(300px, 35vw, 665px); height: auto;
  pointer-events: none; z-index: -1; opacity: 0.6; user-select: none;
}
.bg-shape-right-light {
  position: fixed; top: 64px; right: 0; width: clamp(300px, 35vw, 665px); height: auto;
  pointer-events: none; z-index: -1; opacity: 0.6; user-select: none; display: none;
}
:root[data-theme="light"] .bg-shape-right { display: none; }
:root[data-theme="light"] .bg-shape-right-light { display: block; }
@media (max-width: 900px) { .bg-shape-right, .bg-shape-right-light { display: none !important; } }

.hz-on .hz-pin { height: var(--pin-h, auto); }
.hz-on .hz-track { transition: transform 0.45s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .hz-on .hz-track { transition: none; } }

.hero-c .scene-steps { margin-top: var(--s8); font-size: 15px; letter-spacing: 0.2em; gap: 14px; }
.hero-c .scene-step { padding: 6px 6px 8px; border-bottom-width: 2px; }
.hero-c .scene-step.is-current {
  color: var(--accent); border-bottom-color: var(--accent);
  text-shadow: 0 0 18px var(--aurora-a);
}
:root[data-theme="light"] .hero-c .scene-step.is-current { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
.scene-caption { position: relative; height: 1.6em; margin-top: var(--s2); width: 100%; font-size: clamp(16px, 1.5vw, 19px); }
.scene-caption .sc-line {
  position: absolute; inset: 0; margin: 0; color: var(--muted); text-align: center;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.scene-caption .sc-line.is-current { opacity: 1; transform: none; color: var(--text); }
.hero-c .hero-term { margin-top: var(--s4); }
html:not(.js) .scene-caption, html.static .scene-caption { display: none; }
@media (prefers-reduced-motion: reduce) { .scene-caption { display: none; } }

.sc-tab-list { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.sc-tab {
  position: relative; display: flex; align-items: baseline; gap: 10px;
  padding: 14px 4px 16px; color: var(--muted);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.sc-tab:hover { color: var(--text); text-decoration: none; }
.sc-num { color: var(--faint); }
.sc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--border); overflow: hidden; border-radius: 1px; }
.sc-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform 0.1s linear; }
:root[data-theme="light"] .sc-bar i { background: var(--accent-deep); }
.sc-tab.is-current { color: var(--text); }
.sc-tab.is-current .sc-num { color: var(--accent); }
:root[data-theme="light"] .sc-tab.is-current .sc-num { color: var(--accent-deep); }
.sc.is-paused .sc-tab.is-current .sc-bar i { opacity: 0.55; }

.sc:not(.sc-on) .sc-bar { display: none; }
.sc-on .sc-viewport { position: relative; overflow: hidden; }
.sc-on .sc-track {
  display: flex; flex-direction: row; align-items: flex-start; gap: var(--gutter, 64px);
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.sc-on .sc-panel {
  flex: 0 0 var(--pw, 100%); width: var(--pw, 100%);
  border-top: 0; padding: var(--s3) 0 0;
  opacity: 0.12; transition: opacity 0.5s var(--ease-out);
}
.sc-on .sc-panel.is-current { opacity: 1; }
.sc-on .sc-panel .step-copy { position: static; }
.sc-review .sc-track, .sc-review .sc-panel, .sc-review .sc-bar i { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .sc-on .sc-track, .sc-on .sc-panel { transition: none; } }

.cmp-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--hairline-cell);
}
.cmp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--border); line-height: 1.5; }
.cmp-table thead th, .cmp-table thead td { border-top: 0; }
.cmp-corner { width: 27%; }
.cmp-table thead th { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; padding-block: 18px; }
.cmp-table thead th.cmp-self { color: var(--faint); }
.cmp-table thead th.cmp-tenon { color: var(--accent); }
:root[data-theme="light"] .cmp-table thead th.cmp-tenon { color: var(--accent-deep); }
.cmp-table tbody th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); padding-top: 19px;
}
.cmp-table td.cmp-self { color: var(--faint); font-size: 14.5px; }
.cmp-table td.cmp-tenon { color: var(--text); font-size: 15px; font-weight: 600; background: rgba(142, 215, 255, 0.04); }
:root[data-theme="light"] .cmp-table td.cmp-tenon { background: rgba(50, 96, 170, 0.05); }
.cmp-table th.cmp-tenon { background: rgba(142, 215, 255, 0.06); }
@media (max-width: 640px) {

  .cmp-table, .cmp-table thead, .cmp-table tbody, .cmp-table tr { display: block; }
  .cmp-table tr { display: grid; grid-template-columns: 1fr 1fr; }
  .cmp-corner { display: none; }
  .cmp-table tbody th { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-table tbody td { border-top: 0; }
  .cmp-table th, .cmp-table td { padding: 12px 14px; }
  .sc-tab { font-size: 10.5px; letter-spacing: 0.1em; gap: 6px; padding-inline: 0; }
  .sc-tab-list { gap: 8px; }
  .hero-c .scene-steps { font-size: 12px; gap: 8px; }
  .scene-caption { height: 3em; font-size: 15px; }
}
@media (max-width: 460px) { .sc-num { display: none; } }

@media (max-width: 560px) {
  .sc-on .sc-panel .term { margin-inline: 0; border-radius: var(--radius-md); border: 1px solid var(--win-border); }
}

.sc-on .sc-panel .idea-panel { padding: var(--s2) var(--s3); }
.sc-on .sc-panel .idea-anim .idea-replay { top: -6px; right: -10px; }
.sc-on .sc-panel .artifact-dark { padding: var(--s1) var(--s3) var(--s2); }
.sc-on .sc-panel .artifact-dark img { max-width: 300px; }
.sc-on .sc-panel .code-out { padding-block: 12px; }
.term-scene { max-width: none; opacity: 0.35; margin-block: 4px; }

.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.agents-left .section-head { margin-bottom: var(--s4); }
.agents-left .section-head h2 { max-width: 14em; }
.agents-caption { margin: 0 0 var(--s2); font-size: 15.5px; color: var(--muted); padding-top: calc(var(--s2) + 1px); }
@media (max-width: 1080px) { .agents-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }

.heritage-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: var(--s5);
}
.heritage-head h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; margin-top: var(--s2); text-wrap: balance; }
.heritage-head p { margin-top: var(--s2); color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 32em; }
.heritage-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.heritage-chips li {
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-panel);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.heritage-chips strong { font-size: 15px; font-weight: 650; color: var(--text); line-height: 1.35; }
.heritage-chips span:not(.colon) { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent); }
:root[data-theme="light"] .heritage-chips span:not(.colon) { color: var(--accent-deep); }
.heritage-chips .colon { position: absolute; opacity: 0; width: 1px; overflow: hidden; }
@media (max-width: 1080px) { .heritage-row { grid-template-columns: minmax(0, 1fr); gap: var(--s3); } }
@media (max-width: 640px) { .heritage-chips { grid-template-columns: minmax(0, 1fr); } }

.idea-fig .lf-name { font-size: 17px; }
.idea-fig .msg-label { font-size: 15px; }
.idea-fig .chip text { font-size: 16px; }
.idea-split .lf-name { font-size: 20px; }
.idea-split .msg-label { font-size: 18px; }
.idea-split .chip text { font-size: 18px; }

.step-bullets { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step-bullets li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.step-bullets li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 2px; background: var(--accent); }

.step-check { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy fig" "term fig"; row-gap: var(--s3); }
.step-check .step-media { display: contents; }
.step-check .step-copy { grid-area: copy; }
.step-check .term[data-slot="check"] { grid-area: term; align-self: end; }
.step-check .idea-panel { grid-area: fig; display: flex; align-items: center; justify-content: center; }
.step-check .idea-anim, .step-check .idea-split { width: 100%; }
.step-check .idea-anim .idea-fig { display: block; width: 100%; height: auto; max-height: 380px; }
@media (max-width: 1080px) {
  .step-check { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "fig" "term"; }
  .step-check .idea-anim .idea-fig { max-height: 360px; }
}

.agents-head h2 { max-width: none; white-space: nowrap; font-size: clamp(26px, 3.2vw, 44px); }
@media (max-width: 1080px) { .agents-head h2 { white-space: normal; } }
.agents-grid { grid-template-areas: "lsub rsub" "table term"; row-gap: var(--s3); align-items: end; }
.agents-left, .agents-right { display: contents; }
.agents-left .agents-sub { grid-area: lsub; }
.agents-left .cmp-card { grid-area: table; align-self: start; }
.agents-right .agents-sub { grid-area: rsub; }
.agents-right .term { grid-area: term; align-self: start; }
.agents-sub { margin: 0; font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--text); }
@media (max-width: 1080px) {
  .agents-grid { grid-template-areas: "lsub" "table" "rsub" "term"; }
  .agents-right .agents-sub { margin-top: var(--s3); }
}

.heritage-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px var(--s4); }
.heritage-list li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.heritage-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
:root[data-theme="light"] .heritage-list li::before { background: var(--accent-deep); }
@media (max-width: 900px) { .heritage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .heritage-list { grid-template-columns: minmax(0, 1fr); } }

.sc-tabs { display: flex; align-items: flex-start; gap: var(--s2); }
.sc-tabs .sc-tab-list { flex: 1; }
.sc-toggle {
  appearance: none; flex: none; margin-top: 8px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--muted); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sc-toggle:hover, .sc-toggle:focus-visible { color: var(--text); border-color: var(--border-strong); }
.sc-toggle svg { width: 12px; height: 12px; }
.sc-toggle .ic-play { display: none; }
.sc-toggle.is-paused .ic-play { display: inline; }
.sc-toggle.is-paused .ic-pause { display: none; }
.sc-toggle[hidden] { display: none; }

.sc-toggle { position: relative; border-color: transparent; border-radius: 50%; }
.sc-toggle:hover, .sc-toggle:focus-visible { border-color: transparent; }
.sc-toggle .sc-ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.sc-ring circle { fill: none; stroke-width: 1.5; }
.sc-ring-track { stroke: var(--border-strong); }
.sc-ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--ring, 100); transition: stroke-dashoffset 0.12s linear; }
.sc-toggle.is-paused .sc-ring-fill { opacity: 0.45; }

.cmp-table thead th.cmp-self { color: var(--muted); }
.cmp-note { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--faint); }
.cmp-table td.cmp-self { color: var(--muted); }

.heritage-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.heritage-boxes li {
  padding: 14px 16px 14px 34px; min-height: 64px; display: flex; align-items: center;

  border: 1px solid var(--border-soft, rgba(127, 140, 152, 0.14)); border-radius: var(--radius-md); background: transparent;
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--muted); cursor: default;
}
.heritage-boxes li::before { left: 16px; top: 50%; margin-top: -3.5px; }
@media (max-width: 900px) { .heritage-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .heritage-boxes { grid-template-columns: minmax(0, 1fr); } }

.inline-link { color: var(--link); text-decoration: none; text-underline-offset: 2px; }
.inline-link:hover, .inline-link:focus-visible { text-decoration: underline; }

.hero-c h1 { font-size: clamp(40px, 6.1vw, 92px); }
@media (min-width: 901px) {
  .hero-c h1 { white-space: nowrap; max-width: none; text-wrap: nowrap; }
}

@media (max-width: 1180px) { .nav-links { gap: var(--s2); } }

.scene-caption .sc-line { transition: opacity 0.18s ease, transform 0.18s ease; }
.scene-caption .sc-line.is-current { transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out); }

@media (min-width: 2000px) { body { zoom: 1.08; } }
@media (min-width: 2200px) { body { zoom: 1.16; } }
@media (min-width: 2400px) { body { zoom: 1.26; } }
@media (min-width: 2600px) { body { zoom: 1.36; } }
@media (min-width: 2800px) { body { zoom: 1.46; } }
@media (min-width: 3000px) { body { zoom: 1.56; } }
@media (min-width: 3300px) { body { zoom: 1.7; } }
@media (min-width: 3700px) { body { zoom: 1.9; } }

.hero-c .scene-steps { margin-top: var(--s6); }
html:not(.js) .hero-c .hero-term, html.static .hero-c .hero-term { margin-top: var(--s6); }
@media (prefers-reduced-motion: reduce) { .hero-c .hero-term { margin-top: var(--s6); } }

.sc-bar i { transition: transform 0.25s var(--ease-out), opacity 0.25s ease; }
.sc-tab.is-done .sc-bar i { opacity: 0.45; }
.sc-tab.is-done { color: var(--muted); }
.sc.is-paused .sc-tab.is-current .sc-bar i { opacity: 1; }

:root[data-theme="dark"] { --cmp-label: #c3ccd4; --cmp-self: #b0bac3; }
:root[data-theme="light"] { --cmp-label: #2f3a44; --cmp-self: #3f4a55; }
.cmp-table tbody th {
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--cmp-label); padding-top: 16px;
}
.cmp-table thead th.cmp-self { color: var(--cmp-label); font-weight: 600; }
.cmp-table td.cmp-self { color: var(--cmp-self); font-size: 15px; font-weight: 400; }
.cmp-table td.cmp-tenon { background: rgba(142, 215, 255, 0.075); }
.cmp-table th.cmp-tenon { background: rgba(142, 215, 255, 0.11); box-shadow: inset 0 2px 0 var(--accent); }
:root[data-theme="light"] .cmp-table td.cmp-tenon { background: rgba(50, 96, 170, 0.07); }
:root[data-theme="light"] .cmp-table th.cmp-tenon { background: rgba(50, 96, 170, 0.11); box-shadow: inset 0 2px 0 var(--accent-deep); }

@media (max-width: 1080px) {
  .wf-row { grid-template-columns: minmax(0, 1fr); }
  .wf-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .hero .hero-mark { width: 60px; height: 60px; }
  .hn-tenon { font-size: 32px; }
  .hero-c .hero-mark { width: 104px; height: 104px; }
  .hero-c .hn-tangram { font-size: 14px; }
  .hero-c .hn-tenon { font-size: 52px; }
  .hero-lockup { gap: 18px; }
  .hero-term.term-lg { --tfs: 10px; --lh: 15.5px; }
  .hero-term .term-out { padding: 12px; }
  .scene-steps { font-size: 11px; gap: 6px; letter-spacing: 0.12em; }
  .idea-split { grid-template-columns: minmax(0, 1fr); }
  .idea-split .idea-fig + .idea-fig { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: var(--s3); }
  .change-table, .change-table tbody, .change-table tr, .change-table td { display: block; }
  .change-table thead { display: none; }
  .change-table tr { padding: var(--s2) 0; border-top: 1px solid var(--border); }
  .change-table td { border-top: 0; padding: 4px 0; }
  .change-table td.ch-start { padding-left: 26px; }
  .change-table td.ch-start::before { top: 4px; }
}
@media (max-width: 560px) {
  .pl-stage-name { width: 60px; }
  .pl-stage + .pl-stage::before { left: 94px; }
}

@media (max-width: 1080px) {
  .hero-grid, .step, .feature-row, .feature-row.flip, .heritage-panel, .idea-grid, .agent-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .af-grid, .buyer-grid { grid-template-columns: minmax(0, 1fr); }
  .sol-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sol-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .win-reveal {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  html.js .assemble .mark-piece { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js .hero-mark.is-locked { animation: none !important; }
  html.js .term-cursor, html.js .term-line.is-new { animation: none !important; }
  .strip-item a { transition: none !important; }
  .idea-fig *, .pipeline * { animation: none !important; }
  .btn, .sol, .theme-toggle, .term-replay { transition-duration: 0.01ms; }
}

html.static .reveal, html.static .win-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.static .assemble .mark-piece { opacity: 1 !important; transform: none !important; transition: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root { --fail: #e2695f; --fail-border: rgba(226, 105, 95, 0.5); --fail-glow: rgba(226, 105, 95, 0.12); }
:root[data-theme="light"] { --fail: #b4432f; --fail-border: rgba(180, 67, 47, 0.45); --fail-glow: rgba(180, 67, 47, 0.08); }

.hero-c .hero-sub { text-wrap: balance; max-width: 52em; }

.step-quote { color: var(--text); font-style: italic; }

.step-fig .idea-panel { display: flex; align-items: center; justify-content: center; }
.step-fig .idea-anim, .step-fig .idea-split, .step-fig .dg-anim { width: 100%; }
.step-fig .idea-anim .idea-fig, .step-fig .dg-anim .idea-fig { display: block; width: 100%; height: auto; max-height: 400px; }
.dg-anim { position: relative; }

.step-fig .idea-panel { background: radial-gradient(var(--dot-grid) 1px, transparent 1.4px) 0 0 / 20px 20px, linear-gradient(var(--hairline-cell), var(--hairline-cell)), var(--bg); }

.step-fig .idea-anim .idea-replay, .step-fig .dg-anim .idea-replay,
.sc-on .sc-panel.step-fig .idea-anim .idea-replay, .sc-on .sc-panel.step-fig .dg-anim .idea-replay { top: auto; bottom: 0; right: 0; }

.idea-fig .idea-note { fill: var(--muted); font-style: italic; text-anchor: middle; }
.idea-fig .dg-micro-name { letter-spacing: 0.02em; font-weight: 600; fill: var(--muted); }
.idea-fig[data-phase="wait"] .wait-note .wait-label { animation-delay: 1.1s; }
.idea-fig[data-phase="fix"] .fix-note .fix-label { animation-delay: 1.9s; }

.fig-narrow { display: none !important; }
@media (max-width: 700px) {
  .fig-wide { display: none !important; }
  .fig-narrow { display: block !important; }
  .step-fig .dg-anim .idea-fig.fig-narrow, .step-fig .idea-anim .idea-fig.fig-narrow { max-height: none; }
  .fig-narrow .lf-name { font-size: 13.5px; }

  .step-fig .idea-panel, .sc-on .sc-panel.step-fig .idea-panel { padding-bottom: 48px; }
  .step-fig .idea-anim .idea-replay, .step-fig .dg-anim .idea-replay,
  .sc-on .sc-panel.step-fig .idea-anim .idea-replay, .sc-on .sc-panel.step-fig .dg-anim .idea-replay { top: auto; bottom: -40px; right: -6px; }
}

.dg-frame .wait-a .wait-line { transform-origin: 160px 154px; }
.dg-frame .wait-b .wait-line { transform-origin: 600px 226px; }
.dg-frame.dg-compact .wait-a .wait-line { transform-origin: 100px 154px; }
.dg-frame.dg-compact .wait-b .wait-line { transform-origin: 300px 226px; }
.dg-frame .dg-micro { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; fill: var(--faint); text-anchor: middle; }

.dg-fig text { font-family: var(--font-mono); }
.dg-fig .dg-micro { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; fill: var(--faint); text-anchor: middle; }
.dg-fig .dg-l { text-anchor: start; }
.dg-fig .dg-sim { fill: transparent; stroke-dasharray: 4 3; }
.dg-fig .dg-bin { stroke-width: 1.5; }
.dg-fig .dg-hatch-line { stroke: var(--accent); stroke-opacity: 0.09; stroke-width: 1.5; }
.dg-fig .dg-lbl { fill: var(--accent); text-anchor: middle; }
.dg-fig .dg-fail-t { fill: var(--fail); font-weight: 700; }
.dg-fig .dg-arrow { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 100; }
.dg-fig .dg-head { fill: var(--accent); }
.dg-fig .dg-rule { fill: var(--bg-panel); stroke: var(--border-strong); stroke-dasharray: 3 3; }
.dg-fig .dg-code { font-size: 13px; fill: var(--text); text-anchor: middle; }
.dg-fig .dg-x { stroke: var(--fail); stroke-width: 2; stroke-linecap: round; fill: none; }
.dg-fig .dg-tick { stroke: var(--pass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.dg-fig .chip-fail rect { fill: var(--fail-glow); stroke: var(--fail-border); }
.dg-fig .chip-fail text { fill: var(--fail); }
.dg-fig .dg-card { fill: var(--bg-panel); stroke: var(--border-strong); }
.dg-fig .dg-gap { fill: transparent; stroke-dasharray: 4 3; }
.dg-fig .dg-id { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; fill: var(--text); }
.dg-fig .dg-desc { font-size: 13px; fill: var(--muted); }
.dg-fig .dg-status { font-size: 13px; font-weight: 500; text-anchor: start; }
.dg-fig .dg-pname { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; fill: var(--text); text-anchor: middle; }
.dg-fig .dg-verdict { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-anchor: middle; }
.dg-fig .s-pass { fill: var(--pass); }
.dg-fig .s-warn { fill: var(--warn); }
.dg-fig .s-faint { fill: var(--faint); }
.dg-fig .dg-link { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 100; }
.dg-fig .dg-link-warn { stroke: var(--warn); stroke-dasharray: 4 4; }
.dg-fig .dg-box-warn { fill: var(--bg-panel); stroke: var(--warn); stroke-width: 1; }
.dg-fig .dg-stub { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 3 3; }
.dg-fig .dg-open { fill: var(--bg); stroke: var(--faint); stroke-width: 1.5; }
.dg-fig .dg-none { font-size: 13px; fill: var(--muted); }
.dg-fig .dg-rule-line { stroke: var(--border); stroke-width: 1; }
.dg-fig .dg-sum { font-size: 11px; letter-spacing: 0.04em; fill: var(--muted); text-anchor: middle; }
.dg-fig text.dg-l { text-anchor: start; }
.dg-fig text.dg-r { text-anchor: end; }

.dg-fig[data-phase="reset"] :is(.pa, .pb, .pab) { opacity: 0; }
.dg-fig:is([data-phase="a"], [data-phase="a-hold"]) .pb, .dg-fig[data-phase="final"] .pa { opacity: 0; }
.dg-fig[data-phase="b"] .pa { animation: idea-out 0.3s ease both; }

.dg-fig[data-phase="a"] :is(.pa, .pab) { animation: idea-in var(--fd, 0.35s) ease var(--d, 0s) both; }
.dg-fig[data-phase="a"] :is(.pa, .pab) :is(.dg-arrow, .dg-link:not(.dg-link-warn), .dg-bus) { animation: idea-draw var(--dd, 0.7s) var(--ease-out) var(--d, 0s) both; }
.dg-fig[data-phase="a"] :is(.pa, .pab) .dg-head { animation: idea-in 0.2s ease calc(var(--d, 0s) + var(--dd, 0.7s) - 0.1s) both; }
.dg-fig[data-phase="b"] .pb { animation: idea-in var(--fd, 0.35s) ease var(--db, 0s) both; }
.dg-fig[data-phase="b"] .pb :is(.dg-arrow, .dg-link) { animation: idea-draw var(--dd, 0.7s) var(--ease-out) var(--db, 0s) both; }
.dg-fig[data-phase="b"] .pb .dg-head { animation: idea-in 0.2s ease calc(var(--db, 0s) + var(--dd, 0.7s) - 0.1s) both; }
@media (prefers-reduced-motion: reduce) { .dg-fig * { animation: none !important; } }

@keyframes dg-blink { 0%, 100% { fill-opacity: 1; } 50% { fill-opacity: 0.2; } }

.idea-fig .idea-alarm { fill: var(--fail); font-style: normal; font-weight: 600; }
.idea-fig[data-phase="wait"] .wait-note .idea-alarm { animation: idea-in 0.4s ease 1.1s both, dg-blink 1.1s ease-in-out 1.6s infinite; }

.dg-fig[data-phase="a"] .dg-blink { animation: dg-blink 1.1s ease-in-out 1.8s infinite; }
.dg-fig .dg-pass-t { fill: var(--pass); font-weight: 700; }
.dg-fig .dg-call text { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-anchor: middle; }
.dg-fig .dg-call-bad rect { fill: var(--fail-glow); stroke: var(--fail-border); }
.dg-fig .dg-call-bad text { fill: var(--fail); }
.dg-fig .dg-call-good rect { fill: var(--pass-glow); stroke: var(--pass-border); }
.dg-fig .dg-call-good text { fill: var(--pass); }
.dg-fig .dg-plain { font-size: 13px; fill: var(--text); text-anchor: middle; }

.dg-fig .dg-doc { fill: var(--bg-panel); stroke: var(--border-strong); stroke-width: 1; }
.dg-fig .dg-fold { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.dg-fig .dg-prose { stroke: var(--faint); stroke-width: 3; stroke-linecap: round; opacity: 0.7; }
.dg-fig .dg-mini-box { fill: var(--bg-panel); stroke: var(--accent-deep); stroke-width: 1; }
.dg-fig .dg-mini-t { font-size: 11px; font-weight: 600; fill: var(--text); text-anchor: middle; }
.dg-fig .dg-mini-life { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.dg-fig .dg-mini-arrow { stroke: var(--accent); stroke-width: 1.4; fill: none; }
.dg-fig .dg-mini-head { fill: var(--accent); }
.dg-fig .dg-cap { font-size: 13px; fill: var(--muted); text-anchor: middle; }
.dg-fig .dg-out { font-size: 13px; font-weight: 600; fill: var(--text); }

.dg-fig .s-fail { fill: var(--fail); }
.dg-fig .dg-box-fail { fill: var(--bg-panel); stroke: var(--fail); stroke-width: 1; }
.dg-fig .dg-link-fail { stroke: var(--fail); stroke-dasharray: none; }
.dg-fig .dg-linklbl { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-anchor: middle; }
.dg-fig .dg-sm { font-size: 11px; }
.dg-fig[data-phase="a"] .pa .dg-link-fail { animation: none; }

.dg-fig .dg-src { font-size: 13px; font-weight: 600; fill: var(--text); text-anchor: middle; }
.dg-fig .dg-src.dg-sm { font-size: 11px; }
.dg-fig .dg-bus { stroke: var(--accent-deep); stroke-width: 1.4; fill: none; stroke-dasharray: 100; }

@keyframes dg-pulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.14); fill: var(--accent); } }
@keyframes dg-pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes dg-red-fill { to { fill: var(--fail); } }
@keyframes dg-red-stroke { to { stroke: var(--fail); } }
.idea-fig .dg-pulse, .idea-fig .chip-good, .idea-fig .chip-bad, .idea-fig .chip-fail { transform-box: fill-box; transform-origin: center; }

.idea-fig .idea-good { fill: var(--pass); font-style: normal; font-weight: 600; }
.idea-fig.dg-frame[data-phase="wait"] .wait-a .wait-line { animation: idea-reach 0.9s var(--ease-out) 0.6s both, dg-red-stroke 0.5s ease 3.4s forwards; }
.idea-fig.dg-frame[data-phase="wait"] .wait-b .wait-line { animation: idea-reach 0.9s var(--ease-out) 1.8s both, dg-red-stroke 0.5s ease 3.4s forwards; }
.idea-fig.dg-frame[data-phase="wait"] .wait-a .wait-label { animation: idea-in 0.4s ease 0.6s both, dg-red-fill 0.5s ease 3.4s forwards; }
.idea-fig.dg-frame[data-phase="wait"] .wait-b .wait-label { animation: idea-in 0.4s ease 1.8s both, dg-red-fill 0.5s ease 3.4s forwards; }

.idea-fig.dg-frame[data-phase="wait"] .wait-dot { opacity: 0; }
.idea-fig.dg-frame .chip-bad rect { fill: var(--fail-glow); stroke: var(--fail-border); }
.idea-fig.dg-frame .chip-bad text { fill: var(--fail); }
.idea-fig.dg-frame[data-phase="wait"] .wait-a .wait-dot { animation: idea-pulse 1.2s ease-in-out 1.5s infinite forwards, dg-red-fill 0.5s ease 3.4s forwards; }
.idea-fig.dg-frame[data-phase="wait"] .wait-a .wait-dot.d2 { animation-delay: 1.65s, 3.4s; }
.idea-fig.dg-frame[data-phase="wait"] .wait-a .wait-dot.d3 { animation-delay: 1.8s, 3.4s; }
.idea-fig.dg-frame[data-phase="wait"] .wait-b .wait-dot { animation: idea-pulse 1.2s ease-in-out 2.7s infinite forwards, dg-red-fill 0.5s ease 3.4s forwards; }
.idea-fig.dg-frame[data-phase="wait"] .wait-b .wait-dot.d2 { animation-delay: 2.85s, 3.4s; }
.idea-fig.dg-frame[data-phase="wait"] .wait-b .wait-dot.d3 { animation-delay: 3s, 3.4s; }
.idea-fig.dg-frame[data-phase="wait"] .wait-note .idea-alarm { animation: idea-in 0.4s ease 3.8s both, dg-blink 1.1s ease-in-out 4.3s infinite; }
.idea-fig.dg-frame[data-phase="wait"] .chip-bad { animation: idea-in 0.4s ease 4.6s both; }
.idea-fig.dg-frame[data-phase="hold"] :is(.wait-line) { stroke: var(--fail); }
.idea-fig.dg-frame[data-phase="hold"] :is(.wait-a .wait-label, .wait-b .wait-label, .wait-dot) { fill: var(--fail); }
.idea-fig.dg-frame[data-phase="fix"] .wait { animation: idea-out 0.5s ease both; }
.idea-fig.dg-frame[data-phase="fix"] .chip-bad { animation: idea-out 0.3s ease 0.2s both; }
.idea-fig.dg-frame[data-phase="fix"] .fix-a .fix-label { animation: idea-in 0.4s ease 0.6s both; }
.idea-fig.dg-frame[data-phase="fix"] .fix-a .fix-path { animation: idea-draw 1s var(--ease-out) 0.6s both; }
.idea-fig.dg-frame[data-phase="fix"] .fix-a .fix-head { animation: idea-in 0.2s ease 1.5s both; }
.idea-fig.dg-frame[data-phase="fix"] .fix-b .fix-label { animation: idea-in 0.4s ease 1.9s both; }
.idea-fig.dg-frame[data-phase="fix"] .fix-b .fix-path { animation: idea-draw 1s var(--ease-out) 1.9s both; }
.idea-fig.dg-frame[data-phase="fix"] .fix-b .fix-head { animation: idea-in 0.2s ease 2.8s both; }
.idea-fig.dg-frame[data-phase="fix"] .fix-note .fix-label { animation: idea-in 0.5s ease 3.2s both; }
.idea-fig.dg-frame[data-phase="fix"] .chip-good { animation: idea-in 0.4s ease 3.8s both; }

.dg-fig[data-phase="a"] .dg-fail-t { fill: var(--accent); animation: dg-red-fill 0.4s ease var(--rt, 3.2s) forwards, dg-blink 1.1s ease-in-out calc(var(--rt, 3.2s) + 0.4s) infinite; }

.aurora-band .af-grid { align-items: center; }
.aurora-band .cta-term { justify-self: end; width: min(100%, 470px); margin: 0; }
.aurora-band .cta-term .term-out { height: auto; }
:root[data-theme="dark"] .aurora-band .btn-solid { background: var(--text); color: #10151a; }
:root[data-theme="dark"] .aurora-band .btn-solid:hover { background: #ffffff; }
@media (max-width: 1080px) { .aurora-band .cta-term { justify-self: stretch; width: 100%; } }

.heritage-band {
  background: linear-gradient(180deg, rgba(142, 215, 255, 0.11), rgba(142, 215, 255, 0.04));
  border-block: 1px solid rgba(142, 215, 255, 0.28);
}
.heritage-band .heritage-row { border-block: 0; }
.heritage-band .heritage-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.heritage-band .heritage-head p { color: var(--text); opacity: 0.86; font-size: 17px; }
.heritage-band .heritage-boxes li { color: var(--text); font-weight: 600; border-color: rgba(142, 215, 255, 0.26); background: rgba(8, 9, 11, 0.45); }
:root[data-theme="light"] .heritage-band { background: linear-gradient(180deg, rgba(42, 127, 184, 0.08), rgba(42, 127, 184, 0.03)); border-block-color: rgba(42, 127, 184, 0.22); }
:root[data-theme="light"] .heritage-band .heritage-boxes li { background: rgba(255, 255, 255, 0.7); border-color: rgba(42, 127, 184, 0.25); }

.dg-fig .dg-track { stroke: var(--border); stroke-width: 2; stroke-linecap: round; }
.dg-fig .dg-load { stroke: var(--pass); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; fill: none; }
.dg-fig .dg-done { stroke: var(--pass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.dg-fig[data-phase="a"] .dg-load { animation: idea-draw var(--lt, 1.4s) linear var(--ld, 0.5s) both; }
.dg-fig[data-phase="a"] .dg-done { animation: idea-in 0.3s ease var(--td, 2s) both; }
@media (prefers-reduced-motion: reduce) { .idea-fig * { animation: none !important; } }
