/* self-hosted fonts (no third-party requests) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/geist-mono.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); }

/* =========================================================
   AIOBC — "The Operating Layer"
   Design system + components
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #0A0C0D;
  --bg-2: #0F1214;
  --surface: #13171A;
  --surface-2: #1A1F22;
  --line: rgba(242, 239, 232, .09);
  --line-2: rgba(242, 239, 232, .17);
  --ink: #F2EFE8;
  --ink-2: #C3C6C1;
  --muted: #868C88;
  --ember: #FF6B3D;
  --ember-2: #FF9A6B;
  --teal: #33D6B8;
  --teal-2: #0F7A6A;
  --glass: rgba(15, 18, 20, .66);
  --on-ink: #0A0C0D;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .75);
  --grain-opacity: .07;

  --a-voice: #FF6B3D;
  --a-doc: #F5C04A;
  --a-know: #33D6B8;
  --a-insight: #8FA8FF;
  --a-vision: #C2A4FF;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --r: 22px;
  --r-lg: 32px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F3F0E9;
  --bg-2: #ECE7DD;
  --surface: #FFFFFF;
  --surface-2: #F8F6F1;
  --line: rgba(18, 20, 20, .10);
  --line-2: rgba(18, 20, 20, .19);
  --ink: #121414;
  --ink-2: #3B3F3D;
  --muted: #6B706C;
  --ember: #DD4F1C;
  --ember-2: #EE7A47;
  --teal: #0E8A75;
  --teal-2: #0B6B5C;
  --glass: rgba(243, 240, 233, .74);
  --on-ink: #F3F0E9;
  --shadow: 0 40px 80px -40px rgba(40, 30, 10, .28);
  --grain-opacity: .05;

  --a-voice: #DD4F1C;
  --a-doc: #B07D0A;
  --a-know: #0E8A75;
  --a-insight: #4560D6;
  --a-vision: #7B57DB;
  color-scheme: light;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* grain overlay */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 999; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* ---------- type ---------- */
.d1, .d2, .d3 { font-family: var(--f-sans); font-weight: 500; letter-spacing: -.045em; color: var(--ink); }
.d1 { font-size: clamp(46px, min(7.2vw, 11.5vh), 124px); line-height: .94; }
.d2 { font-size: clamp(38px, 5.4vw, 84px); line-height: .98; }
.d3 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -.035em; }
.d1 em, .d2 em, .d3 em, .serif {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.d1 em, .d2 em, .d3 em { color: var(--ember); padding-right: .04em; }
.em-teal em { color: var(--teal); }
h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.small { font-size: 14.5px; color: var(--muted); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); }
.label.teal::before { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.label.plain::before { display: none; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.sec.tight { padding: clamp(60px, 8vw, 110px) 0; }
.sec.alt { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 84px); }
.sec-head .label { margin-bottom: 26px; }
.sec-head.stack { grid-template-columns: 1fr; gap: 24px; }
.sec-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --bc: var(--line-2);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid var(--bc); color: var(--ink);
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ember); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; border-color: var(--ember); }
.btn-solid { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: -12px; border-radius: 50%; background: var(--ember); color: #fff; overflow: hidden; transition: background .45s var(--ease); }
.btn .arr svg { width: 13px; height: 13px; transition: transform .45s var(--ease); }
.btn:hover .arr { background: rgba(255, 255, 255, .22); }
.btn:hover .arr svg { animation: arrow-slide .55s var(--ease); }
@keyframes arrow-slide { 0% { transform: translateX(0); } 49% { transform: translateX(160%); } 50% { transform: translateX(-160%); } 100% { transform: translateX(0); } }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14.5px; }
.link {
  display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .5s var(--ease), color .3s;
}
.link:hover { color: var(--ember); background-size: 0 1px; background-position: 100% 100%; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .4s var(--ease), border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.hdr.hide { transform: translateY(-100%); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: .02em; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; position: relative; }
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-mark .orb { transform-origin: 15px 15px; animation: spin 6s linear infinite; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2);
  transition: color .3s, background .3s;
}
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ember); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink); transition: background .3s, transform .4s var(--ease);
}
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.theme-toggle:active { transform: rotate(40deg) scale(.92); }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .mmenu { clip-path: inset(0 0 0 0); visibility: visible; }
.mmenu nav a {
  display: block; font-size: clamp(40px, 11vw, 64px); letter-spacing: -.045em; line-height: 1.1; color: var(--ink);
  border-bottom: 1px solid var(--line); padding: 10px 0;
  transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.mmenu nav a em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ember); }
.menu-open .mmenu nav a { transform: none; opacity: 1; }
.menu-open .mmenu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mmenu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mmenu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .mmenu nav a:nth-child(5) { transition-delay: .2s; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ember), var(--teal)); }

/* ---------- custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ember); }
.cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 0; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s, opacity .3s, font-size .2s;
}
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ember); background: rgba(255, 107, 61, .08); }
.cursor.label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--ember); border-color: var(--ember); font-size: 11px; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- page transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 998; pointer-events: none; background: var(--ember);
  transform: translateY(100%);
}
.curtain.in { transition: transform .5s var(--ease-in); transform: translateY(0); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em .08em .22em 0; margin: -.02em -.08em -.22em 0; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); padding: calc(var(--header-h) + clamp(36px, 7vh, 90px)) 0 clamp(36px, 6vh, 70px);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 62%),
              linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 760px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 12px; height: 38px; padding: 0 16px 0 12px; margin-bottom: clamp(22px, 4vh, 36px);
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); max-width: 100%;
}
.live-pill b { color: var(--teal); font-weight: 500; letter-spacing: .12em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--teal); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.rotator { position: relative; display: inline-grid; overflow: hidden; height: 1.5em; white-space: nowrap; }
.rotator > span { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); text-overflow: ellipsis; overflow: hidden; }
.rotator > span.on { transform: none; opacity: 1; }
.rotator > span.out { transform: translateY(-110%); opacity: 0; }
.hero .lede { margin-top: clamp(20px, 3.4vh, 32px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4.6vh, 44px); }
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: clamp(40px, 7vh, 80px); padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em;
}
.hero-foot span { display: inline-flex; align-items: center; gap: 10px; }
.hero-foot span::before { content: "✦"; color: var(--ember); font-size: 10px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(36px, 6vh, 70px); z-index: 2; display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }
.scroll-cue i { width: 1px; height: 46px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ember); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* sub-page hero */
.phero { position: relative; padding: calc(var(--header-h) + clamp(60px, 11vh, 140px)) 0 clamp(60px, 9vw, 120px); overflow: hidden; }
.phero .label { margin-bottom: 28px; }
.phero .lede { margin-top: 30px; }
.phero-glow {
  position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -380px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--ember) 28%, transparent), transparent 62%);
  filter: blur(20px); animation: drift 14s ease-in-out infinite alternate;
}
.phero-glow.teal { background: radial-gradient(circle, color-mix(in srgb, var(--teal) 24%, transparent), transparent 62%); }
@keyframes drift { to { transform: translate(-120px, 80px) scale(1.1); } }
.phero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%);
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px) 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 46px); padding-right: clamp(22px, 3vw, 46px); font-size: clamp(38px, 6vw, 92px); letter-spacing: -.045em; font-weight: 500; color: var(--ink); line-height: 1.1; }
.marquee-track span.o { color: transparent; -webkit-text-stroke: 1px var(--line-2); font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.marquee-track span::after { content: "✦"; font-size: .32em; color: var(--ember); -webkit-text-stroke: 0; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scrub statement ---------- */
.scrub { font-size: clamp(30px, 4.3vw, 64px); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; color: var(--ink); max-width: 1180px; }
.scrub .sw { opacity: .14; transition: opacity .25s linear; }
.scrub .sw.lit { opacity: 1; }
.scrub em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--ember); }
.scrub-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; }

