/* Autocrafter portfolio. Dark operator console: cool graphite neutrals, one "volt" accent
   for what agents do, one sky blue for what people decide. Hairlines, no shadows. */

:root {
  --bg: oklch(13% 0.012 255);
  --bg-1: oklch(16.5% 0.014 255);
  --bg-2: oklch(20% 0.016 255);
  --bg-3: oklch(25% 0.018 255);
  --line: oklch(28% 0.016 255);
  --line-2: oklch(40% 0.018 255);
  --text: oklch(95% 0.008 255);
  --soft: oklch(84% 0.012 255);
  --mute: oklch(70% 0.016 255);
  --ac: oklch(89% 0.2 128);
  --ac-ink: oklch(21% 0.06 128);
  --ac-tint: oklch(89% 0.2 128 / 0.13);
  --ac-line: oklch(89% 0.2 128 / 0.5);
  --hu: oklch(80% 0.11 235);
  --hu-ink: oklch(20% 0.05 235);
  --hu-tint: oklch(80% 0.11 235 / 0.16);
  --hu-line: oklch(80% 0.11 235 / 0.55);
  --warn: oklch(78% 0.15 40);
  --warn-tint: oklch(78% 0.15 40 / 0.16);

  --f-d: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-xs: 0.75rem;
  --fs-ui: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-xl: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  --fs-2xl: clamp(2.5rem, 1.1rem + 5.4vw, 5rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px;
  --sec: clamp(var(--s8), 10vw, 144px);
  --gut: clamp(var(--s4), 4vw, var(--s7));
  --max: 1360px;
  --r: 10px; --r-in: 6px;
  --hit: 44px;
  --top-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms; --t: 260ms; --t-slow: 520ms;
  --z-top: 20; --z-float: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--s4)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--f-d); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ac); color: var(--ac-ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.mono, .num { font-family: var(--f-m); font-variant-numeric: tabular-nums; }
.mono { font-size: var(--fs-xs); color: var(--mute); letter-spacing: 0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: var(--z-float); padding: var(--s3) var(--s4); background: var(--ac); color: var(--ac-ink); border-radius: var(--r-in); font-weight: 600; }
.skip:focus { top: var(--s4); }
.lead { color: var(--soft); font-size: var(--fs-md); line-height: 1.5; max-width: 34em; text-wrap: pretty; }
h2 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-size: var(--fs-lg); font-weight: 650; line-height: 1.18; letter-spacing: -0.015em; }

.caret { display: inline-block; width: 0.5em; height: 1em; margin-left: 0.14em; background: var(--ac); vertical-align: -0.12em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Real controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; padding: 0 var(--s5); border-radius: 8px; font-weight: 650; font-size: var(--fs-base); line-height: 1; white-space: nowrap; transition: transform var(--t-fast) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.btn.primary { background: var(--ac); color: var(--ac-ink); }
.btn.primary:hover { transform: translateY(-2px); background: oklch(93% 0.2 128); }
.btn.ghost { border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--text); }
.btn.ghost:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: var(--hit); padding: 0 var(--s4); font-size: var(--fs-sm); }
.ib { display: inline-grid; place-items: center; width: var(--hit); height: var(--hit); border: 1px solid var(--line); border-radius: 8px; color: var(--soft); transition: border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease); }
.ib svg { width: 16px; height: 16px; }
.ib:hover { border-color: var(--line-2); color: var(--text); }
.ib:active { transform: scale(0.94); }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: var(--z-top); height: var(--top-h); background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { font-weight: 750; font-size: var(--fs-md); letter-spacing: -0.03em; min-height: var(--hit); display: inline-flex; align-items: center; }
.brand .caret { animation: none; }
.nav { display: flex; gap: var(--s2); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 var(--s3); color: var(--soft); font-size: var(--fs-sm); border-radius: 6px; transition: color var(--t) var(--ease), background-color var(--t) var(--ease); }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.lang { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; font-family: var(--f-m); font-size: var(--fs-xs); }
.lang > * { display: grid; place-items: center; min-width: var(--hit); min-height: calc(var(--hit) - 2px); border-radius: 7px; }
.lang span { background: var(--bg-3); color: var(--text); }
.lang a { color: var(--mute); transition: color var(--t) var(--ease); }
.lang a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: calc(var(--top-h) + var(--s8)) 0 var(--s9); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, oklch(100% 0 0 / 0.09) 1px, transparent 1.6px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 78%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--s8); align-items: center; }
h1 { font-size: var(--fs-2xl); font-weight: 750; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.hero .lead { margin-top: var(--s5); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s7); }
.chips li { padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-in); font-family: var(--f-m); font-size: var(--fs-xs); color: var(--soft); background: var(--bg); }

