/* =========================================================
   Bamboo AI — Inventory.ai · Enter the operating era
   ========================================================= */
:root {
  --bg: #020504;
  --ink: #eafff6;
  --ink-2: rgba(234, 255, 246, 0.72);
  --mute: rgba(234, 255, 246, 0.5);
  --faint: rgba(234, 255, 246, 0.12);
  --mint: #8ddcc0;
  --mint-2: #c9f5e4;
  --forest: #033d3e;
  --coral: #ff7a52;
  --line: rgba(141, 220, 192, 0.18);
  --glass: rgba(6, 18, 15, 0.55);
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }
::selection { background: var(--mint); color: #02110c; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--mint); color: #02110c; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.has-cursor, .has-cursor * { cursor: none !important; }

/* ---------- world ---------- */
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.world-fallback { display: none; }
.no-webgl #world { display: none; }
.no-webgl .world-fallback {
  display: block; position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(60% 50% at 70% 40%, rgba(141, 220, 192, 0.25), transparent 70%), radial-gradient(40% 40% at 20% 80%, rgba(3, 61, 62, 0.6), transparent 70%), var(--bg);
}
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 5, 4, 0.72) 0%, rgba(2, 5, 4, 0.25) 42%, transparent 65%);
  opacity: 0; transition: opacity 1.2s var(--ease), background 1.2s;
}
.entered .scrim { opacity: 1; }
body[data-ch='core'] .scrim, body[data-ch='finale'] .scrim, body[data-ch='erp'] .scrim { opacity: 0.35; }
body[data-ch='pillars'] .scrim, body[data-ch='adopt'] .scrim { background: linear-gradient(270deg, rgba(2, 5, 4, 0.8) 0%, rgba(2, 5, 4, 0.3) 45%, transparent 70%); }
body[data-ch='twin'] .scrim, body[data-ch='agents'] .scrim { background: linear-gradient(180deg, rgba(2, 5, 4, 0.7) 0%, transparent 35%, transparent 70%, rgba(2, 5, 4, 0.75) 100%); }

/* ---------- gate / loader ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 28px var(--gutter);
  transition: opacity 1.2s var(--ease) 0.2s, visibility 0s linear 1.4s;
}
.gate__veil {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 50% 52%, rgba(2, 5, 4, 0.35), rgba(2, 5, 4, 0.92) 75%), var(--bg);
  transition: background 2s var(--ease), opacity 1.6s var(--ease);
}
.gate-ready .gate__veil { background: radial-gradient(70% 60% at 50% 50%, rgba(2, 5, 4, 0.1), rgba(2, 5, 4, 0.75) 80%); }
.entering .gate__veil { opacity: 0; }
.entering .gate { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__top, .gate__bottom { display: flex; justify-content: space-between; align-items: center; color: var(--mute); }
.gate__bottom { position: relative; padding-bottom: 14px; transition: opacity 0.8s; }
.gate-ready .gate__bottom { opacity: 0.35; }
.gate__pct b { color: var(--ink); font-weight: 500; font-size: 13px; }
.gate__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--faint); overflow: hidden; }
.gate__bar i { position: absolute; inset: 0; background: var(--mint); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--mint); }
.gate__center { display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px; }
.gate__mark { width: 54px; position: relative; filter: drop-shadow(0 0 18px rgba(141, 220, 192, 0.55)); }
.gate__mark img { width: 100%; height: auto; clip-path: inset(100% 0 0 0); animation: markIn 2s var(--ease) 0.2s forwards; }
@keyframes markIn { to { clip-path: inset(0 0 0 0); } }
.gate__kicker, .gate__title, .gate__actions, .gate__hint { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.gate-ready .gate__kicker { opacity: 1; transform: none; transition-delay: 0.1s; color: var(--mint); }
.gate-ready .gate__title { opacity: 1; transform: none; }
.gate-ready .gate__actions { opacity: 1; transform: none; transition-delay: 0.7s; }
.gate-ready .gate__hint { opacity: 1; transform: none; transition-delay: 1s; color: var(--mute); font-size: 10px; }
.gate__title { margin: 0; font-weight: 400; font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: 0.98; letter-spacing: -0.045em; max-width: 12ch; }
.gate__title em { color: var(--mint); }
.gate__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.entering .gate__center { transform: scale(1.4); filter: blur(14px); opacity: 0; transition: transform 1.6s var(--ease-io), filter 1.2s, opacity 1s; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s, background 0.5s;
}
.btn--solid { background: var(--mint); color: #02150f; box-shadow: 0 0 0 1px rgba(141, 220, 192, 0.5), 0 10px 40px -10px rgba(141, 220, 192, 0.6); }
.btn--solid::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform 0.6s var(--ease); }
.btn--solid:hover::before { transform: none; }
.btn--ghost { border: 1px solid rgba(234, 255, 246, 0.25); background: rgba(2, 8, 6, 0.6); }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn--small { height: 40px; padding: 0 18px; font-size: 13px; }
.btn__icon { width: 18px; height: 18px; display: grid; place-items: center; }
.btn__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.btn:hover .btn__icon svg { transform: translateX(3px); }
.linklike { color: var(--mint); }
.linklike:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- nav ---------- */
[data-hide] { opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease) 0.4s, transform 1.2s var(--ease) 0.4s; }
.entered [data-hide] { opacity: 1; pointer-events: auto; }
.nav::before { content: ''; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(180deg, rgba(2, 5, 4, 0.85), transparent); pointer-events: none; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  transform: translateY(-20px);
}
.entered .nav { transform: none; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; letter-spacing: -0.01em; }
.nav__brand img { width: 18px; height: auto; filter: drop-shadow(0 0 8px rgba(141, 220, 192, 0.5)); }
.nav__chapter { display: flex; gap: 6px; color: var(--mute); align-items: center; }
.nav__num { color: var(--mint); }
.nav__name { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--faint); color: var(--ink-2); min-width: 15ch; }
.nav__right { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.nav__menu { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px; color: var(--ink-2); position: relative; }
.nav__menu i { display: block; width: 18px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease); }
.nav__menu i + i { margin-left: -26px; transform: translateY(5px); width: 12px; }
.nav__menu i:nth-of-type(1) { transform: translateY(-3px); }
.nav__menu i:nth-of-type(2) { transform: translateY(3px); margin-left: -26px; }
.menu-open .nav__menu i:nth-of-type(1) { transform: rotate(45deg); }
.menu-open .nav__menu i:nth-of-type(2) { transform: rotate(-45deg); width: 18px; }
.sound { display: inline-flex; align-items: flex-end; gap: 2px; height: 40px; padding: 0 8px; }
.sound span { width: 2px; height: 3px; background: var(--ink-2); border-radius: 2px; transition: height 0.3s; }
.sound.is-on span { background: var(--mint); animation: eq 1s ease-in-out infinite; }
.sound.is-on span:nth-child(2) { animation-delay: -0.3s; }
.sound.is-on span:nth-child(3) { animation-delay: -0.6s; }
.sound.is-on span:nth-child(4) { animation-delay: -0.15s; }
.sound { align-items: center; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest), var(--mint)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--mint); }

