/* somethingAI home, v2 "Liquid" direction.
   Midnight ground, liquid-glass surfaces, ember (evolved amber) + ion light. */
:root {
  --bg: #05070C;
  --bg-2: #0A0F1C;
  --navy: #13233D;            /* heritage navy, now a depth tone */
  --ink: #F5F1E8;             /* heritage cream, now the text colour */
  --ink-2: rgba(245, 241, 232, .70);
  --ink-3: rgba(245, 241, 232, .46);
  --line: rgba(245, 241, 232, .12);
  --ember: #FF8F2E;           /* evolved from #D97706 */
  --ember-2: #FFB86B;
  --ion: #8FD9FF;
  --violet: #9A8CFF;
  --ok: #6EE7B7;

  --glass: linear-gradient(155deg, rgba(255,255,255,.11), rgba(255,255,255,.03) 42%, rgba(255,255,255,.06));
  --glass-line: rgba(255, 255, 255, .16);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.04), inset 0 0 22px rgba(255,255,255,.035), 0 30px 80px -30px rgba(0,0,0,.75);

  --f-display: var(--f-sans);
  --accent-grad: linear-gradient(100deg, var(--ember-2) 0%, var(--ember) 35%, var(--violet) 70%, var(--ion) 100%);
  --f-sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(255, 143, 46, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--max); min-width: 0; margin: 0 auto; padding-inline: var(--gutter); }
em { font-style: normal; font-weight: 300; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }

/* ---------------------------------------------------------------- ambient */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.aurora canvas { width: 100%; height: 100%; display: block; filter: blur(40px) saturate(1.15); opacity: .8; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.gridlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
main, .foot { position: relative; z-index: 2; }
.progress { position: fixed; z-index: 60; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--ion), var(--violet), var(--ember)); }

/* ------------------------------------------------------------------ glass */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
/* specular sheen that follows the pointer */
.glass[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,.14), transparent 60%);
  opacity: var(--spot, 0); transition: opacity .4s ease;
}
.glass[data-spot]::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,.65), rgba(143,217,255,.25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--spot, 0); transition: opacity .4s ease;
}
.glass[data-spot]:hover { --spot: 1; }