/* ---------- pillars + equation ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(28px, 3.6vw, 52px);
  background: var(--surface); border: 1px solid var(--line); min-height: 520px; display: flex; flex-direction: column;
}
.pillar .num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.pillar h3 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.05; margin: 22px 0 18px; max-width: 460px; }
.pillar h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ember); }
.pillar.agents h3 em { color: var(--teal); }
.pillar ul { margin-top: auto; padding-top: 30px; }
.pillar li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); transition: color .3s, padding .4s var(--ease); }
.pillar li::after { content: "→"; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.pillar li:hover { color: var(--ink); padding-left: 8px; }
.pillar li:hover::after { transform: translateX(-6px); color: var(--ember); }
.pillar.agents { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--teal) 16%, var(--surface)), var(--surface) 60%); }
.pillar .glyph { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: .55; pointer-events: none; }

.equation { margin-top: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(26px, 3vw, 42px); background: var(--bg); }
.eq-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 22px; }
.eq-top .d3 { font-size: clamp(22px, 2.2vw, 30px); }
.eq-bar { display: flex; height: 64px; border-radius: 16px; overflow: hidden; background: var(--line); }
.eq-bar .seg { display: flex; align-items: center; padding: 0 20px; width: 0; font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; transition: width 1.6s var(--ease); }
.eq-bar .seg.a { background: var(--teal); color: #04221c; }
.eq-bar .seg.b { background: var(--ember); color: #fff; transition-delay: .5s; }
.equation.in .seg.a { width: 80%; }
.equation.in .seg.b { width: 20%; }
.eq-legend { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* ---------- agent explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 20px; align-items: stretch; }
.tabs { display: flex; flex-direction: column; gap: 8px; }
.tab {
  --c: var(--ember);
  position: relative; overflow: hidden; text-align: left; width: 100%;
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 4px 12px;
  padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: transparent;
  transition: background .4s, border-color .4s;
}
.tab:hover { background: var(--surface); }
.tab .tn { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.tab .tt { font-size: 18.5px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.tab .ts { grid-column: 2 / 4; font-size: 14px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.tab .tdot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: .35; transition: opacity .3s, box-shadow .3s; }
.tab.on { background: var(--surface); border-color: var(--line-2); }
.tab.on .ts { max-height: 80px; }
.tab.on .tdot { opacity: 1; box-shadow: 0 0 14px var(--c); }
.tab .tbar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c); transform-origin: 0; transform: scaleX(0); }
.tab.on .tbar { animation: tbar var(--dur, 8s) linear forwards; }
.explorer.paused .tab.on .tbar { animation-play-state: paused; }
@keyframes tbar { to { transform: scaleX(1); } }
.tab[data-agent="voice"] { --c: var(--a-voice); }
.tab[data-agent="doc"] { --c: var(--a-doc); }
.tab[data-agent="know"] { --c: var(--a-know); }
.tab[data-agent="insight"] { --c: var(--a-insight); }
.tab[data-agent="vision"] { --c: var(--a-vision); }

.stage {
  position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: var(--surface); min-height: 520px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.stage-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.stage-bar .stat { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--teal); }
.stage-body { position: relative; flex: 1; padding: clamp(20px, 3vw, 36px); }
.stage-body::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; }
.demo { --c: var(--ember); position: relative; display: none; height: 100%; }
.demo.active { display: grid; }
.demo[data-demo="voice"] { --c: var(--a-voice); }
.demo[data-demo="doc"] { --c: var(--a-doc); }
.demo[data-demo="know"] { --c: var(--a-know); }
.demo[data-demo="insight"] { --c: var(--a-insight); }
.demo[data-demo="vision"] { --c: var(--a-vision); }
.demo .step { opacity: 0; transform: translateY(14px); animation: step-in .7s var(--ease) forwards; animation-delay: var(--t, 0s); }
@keyframes step-in { to { opacity: 1; transform: none; } }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--bg); }
.chip.ok { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.chip.warn { color: var(--a-doc); border-color: color-mix(in srgb, var(--a-doc) 45%, transparent); }
.chip.hot { color: #fff; background: var(--c); border-color: var(--c); }

/* voice */
.demo-voice { grid-template-rows: auto auto 1fr auto; gap: 20px; }
.call-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 600; }
.call-head b { display: block; color: var(--ink); font-weight: 500; }
.wave { display: flex; align-items: center; gap: 4px; height: 70px; }
.wave i { flex: 1; min-width: 2px; border-radius: 3px; background: var(--c); height: 20%; animation: wave 1.1s ease-in-out infinite alternate; animation-delay: var(--wd); opacity: .85; }
@keyframes wave { to { height: var(--wh); } }
.transcript { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.bubble small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .06em; }
.bubble.agent { background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.user { align-self: flex-end; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--ink); border-bottom-right-radius: 4px; }