.rail { position: fixed; right: calc(var(--gutter) - 6px); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.rail__dot { position: relative; width: 12px; height: 12px; display: grid; place-items: center; }
.rail__dot::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--mute); transition: all 0.5s var(--ease); }
.rail__dot.is-active::before { width: 8px; height: 8px; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.rail__dot span { position: absolute; right: 22px; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: all 0.4s var(--ease); color: var(--ink-2); pointer-events: none; }
.rail__dot:hover span, .rail__dot.is-active span { opacity: 1; transform: none; }
.rail__dot.is-active span { opacity: 0.0; }
.rail:hover .rail__dot.is-active span { opacity: 1; }

/* ---------- menu ---------- */
.menu { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.menu__bg { position: absolute; inset: 0; background: rgba(2, 6, 5, 0.96); clip-path: circle(0% at calc(100% - 120px) 38px); transition: clip-path 0.9s var(--ease-io); }
.menu-open .menu { pointer-events: auto; }
.menu-open .menu__bg { clip-path: circle(150% at calc(100% - 120px) 38px); }
.menu__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px; opacity: 0; transition: opacity 0.4s; }
.menu-open .menu__inner { opacity: 1; transition-delay: 0.25s; }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6vw; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--faint); }
.menu__list button { display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 14px 0; text-align: left; }
.menu__list b { font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: -0.03em; transition: color 0.4s, transform 0.6s var(--ease); }
.menu__list span { color: var(--mint); }
.menu__list button:hover b { color: var(--mint); transform: translateX(14px); }
.menu__foot { display: flex; justify-content: space-between; margin-top: 40px; color: var(--mute); }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.cursor.on { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; display: grid; place-items: center; }
.cursor__ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(141, 220, 192, 0.5); transition: transform 0.45s var(--ease), background 0.45s, border-color 0.45s; }
.cursor.hover .cursor__ring::before { transform: scale(1.7); background: rgba(141, 220, 192, 0.08); border-color: var(--mint); }
.cursor.has-label .cursor__ring::before { transform: scale(2.2); background: var(--mint); }
.cursor.down .cursor__ring::before { transform: scale(0.8); }
.cursor__label { position: relative; color: #02150f; font-size: 9px; opacity: 0; transition: opacity 0.3s; font-weight: 500; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }

/* ---------- anchored chips & callouts ---------- */
#anchors { position: fixed; inset: 0; z-index: 1; pointer-events: none; } /* behind page text (main is z 2) */
#anchors > * { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.6s var(--ease); will-change: transform; }
#anchors > .on { opacity: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; margin: -16px 0 0 -40px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #ffd7c9; background: rgba(30, 8, 3, 0.82); border: 1px solid rgba(255, 122, 82, 0.4); white-space: nowrap; animation: chipJitter 3s steps(1) infinite; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.chip:nth-child(2n) { animation-delay: -1.3s; }
.chip:nth-child(3n) { animation-delay: -0.7s; }
@keyframes chipJitter { 0%, 100% { translate: 0 0; } 92% { translate: 0 0; } 94% { translate: 3px -2px; } 96% { translate: -2px 1px; } }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px 12px 12px; margin: -78px 0 0 -20px; border-radius: 12px; background: rgba(4, 14, 11, 0.9); border: 1px solid var(--line); white-space: nowrap; transform-origin: left bottom; }
.callout::after { content: ''; position: absolute; left: 20px; top: 100%; width: 1px; height: 26px; background: linear-gradient(currentColor, transparent); }
.callout b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
.callout small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--mute); margin-top: 2px; }
.callout__icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.callout--risk { color: var(--coral); border-color: rgba(255, 122, 82, 0.4); }
.callout--risk .callout__icon { background: rgba(255, 122, 82, 0.15); border: 1px solid var(--coral); color: var(--coral); animation: ping 1.4s ease-out infinite; }
.callout--ok { color: var(--mint); border-color: rgba(141, 220, 192, 0.5); box-shadow: 0 0 30px -6px rgba(141, 220, 192, 0.4); }
.callout--ok .callout__icon { background: rgba(141, 220, 192, 0.15); border: 1px solid var(--mint); color: var(--mint); }
body[data-step='3'] .callout--risk { opacity: 0.35 !important; filter: saturate(0.3); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 82, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(255, 122, 82, 0); } }