.pal { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); }
.pal-bar { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.pal-in { display: flex; gap: var(--s3); padding: var(--s5) var(--s4); border-bottom: 1px solid var(--line); min-height: 104px; }
.pal-in .prompt { color: var(--ac); font-size: var(--fs-md); line-height: 1.35; }
.pal-cmd { font-size: var(--fs-md); font-weight: 500; line-height: 1.35; }
.pal-outs { display: grid; padding: var(--s4); }
.pal-out { grid-area: 1 / 1; padding: var(--s4); background: var(--bg-2); border-radius: var(--r-in); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s; }
.pal-out:not(.act) { opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.985); }
.pal-out .who { color: var(--ac); margin-bottom: var(--s2); }
.pal-out li { position: relative; padding-left: var(--s5); font-size: var(--fs-sm); color: var(--soft); line-height: 1.75; }
.pal-out li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 6px; border: solid var(--ac); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.pal-out li:last-child { color: var(--text); }
.pal-out li:last-child::before { width: 7px; height: 7px; top: 0.6em; border: 1.5px solid var(--hu); border-radius: 50%; transform: none; }
.pal.is-live .pal-out.act li { animation: rise var(--t-slow) var(--ease) both; }
.pal.is-live .pal-out.act li:nth-child(2) { animation-delay: 90ms; }
.pal.is-live .pal-out.act li:nth-child(3) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.dock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.dock a { display: flex; align-items: center; gap: var(--s3); min-height: var(--hit); padding: var(--s2) var(--s4); font-size: var(--fs-sm); color: var(--mute); border-bottom: 1px solid var(--line); transition: color var(--t) var(--ease), background-color var(--t) var(--ease); }
.dock a:nth-child(odd) { border-right: 1px solid var(--line); }
.dock a:nth-last-child(-n + 2) { border-bottom: 0; }
.dock a:hover, .dock a.act { color: var(--text); background: var(--bg-2); }
.dock a.act .mono { color: var(--ac); }

/* Proof */
.proof { border-block: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s2); padding: var(--s7) var(--s5); border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dd { font-size: var(--fs-xl); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.facts dt { color: var(--soft); font-size: var(--fs-sm); line-height: 1.45; max-width: 22ch; }
.tools { border-top: 1px solid var(--line); padding-block: var(--s5); display: grid; gap: var(--s3); }
.marquee { display: flex; overflow: hidden; }
.marquee ul { display: flex; flex: none; gap: var(--s7); padding-right: var(--s7); animation: slide 44s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { font-family: var(--f-m); font-size: var(--fs-sm); color: var(--soft); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-100%); } }

/* Sections */
section { scroll-margin-top: var(--top-h); }
.agents, .strengths, .process, .journey, .contact { padding-block: var(--sec); }
.sec-h { display: grid; gap: var(--s5); margin-bottom: var(--s8); max-width: 56rem; }
.sec-h.row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }

/* Agent block */
.agent { display: grid; gap: var(--s6); padding-block: var(--s8); border-top: 1px solid var(--line); scroll-margin-top: var(--top-h); }
.agent-main { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--s6) var(--s7); }
.agent:last-child { padding-bottom: 0; }
.agent-side { align-self: start; position: sticky; top: calc(var(--top-h) + var(--s5)); display: grid; gap: var(--s4); }
.agent-side .idx { color: var(--ac); }
.cmdline { display: flex; gap: var(--s2); padding: var(--s3); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-in); color: var(--text); line-height: 1.5; }
.cmdline span { color: var(--ac); }
.desc { color: var(--soft); font-size: var(--fs-sm); line-height: 1.6; }
.phases { counter-reset: ph; display: grid; gap: var(--s1); margin-top: var(--s2); }
.phases li { counter-increment: ph; display: grid; grid-template-columns: 28px 1fr; align-items: baseline; padding: var(--s1) 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--soft); transition: color var(--t) var(--ease); }
.phases li::before { content: counter(ph, decimal-leading-zero); font-family: var(--f-m); font-size: var(--fs-xs); color: var(--mute); transition: color var(--t) var(--ease); }
.agent:has(.is-live) .phases li { color: var(--mute); }
.agent:has(.is-live) .phases li.done { color: var(--soft); }
.agent:has(.is-live) .phases li.cur { color: var(--text); }
.phases li.cur::before, .phases li.done::before { color: var(--ac); }