/* -------------------------------------------------------------------- nav */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px;
  width: max-content; max-width: calc(100vw - 24px);
}
.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: 10px; }
.mark svg { width: 26px; height: 26px; flex: none; }
.mark span { font: 700 17px/1 var(--f-sans); letter-spacing: -.04em; }
.mark b { color: var(--ember); font-weight: 700; }
.nav a.link { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 9px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a.link:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.nav .btn { padding: 10px 16px; font-size: 14px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; cursor: pointer;
  padding: 16px 26px; border-radius: 999px; border: 0; text-decoration: none;
  font: 600 16px/1 var(--f-sans); letter-spacing: -.01em; color: #1A0E02;
  background: radial-gradient(120% 140% at 30% 0%, #FFD3A1, var(--ember) 55%, #E06A0A);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 6px rgba(120,40,0,.25), 0 10px 30px -8px rgba(255,143,46,.6), 0 0 0 1px rgba(255,190,120,.35);
  transform: translate(var(--bx), var(--by));
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 6px rgba(120,40,0,.25), 0 16px 44px -8px rgba(255,143,46,.8), 0 0 0 1px rgba(255,190,120,.5); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--glass { color: var(--ink); background: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(255,255,255,.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn--glass:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(255,255,255,.24); }

/* ----------------------------------------------------------------- labels */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); }
.h2 { font: 400 clamp(42px, 6.4vw, 92px)/.98 var(--f-sans); letter-spacing: -.045em; margin: 18px 0 0; font-weight: 500; text-wrap: balance; }
.h2 em { font-weight: 300; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 56ch; margin: 22px 0 0; text-wrap: pretty; }
.grad { background: linear-gradient(100deg, var(--ink) 10%, var(--ember-2) 45%, var(--ion) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------- hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 120px 0 80px; position: relative; }
.hero__title {
  margin: 26px 0 0; font: 500 clamp(56px, 12.5vw, 196px)/.86 var(--f-sans); letter-spacing: -.06em; text-wrap: balance;
}
.hero__title .w { display: inline-block; overflow: clip; vertical-align: bottom; padding: 0 .1em .06em; margin: 0 -.1em -.06em; }
.hero__title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .hero__title .w > span { transform: none; }
.hero__title em { font-weight: 300; letter-spacing: -.06em; padding-right: .06em; background: none; color: inherit; }
.hero__sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-top: 44px; }
.hero__sub p { margin: 0; max-width: 52ch; font-size: clamp(17px, 1.45vw, 21px); color: var(--ink-2); text-wrap: pretty; }
.hero__sub p b { color: var(--ink); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s var(--ease); }
.is-ready .fade-up { opacity: 1; transform: none; }

/* live agent log */
.agentlog { margin-top: 56px; display: flex; width: 100%; max-width: 520px !important; contain: inline-size; align-items: center; gap: 14px; padding: 10px 18px 10px 12px; border-radius: 999px; max-width: 100%; }
.agentlog .pulse { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(110,231,183,.12); }
.agentlog .pulse::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(110,231,183,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(110,231,183,0); } 100% { box-shadow: 0 0 0 0 rgba(110,231,183,0); } }
.agentlog code { flex: 1 1 0; font: 400 13.5px/1.3 var(--f-mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.agentlog code b { color: var(--ok); font-weight: 500; }
.agentlog .caret { display: inline-block; width: 7px; height: 1em; background: var(--ink-2); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scrollcue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); display: grid; justify-items: center; gap: 10px; }
.scrollcue span { width: 1px; height: 40px; background: linear-gradient(var(--ink-3), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* the liquid lens (desktop) */
.lens {
  position: fixed; z-index: 40; left: 0; top: 0; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%;
  pointer-events: none; opacity: 0; transform: translate3d(var(--lx, -400px), var(--ly, -400px), 0) scale(var(--ls, .6));
  transition: opacity .4s ease;
  -webkit-backdrop-filter: blur(1.5px) saturate(1.8) brightness(1.12); backdrop-filter: blur(1.5px) saturate(1.8) brightness(1.12);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -1px 1px rgba(255,255,255,.18), inset 0 0 30px rgba(255,255,255,.08), inset 10px 14px 30px -18px rgba(255,255,255,.5), 0 18px 40px -12px rgba(0,0,0,.6);
}
.lens::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(60% 40% at 32% 18%, rgba(255,255,255,.35), transparent 70%); }
.lens.is-on { opacity: 1; }
.lens.is-refract { -webkit-backdrop-filter: url(#lg-refract) saturate(1.6) brightness(1.1); backdrop-filter: url(#lg-refract) saturate(1.6) brightness(1.1); }

/* --------------------------------------------------------------- marquee */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marq 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font: 300 clamp(24px, 2.8vw, 40px)/1 var(--f-sans); letter-spacing: -.035em; color: var(--ink-2); padding: 0 28px; white-space: nowrap; }
.marquee__track span:nth-child(3n+2) { font: 500 clamp(22px, 2.5vw, 34px)/1.1 var(--f-sans); font-style: normal; letter-spacing: -.03em; color: var(--ink); }
.marquee__track span::after { content: "✦"; font: 400 14px/1 var(--f-sans); color: var(--ember); margin-left: 56px; vertical-align: middle; font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ------------------------------------------------------- the shift (pin) */
.shift { height: 260vh; position: relative; }
.shift__stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
.shift__text { font: 500 clamp(30px, 4.6vw, 68px)/1.08 var(--f-sans); letter-spacing: -.04em; margin: 22px 0 0; max-width: 20ch; text-wrap: pretty; }
.shift__text .wd { color: rgba(245,241,232,.14); transition: color .25s linear; }
.shift__text .wd.on { color: var(--ink); }
.shift__text .wd.hot.on { color: var(--ember-2); }
.shift__text .wd em { font-weight: 300; background: none; color: inherit; }

/* ---------------------------------------------- a day run by AI (pin) */
.day { height: 520vh; position: relative; }
.day__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 96px 0 34px; }
.day__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.day__head .h2 { font-size: clamp(38px, 5vw, 76px); }
.clock { font: 400 clamp(46px, 6vw, 92px)/1 var(--f-mono); letter-spacing: -.06em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; text-align: right; }
.day__track { width: max-content; display: flex; gap: 22px; align-items: center; padding-left: var(--gutter); will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
.slot { flex: none; width: min(440px, 78vw); border-radius: var(--r-lg); padding: 26px; min-height: 360px; display: flex; flex-direction: column; gap: 14px; opacity: .35; transform: scale(.94); transition: opacity .5s ease, transform .6s var(--ease); }
.slot.is-active { opacity: 1; transform: none; }
.slot__time { font: 500 13px/1 var(--f-mono); color: var(--ember-2); letter-spacing: .06em; display: flex; justify-content: space-between; }
.slot__time span:last-child { color: var(--ink-3); }
.slot h3 { margin: 0; font: 500 30px/1.05 var(--f-sans); letter-spacing: -.035em; }
.slot p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.slot .ui { margin-top: auto; border-radius: var(--r-sm); background: rgba(0,0,0,.28); border: 1px solid var(--line); padding: 14px; font: 400 12.5px/1.5 var(--f-mono); color: var(--ink-2); }
.ui .row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.ui .row:last-child { border-bottom: 0; }
.ui .ok { color: var(--ok); }
.ui .em { color: var(--ember-2); }
.ui .bubble { background: rgba(255,255,255,.07); border-radius: 12px 12px 12px 4px; padding: 8px 10px; margin-bottom: 6px; font-family: var(--f-sans); font-size: 13px; color: var(--ink); max-width: 85%; }
.ui .bubble.me { margin-left: auto; border-radius: 12px 12px 4px 12px; background: rgba(110,231,183,.14); }
.ui .bars { display: flex; align-items: end; gap: 5px; height: 54px; }
.ui .bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(var(--ion), rgba(143,217,255,.2)); }
.ui .bars i.hi { background: linear-gradient(var(--ember-2), rgba(255,143,46,.2)); }
.slot--end { justify-content: center; text-align: left; background: radial-gradient(120% 120% at 0% 0%, rgba(255,143,46,.25), transparent 60%), var(--glass); }
.slot--end h3 { font-size: 40px; }
.day__rail { margin: 0 var(--gutter); height: 2px; background: var(--line); position: relative; border-radius: 2px; }
.day__rail i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--dp, 0)); background: linear-gradient(90deg, var(--ion), var(--ember)); border-radius: 2px; }

/* ------------------------------------------------------------ capabilities */
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.caps { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 64px; }
.cap { border-radius: var(--r-lg); padding: 30px; grid-column: span 6; display: flex; flex-direction: column; min-height: 380px; transform-style: preserve-3d; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.cap:nth-child(1) { grid-column: span 7; }
.cap:nth-child(2) { grid-column: span 5; }
.cap:nth-child(3) { grid-column: span 5; }
.cap:nth-child(4) { grid-column: span 7; }
.cap__verb { font: 600 clamp(60px, 6.6vw, 100px)/.9 var(--f-sans); letter-spacing: -.065em; background: linear-gradient(180deg, #fff 20%, rgba(245,241,232,.45)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.cap__verb small { -webkit-text-fill-color: var(--ink-3); font: 500 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--ink-3); vertical-align: top; margin-left: 10px; }
.cap p { color: var(--ink-2); margin: 14px 0 22px; max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip { font-size: 14px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.chip b { color: var(--ember-2); font-weight: 500; }
.cap .orb { position: absolute; z-index: -2; width: 260px; height: 260px; right: -60px; top: -80px; border-radius: 50%; filter: blur(50px); opacity: .55; }
.cap--sell .orb { background: var(--ember); }
.cap--run .orb { background: var(--ion); }
.cap--know .orb { background: var(--violet); }
.cap--teach .orb { background: #3FD7A8; }
.cap { overflow: hidden; }

/* crux statement */
.crux { margin-top: 18px; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.crux__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,143,46,.14); color: var(--ember-2); }
.crux p { margin: 0; font: 500 clamp(22px, 2.4vw, 32px)/1.2 var(--f-sans); letter-spacing: -.03em; text-wrap: pretty; }
.crux p em { font-weight: 400; }

/* ----------------------------------------------------------------- proof */
.feature { margin-top: 64px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: center; }
.dash { border-radius: var(--r-lg); padding: 14px; }
.dash__bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.dash__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dash__bar span { margin-left: 10px; }
.dash__bar .live { margin-left: auto; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.dash__bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.dash__body { border-radius: 18px; background: rgba(4,6,12,.55); border: 1px solid var(--line); padding: 18px; display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.kpi { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 14px; }
.kpi small { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kpi strong { display: block; margin-top: 10px; font: 500 clamp(20px, 2vw, 28px)/1 var(--f-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: 6px; font-size: 12px; color: var(--ok); }
.kpi span.down { color: var(--ember-2); }
.chart { grid-column: span 3; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 14px 14px 6px; }
.chart header, .cats header { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.chart header b { color: var(--ink-2); font-weight: 500; }
.chart svg { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.chart .ln { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.chart .ar { opacity: 0; transition: opacity 1.4s ease .9s; }
.is-drawn .chart .ln { stroke-dashoffset: 0; }
.is-drawn .chart .ar { opacity: 1; }
.cats { border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 14px; display: grid; gap: 10px; align-content: start; }
.cat { display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.cat div { display: flex; justify-content: space-between; }
.cat .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.cat .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--ion)); transition: width 1.6s var(--ease); }
.cat .bar i.warn { background: linear-gradient(90deg, var(--ember), var(--ember-2)); }
.insight { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px; background: linear-gradient(90deg, rgba(255,143,46,.12), rgba(154,140,255,.08)); border: 1px solid rgba(255,184,107,.25); font-size: 14px; color: var(--ink); }
.insight b { font: 500 11px/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ember-2); white-space: nowrap; }
.feature__text h3 { font: 500 clamp(30px, 3vw, 44px)/1.04 var(--f-sans); letter-spacing: -.04em; margin: 16px 0 14px; }
.feature__text p { color: var(--ink-2); margin: 0 0 14px; }
.feature__text ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature__text li { display: flex; gap: 10px; color: var(--ink); font-size: 15.5px; }
.feature__text li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: rgba(110,231,183,.15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.3l2.3 2.3L9.5 3.6' fill='none' stroke='%236EE7B7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat; }
.note-small { font-size: 12.5px; color: var(--ink-3); margin-top: 18px !important; }

.cases { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.case .tag { font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ion); }
.case h3 { margin: 0; font: 500 23px/1.12 var(--f-sans); letter-spacing: -.03em; }
.case p { margin: 0; color: var(--ink-2); font-size: 15px; }
.case .meta { margin-top: auto; font: 400 12.5px/1.4 var(--f-mono); color: var(--ink-3); }

.products { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product { border-radius: var(--r-lg); padding: 12px; text-decoration: none; display: block; }
.product__img { border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; background: #0d0e10; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .product__img img { transform: scale(1.04); }
.product__txt { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 12px 10px; }
.product__txt h3 { margin: 0; font: 500 26px/1 var(--f-sans); letter-spacing: -.035em; }
.product__txt p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.product__txt .go { font: 500 13px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.product:hover .go { color: var(--ember-2); }

/* -------------------------------------------------------------- examples */
.examples { margin-top: 64px; display: grid; gap: 18px; }
.ex { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; aspect-ratio: 21/9; background: #08090b; border: 1px solid var(--line); }
.ex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--es, 1.12)) translateY(var(--ey, 0px)); transition: transform .2s linear; }
.ex::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,12,.85), rgba(5,7,12,.2) 55%, transparent); }
.ex__txt { position: absolute; z-index: 2; left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); max-width: 46ch; }
.ex__txt .tag { font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ember-2); }
.ex__txt h3 { margin: 12px 0 10px; font: 500 clamp(32px, 4.2vw, 60px)/.95 var(--f-sans); letter-spacing: -.045em; }
.ex__txt p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.ex__txt .btn { padding: 12px 18px; font-size: 14px; }

/* ----------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 64px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { border-radius: var(--r-md); padding: 24px; }
.stat strong { display: block; font: 300 clamp(50px, 5.4vw, 80px)/.9 var(--f-sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.stat strong sup { font: 500 .32em/1 var(--f-sans); color: var(--ember-2); vertical-align: top; margin-left: 4px; }
.stat span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.about__prose p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); margin: 0 0 20px; text-wrap: pretty; }
.about__prose p:first-child { color: var(--ink); }
.about__prose .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* --------------------------------------------------------------- contact */
.contact { padding-bottom: 120px; }
.contact__card { border-radius: 36px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; overflow: clip; }
.contact__card .orb1, .contact__card .orb2 { position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.contact__card .orb1 { width: 380px; height: 380px; left: -120px; bottom: -160px; background: var(--ember); opacity: .45; }
.contact__card .orb2 { width: 320px; height: 320px; right: -100px; top: -140px; background: var(--violet); opacity: .4; }
.contact .h2 { font-size: clamp(40px, 5.4vw, 80px); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pick { cursor: pointer; font: 500 14.5px/1 var(--f-sans); color: var(--ink); padding: 11px 15px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.pick:hover { background: rgba(255,255,255,.11); }
.pick[aria-pressed="true"] { background: rgba(255,143,46,.18); border-color: rgba(255,184,107,.6); color: #fff; }
.pick[aria-pressed="true"]::before { content: "✓ "; color: var(--ember-2); }
.letter { border-radius: 22px; background: rgba(4,6,12,.5); border: 1px solid var(--line); overflow: hidden; align-self: start; }
.letter__bar { display: flex; gap: 7px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.letter__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.letter__bar span { margin-left: 8px; }
.letter__in { padding: 20px 22px 22px; font-size: 15.5px; }
.letter__head { display: grid; gap: 4px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.letter__head b { color: var(--ink); font-weight: 500; }
.letter__body p { margin: 0 0 12px; }
.letter .chosen { color: var(--ember-2); font-weight: 500; }
.letter .ph { color: var(--ink-3); font-style: italic; }
.send { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.copy { background: none; border: 0; cursor: pointer; color: var(--ink-2); font: 500 14px/1 var(--f-sans); padding: 12px 4px; }
.copy:hover { color: var(--ink); }
.send-note { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); }
.foot__big { font: 500 clamp(64px, 17vw, 300px)/.8 var(--f-sans); letter-spacing: -.07em; text-align: center; padding: 60px var(--gutter) .14em; margin: 0; color: transparent; -webkit-text-stroke: 1px rgba(245,241,232,.16); user-select: none; white-space: nowrap; overflow: hidden; }
.foot__big b { -webkit-text-stroke: 1px rgba(255,143,46,.5); font-weight: 500; }
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; padding-block: 28px 34px; font-size: 13.5px; color: var(--ink-3); }
.foot__row a { color: var(--ink-2); text-decoration: none; }
.foot__row a:hover { color: var(--ink); }
.foot__row .push { margin-left: auto; }

/* ---------------------------------------------------------------- reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 980px) {
  .nav a.link { display: none; }
  .hero__sub { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cap, .cap:nth-child(n) { grid-column: 1 / -1; min-height: 0; }
  .feature, .about, .contact__card { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .case { min-height: 0; }
  .ex { aspect-ratio: 4/5; }
  .ex::after { background: linear-gradient(0deg, rgba(5,7,12,.92), rgba(5,7,12,.3) 60%, transparent); }
}
@media (max-width: 860px) {
  /* the day becomes a vertical story on phones */
  .day { height: auto; }
  .day__stage { position: relative; height: auto; overflow: visible; padding: 110px 0 40px; display: block; }
  .day__head { display: block; }
  .clock { display: none; }
  .day__track { width: auto; flex-direction: column; transform: none !important; padding: 0 var(--gutter); margin-top: 36px; align-items: stretch; }
  .slot { width: 100%; min-height: 0; opacity: 1; transform: none; }
  .day__rail { display: none; }
  .products { grid-template-columns: 1fr; }
  .dash__body { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .chart, .cats { grid-column: 1 / -1; }
  .shift { height: 200vh; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .crux { grid-template-columns: 1fr; gap: 18px; }
  .foot__row .push { margin-left: 0; }
}
@media (max-width: 520px) {
  .foot__row { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 24px calc(34px + env(safe-area-inset-bottom)); font-size: 14px; }
  .foot__big { padding-top: 44px; }
  .nav { padding-left: 12px; }
  .nav .btn { padding: 9px 13px; font-size: 13px; }
  .mark span { font-size: 16px; }
  .hero { padding-top: 104px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .agentlog { margin-top: 40px; }
  .cap { padding: 24px; }
  .stat { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .hero__title .w > span, .fade-up, [data-reveal] { transform: none; opacity: 1; }
  .shift { height: auto; }
  .shift__stage { position: relative; height: auto; padding: 120px 0; }
  .shift__text .wd { color: var(--ink); }
  .shift__text .wd.hot { color: var(--ember-2); }
  .lens { display: none; }
}

/* ------------------------------------------------------------ engine room */
.engine__panel { margin-top: 56px; border-radius: 32px; padding: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: 1fr minmax(200px, .8fr) 1fr; gap: clamp(20px, 4vw, 64px); align-items: center; }
.engine__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.engine__wires path { fill: none; stroke: rgba(245,241,232,.09); stroke-width: 1.2; }
.engine__wires path.hot { stroke: url(#wireGrad); stroke-width: 1.6; }
.engine__wires circle { filter: drop-shadow(0 0 6px currentColor); }
.engine__col { position: relative; z-index: 1; display: grid; gap: 10px; }
.engine__label { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.node { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.node b { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 400; font-size: 15px; background: rgba(255,255,255,.06); color: var(--ink-2); transition: background .4s, color .4s; }
.node span { display: grid; font-size: 14.5px; line-height: 1.3; min-width: 0; }
.node small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .cnt { margin-left: auto; font: 500 12px/1 var(--f-mono); color: var(--ink-3); background: none; -webkit-text-fill-color: currentColor; padding: 0; }
.node.is-hot { background: rgba(143,217,255,.10); border-color: rgba(143,217,255,.45); box-shadow: 0 0 30px -6px rgba(143,217,255,.45); transform: translateX(4px); }
.node.is-hot b { background: rgba(143,217,255,.2); color: var(--ion); }
.engine__out .node.is-hot { background: rgba(110,231,183,.10); border-color: rgba(110,231,183,.5); box-shadow: 0 0 30px -6px rgba(110,231,183,.45); transform: translateX(-4px); }
.engine__out .node.is-hot b { background: rgba(110,231,183,.2); color: var(--ok); }
.engine__out .node.is-hot .cnt { color: var(--ok); }
.engine__core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
.core { --cx: 0px; --cy: 0px; position: relative; width: min(200px, 40vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; transform: translate(var(--cx), var(--cy)); transition: transform .6s var(--ease);
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.55), rgba(255,255,255,.06) 32%, transparent 60%), radial-gradient(circle at 50% 60%, rgba(255,143,46,.55), rgba(154,140,255,.35) 45%, rgba(10,15,28,.6) 75%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.5), inset 0 -10px 30px rgba(143,217,255,.25), 0 30px 80px -20px rgba(255,143,46,.55), 0 0 0 1px rgba(255,255,255,.18); }
.core i { position: absolute; inset: -14%; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); border-top-color: rgba(143,217,255,.8); animation: spin 6s linear infinite; }
.core i:nth-child(2) { inset: -28%; border-top-color: transparent; border-right-color: rgba(255,184,107,.7); animation-duration: 10s; animation-direction: reverse; }
.core i:nth-child(3) { inset: -42%; border-style: dashed; border-color: rgba(255,255,255,.08); animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }
.core__glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,220,180,.9), transparent 65%); opacity: 0; transition: opacity .25s; }
.core.is-busy .core__glow { opacity: .55; }
.core__mark { position: relative; font: 600 clamp(34px, 4vw, 52px)/1 var(--f-sans); letter-spacing: -.05em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.core__task { margin: 26px 0 0; min-height: 2.6em; text-align: center; font: 400 13px/1.4 var(--f-mono); color: var(--ink-2); max-width: 26ch; }
.engine__stats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.engine__stats div { border-top: 1px solid var(--line); padding-top: 16px; }
.engine__stats strong { display: block; font: 300 clamp(36px, 4vw, 56px)/1 var(--f-sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.engine__stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.stack { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 13px/1.6 var(--f-mono); color: var(--ink-2); }
.stack__label { width: 100%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* decoding headings */
.scramble { color: var(--ion) !important; -webkit-text-fill-color: var(--ion); opacity: .8; }

@media (max-width: 860px) {
  .engine__panel { grid-template-columns: 1fr; gap: 28px; }
  .engine__core { order: 0; }
  .engine__in { order: -1; }
  .engine__in .node:nth-child(n+5), .engine__out .node:nth-child(n+5) { display: none; }
  .core { width: 150px; }
  .engine__wires path, .engine__wires path.hot { stroke: none; }
  .engine__stats { grid-template-columns: 1fr; gap: 10px; }
  .node.is-hot, .engine__out .node.is-hot { transform: none; }
}

a.chip--link { text-decoration: none; border-color: rgba(255,184,107,.45); background: rgba(255,143,46,.12); transition: background .2s, border-color .2s; }
a.chip--link:hover { background: rgba(255,143,46,.22); border-color: var(--ember-2); }

/* ------------------------------------------------------------ live demo */
.demo__panel { margin-top: 48px; border-radius: 32px; padding: clamp(18px, 3vw, 36px); }
.demo__form { display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(4,6,12,.5); border: 1px solid var(--line); }
.demo__form:focus-within { border-color: rgba(143,217,255,.55); box-shadow: 0 0 0 4px rgba(143,217,255,.12); }
.demo__form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 400 clamp(16px, 1.5vw, 19px)/1.2 var(--f-sans); padding: 0 16px; }
.demo__form input::placeholder { color: var(--ink-3); }
.demo__form .btn { padding: 14px 22px; }
.demo__form .btn[disabled] { opacity: .6; cursor: progress; }
.demo__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.demo__try .chip { cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink); transition: background .2s; }
.demo__try .chip:hover { background: rgba(255,255,255,.12); }
.demo__out:empty { display: none; }
.demo__out { margin-top: 26px; }
.demo__thinking { display: flex; align-items: center; gap: 12px; font: 400 14px/1.4 var(--f-mono); color: var(--ink-2); margin: 0; }
.demo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ion); box-shadow: 0 0 14px var(--ion); animation: blink 1s steps(1) infinite; }
.demo__opener { margin: 0 0 18px; font: 400 clamp(18px, 1.8vw, 23px)/1.4 var(--f-sans); letter-spacing: -.02em; max-width: 60ch; }
.demo__jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo__job { border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(16px); transition: opacity .7s ease var(--d), transform .8s var(--ease) var(--d); }
.is-shown .demo__job { opacity: 1; transform: none; }
.demo__n { font: 500 12px/1 var(--f-mono); color: var(--ember-2); }
.demo__job h3 { margin: 0; font: 500 21px/1.15 var(--f-sans); letter-spacing: -.03em; }
.demo__job p { margin: 0; font-size: 15px; color: var(--ink-2); }
.demo__saves { margin-top: auto; padding-top: 10px; font: 400 12.5px/1.4 var(--f-mono); color: var(--ok); }
.demo__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.demo__fine { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 860px) {
  .demo__jobs { grid-template-columns: 1fr; }
  .demo__form { border-radius: 22px; flex-direction: column; }
  .demo__form input { padding: 12px; }
  .demo__form .btn { justify-content: center; }
}

.nav a.back-link { color: var(--ink); background: rgba(255,255,255,.07); margin-right: 4px; }
@media (max-width: 980px) { .nav a.back-link { display: inline-flex; } }

/* phones: nav tucks away on scroll down (home.js / page.js) */
.nav { transition: transform .35s var(--ease), opacity .35s; }
.nav.is-tucked { transform: translate(-50%, calc(-100% - 24px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* QA fixes, 14 Nov */
@media (max-width: 860px) {
  /* the rings reach 42% beyond the core: room above and below, clip only sideways */
  .engine__core { overflow-x: clip; overflow-y: visible; padding: 0; }
  .core { margin: 47px 0 55px; } /* rings reach 63px: ~12px clear of the cards and the caption */
  .core__task { margin-top: 0; }
}
@media (max-width: 520px), (max-height: 720px) { .scrollcue { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .day { height: auto; }
  .day__stage { position: relative; height: auto; overflow: visible; padding: 110px 0 40px; display: block; }
  .day__head { display: block; }
  .clock { display: none; }
  .day__track { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); transform: none !important; padding: 0 var(--gutter); margin-top: 36px; align-items: stretch; }
  .slot { width: auto; min-height: 0; opacity: 1; transform: none; }
  .day__rail { display: none; }
}
@media (max-width: 520px) {
  .product__txt { flex-direction: column; align-items: flex-start; gap: 12px; }
  .kpi small { font-size: 10.5px; letter-spacing: .04em; line-height: 1.2; }
}