/* ---------- layout & type ---------- */
main { position: relative; z-index: 2; }
.ch { position: relative; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { color: var(--mint); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.h-lg, .h-xl, .h-xxl { margin: 0; font-weight: 400; letter-spacing: -0.045em; line-height: 0.98; }
.h-lg { font-size: clamp(2.3rem, 4.6vw, 4.6rem); }
.h-xl { font-size: clamp(2.6rem, 5.6vw, 6rem); }
.h-xxl { font-size: clamp(3rem, 8.4vw, 9.6rem); line-height: 0.92; }
.h-lg em, .h-xl em, .h-xxl em, .hero__title em, .gate__title em { color: var(--mint); }
.h-lg em .wi, .h-xl em .wi, .h-xxl em .wi, .hero__title em .wi, .gate__title em .wi { background: linear-gradient(100deg, var(--mint) 20%, var(--mint-2) 50%, var(--mint) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes sheen { to { background-position: -200% 0; } }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--ink-2); max-width: 44ch; margin: 28px 0 0; line-height: 1.5; font-weight: 300; }

/* reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.12em; margin: -0.04em -0.02em -0.12em; }
.wi { display: inline-block; transform: translateY(115%) rotate(6deg); transform-origin: left bottom; transition: transform 1.25s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.in .wi { transform: none; }
em .wi { padding-right: 0.06em; }
[data-fade] { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease) 0.35s, transform 1.2s var(--ease) 0.35s; }
[data-fade].in { opacity: 1; transform: none; }
[data-scramble] { opacity: 0; transition: opacity 0.3s; }
[data-scramble].in { opacity: 1; }

/* ---------- 01 hero ---------- */
.ch--hero { height: 100vh; min-height: 640px; }
.hero { position: absolute; left: var(--gutter); bottom: clamp(70px, 13vh, 140px); max-width: 760px; }
.hero__title { margin: 0; font-weight: 400; font-size: clamp(3.4rem, 9.5vw, 10.5rem); line-height: 0.88; letter-spacing: -0.055em; }
.hero__lead { margin: 30px 0 0; font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--ink-2); max-width: 46ch; font-weight: 300; }
.hero__ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__ctas[data-fade] { transition-delay: 0.6s; }
.hero__hud { position: absolute; right: calc(var(--gutter) + 30px); bottom: clamp(70px, 13vh, 140px); display: grid; gap: 8px; color: var(--mute); text-align: right; opacity: 0; transition: opacity 1.5s 1.2s; }
.entered .hero__hud { opacity: 1; }
.hero__hud b { color: var(--ink); font-weight: 500; margin-left: 8px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot--live { background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(141, 220, 192, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(141, 220, 192, 0); } }
.scrollcue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--mute); opacity: 0; transition: opacity 1.4s 1.6s; }
.entered .scrollcue { opacity: 1; }
.scrollcue i { width: 1px; height: 46px; background: linear-gradient(var(--mint), transparent); transform-origin: top; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- blocks ---------- */
.block { max-width: 820px; }
.block--right { margin-left: auto; }
.ch--noise { min-height: 140vh; display: flex; align-items: center; padding: 20vh 0; }
.glitch { position: relative; display: inline-block; }
.ch--noise.in-glitch .glitch, body[data-ch='noise'] .glitch { animation: glitchShift 4s steps(1) infinite; }
@keyframes glitchShift { 0%, 86%, 100% { transform: none; filter: none; } 87% { transform: translate(4px, -2px) skewX(-8deg); filter: drop-shadow(-3px 0 0 var(--coral)) drop-shadow(3px 0 0 #61f0ff); } 89% { transform: translate(-3px, 1px); } 91% { transform: none; filter: drop-shadow(2px 0 0 var(--coral)); } }

/* ---------- 03 core ---------- */
.ch--core { height: 130vh; }
.core { position: sticky; top: 0; height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.core__then { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.8rem); color: var(--ink-2); opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
body[data-ch='core'] .core__then { opacity: 1; transform: none; }
.core__title { margin: 0.1em 0 0; font-weight: 500; font-size: clamp(3.4rem, 13vw, 15rem); letter-spacing: -0.06em; line-height: 0.9; }
.core__word { display: inline-block; opacity: 0; transform: scale(1.8); filter: blur(10px); letter-spacing: 0.3em; transition: all 1.6s var(--ease); text-shadow: 0 0 60px rgba(141, 220, 192, 0.6); }
.ch--core.is-hit .core__word { opacity: 1; transform: none; filter: none; letter-spacing: -0.06em; }
.core__dot { color: var(--mint); }
.core::before { content: ''; position: absolute; inset: 20% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(2, 5, 4, 0.55), transparent); pointer-events: none; }
.core__then, .core__sub { text-shadow: 0 2px 24px rgba(2, 5, 4, 0.95), 0 0 8px rgba(2, 5, 4, 0.8); color: var(--ink); }
.core__sub { font-size: clamp(1.05rem, 1.4vw, 1.35rem); color: var(--ink-2); max-width: 38ch; margin: 26px 0 0; font-weight: 300; }
.ch--core:not(.is-hit) .core__sub { opacity: 0; }

/* ---------- 04 powers ---------- */
.ch--pillars { min-height: 150vh; padding: 22vh 0 16vh; }
.powers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14vh; }
.power {
  position: relative; padding: 32px 30px 34px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(10, 30, 25, 0.86), rgba(3, 10, 8, 0.8));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  opacity: 0; translate: 0 60px; transition: opacity 1.2s var(--ease), translate 1.2s var(--ease), border-color 0.5s;
}
.power:nth-child(2) { transition-delay: 0.12s; }
.power:nth-child(3) { transition-delay: 0.24s; }
.power.in { opacity: 1; translate: 0 0; }
.power::before, .agent::before { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(141, 220, 192, 0.16), transparent 60%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.power:hover::before, .agent:hover::before { opacity: 1; }
.power:hover { border-color: rgba(141, 220, 192, 0.45); }
.power__n { color: var(--mute); }
.power h3 { font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: -0.04em; margin: 28px 0 12px; }
.power p { margin: 0; color: var(--ink-2); font-weight: 300; }
.power__glyph { position: relative; height: 90px; margin-top: 26px; }
.power__glyph i { position: absolute; border: 1px solid var(--mint); border-radius: 50%; }
.power__glyph--eye i { left: 0; top: 50%; width: 90px; height: 90px; margin-top: -45px; }
.power__glyph--eye i:nth-child(2) { width: 50px; height: 50px; margin-top: -25px; left: 20px; animation: look 4s var(--ease-io) infinite; background: rgba(141, 220, 192, 0.12); }
.power__glyph--eye i:nth-child(3) { width: 14px; height: 14px; margin-top: -7px; left: 38px; background: var(--mint); box-shadow: 0 0 16px var(--mint); animation: look 4s var(--ease-io) infinite; }
@keyframes look { 0%, 100% { translate: 0 0; } 30% { translate: 14px -4px; } 60% { translate: -10px 6px; } }
.power__glyph--act i { left: 0; top: 50%; height: 2px; border-radius: 2px; border: 0; background: var(--mint); transform-origin: left; animation: actBar 2.4s var(--ease) infinite; }
.power__glyph--act i:nth-child(1) { width: 140px; margin-top: -22px; }
.power__glyph--act i:nth-child(2) { width: 100px; animation-delay: 0.3s; }
.power__glyph--act i:nth-child(3) { width: 170px; margin-top: 22px; animation-delay: 0.6s; box-shadow: 0 0 12px var(--mint); }
@keyframes actBar { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.power__glyph--link i { top: 50%; width: 46px; height: 46px; margin-top: -23px; animation: linkPulse 3s ease-in-out infinite; }
.power__glyph--link i:nth-child(1) { left: 0; }
.power__glyph--link i:nth-child(2) { left: 32px; animation-delay: 0.4s; background: rgba(141, 220, 192, 0.1); }
.power__glyph--link i:nth-child(3) { left: 64px; animation-delay: 0.8s; }
@keyframes linkPulse { 0%, 100% { border-color: rgba(141, 220, 192, 0.35); } 50% { border-color: var(--mint); box-shadow: 0 0 18px rgba(141, 220, 192, 0.4); } }

/* ---------- 05 twin ---------- */
.ch--twin { height: 420vh; }
.sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.twin { position: relative; height: 100%; padding: 110px var(--gutter) 46px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); grid-template-rows: auto 1fr auto; gap: 20px; }
.twin__head { grid-column: 1; }
.twin__steps { grid-column: 2; grid-row: 1 / 3; align-self: center; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.twin__steps li { padding: 18px 20px; border-radius: 16px; border: 1px solid transparent; background: transparent; opacity: 0.28; transition: all 0.8s var(--ease); }
.twin__steps li span { color: var(--mute); }
.twin__steps li b { display: block; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; margin: 6px 0 0; }
.twin__steps li p { margin: 0; max-height: 0; overflow: hidden; color: var(--ink-2); font-weight: 300; font-size: 15px; transition: max-height 0.8s var(--ease), margin 0.8s var(--ease); }
body[data-step='1'] .twin__steps [data-step='1'], body[data-step='2'] .twin__steps [data-step='2'], body[data-step='3'] .twin__steps [data-step='3'] { opacity: 1; background: rgba(4, 14, 11, 0.86); border-color: var(--line); }
body[data-step='1'] .twin__steps [data-step='1'] p, body[data-step='2'] .twin__steps [data-step='2'] p, body[data-step='3'] .twin__steps [data-step='3'] p { max-height: 120px; margin-top: 8px; }
body[data-step='1'] .twin__steps [data-step='1'] span, body[data-step='2'] .twin__steps [data-step='2'] span { color: var(--coral); }
body[data-step='3'] .twin__steps [data-step='3'] span { color: var(--mint); }
body[data-step='2'] .twin__steps [data-step='1'], body[data-step='3'] .twin__steps [data-step='1'], body[data-step='3'] .twin__steps [data-step='2'] { opacity: 0.55; }
.twin__meter { grid-column: 1 / -1; position: relative; display: flex; justify-content: space-between; color: var(--mute); padding-top: 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.twin__track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--faint); }
.twin__track i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--coral), var(--mint)); transform-origin: left; transform: scaleX(calc((var(--p, 0) - 0.08) / 0.75)); box-shadow: 0 0 10px var(--mint); }
body[data-step='1'] .twin__meter span:nth-child(1), body[data-step='2'] .twin__meter span:nth-child(2) { color: var(--coral); }
body[data-step='3'] .twin__meter span:nth-child(3) { color: var(--mint); }