/* Simulator frame */
.sim { min-width: 0; container-type: inline-size; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); font-size: var(--fs-ui); line-height: 1.5; }
.sim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); }
.sim-title { margin-right: auto; }
.ctxs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.ctx { min-height: calc(var(--hit) - 8px); padding: 0 var(--s3); border-radius: 5px; font-size: var(--fs-ui); font-weight: 550; color: var(--mute); transition: color var(--t) var(--ease), background-color var(--t) var(--ease); }
.ctx:hover { color: var(--text); }
.ctx[aria-pressed="true"] { background: var(--ac); color: var(--ac-ink); }
.sim-ctl { display: none; gap: var(--s2); }
.sim.is-live .sim-ctl { display: flex; }
.sim-ctl [data-act="toggle"] svg:last-child, .sim.is-held [data-act="toggle"] svg:first-child { display: none; }
.sim.is-held [data-act="toggle"] svg:last-child { display: block; }
.sim-stage { position: relative; display: grid; padding: var(--s4); overflow: hidden; }
.sim-note { padding: var(--s2) var(--s4); border-top: 1px solid var(--line); }
.pane { grid-area: 1 / 1; min-width: 0; }
.pane:not(.act) { visibility: hidden; }
.ptr { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; pointer-events: none; transition: transform 700ms var(--ease), opacity var(--t) var(--ease); }
.ptr svg { width: 22px; height: 22px; fill: var(--text); stroke: var(--bg); stroke-width: 1.2; transition: transform var(--t-fast) var(--ease); }
.ptr.on { opacity: 1; }
.ptr.tap svg { transform: scale(0.8); }