/* document */
.demo-doc { grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.paper { position: relative; overflow: hidden; border-radius: 12px; background: #FBF9F4; padding: 26px 22px; min-height: 380px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.paper .ph { height: 12px; width: 60%; border-radius: 3px; background: #2a2a2a; margin-bottom: 18px; }
.paper .pl { height: 7px; border-radius: 3px; background: #D9D4C8; margin-bottom: 9px; }
.paper .pl.hl { background: color-mix(in srgb, var(--a-doc) 55%, #D9D4C8); animation: hl 4s var(--ease) infinite; }
@keyframes hl { 0%, 30% { background: #D9D4C8; } 45%, 100% { background: #F5C04A; } }
.paper .stamp { position: absolute; right: 18px; bottom: 22px; width: 64px; height: 64px; border: 2px solid #c94a2a; border-radius: 50%; opacity: .5; transform: rotate(-14deg); }
.scanline { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--a-doc) 45%, transparent)); border-bottom: 2px solid var(--a-doc); animation: scan 3.2s var(--ease) infinite; }
@keyframes scan { to { top: 100%; } }
.fields { display: flex; flex-direction: column; gap: 10px; }
.frow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; }
.frow span:first-child { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.frow b { font-weight: 500; color: var(--ink); }

/* knowledge */
.demo-know { grid-template-rows: auto 1fr auto; gap: 18px; }
.ask { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); }
.ask .caret { width: 2px; height: 18px; background: var(--c); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typed { overflow: hidden; white-space: nowrap; width: 0; animation: type 1.8s steps(44) forwards .3s; }
@keyframes type { to { width: 100%; } }
.answer { padding: 20px 22px; border-radius: 16px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); color: var(--ink); line-height: 1.6; }
.answer sup { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 3px; border-radius: 5px; background: var(--c); color: #04221c; font-size: 10.5px; font-family: var(--f-mono); vertical-align: 2px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }

/* insight */
.demo-insight { grid-template-rows: auto 1fr auto; gap: 18px; }
.chart { position: relative; width: 100%; height: 100%; min-height: 240px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ln { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s var(--ease) forwards .4s; }
.chart .ln.b { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 8; animation: none; stroke-dashoffset: 0; opacity: .6; }
.chart .area { fill: url(#insightFill); opacity: 0; animation: fade .9s var(--ease) forwards 1.8s; }
.chart .pt { fill: var(--c); opacity: 0; animation: fade .4s forwards 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.kpi small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.kpi b { font-size: 24px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.kpi b.up { color: var(--teal); }

/* vision */
.demo-vision { grid-template-rows: 1fr auto; gap: 16px; }
.scene { position: relative; overflow: hidden; border-radius: 16px; min-height: 330px;
  background:
    linear-gradient(180deg, transparent 58%, rgba(0,0,0,.35) 58%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.08) 46px 48px),
    linear-gradient(180deg, #1d2830 0%, #2a3a44 58%, #39444a 58%, #2b3439 100%);
}
.scene .car { position: absolute; height: 34px; border-radius: 10px 14px 6px 6px; background: linear-gradient(180deg, #8d99a3, #56626b); }
.scene .car::before, .scene .car::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: #111; }
.scene .car::before { left: 10px; } .scene .car::after { right: 10px; }
.scene .c1 { width: 96px; left: 12%; top: 64%; }
.scene .c2 { width: 110px; left: 48%; top: 70%; animation: drive 6s linear infinite; }
.scene .c3 { width: 88px; left: 78%; top: 62%; background: linear-gradient(180deg, #b48a6a, #6e4f3a); }
@keyframes drive { from { transform: translateX(-260%); } to { transform: translateX(120%); } }
.bbox { position: absolute; border: 2px solid var(--c); border-radius: 6px; opacity: 0; animation: pop .5s var(--ease) forwards var(--t); }
.bbox::before { content: attr(data-l); position: absolute; left: -2px; bottom: 100%; margin-bottom: 4px; padding: 3px 8px; border-radius: 5px; background: var(--c); color: #120b20; font-family: var(--f-mono); font-size: 11px; white-space: nowrap; }
.bbox.b1 { left: calc(12% - 8px); top: calc(64% - 10px); width: 112px; height: 58px; }
.bbox.b2 { left: calc(48% - 8px); top: calc(70% - 10px); width: 126px; height: 58px; animation: pop .5s var(--ease) forwards var(--t), drive 6s linear infinite; }
.bbox.b3 { left: calc(78% - 8px); top: calc(62% - 10px); width: 104px; height: 58px; }
@keyframes pop { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: scale(1); } }
.scene .hud { position: absolute; left: 14px; top: 12px; font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,.75); display: flex; gap: 14px; }
.scene .hud i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; margin-right: 6px; animation: blink 1.2s steps(1) infinite; }

/* ---------- live console ---------- */
.ops { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.console { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: #07090A; overflow: hidden; box-shadow: var(--shadow); color: #D9DCD7; }
:root[data-theme="light"] .console { background: #111416; }
.console .stage-bar { border-color: rgba(255,255,255,.08); color: #8a908c; }
.console .dots i { background: rgba(255,255,255,.14); }
.log { height: 470px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; font-family: var(--f-mono); font-size: 13px;
  mask-image: linear-gradient(180deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); }
.lrow { display: grid; grid-template-columns: 74px 104px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; animation: lrow .6s var(--ease); }
.lrow:last-child { background: rgba(255,255,255,.04); }
@keyframes lrow { from { opacity: 0; transform: translateY(16px); } }
.lrow .t { color: #6c726e; }
.lrow .ag { display: inline-flex; align-items: center; gap: 7px; color: var(--lc); }
.lrow .ag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lc); }
.lrow .m { color: #D9DCD7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .s { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #a5aba7; }
.lrow .s.ok { color: #33D6B8; border-color: rgba(51,214,184,.35); }
.lrow .s.gate { color: #F5C04A; border-color: rgba(245,192,74,.4); }
.lrow .s.human { color: #fff; background: #FF6B3D; border-color: #FF6B3D; }
.ops-side { display: grid; grid-template-rows: auto auto 1fr; gap: 20px; }
.metric { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 24px 26px; }
.metric small { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.metric b { display: block; font-size: clamp(40px, 4vw, 58px); font-weight: 500; letter-spacing: -.05em; color: var(--ink); line-height: 1.05; margin-top: 8px; font-variant-numeric: tabular-nums; }
.metric b em { font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: .6em; color: var(--muted); letter-spacing: 0; }
.metric.gate { background: color-mix(in srgb, var(--ember) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ember) 30%, transparent); }
.metric p { font-size: 15px; margin-top: 10px; }

/* ---------- process (sticky) ---------- */
.process { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); }
.p-sticky { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.p-big { font-size: clamp(120px, 17vw, 260px); line-height: .8; letter-spacing: -.07em; font-weight: 500; color: var(--ink); margin: 30px 0 20px; display: flex; overflow: hidden; height: .82em; }
.p-big .digits { display: flex; flex-direction: column; transition: transform .9s var(--ease); }
.p-big .digits span { height: .82em; display: block; }
.p-big .zero { color: var(--muted); opacity: .4; }
.p-name { font-family: var(--f-serif); font-style: italic; font-size: clamp(34px, 3.4vw, 50px); color: var(--ember); line-height: 1; min-height: 1.1em; }
.p-steps { position: relative; padding-left: 38px; }
.p-line { position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.p-line i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--ember), var(--teal)); }
.p-step { position: relative; padding: 0 0 clamp(70px, 12vh, 140px); opacity: .32; transition: opacity .6s var(--ease); }
.p-step:last-child { padding-bottom: 0; }
.p-step.on { opacity: 1; }
.p-step::before { content: ""; position: absolute; left: -43px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background .4s, border-color .4s, box-shadow .4s; }
.p-step.on::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ember) 18%, transparent); }
.p-step .mono { color: var(--muted); }
.p-step h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.04em; margin: 10px 0 14px; }
.p-step p { max-width: 520px; }
.p-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- ROI calculator ---------- */
.roi { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); border: 1px solid var(--line-2); overflow: hidden; background: var(--surface); }
.roi-in { padding: clamp(26px, 3.6vw, 52px); display: flex; flex-direction: column; gap: 30px; }
.ctl label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.ctl output { font-family: var(--f-mono); font-size: 15px; color: var(--ink); padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline: none;
  background: linear-gradient(90deg, var(--ember) 0 var(--p, 50%), var(--line-2) var(--p, 50%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 5px solid var(--ember); cursor: grab; box-shadow: 0 0 0 6px color-mix(in srgb, var(--ember) 18%, transparent); transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 5px solid var(--ember); cursor: grab; }
input[type="range"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 8px; }
.roi-out { position: relative; overflow: hidden; padding: clamp(26px, 3.6vw, 52px); background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.roi-out .label { color: color-mix(in srgb, var(--on-ink) 60%, transparent); }
.roi-big { font-size: clamp(56px, 7vw, 108px); font-weight: 500; letter-spacing: -.06em; line-height: .95; font-variant-numeric: tabular-nums; }
.roi-big small { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0; opacity: .7; margin-top: 10px; }
.roi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.roi-row div { padding: 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent); }
.roi-row b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.roi-row small { font-family: var(--f-mono); font-size: 11.5px; opacity: .65; letter-spacing: .06em; text-transform: uppercase; }
.roi-out .btn { align-self: flex-start; color: var(--on-ink); --bc: color-mix(in srgb, var(--on-ink) 30%, transparent); }
.roi-out .btn:hover { color: #fff; }
.roi-note { font-size: 13px; opacity: .6; }
.roi-orb { position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, var(--ember), transparent 65%); opacity: .45; filter: blur(10px); pointer-events: none; }

/* ---------- work rail ---------- */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail.drag a { pointer-events: none; }
.wcard { flex: none; width: min(500px, 84vw); scroll-snap-align: start; }
.wcard .art { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.wcard .art > * { transition: transform 1.2s var(--ease); }
.wcard:hover .art > * { transform: scale(1.05); }
.wcard .meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.wcard h3 { font-size: 24px; letter-spacing: -.035em; margin-top: 10px; transition: color .3s; }
.wcard:hover h3 { color: var(--ember); }
.wcard .res { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 3vw, 42px); line-height: 1.02; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.rail-ctl { display: flex; gap: 10px; }

/* generative case art */
.gart { position: absolute; inset: 0; }
.gart svg { width: 100%; height: 100%; }
.gart.g-doc { background: radial-gradient(90% 70% at 20% 10%, #F5C04A 0%, transparent 60%), radial-gradient(80% 80% at 90% 90%, #FF6B3D 0%, transparent 60%), #2a1d12; }
.gart.g-voice { background: radial-gradient(90% 70% at 80% 10%, #FF6B3D 0%, transparent 60%), radial-gradient(70% 70% at 10% 90%, #8F3A20 0%, transparent 70%), #1b0f0b; }
.gart.g-know { background: radial-gradient(90% 70% at 20% 90%, #33D6B8 0%, transparent 60%), radial-gradient(80% 70% at 90% 10%, #0F7A6A 0%, transparent 60%), #08201c; }
.gart.g-vision { background: radial-gradient(90% 70% at 80% 80%, #C2A4FF 0%, transparent 60%), radial-gradient(70% 70% at 10% 10%, #4B3A8F 0%, transparent 70%), #120d22; }
.gart.g-insight { background: radial-gradient(90% 70% at 30% 20%, #8FA8FF 0%, transparent 60%), radial-gradient(70% 70% at 90% 90%, #33D6B8 0%, transparent 70%), #0d1424; }
.gart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.gart .gl { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1; }
.gart .gl.thick { stroke-width: 1.6; stroke: rgba(255,255,255,.75); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.stat-x { padding: 34px 26px 0 0; }
.stat-x + .stat-x { padding-left: 26px; border-left: 1px solid var(--line); }
.stat-x b { display: block; font-size: clamp(54px, 6vw, 92px); font-weight: 500; letter-spacing: -.06em; line-height: .95; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-x b em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ember); letter-spacing: -.02em; }
.stat-x p { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 260px; }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; min-height: 280px;
  transition: border-color .4s, transform .6s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--ember) 13%, transparent), transparent 60%); }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card .cn { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.card h3 { font-size: 23px; letter-spacing: -.03em; }
.card .foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-2); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.card.feature { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card.feature h3, .card.feature .cn { color: var(--on-ink); }
.card.feature p { color: color-mix(in srgb, var(--on-ink) 75%, transparent); }
.card.feature .foot { color: color-mix(in srgb, var(--on-ink) 60%, transparent); border-color: color-mix(in srgb, var(--on-ink) 25%, transparent); }
.ribbon { position: absolute; top: 22px; right: 22px; padding: 5px 11px; border-radius: 999px; background: var(--ember); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--c, var(--ember)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 100px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 0; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; color: var(--ink); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .5s var(--ease), background .3s, border-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.faq details[open] summary i { background: var(--ember); border-color: var(--ember); transform: rotate(180deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 60px 28px 0; max-width: 720px; animation: step-in .6s var(--ease); }

/* ---------- finale CTA ---------- */
.finale { position: relative; overflow: hidden; padding: clamp(100px, 14vw, 200px) 0; text-align: center; }
.finale .d1 { font-size: clamp(52px, 9vw, 150px); max-width: 1200px; margin: 0 auto; }
.finale p { margin: 28px auto 0; }
.finale-glow { position: absolute; left: 50%; top: 50%; width: 1100px; height: 700px; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--ember) 22%, transparent), transparent 60%); filter: blur(30px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.15); opacity: .7; } }
.orb-btn {
  position: relative; display: inline-grid; place-items: center; width: clamp(150px, 15vw, 200px); aspect-ratio: 1; border-radius: 50%; margin-top: 54px;
  background: var(--ember); color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: transform .5s var(--ease);
}
.orb-btn::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ember) 50%, transparent); animation: ring 3s var(--ease) infinite; }
.orb-btn::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ember) 50%, transparent); animation: ring 3s var(--ease) infinite 1.5s; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.orb-btn span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.orb-btn svg { width: 22px; height: 22px; }

/* ---------- footer ---------- */
.ftr { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 80px 0 30px; background: var(--bg); }
.ftr-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.ftr-top p { margin-top: 18px; max-width: 320px; font-size: 15px; color: var(--muted); }
.ftr h4 { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.ftr ul { display: flex; flex-direction: column; gap: 10px; }
.ftr ul a { color: var(--ink-2); font-size: 15.5px; transition: color .3s; }
.ftr ul a:hover { color: var(--ember); }
.wordmark { margin: 70px 0 10px; font-size: clamp(90px, 25vw, 400px); font-weight: 600; letter-spacing: -.07em; line-height: .78; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; position: relative; }
.wordmark span { background: linear-gradient(100deg, var(--ember), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease); display: block; position: absolute; inset: 0; color: transparent; }
.wordmark.in span { clip-path: inset(0 0 0 0); }
.ftr-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ---------- orchestration diagram ---------- */
.orch { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); padding: clamp(18px, 3vw, 40px); overflow-x: auto; }
.orch svg { min-width: 760px; width: 100%; height: auto; }
.orch .wire { fill: none; stroke: var(--line-2); stroke-width: 1.3; }
.orch .flow { fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-dasharray: 4 10; animation: flow 1.6s linear infinite; opacity: .8; }
.orch .flow.t { stroke: var(--teal); }
@keyframes flow { to { stroke-dashoffset: -28; } }
.orch .node rect { fill: var(--bg); stroke: var(--line-2); }
.orch .node text { fill: var(--ink); font-family: var(--f-sans); font-size: 14px; }
.orch .node .sub { fill: var(--muted); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; }
.orch .core circle.c1 { fill: var(--ember); }
.orch .core circle.c2 { fill: none; stroke: var(--ember); opacity: .4; animation: corepulse 2.4s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes corepulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }
.orch .core text { fill: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; }
.orch .gate rect { fill: color-mix(in srgb, var(--a-doc) 14%, var(--bg)); stroke: var(--a-doc); }
.orch .pkt { fill: var(--ember); }
.orch .pkt.t { fill: var(--teal); }
.orch .col { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; }

/* ---------- agent detail rows (agents page) ---------- */
.arow { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 100px); align-items: center; padding: clamp(60px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.arow:nth-child(even) .arow-copy { order: 2; }
.arow-copy .anum { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--c); }
.arow-copy h2 { margin: 18px 0 20px; }
.arow-copy h2 em { color: var(--c); }
.arow-copy ul { margin-top: 28px; }
.arow-copy li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.arow-copy li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--c); }
.arow .stage { min-height: 500px; }
.arow[data-agent="voice"] { --c: var(--a-voice); }
.arow[data-agent="doc"] { --c: var(--a-doc); }
.arow[data-agent="know"] { --c: var(--a-know); }
.arow[data-agent="insight"] { --c: var(--a-insight); }
.arow[data-agent="vision"] { --c: var(--a-vision); }
.anav { position: sticky; top: var(--header-h); z-index: 20; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.anav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.anav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); border: 1px solid transparent; transition: all .3s; }
.anav a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.anav a:hover, .anav a.on { border-color: var(--line-2); color: var(--ink); background: var(--surface); }

/* ---------- work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2); transition: all .3s; }
.filter:hover { color: var(--ink); }
.filter.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 20px; }
.wtile { display: block; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.wtile.hidden { display: none; }
.wtile .art { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.wtile .art > * { transition: transform 1.2s var(--ease); }
.wtile:hover .art > * { transform: scale(1.05); }
.wtile .res { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; font-family: var(--f-serif); font-style: italic; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.02; color: #fff; }
.wtile .nda { position: absolute; top: 18px; right: 18px; z-index: 2; }
.wtile .nda .chip { background: rgba(0,0,0,.4); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.wtile .meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.wtile h3 { margin-top: 8px; font-size: 22px; letter-spacing: -.03em; transition: color .3s; }
.wtile p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.wtile:hover h3 { color: var(--ember); }

/* ---------- case study ---------- */
.case-hero { padding: calc(var(--header-h) + clamp(50px, 9vh, 110px)) 0 0; position: relative; overflow: hidden; }
.crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--ember); }
.case-hero .d1 { font-size: clamp(42px, 6vw, 96px); max-width: 1100px; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-meta small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.case-meta span { color: var(--ink); font-size: 15.5px; }
.case-banner { position: relative; margin-top: 60px; height: clamp(280px, 42vw, 560px); border-radius: var(--r-lg); overflow: hidden; }
.case-banner .metrics { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); }
.case-banner .metrics div { padding: clamp(18px, 2.6vw, 34px); border-left: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); font-size: 14.5px; }
.case-banner .metrics div:first-child { border-left: 0; }
.case-banner .metrics b { display: block; font-size: clamp(28px, 3.6vw, 54px); font-weight: 500; letter-spacing: -.05em; color: #fff; line-height: 1; margin-bottom: 8px; }
.case-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); }
.toc { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; display: flex; flex-direction: column; gap: 4px; }
.toc a { position: relative; padding: 8px 0 8px 18px; font-size: 14.5px; color: var(--muted); transition: color .3s; }
.toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line-2); transition: background .3s, transform .3s; }
.toc a.on { color: var(--ink); }
.toc a.on::before { background: var(--ember); transform: scale(1.4); }
.toc .agent-card { margin-top: 26px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.toc .agent-card small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc .agent-card b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.045em; line-height: 1.05; margin: 80px 0 22px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 18.5px; line-height: 1.7; margin-bottom: 20px; }
.prose ul { margin: 10px 0 24px; counter-reset: li; }
.prose li { position: relative; padding: 20px 0 20px 56px; border-top: 1px solid var(--line); font-size: 17px; counter-increment: li; }
.prose li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--f-mono); font-size: 12px; color: var(--ember); }
.prose li strong { color: var(--ink); font-weight: 500; }
.quote { position: relative; margin: 70px 0; padding: 0 0 0 clamp(0px, 4vw, 60px); font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; color: var(--ink); }
.quote::before { content: "“"; position: absolute; left: -10px; top: -.35em; font-size: 3em; line-height: 1; color: var(--ember); opacity: .9; }
.callout { margin: 30px 0; padding: 26px 28px; border-radius: var(--r); background: color-mix(in srgb, var(--teal) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent); }
.callout .label { margin-bottom: 12px; }
.callout p { margin: 0; font-size: 17px; }
.next-case { display: block; position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 120px) 0; }
.next-case .d2 { transition: color .4s; }
.next-case:hover .d2 { color: var(--ember); }
.next-case .arrow-big { position: absolute; right: var(--gutter); top: 50%; width: clamp(60px, 8vw, 120px); height: clamp(60px, 8vw, 120px); transform: translateY(-50%); border-radius: 50%; background: var(--ember); color: #fff; display: grid; place-items: center; transition: transform .6s var(--ease); }
.next-case:hover .arrow-big { transform: translateY(-50%) rotate(-45deg) scale(1.08); }
.next-case .arrow-big svg { width: 34%; height: 34%; }

/* ---------- start flow ---------- */
.flow-wrap { min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 60px; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 90px); }
.flow-aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.flow-aside .lede { margin-top: 24px; }
.flow-promise { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.flow-promise div { display: flex; gap: 14px; align-items: center; font-size: 15.5px; }
.flow-promise i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); font-style: normal; font-size: 13px; }
.flow { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); padding: clamp(24px, 3.6vw, 50px); box-shadow: var(--shadow); align-self: start; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.flow-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.flow-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--teal)); transition: width .8s var(--ease); }
.fstep { display: none; }
.fstep.on { display: block; animation: fstep .7s var(--ease); }
.fstep.back { animation-name: fstep-back; }
@keyframes fstep { from { opacity: 0; transform: translateX(40px); } }
@keyframes fstep-back { from { opacity: 0; transform: translateX(-40px); } }
.fstep h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.05; margin-bottom: 10px; }
.fstep h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ember); }
.fstep > p { color: var(--muted); margin-bottom: 28px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts.list { grid-template-columns: 1fr; }
.opts.chips3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  --c: var(--ember);
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--bg); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.opt:hover { border-color: var(--c); transform: translateY(-2px); }
.opt b { font-weight: 500; color: var(--ink); font-size: 16px; letter-spacing: -.01em; }
.opt span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.opt .ok { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s; }
.opt .ok svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.opt[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--bg)); }
.opt[aria-pressed="true"] .ok { background: var(--c); border-color: var(--c); }
.opt[aria-pressed="true"] .ok svg { opacity: 1; }
.flow-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; gap: 14px; }
.flow-nav .back-btn { font-size: 14.5px; color: var(--muted); padding: 10px 0; }
.flow-nav .back-btn:hover { color: var(--ink); }
.flow-nav .btn[disabled] { opacity: .35; pointer-events: none; }
.kbd { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.kbd b { font-weight: 500; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); margin: 0 3px; }
.rec { border-radius: 20px; padding: 26px; margin-bottom: 26px; background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.rec small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.rec h3 { color: var(--on-ink); font-size: 26px; letter-spacing: -.035em; margin: 8px 0 10px; }
.rec h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--ember-2); }
.rec p { color: color-mix(in srgb, var(--on-ink) 78%, transparent); font-size: 15.5px; }
.rec .rec-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rec .rec-meta span { font-family: var(--f-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent); }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.fld input, .fld textarea, .fld select {
  width: 100%; font: 400 16px/1.4 var(--f-sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; transition: border-color .3s, box-shadow .3s;
}
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent); }
.fld input:user-invalid { border-color: var(--ember); }
.done { text-align: center; padding: 30px 0 10px; }
.done .check { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; animation: pop .7s var(--ease); }
.done .check svg { width: 42px; height: 42px; color: #04221c; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s var(--ease) forwards .35s; }
.demo-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- about ---------- */
.manifesto { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 6vw, 100px); }
.research { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.research .big-card { border-radius: var(--r-lg); padding: clamp(30px, 4vw, 56px); background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.research .big-card .d2 { color: var(--on-ink); }
.research .big-card .d2 em { color: var(--ember-2); }

/* ---------- utilities ---------- */
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 70px; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .explorer { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; width: auto; grid-template-columns: auto auto; padding: 14px 18px; }
  .tab .ts, .tab .tdot { display: none; }
  .ops { grid-template-columns: 1fr; }
  .ops-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .toc { display: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav, .hdr-actions .btn { display: none; }
  .menu-btn { display: grid; }
  .hdr-actions { margin-left: auto; }
  .sec-head, .pillars, .process, .roi, .faq, .manifesto, .research, .arow, .flow-wrap { grid-template-columns: 1fr; }
  .arow:nth-child(even) .arow-copy { order: 0; }
  .p-sticky, .flow-aside { position: static; }
  .p-big { font-size: 110px; }
  .p-step { opacity: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-x:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat-x { padding-bottom: 30px; }
  .wgrid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 60%, color-mix(in srgb, var(--bg) 30%, transparent) 100%); }
  .scroll-cue { display: none; }
  .pillar { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .demo-doc { grid-template-columns: 1fr; }
  .paper { min-height: 220px; }
  .grid3, .grid2, .opts, .opts.chips3, .fields2, .kpis, .roi-row { grid-template-columns: 1fr; }
  .ops-side { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: 62px 1fr auto; }
  .lrow .ag { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat-x + .stat-x { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .case-banner .metrics { grid-template-columns: 1fr; position: static; background: #000; }
  .case-banner { height: auto; }
  .case-banner .gart { position: relative; height: 220px; }
  .case-banner .metrics div { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .next-case .arrow-big { display: none; }
  .bubble { max-width: 92%; }
  .stage, .arow .stage { min-height: 0; }
  .hero-foot { gap: 8px 20px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv, .split .w > span { opacity: 1 !important; transform: none !important; }
  .scrub .sw { opacity: 1; }
  body::after { animation: none; }
}

/* ---------- additions ---------- */
.phero, .finale, .case-hero, .flow-wrap { isolation: isolate; }
.typed { display: inline-block; max-width: max-content; flex: none; }
.ask .typed { flex: 0 1 auto; }
.case-hero .phero-grid { z-index: -1; }
.prose .callout p { margin: 0; }
.prose .quote { font-size: clamp(30px, 3.4vw, 48px); }
.toc .agent-card .btn { margin-top: 4px; }
.sr:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 1001; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--on-ink); }
.flow-wrap > .phero-glow { position: fixed; }
.anav a { --c: var(--ember); }
.link svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 900px) { .hero-canvas { opacity: .32; } }

/* =========================================================
   Sub-page hero visuals
   ========================================================= */
.phero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.phero-split .d1 { font-size: clamp(42px, min(5.6vw, 10vh), 96px); }
.phero-copy { min-width: 0; }

/* --- agents: live status board --- */
.rack { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.rack-cols, .rk { display: grid; grid-template-columns: 12px 86px minmax(0, 1fr) 64px 34px; gap: 12px; align-items: center; }
.rack-cols { padding: 12px 22px 4px; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.rack-body { padding: 4px 10px 8px; }
.rk { padding: 14px 12px; border-radius: 12px; font-size: 14.5px; transition: background .4s; }
.rk + .rk { border-top: 1px solid var(--line); }
.rk.tick { background: color-mix(in srgb, var(--c) 7%, transparent); }
.rk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); animation: rkping 2.2s var(--ease) infinite; }
@keyframes rkping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.rk b { font-weight: 500; color: var(--ink); }
.rk-task { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s, transform .3s; }
.rk-task.swap { opacity: 0; transform: translateY(-6px); }
.rk-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--c); transform-origin: 0 50%; animation: rkbar var(--dur) linear infinite; }
@keyframes rkbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rk-n { font-family: var(--f-mono); font-size: 12px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.rack-gate { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2);
  background: color-mix(in srgb, var(--a-doc) 9%, var(--surface)); }
.rack-gate .mono { font-size: 11px; letter-spacing: .12em; color: var(--a-doc); }
.rack-gate b { color: var(--ink); font-weight: 600; }
.gate-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--a-doc) 0 6px, transparent 6px 12px); background-size: 24px 2px; opacity: .7; animation: gateflow 1s linear infinite; }
@keyframes gateflow { to { background-position: 24px 0; } }

