/* ==========================================================
   Mavrinsoft — tokens
   ========================================================== */
:root {
  --bg: #FAFAFA;
  --bg-1: #F4F4F5;
  --surface: #FFFFFF;
  --surface-2: #F7F7F8;
  --line: rgb(9 9 11 / 0.08);
  --line-2: rgb(9 9 11 / 0.13);
  --text: #09090B;
  --text-2: #52525B;
  --text-3: #8B8B94;
  --accent: #6D5BFF;
  --accent-2: #0EA5E9;
  --kept: #059669;
  --open: #C2780A;
  --missed: #DC2626;
  --on-accent: #FFFFFF;
  --shadow-win: 0 1px 1px rgb(0 0 0 / 0.04), 0 24px 64px -24px rgb(30 27 75 / 0.25);
  --aurora-o: 0.35;
  --noise-o: 0.025;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --term-bg: #0E0E12;
  --term-text: #E4E4E7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090B; --bg-1: #0C0C0F; --surface: #111114; --surface-2: #17171B;
    --line: rgb(255 255 255 / 0.07); --line-2: rgb(255 255 255 / 0.12);
    --text: #F4F4F5; --text-2: #A1A1AA; --text-3: #71717A;
    --accent: #8B7CFF; --accent-2: #5EC8FF;
    --kept: #34D399; --open: #FBBF24; --missed: #F87171;
    --shadow-win: 0 0 0 1px rgb(0 0 0 / 0.3), 0 40px 100px -30px rgb(0 0 0 / 0.8);
    --aurora-o: 0.55; --noise-o: 0.04;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090B; --bg-1: #0C0C0F; --surface: #111114; --surface-2: #17171B;
  --line: rgb(255 255 255 / 0.07); --line-2: rgb(255 255 255 / 0.12);
  --text: #F4F4F5; --text-2: #A1A1AA; --text-3: #71717A;
  --accent: #8B7CFF; --accent-2: #5EC8FF;
  --kept: #34D399; --open: #FBBF24; --missed: #F87171;
  --shadow-win: 0 0 0 1px rgb(0 0 0 / 0.3), 0 40px 100px -30px rgb(0 0 0 / 0.8);
  --aurora-o: 0.55; --noise-o: 0.04;
  color-scheme: dark;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: var(--noise-o);
  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");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
em { font-style: normal; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 500 14.5px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.12); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); }
  .btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); background: var(--surface-2); }
}