/* Playback: the attributes are written by agent-screens.js */
.pane [data-s] { transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.pane [data-s]:not([data-fx="state"], [data-fx="click"], [data-fx="type"], .on) { opacity: 0; transform: translateY(6px); }
.pane [data-fx="type"]:not(.on, .typing), .pane .rest { visibility: hidden; }
.pane .off, .pane .swap:not(.on) { display: none; }

/* Screen primitives */
.sx { display: grid; gap: var(--s3); }
.sx h4 { font: 500 var(--fs-xs)/1.4 var(--f-m); color: var(--mute); margin-bottom: var(--s2); }
.sx section, .sx aside, .win { min-width: 0; }
.win, .chat-main, .chat-agent, .ads-chat, .cms, .checks, .res { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-in); padding: var(--s3); }
.pane-h { display: flex; align-items: center; gap: var(--s2); min-height: 36px; padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.pane-h .who { display: grid; margin-right: auto; min-width: 0; line-height: 1.3; }
.pane-h small { color: var(--mute); font-size: var(--fs-xs); }
.av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); font: 500 var(--fs-xs) var(--f-m); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--ac); }
.tag, .chip, .status { flex: none; padding: 2px var(--s2); border: 1px solid var(--line); border-radius: 5px; font-size: var(--fs-xs); color: var(--soft); white-space: nowrap; }
.status.ok, .chip.ok { border-color: var(--ac-line); background: var(--ac-tint); color: var(--ac); }
.status.warn { border-color: var(--warn); color: var(--warn); }
.m { max-width: 88%; padding: var(--s2) var(--s3); border-radius: 10px; background: var(--bg-2); }
.m.in { justify-self: start; border-bottom-left-radius: 3px; }
.m.out { justify-self: end; background: var(--hu-tint); border-bottom-right-radius: 3px; }
.m.out small { display: block; margin-top: var(--s1); font-size: var(--fs-xs); color: var(--hu); }
.m.ag { max-width: none; background: var(--bg-1); border: 1px solid var(--line); }
.sx .btn { min-height: 30px; padding: 0 var(--s3); border-radius: 6px; font-size: var(--fs-xs); font-weight: 650; border: 1px solid; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.sx .btn.agent { border-color: var(--ac-line); color: var(--ac); }
.sx .btn.agent.on { background: var(--ac); color: var(--ac-ink); }
.sx .btn.human { border-color: var(--hu-line); color: var(--hu); }
.sx .btn.human.on { background: var(--hu); border-color: var(--hu); color: var(--hu-ink); }
.rule { color: var(--mute); font-size: var(--fs-xs); line-height: 1.5; }
.lbl { color: var(--mute); font-size: var(--fs-xs); }

/* Support Chat Agent */
.chat { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.chat-col { display: grid; grid-template-rows: 1fr auto; gap: var(--s3); min-width: 0; }
.chat-main { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s3); }
.pledge { padding: var(--s3) var(--s4); border: 1px solid var(--hu-line); border-radius: var(--r-in); background: var(--hu-tint); font-size: var(--fs-sm); font-weight: 550; line-height: 1.45; }
.chat-main .pane-h { margin-bottom: 0; }
.msgs { display: grid; align-content: start; gap: var(--s2); padding-bottom: var(--s4); }
.composer { display: flex; align-items: flex-end; gap: var(--s2); padding: var(--s2); border: 1px solid var(--line-2); border-radius: 8px; }
.ctext { position: relative; flex: 1; min-height: 3em; }
.ctext .ghost { position: absolute; left: 0; top: 0; color: var(--mute); }
.ctext > .off { display: inline; visibility: hidden; }
.ctext mark { background: var(--hu-tint); color: var(--text); border-radius: 3px; }
.chat-agent { display: grid; align-content: start; gap: var(--s3); }
.chat-agent .pane-h { margin-bottom: 0; }
.lookups { display: grid; gap: var(--s2); }
.lookups li { display: grid; grid-template-columns: 16px 68px 1fr; gap: var(--s2); align-items: baseline; }
.lookups li::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--line-2); border-top-color: var(--ac); border-radius: 50%; align-self: center; animation: spin 0.8s linear infinite; }
.lookups li:has(.v.on)::before { width: 10px; height: 6px; border: solid var(--ac); border-width: 0 0 1.5px 1.5px; border-radius: 0; transform: rotate(-45deg); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lookups .k { color: var(--mute); font-size: var(--fs-xs); }
.block { padding-top: var(--s3); border-top: 1px solid var(--line); }
.block dl { display: grid; gap: var(--s1); }
.block dl div { display: grid; grid-template-columns: 76px 1fr; gap: var(--s2); }
.block dt { color: var(--mute); font-size: var(--fs-xs); line-height: 1.7; }
.sugs { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.sugs h4 { margin: 0; }
.sug { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-in); }
.sug .tone { flex: 1; font: 500 var(--fs-xs) var(--f-m); color: var(--ac); }
.sug p { flex-basis: 100%; color: var(--soft); }
.sug + .sug p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Digital Ads Agent */
.ads { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ads-chat { display: grid; align-content: start; gap: var(--s3); }
.ads-chat .pane-h { margin-bottom: 0; }
.ads table { width: 100%; margin-top: var(--s2); border-collapse: collapse; font-size: var(--fs-xs); }
.ads th { font: 500 var(--fs-xs) var(--f-m); color: var(--mute); text-align: left; padding: var(--s1) 0; }
.ads td { padding: var(--s2) 0; border-top: 1px solid var(--line); vertical-align: top; transition: color var(--t) var(--ease); }
.ads .num { text-align: right; white-space: nowrap; padding-left: var(--s2); }
.flag { margin-left: var(--s2); padding: 1px 6px; border-radius: 4px; background: var(--warn-tint); color: var(--warn); font-style: normal; font-weight: 600; transition: opacity var(--t) var(--ease); }
.flag:not(.on) { opacity: 0; }
tr.bad:has(.flag.on) td { color: var(--warn); }
.m.ag ol { counter-reset: n; display: grid; gap: var(--s1); margin-bottom: var(--s3); }
.m.ag ol li { counter-increment: n; display: grid; grid-template-columns: 20px 1fr; }
.m.ag ol li::before { content: counter(n); font-family: var(--f-m); color: var(--ac); }
.ads-plat { display: grid; align-content: start; gap: var(--s3); }
.tree { display: grid; }
.tree li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: var(--s2); align-items: center; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.tree li:first-child { border-top: 0; font-weight: 600; }
.tree .lvl { font: 400 var(--fs-xs) var(--f-m); color: var(--mute); }
.tree .num { font-size: var(--fs-xs); color: var(--soft); }
.alloc p { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: var(--s2); }
.alloc p + p { margin-top: var(--s2); }
.split { display: flex; gap: 2px; height: 28px; }
.seg { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 0 var(--s2); overflow: hidden; white-space: nowrap; border-radius: 4px; background: var(--bg-3); font: 400 var(--fs-xs) var(--f-m); color: var(--soft); font-style: normal; }
.seg b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.now .seg.s1 { background: var(--ac); color: var(--ac-ink); }
.now .seg.s2 { background: var(--ac-tint); color: var(--ac); }

/* Web Content Agent */
.seo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.cms { display: grid; align-content: start; gap: var(--s3); }
.cms .pane-h { margin-bottom: 0; }
.cms > .btn { justify-self: start; }
.outline ol { counter-reset: o; display: grid; gap: 2px; }
.outline li { counter-increment: o; display: grid; grid-template-columns: 32px 1fr; color: var(--soft); }
.outline li::before { content: "H" counter(o); font-family: var(--f-m); font-size: var(--fs-xs); color: var(--mute); line-height: 1.7; }
.doc { padding: var(--s4); background: var(--bg-2); border-radius: var(--r-in); display: grid; gap: var(--s2); }
.doc h3 { font-size: var(--fs-base); line-height: 1.3; letter-spacing: -0.01em; }
.doc p { color: var(--soft); }
.qa { display: grid; gap: 2px; padding-top: var(--s2); border-top: 1px dashed var(--line-2); }
.qa span { color: var(--soft); }
.checks { display: grid; align-content: start; gap: var(--s3); }
.score { display: flex; align-items: center; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.score svg { width: 52px; height: 52px; transform: rotate(-90deg); stroke-width: 4; stroke: var(--bg-3); }
.score .arc { stroke: var(--ac); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1900ms var(--ease); }
.score.on .arc { stroke-dashoffset: 4; }
.score span { display: grid; line-height: 1.2; }
.score b { font-size: var(--fs-lg); font-weight: 500; }
.score small { color: var(--mute); font-size: var(--fs-xs); }
.grp h4 { color: var(--text); }
.grp li { display: grid; grid-template-columns: 20px 1fr; align-items: center; padding: 2px 0; color: var(--mute); transition: color var(--t) var(--ease); }
.grp li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid var(--line-2); border-radius: 3px; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.grp li.on { color: var(--text); }
.grp li.on::before { background: var(--ac); border-color: var(--ac); }
.serp { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.res { display: grid; align-content: start; gap: 2px; }
.res h4 { margin-bottom: var(--s1); }
.res small { color: var(--mute); font-size: var(--fs-xs); }
.res b { color: var(--hu); font-size: var(--fs-sm); line-height: 1.35; }
.res.ai b { color: var(--text); }
.res p { color: var(--soft); }
.res u { color: var(--ac); text-underline-offset: 3px; }

/* Social Content Agent */
.social > .m { justify-self: start; }
.outs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s3); }
.outs .deck { grid-column: 2; grid-row: 1 / span 2; }
.outs p { color: var(--soft); }
.slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.slide { display: grid; align-content: space-between; gap: var(--s2); aspect-ratio: 1; padding: var(--s2); background: var(--bg-2); border-radius: 5px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; }
.slide i { font: 400 var(--fs-xs) var(--f-m); color: var(--ac); font-style: normal; }
.slide.big { aspect-ratio: 2 / 1; align-content: end; padding: var(--s3); font-size: var(--fs-sm); margin-top: var(--s2); }
.shots { display: grid; gap: var(--s2); }
.shots li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s2); color: var(--soft); }
.shots .num { font-size: var(--fs-xs); color: var(--ac); line-height: 1.7; }
.plan { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s3); }
.cal { display: grid; align-content: start; gap: var(--s3); }
.cal h4 { margin: 0; }
.cal .btn { justify-self: start; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 5px; }
.day { display: grid; align-content: start; gap: var(--s2); min-height: 132px; padding: var(--s2) 6px; border-left: 1px solid var(--line); }
.day:first-child { border-left: 0; }
.day > .num { font-size: var(--fs-xs); color: var(--mute); }
.post { display: grid; padding: 4px 6px; border-radius: 4px; border: 1px solid var(--ac-line); background: var(--ac-tint); color: var(--ac); font-size: var(--fs-xs); line-height: 1.35; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), opacity 320ms var(--ease), transform 320ms var(--ease); }
.post b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.post i { font-style: normal; }
.cal:has(.btn.on) .post { background: var(--ac); color: var(--ac-ink); }
.fp { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.fp .who { display: grid; line-height: 1.3; }
.fp small { color: var(--mute); font-size: var(--fs-xs); }
.feed p { color: var(--soft); }

/* Video Agent */
.video .pane-h { margin-bottom: 0; }
.tl { display: grid; gap: var(--s2); padding: var(--s3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-in); }
.trk { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: var(--s2); }
.lane { display: flex; gap: 2px; height: 32px; }
.lane > i { display: flex; align-items: center; min-width: 0; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 4px; font-style: normal; font-size: var(--fs-xs); }
.lane .gap { padding: 0; }
.clip { background: var(--bg-3); color: var(--text); }
.sil { justify-content: center; background: var(--bg-3); color: var(--warn); font-family: var(--f-m); transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease); }
.sil:not(.on) { font-size: 0; }
.sil.on { background: var(--warn-tint); transform: scaleY(0.6); }
.sub { background: var(--hu-tint); color: var(--text); display: block !important; line-height: 32px; }
.ins { background: var(--ac-tint); color: var(--ac); border: 1px solid var(--ac-line); display: block !important; line-height: 30px; }
.wave { align-items: flex-end; }
.wave b { flex: 1; height: var(--h); background: var(--line-2); border-radius: 1px; transition: background-color var(--t-slow) var(--ease); }
.wave.on b.beat { background: var(--ac); }
.frames { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.frame { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.frame.v { flex: 0.3164 1 0; }
.frame.h { flex: 1 1 0; }
.art { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-in); }
.frame.v .art { aspect-ratio: 9 / 16; }
.frame.h .art { aspect-ratio: 16 / 9; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .water { fill: var(--hu-tint); stroke: none; }
.map .street { vector-effect: non-scaling-stroke; stroke: var(--line-2); stroke-width: 1px; }
.map .route { stroke: var(--ac); stroke-width: 0.8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1500ms var(--ease); }
.frame.on .route { stroke-dashoffset: 0; }
.map .pin { stroke: var(--bg); stroke-width: 0.8; fill: var(--text); }
.map .pin.to { fill: var(--ac); }
.cap { position: absolute; left: var(--s2); bottom: var(--s2); right: var(--s2); display: grid; justify-self: start; padding: var(--s1) var(--s2); background: var(--bg); border-radius: 4px; font-size: var(--fs-xs); color: var(--soft); line-height: 1.4; }
.frame.h .cap { right: auto; }
.cap b { color: var(--text); }
.art .card { position: absolute; inset: 0; display: grid; align-content: center; gap: var(--s1); padding: 12%; }
.art .card b { font-size: var(--fs-sm); line-height: 1.25; margin-bottom: var(--s1); }
.frame.h .card b { font-size: var(--fs-md); }
.art .card i { display: flex; gap: var(--s2); font-style: normal; font-size: var(--fs-xs); color: var(--soft); }
.art .card em { font-style: normal; color: var(--ac); }
.frame p { display: flex; align-items: center; gap: var(--s2); min-height: 26px; }
.frame p > b { font-size: var(--fs-xs); font-weight: 500; }
.prog { flex: 1; min-width: 8px; height: 3px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ac); transform: scaleX(0); transform-origin: left; transition: transform 1500ms linear; }
.frame.on .prog i { transform: scaleX(1); }
.mapnote { flex-basis: 100%; color: var(--mute); font-size: var(--fs-xs); }

.vtypes { display: grid; gap: var(--s5); padding: var(--s6); background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); }
.vtypes h4 { font-size: var(--fs-md); font-weight: 650; }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.vgrid h5 { margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); color: var(--ac); font-weight: 500; }
.vgrid li { padding: var(--s1) 0; font-size: var(--fs-sm); color: var(--soft); line-height: 1.45; }
.vslot { display: grid; place-items: center; min-height: 168px; padding: var(--s5); border: 1px dashed var(--line-2); border-radius: var(--r-in); text-align: center; }
.vslot p { display: grid; gap: var(--s1); }
.vslot span { color: var(--mute); font-size: var(--fs-sm); }