/* ---------- 06 agents ---------- */
.ch--agents { height: 380vh; }
.ch--agents .sticky { display: flex; flex-direction: column; justify-content: center; gap: 6vh; padding-top: 60px; }
.agents__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; perspective: 1200px; }
.agent {
  position: relative; width: clamp(280px, 25vw, 360px); min-height: 420px; padding: 26px; border-radius: 22px; overflow: hidden; flex: none;
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, rgba(10, 30, 25, 0.88), rgba(2, 8, 6, 0.84));
  border: 1px solid var(--line);
  transition: border-color 0.5s;
}
.agent:hover { border-color: rgba(141, 220, 192, 0.5); }
.agent__top { display: flex; justify-content: space-between; color: var(--mute); }
.agent__status { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--faint); font-size: 9px; }
.agent__status.is-live { color: var(--mint); border-color: rgba(141, 220, 192, 0.4); }
.agent__status.is-live::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); margin-right: 6px; vertical-align: middle; animation: live 2s infinite; }
.agent__orb { position: relative; width: 84px; height: 84px; margin: 34px 0 30px; }
.agent__orb i { position: absolute; inset: 0; border: 1px solid rgba(141, 220, 192, 0.5); border-radius: 50%; animation: orbit 6s linear infinite; }
.agent__orb i:nth-child(1) { transform: rotateX(70deg); }
.agent__orb i:nth-child(2) { transform: rotateY(70deg); animation-duration: 8s; animation-direction: reverse; }
.agent__orb i:nth-child(3) { inset: 30px; background: var(--mint); box-shadow: 0 0 24px var(--mint); border: 0; animation: breathe 3s ease-in-out infinite; }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes breathe { 50% { transform: scale(0.7); opacity: 0.7; } }
.agent__cat { color: var(--mint); margin: 0; }
.agent h3 { font-weight: 400; font-size: 1.7rem; letter-spacing: -0.035em; line-height: 1.05; margin: 10px 0 12px; }
.agent__line { color: var(--ink-2); font-weight: 300; font-size: 15px; margin: 0; }
.agent__out { margin: auto 0 0; padding-top: 22px; border-top: 1px solid var(--faint); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.agent__out span { color: var(--mute); }
.agents__hint { position: absolute; right: var(--gutter); bottom: 34px; color: var(--mute); display: flex; gap: 10px; align-items: center; }
.agents__hint i { width: 40px; height: 1px; background: var(--mint); animation: hint 1.8s var(--ease-io) infinite; transform-origin: left; }
@keyframes hint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- 07 erp ---------- */
.ch--erp { height: 220vh; }
.ch--erp .sticky { display: grid; align-items: center; }
.erp { text-align: left; }
.erp__old { margin: 0; font-size: clamp(1.6rem, 4vw, 4.2rem); letter-spacing: -0.04em; line-height: 1; color: var(--mute); opacity: calc(1 - var(--p, 0) * 0.6); }
.erp__strike { position: relative; display: inline-block; color: var(--ink); }
.erp__strike::after { content: ''; position: absolute; left: -4%; right: -4%; top: 54%; height: 0.08em; background: var(--coral); transform-origin: left; transform: scaleX(clamp(0, calc(var(--p, 0) * 3.5 - 0.3), 1)); box-shadow: 0 0 20px var(--coral); }
.erp__new { margin: 0.35em 0 0; font-size: clamp(2.6rem, 8.6vw, 10rem); letter-spacing: -0.055em; line-height: 0.92; font-weight: 400; }
.erp__new span, .erp__new em {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 48%, rgba(234, 255, 246, 0.1) 52%);
  background-size: 210% 100%;
  background-position: calc(100% - clamp(0, calc(var(--p, 0) * 1.9 - 0.25), 1) * 100%) 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.erp__new em { background-image: linear-gradient(90deg, var(--mint) 0%, var(--mint-2) 48%, rgba(141, 220, 192, 0.1) 52%); display: block; background-position: calc(100% - clamp(0, calc(var(--p, 0) * 1.9 - 0.75), 1) * 100%) 0; }

/* ---------- 08 proof ---------- */
.ch--proof { min-height: 170vh; padding: 22vh 0 18vh; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 12vh; border-top: 1px solid var(--faint); max-width: 1100px; }
.stat { padding: 30px 30px 0 0; opacity: 0; translate: 0 40px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); }
.stat + .stat { padding-left: 30px; border-left: 1px solid var(--faint); }
.stat:nth-child(2) { transition-delay: 0.12s; } .stat:nth-child(3) { transition-delay: 0.24s; }
.stat.in { opacity: 1; translate: 0 0; }
.stat__v { font-weight: 400; font-size: clamp(4rem, 8vw, 8.4rem); letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.stat__u { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 3rem); color: var(--mint); margin-left: 6px; }
.stat p { color: var(--ink-2); margin: 14px 0 0; font-weight: 300; }
.footnote { color: var(--mute); font-size: 9.5px; margin: 26px 0 0; }
.sectors { list-style: none; margin: 14vh 0 0; padding: 0; max-width: 980px; }
.sector { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 0 18px; padding: 22px 0; border-bottom: 1px solid var(--faint); opacity: 0; translate: -40px 0; transition: opacity 1s var(--ease), translate 1s var(--ease), padding 0.5s var(--ease); }
.sector.in { opacity: 1; translate: 0 0; }
.sector:nth-child(2) { transition-delay: 0.08s; } .sector:nth-child(3) { transition-delay: 0.16s; } .sector:nth-child(4) { transition-delay: 0.24s; }
.sector b { font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 3rem); letter-spacing: -0.04em; transition: color 0.4s, transform 0.6s var(--ease); }
.sector p { grid-column: 2 / -1; margin: 0; max-height: 0; overflow: hidden; color: var(--ink-2); font-weight: 300; transition: max-height 0.6s var(--ease), margin 0.6s var(--ease); }
.sector:hover p { max-height: 60px; margin-top: 8px; }
.sector:hover b { color: var(--mint); transform: translateX(8px); }
.sector__dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--mute); }
.sector.is-proven .sector__dot { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px var(--mint); animation: live 2s infinite; }
.sector.is-building .sector__dot { border-color: var(--mint); background: rgba(141, 220, 192, 0.3); }
.sector__tag { color: var(--mute); padding: 5px 10px; border: 1px solid var(--faint); border-radius: 999px; }
.sector.is-proven .sector__tag { color: var(--mint); border-color: rgba(141, 220, 192, 0.45); }