/* ==========================================================
   Nav
   ========================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; }
.nav::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 200ms ease;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled::before { opacity: 1; }
.nav-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--sans); letter-spacing: -0.02em; }
.brand svg { width: 24px; height: 24px; color: var(--text); }
.nav-links { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: 14px; color: var(--text-2); padding: 7px 12px; border-radius: 8px; transition: color 150ms ease, background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); background: var(--line); } }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--line-2); color: var(--text-2);
  transition: transform 160ms var(--ease-out), color 150ms ease, border-color 150ms ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 28%, transparent); } }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: block; } :root:not([data-theme="light"]) .icon-btn .moon { display: none; } }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
@media (max-width: 820px) { .nav-links { display: none; } }
.nav-actions .short { display: none; }
@media (max-width: 520px) { .nav-actions .long { display: none; } .nav-actions .short { display: inline; } }

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; padding-top: 148px; isolation: isolate; overflow-x: clip; }
.aurora {
  position: absolute; z-index: -1; left: 50%; top: -260px; width: min(1300px, 140vw); height: 760px;
  transform: translateX(-50%); pointer-events: none; opacity: var(--aurora-o); filter: blur(40px);
  background:
    radial-gradient(closest-side at 38% 55%, color-mix(in srgb, var(--accent) 70%, transparent), transparent),
    radial-gradient(closest-side at 64% 48%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora.low { top: auto; bottom: -420px; }
@keyframes drift { to { transform: translateX(-47%) translateY(24px) scale(1.04); } }

.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px; color: var(--text-2);
  transition: border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.eyebrow-pill:active { transform: scale(0.97); }
.eyebrow-pill svg { width: 13px; height: 13px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .eyebrow-pill:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 24%, transparent); }
  .eyebrow-pill:hover svg { transform: translateX(2px); }
}
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--kept); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--kept); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

.headline {
  font: 600 clamp(44px, 8.2vw, 96px)/0.98 var(--sans); letter-spacing: -0.052em;
  margin: 28px 0 24px; max-width: 12ch; text-wrap: balance;
}
.headline em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  font-size: 1.06em; padding-right: 0.06em;
  background: linear-gradient(100deg, var(--text) 0%, color-mix(in srgb, var(--accent) 80%, var(--text)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.headline em .w {
  background: linear-gradient(100deg, var(--text) 0%, color-mix(in srgb, var(--accent) 80%, var(--text)) 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em;
}
.sub { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.55; color: var(--text-2); max-width: 46ch; margin: 0 0 36px; text-wrap: pretty; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* entrance — plays once, on first load */
.js .headline .w { display: inline-block; animation: word 1000ms var(--ease-out) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
.js .enter { animation: rise 1000ms var(--ease-out) both; animation-delay: calc(var(--d) * 70ms); }
.js .stage.enter { animation-duration: 1400ms; animation-name: rise-far; }
@keyframes word { from { opacity: 0; transform: translateY(14px); filter: blur(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
@keyframes rise-far { from { opacity: 0; transform: translateY(48px); } }

/* product stage */
.stage-wrap { margin-top: 72px; position: relative; }
.stage { perspective: 1800px; position: relative; }
.stage::before {
  content: ""; position: absolute; inset: 8% 10% auto; height: 60%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
  filter: blur(50px); opacity: .6;
}
.tilt { transform-origin: 50% 0%; }
@supports (animation-timeline: view()) {
  .tilt { animation: flatten linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  @keyframes flatten { from { transform: rotateX(24deg) scale(0.93); } to { transform: none; } }
}
.stage-caption { text-align: center; font: 400 12.5px/1.4 var(--mono); color: var(--text-3); margin: 18px 0 0; }

.window {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-win);
  font-size: 13px; line-height: 1.45; text-align: left;
}
.window::after { /* top highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.threads path { fill: none; stroke: url(#g-thread); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
.threads circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; opacity: 0; transition: opacity 250ms ease; }
.threads circle.on { opacity: 1; }

.win-bar { height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-title { font: 500 12.5px/1 var(--sans); color: var(--text-2); }
.win-search { margin-left: auto; display: inline-flex; align-items: center; gap: 22px; height: 26px; padding: 0 6px 0 10px; border-radius: 7px; border: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.win-search kbd { font: 500 10.5px/1 var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 4px; color: var(--text-2); }

.win-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) minmax(0, 330px); min-height: 430px; }
.win-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-1); }
.ws { display: flex; align-items: center; gap: 9px; font-weight: 600; padding: 4px 8px 12px; }
.ws-logo { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; color: #fff; background: linear-gradient(135deg, #F59E0B, #EF4444); }
.side-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--text-2); }
.side-item svg { width: 15px; height: 15px; flex: none; }
.side-item.active { background: var(--line); color: var(--text); }
.side-item.muted { color: var(--text-3); }
.count { margin-left: auto; font: 500 10.5px/1 var(--mono); padding: 3px 6px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.side-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.side-label { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 4px 8px 6px; }
.src-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--c); margin: 0 4px; }

.pane-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 12.5px; }
.pane-head .muted { color: var(--text-3); font-weight: 400; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font: 400 11.5px/1 var(--mono); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--kept); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kept) 22%, transparent); }

.feed { list-style: none; margin: 0; padding: 10px; display: grid; gap: 6px; }
.msg {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px; border-radius: 10px;
  border: 1px solid transparent; transition: background-color 250ms ease, border-color 250ms ease;
}
.msg.lit { background: color-mix(in srgb, var(--accent) 7%, transparent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.msg .meta { color: var(--text-3); font-size: 12px; margin-bottom: 2px; }
.msg .meta b { color: var(--text); font-weight: 500; }
.msg p { margin: 0; color: var(--text-2); }
.msg mark { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); border-radius: 4px; padding: 0 3px; transition: background-color 250ms ease; }
.msg.lit mark { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 10.5px/1 var(--sans); color: #fff; background: var(--c); }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.file { display: inline-flex; align-items: center; font: 400 11.5px/1 var(--mono); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); margin-left: 4px; }

.win-mem { border-left: 1px solid var(--line); background: var(--bg-1); }
.mem-list { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; }
.mem {
  padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 250ms ease, background-color 250ms ease, transform 250ms var(--ease-out);
  cursor: default;
}
.mem:focus-visible { outline-offset: 2px; }
.mem.on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.mem-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mem p { margin: 0 0 3px; color: var(--text); font-weight: 500; }
.mem small { color: var(--text-3); font-size: 11.5px; }
.mem small.agent-line { color: var(--accent); }
.kind { font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.k-decision { color: color-mix(in srgb, var(--open) 80%, var(--text-3)); }
.st { font: 500 10.5px/1 var(--mono); padding: 4px 7px; border-radius: 6px; }
.st-kept { color: var(--kept); background: color-mix(in srgb, var(--kept) 13%, transparent); }
.st-missed { color: var(--missed); background: color-mix(in srgb, var(--missed) 13%, transparent); }
.st-open { color: var(--open); background: color-mix(in srgb, var(--open) 13%, transparent); }

@media (max-width: 1000px) {
  .win-body { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .win-side { display: none; }
}
@media (max-width: 680px) {
  .stage-wrap { margin-top: 56px; }
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .win-mem { border-left: 0; border-top: 1px solid var(--line); }
  .win-search { display: none; }
  .msg[data-msg="sync"] { display: none; }
  .mem:nth-child(3) { display: none; }
}

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: 160px 0 0; }
@media (max-width: 760px) { .section { padding-top: 112px; } }
.section-head { max-width: 680px; margin-bottom: 56px; }
.label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
h2 { font: 600 clamp(34px, 5vw, 56px)/1.03 var(--sans); letter-spacing: -0.045em; margin: 0 0 18px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 56ch; text-wrap: pretty; }
.lead b { color: var(--text); font-weight: 500; }
.section-head .more { margin-top: 24px; }
.btn-sm svg { width: 13px; height: 13px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn.more:hover svg { transform: translateX(2px); } }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Bento
   ========================================================== */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 28px; padding: 28px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
}
.card::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}
@media (hover: hover) and (pointer: fine) { .card:hover::before { opacity: 1; } }
.card h3 { font: 600 18px/1.25 var(--sans); letter-spacing: -0.02em; margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 44ch; }
.c-approve { grid-column: span 4; }
.c-install { grid-column: span 2; }
.c-models { grid-column: span 2; }
.c-chart { grid-column: span 4; }
.c-tools { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: center; gap: 32px; }
.bento > .card:nth-child(2) { --rd: 80ms; }
.bento > .card:nth-child(4) { --rd: 80ms; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .bento > .card { grid-column: auto; }
  .c-tools { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .card { padding: 20px; border-radius: 16px; } }

/* -- hold to approve -- */
.demo-approve { margin-top: auto; }
.proposal { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.prop-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.prop-head b { color: var(--text); font-weight: 500; }
.prop-state { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--open); padding: 5px 8px; border-radius: 6px; background: color-mix(in srgb, var(--open) 12%, transparent); transition: color 200ms ease, background-color 200ms ease; white-space: nowrap; }
.proposal.sent .prop-state { color: var(--kept); background: color-mix(in srgb, var(--kept) 12%, transparent); }
.prop-body { padding: 14px; display: grid; gap: 6px; font-size: 13.5px; }
.prop-row { color: var(--text); }
.prop-row span { display: inline-block; width: 44px; color: var(--text-3); font: 400 12px/1 var(--mono); }
.prop-text { margin: 6px 0 0 !important; padding: 10px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--text) !important; font-size: 13.5px !important; max-width: none !important; outline: none; }
.prop-text[contenteditable="true"] { border-color: var(--accent); }
.prop-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 14px 14px; }
.hold {
  position: relative; overflow: hidden; height: 34px; padding: 0 16px; border-radius: 9px;
  background: var(--text); color: var(--bg); font: 500 13.5px/1 var(--sans);
  transition: transform 160ms var(--ease-out); user-select: none; -webkit-user-select: none; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hold:active, .hold.holding { transform: scale(0.97); }
.hold-label { position: relative; }
.hold-fill {
  position: absolute; inset: 0; display: grid; place-items: center; background: var(--kept); color: #fff;
  clip-path: inset(0 100% 0 0); transition: clip-path 200ms var(--ease-out);
}
.hold.holding .hold-fill { clip-path: inset(0 0 0 0); transition: clip-path 1200ms linear; }
.proposal.sent .hold-fill { clip-path: inset(0 0 0 0); transition: none; }
.proposal.sent .hold { cursor: default; }

/* -- terminal -- */
.term {
  margin-top: auto; border-radius: 12px; padding: 16px; min-height: 172px;
  background: var(--term-bg); color: var(--term-text); border: 1px solid rgb(255 255 255 / 0.08);
  font: 400 13px/1.85 var(--mono); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt { color: #71717A; }
.ok { color: #34D399; }
.arrow { color: #8B7CFF; }
.term u { text-decoration-color: rgb(255 255 255 / 0.3); text-underline-offset: 3px; }
.caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #E4E4E7; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term .out { opacity: 0; transform: translateY(4px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.js .term .out.show { opacity: 1; transform: none; }

/* -- models -- */
.palette { margin-top: auto; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); padding: 6px; box-shadow: 0 12px 32px -18px rgb(0 0 0 / 0.35); }
.pal-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.pal-search svg { width: 14px; height: 14px; }
.pal-search kbd { margin-left: auto; font: 500 10.5px/1 var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; color: var(--text-2); }
.models { position: relative; display: grid; gap: 6px; --k: 0; }
.model {
  position: relative; z-index: 1; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 300ms ease;
}
.models[data-k="0"] .model:nth-of-type(1), .models[data-k="1"] .model:nth-of-type(2), .models[data-k="2"] .model:nth-of-type(3) { color: var(--text); }
.m-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.m-tag { margin-left: auto; font: 400 11px/1 var(--mono); color: var(--text-3); }
.model-hl {
  position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-2);
  transform: translateY(calc(var(--k) * 50px)); transition: transform 500ms var(--ease-in-out);
}

/* -- chart -- */
.chart { margin-top: auto; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px; background: var(--surface-2); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.tool-chip { font: 400 11.5px/1 var(--mono); color: var(--accent); padding: 6px 8px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.bars {
  height: 150px; display: flex; align-items: flex-end; gap: 10px; padding-top: 26px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 26px;
}
.bar {
  position: relative; flex: 1; height: calc(var(--h) * 100%); border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 45%, transparent), color-mix(in srgb, var(--accent) 18%, transparent));
  transform-origin: bottom; transition: transform 1000ms var(--ease-out), background-color 150ms ease;
  transition-delay: calc(var(--i) * 70ms);
}
.bar:last-child { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2))); }
.bar span {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) translateY(4px);
  font: 500 11px/1 var(--mono); color: var(--text); opacity: 0; white-space: nowrap;
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
.bar:last-child span { opacity: 1; transform: translateX(-50%); }
@media (hover: hover) and (pointer: fine) {
  .bars:hover .bar:last-child:not(:hover) span { opacity: 0; }
  .bar:hover span { opacity: 1; transform: translateX(-50%); }
}
.js .chart:not(.in) .bar { transform: scaleY(0.02); }
.months { display: flex; gap: 10px; margin-top: 8px; }
.months span { flex: 1; text-align: center; font: 400 11px/1 var(--mono); color: var(--text-3); }

/* -- marquee -- */
.marquee {
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 45s linear infinite; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
.marquee span { font: 400 13px/1 var(--mono); color: var(--text-2); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* ==========================================================
   Approach
   ========================================================== */
.manifesto {
  font: 500 clamp(26px, 3.7vw, 46px)/1.22 var(--sans); letter-spacing: -0.035em;
  margin: 0 0 72px; max-width: 30ch; text-wrap: pretty; view-timeline-name: --mf;
}
@supports (animation-timeline: view()) {
  .js .manifesto .mw { animation: lit linear both; animation-timeline: --mf; animation-range: cover var(--s) cover var(--e); }
  @keyframes lit { from { opacity: 0.18; } to { opacity: 1; } }
}
.tenets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tenet { border-top: 1px solid var(--line-2); padding-top: 18px; }
.tenet:nth-child(2) { --rd: 80ms; }
.tenet:nth-child(3) { --rd: 160ms; }
.t-k { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tenet p { margin: 10px 0 0; color: var(--text-2); font-size: 16px; }
@media (max-width: 760px) { .tenets { grid-template-columns: 1fr; gap: 24px; } }

/* ==========================================================
   Changelog
   ========================================================== */
.changelog { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.section-head.sticky { position: sticky; top: 120px; margin-bottom: 0; }
.log { list-style: none; margin: 0; padding: 0; position: relative; }
.log::before { content: ""; position: absolute; left: 89px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.log li { display: grid; grid-template-columns: 72px 1fr; gap: 36px; padding: 0 0 36px; position: relative; }
.log li::before {
  content: ""; position: absolute; left: 86px; top: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--text-3);
}
.log li:first-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.log time { font: 400 13px/1.7 var(--mono); color: var(--text-3); text-align: right; }
.log h3 { font: 600 17px/1.35 var(--sans); letter-spacing: -0.015em; margin: 0 0 4px; }
.log p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) {
  .changelog { grid-template-columns: 1fr; gap: 48px; }
  .section-head.sticky { position: static; }
}

/* ==========================================================
   Company
   ========================================================== */
.company { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.founder { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 24px; --rd: 100ms; }
.founder::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}
@media (hover: hover) and (pointer: fine) { .founder:hover::before { opacity: 1; } }
.f-top { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.f-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 600 16px/1 var(--sans); color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.f-top b { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.f-top span { color: var(--text-3); font-size: 14px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--text-3); font: 400 13px/1.6 var(--mono); }
.facts dd { margin: 0; text-align: right; }
.facts a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .facts a:hover { text-decoration-color: var(--text); } }
@media (max-width: 860px) { .company { grid-template-columns: 1fr; gap: 40px; } }

/* ==========================================================
   Contact + footer
   ========================================================== */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: 200px 0 160px; text-align: center; }
.contact h2 { font-size: clamp(38px, 6vw, 72px); max-width: 15ch; margin: 0 auto 20px; }
.contact .lead { margin: 0 auto 36px; }
@media (max-width: 760px) { .contact { padding: 140px 0 112px; } }

.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 13.5px; color: var(--text-3); }
.foot-row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-row a { color: var(--text-2); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-row a:hover { color: var(--text); } }
.wordmark {
  font: 600 clamp(72px, 21vw, 300px)/0.8 var(--sans); letter-spacing: -0.065em; text-align: center;
  margin: 8px 0 -0.1em; user-select: none; white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--text) 14%, transparent) 10%, transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================
   Shared chips
   ========================================================== */
.chip {
  display: inline-flex; align-items: center; justify-content: center; font: 500 11px/1 var(--mono);
  padding: 5px 8px; border-radius: 6px; white-space: nowrap;
  color: var(--text-3); background: var(--line);
  transition: color 250ms ease, background-color 250ms ease;
}
.chip .cl { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.chip.swap .cl { filter: blur(3px); opacity: 0.3; }
.c-kept { color: var(--kept); background: color-mix(in srgb, var(--kept) 13%, transparent); }
.c-overdue { color: var(--missed); background: color-mix(in srgb, var(--missed) 13%, transparent); }
.c-open { color: var(--open); background: color-mix(in srgb, var(--open) 13%, transparent); }
.c-plan { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.c-gray { color: var(--text-3); background: var(--line); }
.src { display: inline-block; width: 7px; height: 7px; border-radius: 2px; flex: none; background: var(--text-3); }
.s-git { background: #F97316; }
.s-mail { background: #60A5FA; }
.s-cal { background: #A78BFA; }
.s-chat { background: #34D399; }
.s-doc { background: #FBBF24; }
.mono { font-family: var(--mono); }

/* ==========================================================
   Metobe page
   ========================================================== */
.headline.wide { max-width: 15ch; }
.hero-product .sub { max-width: 52ch; }

/* -- reality ledger -- */
.rl {
  margin: 64px auto 0; max-width: 1040px; text-align: left;
  border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-win);
  overflow: hidden; font-size: 14px;
}
.rl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rl-title { font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em; }
.rl-sync { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); color: var(--text-3); }
.rl-sync i { width: 6px; height: 6px; border-radius: 50%; background: var(--open); animation: breathe 1.2s ease-in-out infinite alternate; }
.rl-sync.done i { background: var(--kept); animation: none; }
@keyframes breathe { from { opacity: .35; } }
.rl-head, .rl-row { display: grid; grid-template-columns: minmax(0, 1.05fr) 56px minmax(0, 1.25fr) 112px; align-items: center; }
.rl-head { padding: 12px 20px 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.rl-head span:last-child, .rl-s { text-align: right; }
.rl-row { padding: 16px 20px; min-height: 76px; }
.rl-row + .rl-row { border-top: 1px solid var(--line); }
.rl-p b { display: block; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.rl-p small { display: block; margin-top: 3px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.rl-link { height: 1px; margin: 0 10px; position: relative; }
.rl-link span {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--line-2), var(--accent));
  transition: transform 500ms var(--ease-in-out);
}
.rl-link span::after { content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rl-row[data-final="overdue"] .rl-link span { background: linear-gradient(90deg, var(--line-2), var(--missed)); }
.rl-row[data-final="overdue"] .rl-link span::after { background: var(--missed); }
.rl-row[data-final="open"] .rl-link span { background: linear-gradient(90deg, var(--line-2), var(--open)); }
.rl-row[data-final="open"] .rl-link span::after { background: var(--open); }
.rl-row.done .rl-link span { transform: scaleX(1); }
.rl-f { display: flex; flex-wrap: wrap; gap: 6px; }
.ev {
  display: inline-flex; align-items: center; gap: 7px; font: 400 12.5px/1 var(--mono); color: var(--text);
  padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2);
}
.ev.none { color: var(--text-3); border-style: dashed; background: transparent; }
.js .rl-row .ev { opacity: 0; transform: translateX(-6px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.js .rl-row.done .ev { opacity: 1; transform: none; transition-delay: 300ms; }
.js .rl-row.done .ev + .ev { transition-delay: 420ms; }
.dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: dots 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.rl-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); font: 400 12px/1.4 var(--mono); color: var(--text-2); }
.rl-foot .muted { color: var(--text-3); }
@media (max-width: 760px) {
  .rl-head { display: none; }
  .rl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px 16px; }
  .rl-p { grid-column: 1; grid-row: 1; }
  .rl-s { grid-column: 2; grid-row: 1; align-self: start; }
  .rl-link { display: none; }
  .rl-f { grid-column: 1 / -1; }
  .rl-bar, .rl-foot { padding-left: 16px; padding-right: 16px; }
}

/* -- pipelines -- */
.pipes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; }
.pipe { border-radius: 20px; padding: 28px; }
.pipe-k { margin: 0 0 20px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pipe ol { list-style: none; margin: 0; padding: 0; }
.pipe-old { border: 1px dashed var(--line-2); }
.pipe-old li { font: 400 14px/1 var(--mono); color: var(--text-3); padding: 12px 0; border-bottom: 1px dashed var(--line); }
.pipe-old li::after { content: " ↓"; opacity: .5; }
.pipe-old li:last-child::after { content: ""; }
.pipe-q { margin: 20px 0 0; font: italic 400 22px/1.3 var(--serif); color: var(--text-3); }
.pipe-new { border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--surface); position: relative; overflow: hidden; }
.pipe-new .pipe-k { color: var(--accent); }
.pipe-steps { position: relative; }
.pipe-steps::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent-2) 60%, transparent)); opacity: .5; }
.pipe-new li { position: relative; display: grid; gap: 2px; padding: 9px 0 9px 32px; }
.pipe-new li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); }
.pipe-new li span { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.pipe-new li small { color: var(--text-3); font-size: 13.5px; }
.js .pipe-new li { opacity: .3; transition: opacity 500ms ease; }
.js .pipe-new.in li { opacity: 1; }
.pipe-new.in li:nth-child(2) { transition-delay: 120ms; }
.pipe-new.in li:nth-child(3) { transition-delay: 240ms; }
.pipe-new.in li:nth-child(4) { transition-delay: 360ms; }
.pipe-new.in li:nth-child(5) { transition-delay: 480ms; }
.pipe-new.in li:nth-child(6) { transition-delay: 600ms; }
.pulse { position: absolute; left: 0; top: 12px; height: calc(100% - 24px); width: 13px; pointer-events: none; animation: travel 4.5s var(--ease-in-out) infinite; }
.pulse::after { content: ""; position: absolute; left: 3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--accent) 60%, transparent); }
@keyframes travel { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
@media (max-width: 860px) { .pipes { grid-template-columns: 1fr; } }

.boundary { display: flex; align-items: stretch; gap: 10px; margin-top: 16px; }
.b-step { flex: 1; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.b-k { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.b-step:first-child .b-k { color: #D97757; }
.b-step small { font: 400 12px/1.5 var(--mono); color: var(--text-3); }
.b-arrow { width: 28px; flex: none; align-self: center; color: var(--text-3); }
.boundary-note { margin: 28px 0 0; text-align: center; font: italic 400 clamp(20px, 2.4vw, 26px)/1.35 var(--serif); color: var(--text-2); text-wrap: balance; }
@media (max-width: 860px) {
  .boundary { flex-direction: column; }
  .b-arrow { transform: rotate(90deg); }
}

/* -- lifecycle tabs -- */
.lc { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); padding: 24px; }
@media (max-width: 520px) { .lc { padding: 16px; } }
.tabs { position: relative; display: inline-block; max-width: 100%; }
.tabs-list { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tabs-list button, .tabs-list span {
  height: 34px; padding: 0 16px; border-radius: 8px; font: 500 14px/34px var(--sans); color: var(--text-2); white-space: nowrap;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .tabs-list button:hover { color: var(--text); } }
.tabs-clip {
  position: absolute; inset: 0; pointer-events: none; background: transparent; border-color: transparent;
  clip-path: inset(5px var(--r, 100%) 5px var(--l, 0px) round 8px);
  transition: clip-path 300ms var(--ease-out);
}
.tabs-clip span { background: var(--text); color: var(--bg); }
.tabs-clip.instant { transition: none; }
.lc-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; margin-top: 24px; }
@media (max-width: 860px) { .lc-body { grid-template-columns: 1fr; } }
.lc-cap { margin: 0 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
#lc-events { list-style: none; margin: 0; padding: 0; position: relative; }
#lc-events::before { content: ""; position: absolute; left: 75px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
#lc-events li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 0 0 18px; position: relative; animation: ev-in 360ms var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); }
#lc-events li::before { content: ""; position: absolute; left: 72px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--text-3); }
#lc-events li.cur::before { border-color: var(--accent); background: var(--accent); }
@keyframes ev-in { from { opacity: 0; transform: translateY(6px); } }
.ev-t { font: 400 12px/1.6 var(--mono); color: var(--text-3); text-align: right; }
.ev-b { display: grid; gap: 6px; justify-items: start; }
.ev-b p { margin: 0; color: var(--text); font-size: 14.5px; }
.ev-b .ev { font-size: 11.5px; padding: 5px 7px; }
.record { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); overflow: hidden; animation: ev-in 360ms var(--ease-out) both; }
.record dl { margin: 0; padding: 6px 16px; }
.record dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.record dl div:last-child { border-bottom: 0; }
.record dt { font: 400 12.5px/1.6 var(--mono); color: var(--text-3); }
.record dd { margin: 0; }
.record .why { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--text-2); }
.record .why b { color: var(--text); font-weight: 500; }

/* -- auditable bento -- */
.a-prov, .a-conf { grid-column: span 3; }
.a-ent { grid-column: span 2; }
.a-sql { grid-column: span 4; }
.qa { margin-top: auto; display: grid; gap: 10px; font-size: 14px; }
.bubble { padding: 11px 14px; max-width: 88%; line-height: 1.5; }
.bubble.me { justify-self: end; background: var(--text); color: var(--bg); border-radius: 14px 14px 4px 14px; }
.bubble.bot { justify-self: start; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px 14px 14px 4px; color: var(--text); }
.bubble blockquote { margin: 10px 0; padding-left: 12px; border-left: 2px solid var(--accent); font: italic 400 18px/1.35 var(--serif); color: var(--text); }
.cite { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font: 400 11.5px/1 var(--mono); color: var(--text-2); padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); }
.bubble.bot .cite { display: flex; width: max-content; max-width: 100%; }

.conf { margin-top: auto; display: grid; gap: 12px; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); }
.conf-q { font-size: 15px; font-weight: 500; }
.conf-q span { color: var(--text-3); margin: 0 4px; }
.conf-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.conf-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(var(--v, .74)); background: var(--open); transition: transform 900ms var(--ease-in-out), background-color 400ms ease; }
.conf.resolved .conf-bar span { background: var(--kept); }
.conf-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.conf-ev { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1.4 var(--mono); color: var(--text-2); opacity: 0; transform: translateY(4px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.conf.resolved .conf-ev { opacity: 1; transform: none; }

.ent { margin-top: auto; display: grid; justify-items: center; }
.aliases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
.aliases span { text-align: center; font: 400 12px/1 var(--mono); padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-lines { width: 100%; height: 40px; color: var(--text-3); opacity: .6; }
.ent-node { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: 13.5px; font-weight: 500; }

.sql-flow { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.code { margin: 0; padding: 16px; border-radius: 12px; background: var(--term-bg); color: var(--term-text); border: 1px solid rgb(255 255 255 / 0.08); font: 400 13px/1.7 var(--mono); overflow-x: auto; }
.code .kw { color: #C4B5FD; }
.code .fn { color: #7DD3FC; }
.code .str { color: #86EFAC; }
.code .num { color: #FCA5A5; }
.insight { padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 14px; line-height: 1.55; color: var(--text); }
.ins-k { display: block; margin-bottom: 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #D97757; }
@media (max-width: 960px) {
  .a-prov, .a-conf, .a-ent, .a-sql { grid-column: auto; }
  .sql-flow { grid-template-columns: 1fr; }
}

/* -- organization -- */
.org { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .org { grid-template-columns: 1fr; } }
.chain { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 22px; position: relative; }
.chain li { position: relative; display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.chain li b { font-weight: 500; }
.chain li small { color: var(--text-3); font-size: 12.5px; text-align: right; }
.chain li:not(:last-child)::after { content: "waits on ↓"; position: absolute; left: 22px; top: calc(100% + 4px); font: 400 10.5px/1 var(--mono); color: var(--text-3); }
.chain li.neck { transition: border-color 400ms ease, background-color 400ms ease; }
.reveal.in .chain li.neck { border-color: color-mix(in srgb, var(--missed) 45%, transparent); background: color-mix(in srgb, var(--missed) 8%, var(--surface-2)); transition-delay: 700ms; }
.chain li.neck small { color: var(--missed); }
.js .chain li { opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), border-color 400ms ease, background-color 400ms ease; }
.js .reveal.in .chain li { opacity: 1; transform: none; }
.reveal.in .chain li:nth-child(2) { transition-delay: 100ms; }
.reveal.in .chain li:nth-child(3) { transition-delay: 200ms; }
.reveal.in .chain li:nth-child(4) { transition-delay: 300ms, 300ms, 700ms, 700ms; }

.mk { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 16px; }
.mk-col { border-radius: 20px; padding: 28px; border: 1px dashed var(--line-2); }
.mk-col p { margin: 0 0 10px; font-size: 17px; color: var(--text-3); }
.mk-col p:last-child { margin-bottom: 0; }
.mk-col .mk-k { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.mk-mem { border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--surface); }
.mk-mem p { color: var(--text); }
.mk-mem .mk-k { color: var(--accent); }
.mk-vs { font: italic 400 56px/1 var(--serif); color: var(--text-3); }
@media (max-width: 760px) { .mk { grid-template-columns: 1fr; gap: 8px; } .mk-vs { text-align: center; font-size: 40px; } }

/* -- Claude layers -- */
.layers { display: grid; gap: 10px; }
.layer { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.layer p { margin: 0; color: var(--text-2); font-size: 15px; }
.ly-k { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ly-claude { border-color: color-mix(in srgb, #D97757 35%, var(--line)); background: color-mix(in srgb, #D97757 5%, var(--surface)); }
.ly-claude .ly-k { color: #D97757; }
.ly-mem { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.ly-mem .ly-k { color: var(--accent); }
.layer:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; background: var(--line-2); }
@media (max-width: 680px) { .layer { grid-template-columns: 1fr; gap: 8px; } }

/* -- status -- */
.status { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.st-list li:first-child { padding-top: 4px; }
.st-list .chip { min-width: 96px; }
@media (max-width: 860px) { .status { grid-template-columns: 1fr; gap: 24px; } .st-list li { align-items: flex-start; } }

/* ==========================================================
   Toasts (Sonner-style)
   ========================================================== */
.toaster { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font-size: 14px;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.35);
  opacity: 0; transform: translateY(100%);
  transition: opacity 400ms ease, transform 400ms ease;
}
.toast[data-mounted="true"] { opacity: 1; transform: none; }
.toast[data-removed="true"] { opacity: 0; transform: translateY(40%); transition-duration: 200ms; }
.toast svg { width: 16px; height: 16px; color: var(--kept); flex: none; }
.toast .t-action { margin-left: auto; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line-2); transition: transform 160ms var(--ease-out); }
.toast .t-action:active { transform: scale(0.97); }

/* ==========================================================
   Reduced motion: keep fades, drop movement
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .dot::after, .caret { animation: none; }
  .js .headline .w, .js .enter, .js .stage.enter { animation: fade 400ms ease both; animation-delay: 0ms; }
  @keyframes fade { from { opacity: 0; } }
  .tilt { animation: none !important; }
  .js .reveal { transform: none; transition: opacity 400ms ease; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track span:nth-child(n+13) { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .bar { transition: none; }
  .model-hl { transition: none; }
  .toast { transform: none; }
  .pulse, .rl-sync i, .dots i { animation: none; }
  .rl-link span, .conf-bar span, .tabs-clip { transition: none; }
  .js .rl-row .ev, .js .chain li, .conf-ev { transform: none !important; }
  #lc-events li, .record { animation: fade 200ms ease both; }
}