/* CRM & Report Agent */
.crm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
.leads { grid-column: 1 / -1; }
.crm .grid { display: grid; grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.7fr) 72px; gap: var(--s2); align-items: center; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.crm .grid.head { border-top: 0; padding-top: 0; font: 400 var(--fs-xs) var(--f-m); color: var(--mute); }
.crm .grid > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm .grid .chip { justify-self: start; max-width: 100%; }
.crm .grid > :last-child { text-align: right; }
.own { color: var(--ac); font-weight: 600; }
.tm { color: var(--soft); font-size: var(--fs-xs); }
.perm { display: grid; align-content: start; gap: var(--s3); }
.perm h4 { margin: 0; }
.roles { display: flex; flex-wrap: wrap; gap: var(--s1); }
.rl { padding: var(--s1) var(--s2); border: 1px solid var(--line); border-radius: 5px; font-size: var(--fs-xs); font-weight: 600; color: var(--mute); transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.rl.first { background: var(--bg-3); color: var(--text); }
.roles:has(.rl.on) .first { background: none; color: var(--mute); }
.rl.on { background: var(--hu); border-color: var(--hu); color: var(--hu-ink); }
.phone { display: grid; gap: 2px; }
.phone b { font-size: var(--fs-base); font-weight: 500; }
.board li { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.board li:first-child { border-top: 0; padding-top: 0; }
.marker { display: none; }
.report h4 { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); color: var(--text); }
.report h4 .num { color: var(--ac); }
.report ul { display: grid; gap: var(--s2); }
.report li { position: relative; padding-left: var(--s4); color: var(--soft); }
.report li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; background: var(--ac); border-radius: 1px; }
.bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.bars span { display: grid; gap: 2px; font-size: var(--fs-xs); }
.bars i { height: 44px; background: var(--ac); border-radius: 2px; transform: scaleY(var(--v)); transform-origin: bottom; transition: transform 900ms var(--ease); }
.bars:not(.on) i { transform: scaleY(0); }
.bars b { font-weight: 500; color: var(--soft); overflow: hidden; text-overflow: ellipsis; }
.bars em { font-style: normal; color: var(--mute); }