/* ---------- 09 adopt ---------- */
.ch--adopt { min-height: 190vh; padding: 22vh 0 18vh; }
.adopt { margin: 10vh 0 0 auto; max-width: 820px; }
.toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(2, 8, 6, 0.78); }
.toggle button { position: relative; z-index: 1; height: 44px; padding: 0 28px; border-radius: 999px; font-weight: 500; transition: color 0.5s; color: var(--ink-2); }
.toggle button[aria-selected='true'] { color: #02150f; }
.toggle__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--mint); box-shadow: 0 0 24px -4px var(--mint); transition: transform 0.6s var(--ease); }
.toggle[data-active='connect'] .toggle__pill { transform: translateX(100%); }
.adopt__panel { margin-top: 30px; padding: 34px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(10, 30, 25, 0.86), rgba(2, 8, 6, 0.82)); }
.adopt__copy h3 { margin: 0; font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.1; max-width: 24ch; }
.adopt__copy p { color: var(--ink-2); font-weight: 300; margin: 14px 0 0; max-width: 54ch; }
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; margin-top: 34px; }
.flow__node { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(2, 8, 6, 0.6); font-size: 14px; white-space: nowrap; }
.flow__node b { font-weight: 500; }
.flow__node--core { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 30px -6px rgba(141, 220, 192, 0.6), inset 0 0 20px -8px rgba(141, 220, 192, 0.5); }
.flow__line { position: relative; height: 1px; margin: 0 10px; background: repeating-linear-gradient(90deg, rgba(141, 220, 192, 0.5) 0 6px, transparent 6px 12px); background-size: 24px 1px; animation: dash 1s linear infinite; }
.flow__line i { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: travel 2.2s var(--ease-io) infinite; }
.flow__line + .flow__node + .flow__line i { animation-delay: 1.1s; }
.flow.pulse .flow__node--core { animation: corePulse 0.9s var(--ease); }
@keyframes dash { to { background-position: 24px 0; } }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
@keyframes corePulse { 30% { transform: scale(1.12); box-shadow: 0 0 60px rgba(141, 220, 192, 0.8); } }
.how { position: relative; list-style: none; padding: 0; margin: 18vh 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.how li { position: relative; padding-top: 30px; opacity: 0; translate: 0 30px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.how li:nth-child(2) { transition-delay: 0.1s; } .how li:nth-child(3) { transition-delay: 0.2s; } .how li:nth-child(4) { transition-delay: 0.3s; }
.how li.in { opacity: 1; translate: 0 0; }
.how li::before { content: ''; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--mint); }
.how li span { color: var(--mint); }
.how li b { display: block; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; margin: 10px 0 8px; }
.how li p { margin: 0; color: var(--ink-2); font-weight: 300; font-size: 15px; }
.how__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--faint); }
.how__line::after { content: ''; position: absolute; inset: 0; background: var(--mint); box-shadow: 0 0 10px var(--mint); transform-origin: left; transform: scaleX(clamp(0, calc((var(--p, 0) - 0.55) * 3), 1)); }