/* --- approach: engagement loop --- */
.loop { position: relative; }
.loop-svg { width: 100%; max-width: 520px; margin: 0 auto; overflow: visible; }
.lp-track { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
.lp-flow { fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-dasharray: 3 12; opacity: .55; animation: flow 1.4s linear infinite; }
.lp-node .core { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.5; animation: lpcore 12s infinite; animation-delay: calc(var(--i) * 3s); }
.lp-node .halo { fill: var(--ember); opacity: 0; transform-box: fill-box; transform-origin: center; animation: lphalo 12s infinite; animation-delay: calc(var(--i) * 3s); }
.lp-lab { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; fill: var(--muted); animation: lplab 12s infinite; animation-delay: calc(var(--i) * 3s); }
@keyframes lpcore { 0%, 24% { fill: var(--ember); stroke: var(--ember); } 32%, 100% { fill: var(--bg); stroke: var(--line-2); } }
@keyframes lphalo { 0% { opacity: .35; transform: scale(.6); } 20% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
@keyframes lplab { 0%, 24% { fill: var(--ink); } 32%, 100% { fill: var(--muted); } }
.lp-mid { opacity: 0; animation: lpmid 12s infinite; animation-delay: calc(var(--i) * 3s); }
.lp-mid .big { font-family: var(--f-serif); font-style: italic; font-size: 44px; fill: var(--ink); }
.lp-mid .sub { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
@keyframes lpmid { 0% { opacity: 0; } 4%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
.lp-dot { fill: var(--ember); }
.lp-glow { fill: var(--ember); opacity: .22; }
.loop-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* --- work: shuffling results deck --- */
.deck { position: relative; height: clamp(380px, 46vh, 480px); max-width: 440px; width: 100%; margin-left: auto; }
.dcard { position: absolute; inset: 40px 0 0 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s; }
.dcard[data-pos="0"] { z-index: 5; transform: none; }
.dcard[data-pos="1"] { z-index: 4; transform: translateY(-20px) scale(.95); filter: brightness(.82); }
.dcard[data-pos="2"] { z-index: 3; transform: translateY(-40px) scale(.9); filter: brightness(.66); }
.dcard[data-pos="3"], .dcard[data-pos="4"] { z-index: 2; transform: translateY(-40px) scale(.9); opacity: 0; }
.dcard.out { z-index: 6; animation: dfly .8s var(--ease-in) forwards; }
@keyframes dfly { to { transform: translate(34%, -14%) rotate(9deg); opacity: 0; } }
.dc-in { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.dc-in .mono { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.dc-in b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; }
.dc-in span:last-child { font-size: 15px; opacity: .85; }

/* --- about: component library --- */
.lib { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: clamp(20px, 2.6vw, 30px); }
.lib-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.lt { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: .3; animation: ltlight 10s infinite; animation-delay: calc(var(--i) * .16s); }
.lt i, .la i { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
@keyframes ltlight { 0% { opacity: .3; border-color: var(--line); } 3%, 78% { opacity: 1; border-color: color-mix(in srgb, var(--c) 55%, transparent); } 90%, 100% { opacity: .3; border-color: var(--line); } }
.lib-flow { position: relative; height: 64px; display: grid; place-items: center; }
.lib-flow::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, var(--ember) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: libflow .9s linear infinite; }
@keyframes libflow { to { background-position: 0 24px; } }
.lib-flow span { position: relative; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.lib-agents { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.la { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink);
  animation: laon 10s infinite; animation-delay: calc(2.4s + var(--i) * .15s); }
@keyframes laon { 0%, 100% { background: transparent; box-shadow: none; } 4%, 60% { background: color-mix(in srgb, var(--c) 14%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 12%, transparent); border-color: var(--c); } 72% { background: transparent; box-shadow: none; } }
.lib-foot { text-align: center; margin-top: 14px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }

/* --- start: what happens next --- */
.nsteps { margin-top: 40px; padding: 24px 24px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.nsteps ol { list-style: none; margin: 18px 0 0; padding: 0 0 0 30px; position: relative; }
.nsteps ol::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 26px; width: 1px; background: var(--line-2); }
.nsteps ol::after { content: ""; position: absolute; left: 3px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: nsdot 6s var(--ease) infinite; }
@keyframes nsdot { 0%, 8% { top: 4px; } 33%, 41% { top: calc(50% - 12px); } 66%, 100% { top: calc(100% - 30px); } }
.nsteps li { position: relative; padding-bottom: 18px; display: flex; flex-direction: column; }
.nsteps li::before { content: ""; position: absolute; left: -28px; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); }
.nsteps li b { font-weight: 500; color: var(--ink); font-size: 15.5px; }
.nsteps li span { font-size: 13.5px; color: var(--muted); }

/* --- living case art --- */
.gart svg * { transform-box: fill-box; transform-origin: center; }
.g-voice circle { animation: ripple 4s ease-in-out infinite; }
.g-voice circle:nth-child(2) { animation-delay: .3s; } .g-voice circle:nth-child(3) { animation-delay: .6s; } .g-voice circle:nth-child(4) { animation-delay: .9s; }
.g-voice circle:nth-child(5) { animation-delay: 1.2s; } .g-voice circle:nth-child(6) { animation-delay: 1.5s; } .g-voice circle:nth-child(7) { animation-delay: 1.8s; }
@keyframes ripple { 0%, 100% { stroke-opacity: .25; transform: scale(1); } 50% { stroke-opacity: .95; transform: scale(1.025); } }
.g-voice polyline, .g-know line, .g-insight path { stroke-dasharray: 5 6; animation: artdash 1.8s linear infinite; }
@keyframes artdash { to { stroke-dashoffset: -22; } }
.g-doc rect { animation: artfloat 6s ease-in-out infinite; }
.g-doc rect:nth-of-type(2) { animation-delay: -2s; } .g-doc rect:nth-of-type(3) { animation-delay: -4s; }
.g-doc rect[stroke-dasharray], .g-vision rect { animation: artdash 1.2s linear infinite; }
@keyframes artfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.g-know circle { animation: twinkle 3.2s ease-in-out infinite; }
.g-know circle:nth-of-type(3n) { animation-delay: -1s; } .g-know circle:nth-of-type(3n+1) { animation-delay: -2.1s; }
@keyframes twinkle { 0%, 100% { stroke-opacity: .35; transform: scale(1); } 50% { stroke-opacity: 1; transform: scale(1.5); } }
.g-vision ellipse { animation: vwave 5s ease-in-out infinite; }
.g-vision ellipse:nth-of-type(2) { animation-delay: -.8s; } .g-vision ellipse:nth-of-type(3) { animation-delay: -1.6s; }
.g-vision ellipse:nth-of-type(4) { animation-delay: -2.4s; } .g-vision ellipse:nth-of-type(5) { animation-delay: -3.2s; } .g-vision ellipse:nth-of-type(6) { animation-delay: -4s; }
@keyframes vwave { 0%, 100% { stroke-opacity: .25; } 50% { stroke-opacity: 1; } }
.g-insight rect { transform-origin: bottom; animation: grow 5s var(--ease) infinite; }
.g-insight rect:nth-of-type(2) { animation-delay: .15s; } .g-insight rect:nth-of-type(3) { animation-delay: .3s; } .g-insight rect:nth-of-type(4) { animation-delay: .45s; }
.g-insight rect:nth-of-type(5) { animation-delay: .6s; } .g-insight rect:nth-of-type(6) { animation-delay: .75s; } .g-insight rect:nth-of-type(7) { animation-delay: .9s; }
@keyframes grow { 0% { transform: scaleY(.2); } 30%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.2); } }
.g-insight polyline { stroke-dasharray: 520; animation: drawloop 5s var(--ease) infinite; }
@keyframes drawloop { 0% { stroke-dashoffset: 520; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -520; } }

@media (max-width: 900px) {
  .phero-split { grid-template-columns: 1fr; }
  .deck { margin: 0 auto; }
  .loop-svg { max-width: 400px; }
}
@media (max-width: 640px) {
  .rack-cols { display: none; }
  .rk { grid-template-columns: 10px 76px minmax(0, 1fr) 30px; }
  .rk-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-mid[style*="--i:0"], .lt { opacity: 1; } .lp-node[style*="--i:0"] .core { fill: var(--ember); } }

/* agents sub-nav follows the header when it hides */
.anav { transition: transform .5s var(--ease), background .4s; }
.hdr-hidden .anav { transform: translateY(calc(-1 * var(--header-h))); }

/* ---------- launch: footer legal, consent banner, policy pages ---------- */
.ftr-legal { align-items: flex-end; }
.ftr-legal > span:first-child { line-height: 1.7; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr-links a, .ftr-links button { color: var(--muted); font-size: 13.5px; transition: color .3s; }
.ftr-links a:hover, .ftr-links button:hover { color: var(--ember); }

.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 990; width: min(440px, calc(100vw - 40px));
  padding: 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
  opacity: 0; transform: translateY(20px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.consent.show { opacity: 1; transform: none; }
.consent b { color: var(--ink); font-weight: 600; }
.consent .row { margin-top: 16px; }

.legal h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 56px; }
.legal p, .legal li { font-size: 17px; }
.legal li { padding-left: 0; }
.legal li::before { display: none; }
.ctable { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 15px; }
.crow { display: grid; grid-template-columns: 1.1fr 1.6fr 1.2fr .8fr; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.crow:first-child { border-top: 0; }
.crow.head { background: var(--bg-2); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crow .mono { color: var(--ink); }
@media (max-width: 640px) {
  .crow { grid-template-columns: 1fr; gap: 4px; }
  .crow.head { display: none; }
  .ftr-legal { align-items: flex-start; }
}