/* Strengths */
.str { display: grid; border-top: 1px solid var(--line); }
.str-item h3 { border-bottom: 1px solid var(--line); }
.str-item button { display: flex; align-items: baseline; gap: var(--s4); width: 100%; min-height: var(--hit); padding: var(--s5) 0; text-align: left; font-weight: 650; letter-spacing: -0.015em; color: var(--mute); transition: color var(--t) var(--ease); }
.str-item button:hover, .str-item.act button, .str:not(.is-tabs) button { color: var(--text); }
.str-item.act button .mono { color: var(--ac); }
.str-body { display: grid; gap: var(--s6); padding: var(--s6) 0 var(--s7); border-bottom: 1px solid var(--line); }
.str.is-tabs .str-item:not(.act) .str-body { display: none; }
.str-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.str-cols h4 { margin-bottom: var(--s3); font-weight: 500; }
.str-cols li { padding: var(--s3) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.5; color: var(--soft); }
.str-cols div:last-child h4 { color: var(--ac); }
.str-cols div:last-child li { color: var(--text); }
@media (min-width: 960px) {
  .str.is-tabs { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: var(--s8); grid-template-rows: repeat(3, auto) 1fr; }
  .str.is-tabs .str-item { display: contents; }
  .str.is-tabs h3 { grid-column: 1; grid-row: var(--row); }
  .str.is-tabs .str-body { grid-column: 2; grid-row: 1 / -1; padding-top: var(--s5); border-bottom: 0; animation: rise var(--t-slow) var(--ease); }
}