/* ---------- 10 finale ---------- */
.ch--finale { height: 170vh; }
.finale { position: sticky; top: 0; height: 100vh; display: grid; align-content: end; justify-items: start; padding: 0 var(--gutter) 12vh; }
.finale .h-xxl { max-width: 13ch; }
.finale .h-xxl .wi { transition-duration: 1.5s; }
.ch--finale:not(.is-hit) .finale .h-xxl, .ch--finale:not(.is-hit) .orb { opacity: 0.0; }
.finale .h-xxl, .orb { transition: opacity 1s var(--ease) 0.2s; }
.orb { position: absolute; right: calc(var(--gutter) + 40px); bottom: 12vh; width: clamp(150px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.orb__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.orb__ring text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.32em; fill: var(--mint); }
@keyframes spin { to { transform: rotate(360deg); } }
.orb__core { width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--mint); color: #02150f; font-weight: 500; font-size: 1.05rem; line-height: 1.05; letter-spacing: -0.02em; box-shadow: 0 0 0 1px rgba(141, 220, 192, 0.6), 0 0 60px -6px var(--mint); transition: transform 0.6s var(--ease), background 0.5s; }
.orb:hover .orb__core { transform: scale(1.1); background: var(--ink); }
.orb::before { content: ''; position: absolute; inset: 19%; border-radius: 50%; border: 1px solid var(--mint); animation: ripple 2.6s ease-out infinite; }
@keyframes ripple { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--faint); background: linear-gradient(180deg, rgba(2, 5, 4, 0.4), var(--bg) 60%); padding: 46px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr auto; gap: 24px 40px; align-items: center; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { width: 24px; height: auto; }
.footer__brand b { display: block; font-weight: 500; }
.footer__brand span { color: var(--mute); font-size: 14px; }
.footer__links { display: flex; gap: 26px; }
.footer__links .linklike { color: var(--ink-2); }
.footer__links .linklike:hover { color: var(--mint); }
.footer__legal { grid-column: 1 / -1; color: var(--mute); margin: 10px 0 0; font-size: 10px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; pointer-events: none; visibility: hidden; transition: visibility 0s 0.8s; }
.modal-open .modal { pointer-events: auto; visibility: visible; transition: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(1, 4, 3, 0.86); opacity: 0; transition: opacity 0.6s var(--ease); }
.modal-open .modal__bg { opacity: 1; }
.modal__panel { position: relative; width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(26px, 4vw, 46px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(10, 32, 27, 0.96), rgba(2, 8, 6, 0.97)); box-shadow: 0 40px 120px -30px rgba(141, 220, 192, 0.35); opacity: 0; transform: translateY(40px) scale(0.96); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.modal-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--faint); font-size: 22px; line-height: 1; color: var(--ink-2); transition: all 0.4s var(--ease); }
.modal__close:hover { border-color: var(--mint); color: var(--mint); transform: rotate(90deg); }
.modal h2 { margin: 0 0 30px; font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.045em; line-height: 1; }
.modal h2 em { color: var(--mint); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__wide { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; }
.form label span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(234, 255, 246, 0.04); border: 1px solid var(--faint); border-radius: 12px; padding: 13px 14px; transition: border-color 0.3s, background 0.3s; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mint) 50%), linear-gradient(135deg, var(--mint) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: #06120f; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--mint); background: rgba(141, 220, 192, 0.06); }
.form label.err input, .form label.err textarea { border-color: var(--coral); }
.form .btn { justify-content: center; margin-top: 6px; }
.form__msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; color: var(--mint); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .powers { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; }
  .twin { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
  .twin__steps { grid-column: 1; grid-row: 3; align-self: end; }
  .twin__steps li { display: none; }
  body[data-step='1'] .twin__steps [data-step='1'], body[data-step='2'] .twin__steps [data-step='2'], body[data-step='3'] .twin__steps [data-step='3'] { display: block; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .how__line { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr auto; padding: 14px 18px; }
  .nav__chapter, .rail, .hero__hud { display: none; }
  .nav__right { gap: 6px; }
  .nav__menu span { display: none; }
  .nav__right .btn--small { display: none; }
  .hero { right: var(--gutter); bottom: 96px; }
  .scrollcue span { display: none; }
  .scrollcue { bottom: 18px; }
  .scrollcue i { height: 34px; }
  .hero__title { font-size: clamp(3.2rem, 17vw, 5rem); }
  .scrim { background: linear-gradient(0deg, rgba(2, 5, 4, 0.85) 0%, rgba(2, 5, 4, 0.3) 55%, transparent 80%) !important; }
  .ch--core .scrim { opacity: 0.2; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--faint); }
  .stat { padding: 26px 0; }
  .flow { grid-template-columns: 1fr; justify-items: start; gap: 8px; }
  .flow__line { width: 1px; height: 26px; margin: 0 0 0 24px; background: repeating-linear-gradient(180deg, rgba(141, 220, 192, 0.5) 0 6px, transparent 6px 12px); }
  .flow__line i { display: none; }
  .how { grid-template-columns: 1fr; }
  .menu__list { grid-template-columns: 1fr; }
  .orb { position: relative; right: auto; bottom: auto; margin-top: 34px; }
  .finale { padding-bottom: 10vh; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; gap: 16px; }
  .form { grid-template-columns: 1fr; }
  .callout { transform-origin: left bottom; scale: 0.85; }
  .chip { font-size: 9px; padding: 5px 9px; }
  .twin { padding-top: 90px; }
  .agent { min-height: 380px; }
  .gate__coord { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.3s !important; transition-delay: 0s !important; }
  .wi { transform: none; }
}

/* hide the journey until the visitor walks through the gate */
body:not(.entered) main, body:not(.entered) .footer { opacity: 0; visibility: hidden; }
.entered main { animation: mainIn 1.2s var(--ease) both; }
@keyframes mainIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- polish: chapter sweep, hero tilt, hints ---------- */
.sweep { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.sweep i { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--mint); box-shadow: 0 0 18px 2px rgba(141, 220, 192, 0.7); opacity: 0; }
.sweep i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 26vh; background: linear-gradient(0deg, rgba(141, 220, 192, 0.09), transparent); }
.sweep__label { position: absolute; right: calc(var(--gutter) + 34px); top: 0; color: var(--mint); opacity: 0; font-size: 10px; }
.sweep.go i { animation: sweepLine 1.1s var(--ease-io) forwards; }
.sweep.go .sweep__label { animation: sweepLabel 1.1s var(--ease-io) forwards; }
@keyframes sweepLine { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(100vh); opacity: 0; } }
@keyframes sweepLabel { 0% { transform: translateY(8px); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(calc(100vh - 14px)); opacity: 0; } }