/* Process */
.process { background: var(--bg-1); border-block: 1px solid var(--line); }
.proc-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.steps { counter-reset: st; margin-top: var(--s7); }
.steps li { counter-increment: st; position: relative; display: grid; gap: var(--s1); padding: 0 0 var(--s7) 72px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ac-line); border-radius: 8px; background: var(--bg); font: 500 var(--fs-xs) var(--f-m); color: var(--ac); }
.steps li::after { content: ""; position: absolute; left: 19.5px; top: 48px; bottom: 8px; width: 1px; background: var(--ac-line); transform-origin: top; transition: transform 900ms var(--ease); }
.steps li:last-child::after { display: none; }
.js .steps li:not(.seen)::after { transform: scaleY(0); }
.steps h3 { font-size: var(--fs-md); line-height: 40px; letter-spacing: -0.01em; }
.steps p { color: var(--soft); max-width: 34em; }
.rules { padding: var(--s6); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.rules h3 { margin-bottom: var(--s4); font-weight: 500; letter-spacing: 0; }
.rules li { display: grid; gap: var(--s1); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.rules li:last-child { padding-bottom: 0; }
.rules b { font-weight: 650; }
.rules span { color: var(--soft); font-size: var(--fs-sm); line-height: 1.55; }

/* Journey */
.track { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x proximity; padding: var(--s1) max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))) var(--s5); scroll-padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.stop { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; display: grid; align-content: start; gap: var(--s2); padding: var(--s5) var(--s5) var(--s5) 0; border-top: 1px solid var(--line-2); position: relative; }
.stop::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; background: var(--line-2); border-radius: 2px; }
.stop.now { border-top-color: var(--ac); }
.stop.now::before { background: var(--ac); }
.stop .years { color: var(--soft); }
.stop.now .years { color: var(--ac); }
.stop h3 { font-size: var(--fs-md); letter-spacing: -0.01em; }
.stop .role { color: var(--soft); font-size: var(--fs-sm); }
.stop .note { color: var(--mute); font-size: var(--fs-sm); line-height: 1.55; margin-top: var(--s2); }
.jnav { display: flex; gap: var(--s2); }
.edu { margin-top: var(--s5); color: var(--soft); font-size: var(--fs-sm); }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.con-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.contact h2 { font-size: var(--fs-2xl); line-height: 1.1; letter-spacing: -0.035em; }
.con-side { display: grid; gap: var(--s5); }
.con-side .actions { margin-top: 0; }
.ways { border-top: 1px solid var(--line); }
.ways div { display: grid; grid-template-columns: 96px 1fr; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); }
.ways a { display: inline-flex; align-items: center; min-height: var(--hit); font-family: var(--f-m); font-size: var(--fs-sm); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; transition: text-decoration-color var(--t) var(--ease), color var(--t) var(--ease); overflow-wrap: anywhere; }
.ways a:hover { color: var(--ac); text-decoration-color: var(--ac); }

.foot { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s9); color: var(--mute); font-size: var(--fs-sm); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s6); }

/* Re-composition */
@media (max-width: 1100px) {
  .agent-main { grid-template-columns: minmax(0, 1fr); }
  .agent-side { position: static; max-width: 44rem; }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
}
@media (max-width: 959px) {
  .nav { display: none; }
  .ctx { min-height: var(--hit); }
  .lang { margin-left: auto; }
  .hero { padding-bottom: var(--s8); }
  .hero-in, .proc-in, .con-in { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { padding: var(--s6) var(--s5); }
  .facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .top-in { gap: var(--s3); }
  .hero { padding-top: calc(var(--top-h) + var(--s7)); }
  .phases, .str-cols, .vgrid { grid-template-columns: minmax(0, 1fr); }
  .str-cols { gap: var(--s5); }
  .sec-h { margin-bottom: var(--s7); }
  .sec-h.row { grid-template-columns: minmax(0, 1fr); }
  .agent { padding-block: var(--s7); }
  .vtypes, .rules { padding: var(--s4); }
  .sim-stage { padding: var(--s3); }
  .steps li { padding-left: 56px; }
  .dock { grid-template-columns: minmax(0, 1fr); }
  .dock a:nth-child(odd) { border-right: 0; }
  .dock a:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .pal-in { min-height: 132px; }
  .foot { padding-bottom: 104px; }
}
@container (max-width: 700px) {
  .chat, .ads, .seo, .crm, .plan, .serp { grid-template-columns: minmax(0, 1fr); }
  .outs { grid-template-columns: minmax(0, 1fr); }
  .outs .deck { grid-column: auto; grid-row: auto; }
  .slides { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day { min-height: 96px; }
}
@container (max-width: 520px) {
  .slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day:nth-child(5) { border-left: 0; }
  .day:nth-child(n + 5) { border-top: 1px solid var(--line); }
  .crm .grid { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ch name tm" "need need own"; row-gap: var(--s1); }
  .crm .grid.head { display: none; }
  .crm .grid > :nth-child(1) { grid-area: ch; }
  .crm .grid > :nth-child(2) { grid-area: name; }
  .crm .grid > :nth-child(3) { grid-area: need; color: var(--soft); }
  .crm .grid > :nth-child(4) { grid-area: own; text-align: right; }
  .crm .grid > :nth-child(5) { grid-area: tm; }
  .lane > i { padding: 0 3px; }
  .sil.on { font-size: 0; }
  .frame p { flex-wrap: wrap; }
  .frame.v .prog, .frame.v .cap { display: none; }
  .trk { grid-template-columns: 56px minmax(0, 1fr); }
  .tree li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .tree .lvl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow: visible; }
  .marquee ul { flex-wrap: wrap; flex: 1; gap: var(--s3) var(--s6); padding: 0 var(--gut); max-width: var(--max); margin-inline: auto; }
  .marquee ul + ul { display: none; }
  .js .steps li:not(.seen)::after { transform: none; }
  .lookups li::before { border-top-color: var(--line-2); }
}

.tagline { margin: 0 0 var(--s4); font-size: 0.9rem; letter-spacing: 0.02em; color: var(--ac); }