.hero__title { transform-origin: 30% 60%; will-change: transform; }

.hero__hint { color: var(--mint); animation: hintBlink 2.6s ease-in-out infinite; transition: opacity 0.8s; }
.hero__hint.used { opacity: 0; }
@keyframes hintBlink { 50% { opacity: 0.45; } }
.touch .hero__hint { display: none; }

/* proof readability over the globe */
body[data-ch='proof'] .scrim { opacity: 1; background: linear-gradient(90deg, rgba(2, 5, 4, 0.82) 0%, rgba(2, 5, 4, 0.55) 55%, rgba(2, 5, 4, 0.2) 100%); }
.stat__v, .sector b { text-shadow: 0 2px 30px rgba(2, 5, 4, 0.9); }
@media (prefers-reduced-motion: reduce) { .sweep, .hero__hint { display: none; } .hero__title { transform: none; } }

/* =========================================================
   Neural core entry
   ========================================================= */
.gate { grid-template-rows: auto 1fr auto; }
.gate__veil { background: radial-gradient(55% 55% at 50% 45%, transparent 30%, rgba(2, 5, 4, 0.7) 85%) !important; }
.entering .gate__veil { opacity: 0; }
.gate__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.gate__brand img { width: 15px; height: auto; }
.gate__sys { color: var(--mute); }
.gate__sys b { color: var(--mint); font-weight: 500; }
.gate__center { place-content: end start; justify-items: start; text-align: left; gap: 18px; padding-bottom: 4vh; }
.gate__title { font-size: clamp(2.4rem, 5.4vw, 5.4rem); max-width: 13ch; text-shadow: 0 2px 30px rgba(2, 5, 4, 0.8); }
.gate__actions { justify-content: flex-start; margin-top: 6px; }
.gate-ready .gate__hint { font-size: 10px; }
.entering .gate__center { transform: translateY(30px); filter: none; opacity: 0; transition: transform 0.9s var(--ease-io), opacity 0.6s; }
.gate__reticle { position: absolute; left: 50%; top: 48%; width: min(46vw, 520px); aspect-ratio: 1.25; transform: translate(-50%, -50%) scale(1.15); opacity: 0; transition: opacity 1.4s var(--ease) 0.4s, transform 1.4s var(--ease) 0.4s; pointer-events: none; }
.gate-ready .gate__reticle { opacity: 1; transform: translate(-50%, -50%); }
.entering .gate__reticle { opacity: 0; transform: translate(-50%, -50%) scale(2.2); transition: all 0.8s var(--ease-io); }
.gate__reticle i { position: absolute; width: 22px; height: 22px; border-color: rgba(141, 220, 192, 0.6); border-style: solid; border-width: 0; }
.gate__reticle i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.gate__reticle i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.gate__reticle i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.gate__reticle i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.gate__tag { position: absolute; left: 0; top: -22px; color: var(--mint); font-size: 10px; }
@media (max-width: 760px) {
  .gate__reticle { width: 86vw; top: 48%; aspect-ratio: 1.12; }
  .gate__sys { font-size: 9px; }
  .gate__title { font-size: clamp(2.2rem, 10vw, 3rem); }
}

/* cinematic overlays (DOM, so they cost nothing on the GPU path) */
.fx-flash { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: #e9fff7; }
.fx-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
body.glitching #world { animation: canvasGlitch 0.6s steps(1) both; }
@keyframes canvasGlitch {
  0% { transform: translate(6px, 0); } 12% { transform: translate(-9px, 2px) skewX(-4deg); } 24% { transform: translate(3px, -1px); }
  36% { transform: translate(-4px, 0) skewX(3deg); } 52% { transform: translate(8px, 1px); } 70% { transform: translate(-2px, 0); } 100% { transform: none; }
}
.perf-hud { position: fixed; left: 12px; bottom: 12px; z-index: 300; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.75); color: var(--mint); font-size: 10px; pointer-events: none; }

/* =========================================================
   Brand typography (Bamboo AI style guide: Outfit) + spacing system
   One family everywhere; emphasis by colour and weight, not by switching typefaces.
   ========================================================= */
:root {
  --brand-font: 'Outfit';
  --sans: var(--brand-font), ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  --nav-h: 76px;
  --section-y: clamp(96px, 16vh, 200px);
  --sticky-top: calc(var(--nav-h) + 40px);
  --brand-sage: #e2f1e7;
  --brand-navy: #243642;
  --brand-forest: #033d3e;
}
body { font-family: var(--sans); font-weight: 300; letter-spacing: 0; }
.mono, .eyebrow, .chip, .callout small, .form label span, .orb__ring text { font-family: var(--sans); font-weight: 500; letter-spacing: 0.14em; }
.mono { font-size: 11.5px; }
em, .h-lg em, .h-xl em, .h-xxl em, .hero__title em, .gate__title em, .erp__new em { font-family: var(--sans); font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--mint); }
.h-lg em .wi, .h-xl em .wi, .h-xxl em .wi, .hero__title em .wi, .gate__title em .wi { background: none; -webkit-text-fill-color: currentColor; }

/* headline scale — sized so the longest lines fit at every width */
.hero__title, .gate__title, .h-lg, .h-xl, .h-xxl, .core__title, .erp__new, .erp__old, .stat__v, .power h3, .agent h3, .sector b, .adopt__copy h3, .modal h2, .menu__list b {
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em;
}
.hero__title { font-size: clamp(2.9rem, 7vw, 7.4rem); line-height: 1.0; }
.gate__title { font-size: clamp(2.2rem, 4.4vw, 4.6rem); line-height: 1.04; max-width: 14ch; }
.h-lg { font-size: clamp(2rem, 3.6vw, 3.8rem); line-height: 1.04; }
.h-xl { font-size: clamp(2.2rem, 4.4vw, 4.8rem); line-height: 1.04; }
.h-xxl { font-size: clamp(2.5rem, 6vw, 6.8rem); line-height: 1.0; }
.core__title { font-size: clamp(3rem, 10vw, 11rem); line-height: 1; letter-spacing: -0.03em; }
.ch--core.is-hit .core__word { letter-spacing: -0.03em; }
.core__then { font-family: var(--sans); font-style: normal; font-weight: 400; letter-spacing: 0.02em; }
.erp__old { font-size: clamp(1.5rem, 3.4vw, 3.6rem); line-height: 1.1; font-weight: 400; }
.erp__new { font-size: clamp(2.3rem, 6.6vw, 7.6rem); line-height: 1.02; }
.stat__v { font-size: clamp(3.4rem, 6.4vw, 7rem); line-height: 1; font-weight: 400; }
.stat__u { font-family: var(--sans); font-style: normal; font-weight: 400; }
.power h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1.1; }
.agent h3 { font-size: 1.5rem; line-height: 1.15; }
.sector b { font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1.15; }
.lead, .hero__lead, .core__sub { font-weight: 300; line-height: 1.6; }
.btn { font-family: var(--sans); font-weight: 500; letter-spacing: 0; }

/* word-reveal masks: leave room for ascenders/descenders so lines never clip or collide */
.w { padding: 0.08em 0.03em 0.16em; margin: -0.08em -0.03em -0.16em; }

/* brand lock-up */
.brand, .nav__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img, .nav__brand img { width: 30px; height: 30px; border-radius: 0; filter: none; }
.gate__top .brand img { width: 28px; height: 28px; }
.brand__word { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; color: var(--ink); }
.footer__brand img { width: 40px; height: 40px; }

/* ---------- spacing system ---------- */
.nav { padding-top: 20px; padding-bottom: 20px; }
.ch--noise, .ch--pillars, .ch--proof, .ch--adopt { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.powers { margin-top: clamp(56px, 10vh, 120px); gap: clamp(14px, 1.6vw, 24px); }
.power { padding: clamp(24px, 2.4vw, 36px); }
.stats { margin-top: clamp(56px, 9vh, 110px); }
.sectors { margin-top: clamp(64px, 11vh, 140px); }
.adopt { margin-top: clamp(48px, 8vh, 100px); }
.how { margin-top: clamp(72px, 12vh, 150px); }
.twin { padding: var(--sticky-top) var(--gutter) 40px; gap: 24px; }
.ch--agents .sticky { padding-top: var(--sticky-top); gap: clamp(28px, 5vh, 56px); justify-content: flex-start; }
.agents__head { padding-top: 0; }
.ch--erp .sticky { padding: var(--sticky-top) 0 60px; }
.erp__new { margin-top: 0.4em; }
.hero { bottom: clamp(64px, 12vh, 130px); max-width: min(780px, calc(100vw - 2 * var(--gutter))); }
.hero__lead { margin-top: 26px; max-width: 44ch; }
.hero__ctas { margin-top: 32px; }

/* finale: headline and orb never share space */
.finale { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding: 0 var(--gutter) clamp(56px, 11vh, 120px); }
.finale .eyebrow { grid-column: 1 / -1; }
.finale .h-xxl { max-width: 12ch; }
.orb { position: relative; right: auto; bottom: auto; flex: none; }

/* nav: chapter label only where there is room */
@media (max-width: 1100px) { .nav__chapter { display: none; } .nav { grid-template-columns: 1fr auto; } .hero__hud { display: none; } }

@media (max-width: 760px) {
  :root { --nav-h: 64px; --section-y: clamp(80px, 12vh, 120px); }
  .nav { padding: 14px 18px; }
  .brand__word { font-size: 15px; }
  .nav__brand img { width: 26px; height: 26px; }
  .hero__title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .h-xxl { font-size: clamp(2.3rem, 11vw, 3.6rem); }
  .h-xl { font-size: clamp(2rem, 9.5vw, 3rem); }
  .h-lg { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .core__title { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .erp__new { font-size: clamp(2.1rem, 10vw, 3.4rem); }
  .finale { grid-template-columns: 1fr; gap: 28px; }
  .orb { width: 150px; }
  .twin { padding-top: calc(var(--nav-h) + 20px); }
}

/* auto-wake: the primary button fills up, then the core wakes itself */
.gate [data-enter="sound"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: -1; background: rgba(2, 21, 15, 0.14); transform-origin: left; transform: scaleX(0); border-radius: inherit; }
.auto-wake.gate-ready .gate [data-enter="sound"]::after { animation: autoFill var(--auto, 6500ms) linear forwards; }
@keyframes autoFill { to { transform: scaleX(1); } }

/* font comparison picker (?fonts) */
.font-picker { position: fixed; right: 14px; bottom: 14px; z-index: 300; display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.82); border: 1px solid var(--line); }
.font-picker a { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 12px; }
.font-picker a.on, .font-picker a:hover { background: var(--mint); color: #02150f; }

/* reticle tracks where the chip sits */
.gate__reticle { left: 64%; top: 44%; width: min(38vw, 470px); aspect-ratio: 1; }
@media (max-width: 900px) { .gate__reticle { left: 50%; top: 30%; width: min(74vw, 420px); aspect-ratio: 1; } }
@media (max-width: 900px) { .gate__tag { display: none; } .gate__reticle { top: 31%; width: min(70vw, 400px); } }
/* twin steps: every step sits on its own panel, so dim steps never read as stray text */
.twin__steps li { background: rgba(4, 14, 11, 0.78); border: 1px solid rgba(141, 220, 192, 0.1); opacity: 0.5; }
.twin__steps li b { font-weight: 500; }
/* stronger nav backdrop so content scrolling underneath never collides with it */
.nav::before { inset: 0 0 -40px; background: linear-gradient(180deg, rgba(2, 5, 4, 0.94) 0%, rgba(2, 5, 4, 0.7) 55%, transparent); }

/* the pre-reveal (scaled, spaced) word must never widen the page on phones */
.ch--core { overflow-x: clip; }

.form__alt { grid-column: 1 / -1; margin: 0; font-size: 14px; color: rgba(243,247,248,.62); }
.form__alt a, .form__msg a { color: var(--mint); }
