/* MettleNest — site styles v2. Tokens from the MettleNest Brand system (dark theme). */
:root {
  --ground: #0D1117;
  --surface: #161B22;
  --line: #2B3440;
  --ink: #F0F3F6;
  --ink-muted: #9BA7B4;
  --amber: #FF7A1A;
  --amber-strong: #FF9447;
  --on-amber: #0D1117;
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 40px; --space-6: 64px; --space-7: 112px;
  --radius-sm: 6px; --radius-md: 12px;
  --max: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-strong); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: var(--space-7); }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber);
}
.lead { font-size: 19px; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-5); }
.head-block { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; margin-bottom: var(--space-6); }
.note { font-size: 14px; color: var(--ink-muted); }

/* Page transition veil */
.veil { position: fixed; inset: 0; background: var(--ground); z-index: 100; pointer-events: none; opacity: 0; transition: opacity .32s ease; }
.js.leaving .veil { opacity: 1; }
.js.entering .veil { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .veil { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(13, 17, 23, 0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); padding-bottom: 4px; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line); padding: var(--space-2) 24px var(--space-4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--amber); }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 140px 120px; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ground) 0%, rgba(13,17,23,.85) 40%, rgba(13,17,23,.15) 100%);
}
.hero .wrap { position: relative; z-index: 1; pointer-events: none; }
.hero .wrap a, .hero .wrap button, .hero .wrap .stat { pointer-events: auto; }
.hero-inner { display: flex; flex-direction: column; gap: var(--space-4); max-width: 760px; }
.hero h1 .accent { color: var(--amber); }
.hero-sm { padding-block: 120px 96px; }

/* Hero entrance */
.js .hero-inner > *, .js .hero .stats { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
.js .hero-inner > :nth-child(2) { animation-delay: .08s; }
.js .hero-inner > :nth-child(3) { animation-delay: .16s; }
.js .hero-inner > :nth-child(4) { animation-delay: .24s; }
.js .hero .stats { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; position: relative;
  transition: background .2s, color .2s, box-shadow .2s, border-color .2s, transform .35s var(--ease);
  will-change: transform;
}
.btn > span { display: inline-block; transition: transform .35s var(--ease); }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-strong); color: var(--on-amber); box-shadow: 0 0 28px rgba(255,122,26,.35); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); max-width: 820px; }
.stat { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: var(--space-3); position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--amber); transition: width 1.4s var(--ease); }
.stat.done::before { width: 100%; }
.stat-num { font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 52px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.stat-num .sup { color: var(--amber); }
.stat-label { font-size: 14px; color: var(--ink-muted); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* Scroll-driven timeline */
.story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.story-pin { position: sticky; top: 112px; display: flex; flex-direction: column; gap: var(--space-2); }
.story-pin .yr { font-family: var(--font-display); font-weight: 700; font-size: clamp(52px, 6vw, 84px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.story-pin .yr .digit { display: inline-block; }
.story-pin .mo { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); min-height: 1.4em; }
.story-pin .pin-line { width: 48px; height: 2px; background: var(--line); position: relative; overflow: hidden; margin-top: var(--space-2); }
.story-pin .pin-line::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(var(--p, 0)); transform-origin: left; }
.story-pin .pin-name { font-size: 14px; color: var(--ink-muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline .t-fill { position: absolute; left: 5px; top: 8px; width: 2px; height: 0; background: var(--amber); border-radius: 2px; box-shadow: 0 0 12px rgba(255,122,26,.6); }
.t-item { display: grid; grid-template-columns: 1fr; padding: 0 0 var(--space-6) var(--space-5); position: relative; }
.t-item:last-child { padding-bottom: 0; }
.t-date {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); font-variant-numeric: tabular-nums; margin-bottom: var(--space-2); transition: color .4s;
}
.t-body { display: flex; flex-direction: column; gap: var(--space-2); max-width: 640px; }
.t-item::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ground); border: 2px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s;
}
.t-item h3, .t-item p { transition: color .4s, opacity .4s; }
.js .t-item h3 { color: var(--ink-muted); }
.js .t-item p { opacity: .55; }
.t-item.lit::before { border-color: var(--amber); background: var(--ground); }
.t-item.key.lit::before { background: var(--amber); box-shadow: 0 0 0 6px rgba(255,122,26,.15); }
.t-item.lit .t-date { color: var(--amber); }
.js .t-item.lit h3 { color: var(--ink); }
.js .t-item.lit p { opacity: 1; }
.t-body p { color: var(--ink-muted); }
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; gap: var(--space-4); }
  .story-pin { position: sticky; top: 72px; z-index: 5; background: rgba(13,17,23,.92); backdrop-filter: blur(8px); flex-direction: row; align-items: baseline; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line); margin-left: -24px; margin-right: -24px; padding-inline: 24px; }
  .story-pin .yr { font-size: 34px; }
  .story-pin .pin-line, .story-pin .pin-name { display: none; }
}

/* Ad block */
.ad {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); padding: clamp(32px, 6vw, 80px);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.ad::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,26,.22), rgba(255,122,26,0) 70%); pointer-events: none;
}
.ad h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 18ch; position: relative; }
.ad .ad-body { font-size: clamp(18px, 2vw, 22px); color: var(--ink-muted); max-width: 44ch; position: relative; }
.ad .ad-close { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--amber); position: relative; }
.ad .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); margin-left: 4px; }

/* Cards + cursor glow */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3); transition: border-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,122,26,.14), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(255,122,26,.55); box-shadow: 0 0 0 1px rgba(255,122,26,.15), 0 12px 40px rgba(0,0,0,.25); transform: translateY(-2px); }
.card > * { position: relative; }
.card p { color: var(--ink-muted); font-size: 16px; }
.card .num { font-family: var(--font-display); font-weight: 700; color: var(--amber); font-size: 14px; letter-spacing: .08em; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-muted); font-size: 16px; display: flex; flex-direction: column; gap: 4px; }
.card .meta { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Status line */
.status {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4);
}
.status .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; box-shadow: 0 0 0 0 rgba(255,122,26,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,26,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,122,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,26,0); } }
.status p { color: var(--ink); }

/* ===== AI advisor demo ===== */
.demo { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: 14px var(--space-4); border-bottom: 1px solid var(--line); }
.demo-bar .tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(255,122,26,.45); border-radius: 999px; padding: 4px 10px; }
.demo-bar .tag-muted { color: var(--ink-muted); border-color: var(--line); }
.demo-body { padding: var(--space-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.demo-q { display: flex; flex-direction: column; gap: var(--space-2); }
.demo .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-muted); background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.chip[aria-pressed="true"] { color: var(--on-amber); background: var(--amber); border-color: var(--amber); }
.demo-flow { display: grid; grid-template-columns: minmax(0, 5fr) 150px minmax(0, 7fr); grid-template-rows: auto 1fr; gap: var(--space-3); align-items: start; }
.col-head { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); min-height: 52px; }
.col-head .ch-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--on-amber); font-family: var(--font-display); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.col-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.25; }
.col-head span:not(.ch-n) { font-size: 12.5px; color: var(--ink-muted); }
.col-head.mid-head { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.col-head.mid-head b { font-size: 13px; } .col-head.mid-head span:not(.ch-n) { font-size: 11px; }
.src .models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.src .models i { display: block; height: 18px; border-radius: 3px; border: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 3px, var(--line) 3px 4px); background-size: 200% 100%; opacity: .6; }
.src.on .models i { border-color: rgba(255,122,26,.6); animation: modelrun 1.4s linear infinite; }
.src.on .models i:nth-child(2) { animation-delay: .2s } .src.on .models i:nth-child(3) { animation-delay: .4s } .src.on .models i:nth-child(4) { animation-delay: .6s }
@keyframes modelrun { to { background-position: -40px 0; } }
.src .cond { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.src .cond span { font-size: 12px; color: var(--ink-muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; transition: color .3s, border-color .3s; }
.src.on .cond span { color: var(--ink); border-color: rgba(255,122,26,.5); }
.src .dots[data-kind="bad"] i.on { background: var(--ink-muted); }
.demo-in { display: flex; flex-direction: column; gap: var(--space-2); }
.src { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; background: var(--ground); position: relative; overflow: hidden; }
.src::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--amber); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.src.on::after { transform: scaleY(1); }
.src > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.src .num { font-family: var(--font-display); font-weight: 700; color: var(--amber); font-size: 13px; letter-spacing: .08em; padding-top: 3px; }
.src h4 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.src p { font-size: 14px; color: var(--ink-muted); }
.src .bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.src .bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 1.2s var(--ease); }
.src.on .bar i { width: var(--w, 70%); }
.src .ticks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-muted); }
.src .ticks li { display: flex; align-items: center; gap: 8px; opacity: .45; transition: opacity .4s, color .4s; }
.src .ticks li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; transition: background .3s, border-color .3s; }
.src .ticks li.done { opacity: 1; color: var(--ink); }
.src .ticks li.done::before { background: var(--amber); border-color: var(--amber); }
.src .dots { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 8px; }
.src .dots i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--line); transform: scale(.4); transition: background .3s, transform .3s var(--ease); }
.src .dots i.on { background: var(--amber); transform: scale(1); }
.src .dots-lbl { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.demo-link { position: relative; align-self: stretch; min-height: 300px; }
.demo-link .hub { position: absolute; left: 50%; top: var(--hy, 50%); width: 44px; height: 44px; transform: translate(-50%, -50%); }
.demo-link .hub .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255,122,26,.7); animation: spin 6s linear infinite; }
.demo-link .hub .ring.r2 { inset: 8px; border-style: solid; border-color: var(--line); animation: spin 4s linear infinite reverse; }
.demo-link .hub .core { position: absolute; inset: 15px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px rgba(255,122,26,.7); animation: pulse 2s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-link path.flow { animation: dash 1.2s linear infinite; opacity: .55; }
.demo.running .demo-link path.flow { opacity: 1; animation-duration: .6s; }
.demo-link circle.pk { fill: var(--amber); }
.demo-link svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; }
.demo-link path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.demo-link path.flow { stroke: var(--amber); stroke-dasharray: 4 12; stroke-width: 1.2; stroke-dashoffset: 0; transition: opacity .4s; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.demo-out { border: 1px solid rgba(255,122,26,.6); border-radius: var(--radius-md); background: var(--ground); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); position: relative; overflow: hidden; }
.demo-out::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.18), transparent 70%); pointer-events: none; }
.demo-out > * { position: relative; }
.demo-out .out-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.demo-out h3 { font-size: 20px; }
.demo-out .q { font-size: 15px; color: var(--ink-muted); }
.working { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-variant-numeric: tabular-nums; min-height: 120px; }
.working li { display: grid; grid-template-columns: 18px 1fr; gap: 4px 10px; align-items: center; color: var(--ink-muted); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease), color .3s; }
.working li.show { opacity: 1; transform: none; }
.working li.done { color: var(--ink); }
.working .tick { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; }
.working li.done .tick { border-color: var(--amber); background: var(--amber); }
.working li.active .tick { border-color: var(--amber); animation: pulse 1.2s infinite; }
.working .val { grid-column: 2; font-size: 13px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.working .val b { font-weight: 500; color: var(--ink-muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.working li.done .val b { color: var(--amber); border-color: rgba(255,122,26,.4); }
.working .math { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink-muted); }
.verdict { border-top: 1px solid var(--line); padding-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.verdict.show { opacity: 1; transform: none; }
.verdict .v-row { display: flex; align-items: center; gap: 12px; }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); transition: background .4s, border-color .4s, box-shadow .4s; }
.lights[data-on="0"] i:nth-child(1), .lights[data-on="1"] i:nth-child(2), .lights[data-on="2"] i:nth-child(3) { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 12px rgba(255,122,26,.6); }
.verdict .rec { color: var(--ink); font-size: 16px; line-height: 1.55; }
.verdict .rec .slot { color: var(--amber); font-variant-numeric: tabular-nums; }
.chart-wrap { display: flex; flex-direction: column; gap: 8px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend { display: inline-flex; gap: 14px; font-size: 12px; color: var(--ink-muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 18px; border-top: 2px solid var(--amber); }
.lg.b::before { border-top-style: dashed; border-color: var(--ink-muted); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--ink-muted); font-size: 10px; font-family: var(--font-body); }
.chart .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.chart .ln.a { stroke: var(--amber); }
.chart .ln.b { stroke: var(--ink-muted); stroke-dasharray: 1; }
.chart .ln.b.dash { stroke-dasharray: 0.02 0.015; }
.chart.drawn .ln { stroke-dashoffset: 0; }
.chart .end { font-size: 10.5px; font-family: var(--font-body); font-weight: 600; fill: var(--ink); opacity: 0; transition: opacity .4s 1.4s; }
.chart.drawn .end { opacity: 1; }
.chart .cross { stroke: var(--ink-muted); stroke-dasharray: 2 3; opacity: 0; }
.chart .dot { r: 4; stroke: var(--ground); stroke-width: 2; opacity: 0; }
.chart .dot.a { fill: var(--amber); } .chart .dot.b { fill: var(--ink-muted); }
.chart.hover .cross, .chart.hover .dot { opacity: 1; }
.chart-tip { position: absolute; pointer-events: none; font-size: 12px; color: var(--ink-muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.chart-tip.on { opacity: 1; }
.chart-tip b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.compare { display: flex; flex-direction: column; gap: 8px; }
.dist { position: relative; height: 26px; border-radius: 4px; background: linear-gradient(90deg, rgba(155,167,180,.08), rgba(155,167,180,.3) 45%, rgba(155,167,180,.08)); overflow: visible; }
.dist .marker { position: absolute; top: -4px; bottom: -4px; width: 3px; left: var(--x, 50%); background: var(--amber); border-radius: 2px; box-shadow: 0 0 10px rgba(255,122,26,.7); transition: left 1.2s var(--ease); }
.dist .marker::after { content: "you"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--amber); font-weight: 600; }
.dist-note { font-size: 12px; color: var(--ink-muted); }
.demo-foot { padding: 12px var(--space-4); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
@media (max-width: 900px) {
  .demo-flow { grid-template-columns: 1fr; grid-template-rows: none; }
  .col-head.mid-head { display: none; }
  .col-head.out-head-lbl { margin-top: 8px; }
  .demo-link { min-height: 72px; height: 72px; }
  .demo-link svg { display: none; }
  .demo-link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--amber); opacity: .6; }
  .demo-link .hub { top: 50%; }
}

/* ===== Inventory-by-weight system ===== */
.inv { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.inv-head { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; align-items: baseline; padding: 14px var(--space-4); border-bottom: 1px solid var(--line); }
.inv-head .meta { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
.inv-head .live { font-size: 13px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 8px; }
.inv-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2.4s infinite; }
.inv .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
.inv-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 4fr); gap: var(--space-4); padding: var(--space-4); }
.rack { display: flex; flex-direction: column; gap: 10px; }
.rack svg { display: block; width: 100%; height: auto; overflow: visible; }
.rack text { font-family: var(--font-body); }
.rack .lbl { fill: var(--ink-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.rack .plate { fill: var(--line); }
.rack .sensor { fill: var(--ink-muted); opacity: .5; transition: fill .3s, opacity .3s; animation: poll 2.7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .3s); }
@keyframes poll { 0%, 70%, 100% { opacity: .45; } 78% { opacity: 1; fill: var(--ink); } }
.bus { position: relative; margin-top: 6px; }
.bus svg { display: block; width: 100%; height: 34px; }
.bus .bus-line { stroke: var(--line); stroke-width: 2; fill: none; }
.bus .bus-run { stroke: var(--amber); stroke-width: 2; fill: none; stroke-dasharray: 3 14; animation: dash 1.1s linear infinite; opacity: .8; }
.bus .bus-lbl { position: absolute; right: 0; top: 22px; font-size: 11px; color: var(--ink-muted); letter-spacing: .04em; }
.model, .ops { position: relative; }
.model .pipe, .ops .pipe { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--amber) 0 4px, transparent 4px 16px); opacity: .6; animation: pipeflow 1.1s linear infinite; }
@keyframes pipeflow { to { background-position: 0 16px; } }
.live-dot { font-style: normal; font-size: 10px; letter-spacing: .1em; color: var(--amber); margin-left: 6px; display: inline-flex; align-items: center; gap: 4px; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s infinite; }
.trace { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }
.rack .rd { fill: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; transition: fill .3s; }
.rack .bin { transition: opacity .4s; }
.js .rack .bin { opacity: clamp(0, calc(var(--sp, 0) * 11 - var(--i, 0)), 1); }
.rack .bin.hot .sensor { fill: var(--amber); opacity: 1; filter: drop-shadow(0 0 4px rgba(255,122,26,.9)); }
.rack .bin.hot .rd { fill: var(--amber); }
.rack .bin.hot .plate { fill: rgba(255,122,26,.6); }
.rack .item { fill: var(--surface); stroke: var(--ink-muted); stroke-width: 1.2; transition: transform .5s var(--ease), opacity .5s; }
.rack .item.gone { transform: translateY(-26px); opacity: 0; }
.rack .item.new { stroke: var(--amber); }
.rack-cap { font-size: 13px; color: var(--ink-muted); }
.rack-cap b { color: var(--ink); font-weight: 600; }
.model, .ops { display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); padding-left: var(--space-4); min-width: 0; }
.delta { display: flex; flex-direction: column; gap: 2px; }
.delta .d-shelf { font-size: 13px; color: var(--ink-muted); }
.delta .d-val { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .3s; }
.delta.neg .d-val, .delta.pos .d-val { color: var(--amber); }
.cands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.cands li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; color: var(--ink-muted); }
.cands li .pct { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.cands li .cb { grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cands li .cb i { display: block; height: 100%; width: 0; background: var(--ink-muted); transition: width .9s var(--ease); }
.cands li.top { color: var(--ink); }
.cands li.top .pct { color: var(--amber); }
.cands li.top .cb i { background: var(--amber); }
.decision { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; color: var(--ink); min-height: 40px; display: flex; align-items: center; transition: border-color .3s; }
.decision.ok { border-color: rgba(255,122,26,.6); }
.decision.flag { border-color: var(--ink-muted); border-style: dashed; }
.stock { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.stock li { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-muted); padding: 3px 0; border-bottom: 1px solid var(--line); }
.stock li b { color: var(--ink); font-weight: 600; transition: color .3s; }
.stock li.low b, .stock li.bump b { color: var(--amber); }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; min-height: 66px; }
.log li { opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li.in { opacity: 1; transform: none; }
.log li:first-child { color: var(--ink); }
.alerts { display: flex; flex-direction: column; gap: 6px; min-height: 34px; }
.alert { font-size: 12.5px; padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink); display: flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); }
.alert.in { opacity: 1; transform: none; }
.alert::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.alert.flag { border-style: dashed; }
.alert.flag::before { background: var(--ink-muted); }
.inv-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }
.inv-legend b { display: block; color: var(--ink); font-weight: 600; font-family: var(--font-display); font-size: 14px; }
.inv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) { .inv-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .inv-grid { grid-template-columns: 1fr; }
  .model, .ops { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-3); }
  .model .pipe, .ops .pipe { left: 0; right: 0; top: -1px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 4px, transparent 4px 16px); animation: pipeflowx 1.1s linear infinite; }
  @keyframes pipeflowx { to { background-position: 16px 0; } }
}

/* Flow diagram (AI page fallback list) */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 40px minmax(0, 1.2fr); gap: var(--space-3); align-items: stretch; }
.flow .arrow { display: flex; align-items: center; justify-content: center; color: var(--amber); font-size: 24px; }
.flow .out { border-color: rgba(255,122,26,.6); }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); height: 32px; } }

/* Chapters (About) */
.chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.chapter { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-5); border-top: 1px solid var(--line); position: relative; }
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--amber); transition: width 1.2s var(--ease) .2s; }
.chapter.in::before, .chapter:not(.pending)::before { width: 150px; }
.ch-side { display: flex; flex-direction: column; gap: 6px; }
.ch-num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--amber); letter-spacing: -0.02em; }
.ch-date { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.ch-main { display: flex; flex-direction: column; gap: var(--space-3); max-width: 780px; }
.ch-main h3 { font-size: 24px; }
.ch-main > p { color: var(--ink-muted); }
.ch-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-2); }
.ch-cols .lbl { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); margin-bottom: 6px; }
.ch-cols p { font-size: 16px; color: var(--ink-muted); }
.ch-cols .learn { border-left: 2px solid var(--amber); padding-left: var(--space-3); }
.ch-cols .learn .lbl { color: var(--amber); }
.ch-cols .learn p { color: var(--ink); }
@media (max-width: 720px) {
  .chapter { grid-template-columns: 1fr; gap: var(--space-3); }
  .ch-side { flex-direction: row; align-items: baseline; gap: 12px; }
  .ch-num { font-size: 34px; }
  .ch-cols { grid-template-columns: 1fr; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }
.person { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--ink); margin-bottom: var(--space-2);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.person:hover .avatar { border-color: var(--amber); box-shadow: 0 0 24px rgba(255,122,26,.25); transform: translateY(-3px); }
.avatar.founder { border: 2px solid var(--amber); }
.avatar.founder::after { content: ""; position: absolute; right: 4px; bottom: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.person .role { color: var(--ink-muted); font-size: 15px; }

/* Founder */
.founder { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-6); align-items: center; max-width: 900px; }
.founder-photo { width: 240px; height: 240px; border-radius: 50%; padding: 4px; border: 2px solid var(--amber); box-shadow: 0 0 40px rgba(255,122,26,.18); position: relative; }
.founder-photo::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); border: 3px solid var(--ground); }
.founder-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; filter: saturate(.9); }
.founder-body { display: flex; flex-direction: column; gap: var(--space-2); }
.founder-body h3 { font-size: 28px; }
.founder-body .role { color: var(--amber); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.founder-body p { color: var(--ink); font-size: 17px; max-width: 58ch; margin-top: var(--space-2); }
.founder-body p + p { margin-top: 0; }
.founder-body p.muted { color: var(--ink-muted); margin-top: 0; }
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; gap: var(--space-4); } .founder-photo { width: 160px; height: 160px; } }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) 0; display: flex; justify-content: space-between; gap: var(--space-4);
  font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); transition: color .2s;
}
.faq summary:hover { color: var(--amber-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 24px; line-height: 1; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: var(--space-4); color: var(--ink-muted); max-width: 68ch; display: flex; flex-direction: column; gap: var(--space-3); }

/* Client line */
.client-line { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); max-width: 30ch; }
.client-line span { color: var(--amber); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-6) var(--space-5); }
.footer-grid { display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; align-items: flex-start; }
.footer-grid img { height: 20px; width: auto; }
.footer-links { display: flex; gap: var(--space-4); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-muted); font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: var(--space-5); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); }
.footer-bottom .email, .email { color: var(--ink); user-select: all; }

/* Reveal: content is visible by default; JS only hides what is below the fold, then reveals it. */
.js .reveal.pending { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal.pending { opacity: 1 !important; transform: none !important; transition: none; }
  .js .hero-inner > *, .js .hero .stats { animation: none; opacity: 1; transform: none; }
  .status .pulse, .inv-head .live::before, .working li.active .tick { animation: none; }
  .demo.running .demo-link path.flow, .inv .belt-run { animation: none; }
  .js .t-item h3 { color: var(--ink); } .js .t-item p { opacity: 1; }
  .t-item::before { border-color: var(--ink-muted); } .t-item.key::before { background: var(--amber); border-color: var(--amber); }
  .timeline .t-fill { display: none; }
  .stat::before { width: 100%; }
  .card:hover, .person:hover .avatar { transform: none; }
  .btn { transform: none !important; } .btn > span { transform: none !important; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ===================== Showcase scroll layer ===================== */
/* --sy = window.scrollY (px); --sp = element progress 0..1 set by JS on [data-scrub] */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; pointer-events: none; background: transparent; }
.progress i { display: block; height: 100%; width: 100%; background: var(--amber); transform: scaleX(var(--p, 0)); transform-origin: left; box-shadow: 0 0 12px rgba(255,122,26,.7); }

.bg-grid {
  position: fixed; inset: -20% 0; z-index: -1; pointer-events: none; opacity: .32;
  background-image: radial-gradient(rgba(155,167,180,.16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  transform: translate3d(0, calc(var(--sy, 0) * -0.06px), 0);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}
body { position: relative; }

/* Hero parallax + fade-out */
.js .hero canvas { transform: translate3d(0, calc(var(--sy, 0) * 0.28px), 0); }
.js .hero .hero-inner, .js .hero .stats { will-change: transform, opacity; }
.js .hero.scrubbed .hero-inner { transform: translate3d(0, calc(var(--sy, 0) * 0.16px), 0); opacity: calc(1 - var(--sy, 0) / 720); }
.js .hero.scrubbed .stats { transform: translate3d(0, calc(var(--sy, 0) * 0.08px), 0); opacity: calc(1 - var(--sy, 0) / 900); }

/* Split-word headline reveal */
.sw .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.sw .w i { display: inline-block; font-style: normal; transform: translateY(112%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.sw.in .w i { transform: none; }

/* Stagger children entrances */
.js .st > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .st.in > * { opacity: 1; transform: none; }
.js .st > .card:hover { transition-delay: 0s; }

/* Ticker (scroll-scrubbed) */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; display: flex; flex-direction: column; gap: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker .row { display: flex; white-space: nowrap; gap: 0; will-change: transform; }
.ticker .row span { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3.2vw, 40px); letter-spacing: -0.01em; color: var(--ink-muted); padding-inline: 18px; display: inline-flex; align-items: center; gap: 18px; }
.ticker .row span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.ticker .row.b span { color: var(--ink); opacity: .35; }
.ticker .row.a { transform: translate3d(calc(-6% - var(--sp, 0) * 18%), 0, 0); }
.ticker .row.b { transform: translate3d(calc(-24% + var(--sp, 0) * 18%), 0, 0); }

/* Line that draws under section eyebrows */
.head-block { position: relative; }
.head-block::after { content: ""; position: absolute; left: 0; bottom: -28px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--amber), transparent 70%); transform: scaleX(var(--sp, 0)); transform-origin: left; opacity: .7; }

/* Ad block glow follows scroll */
.ad::before { transform: translate3d(calc(var(--sp, 0) * -140px), calc(var(--sp, 0) * 160px), 0); }
.ad .ad-close { transition: letter-spacing .8s var(--ease); }

/* Demo: connector paths draw on scroll (pathLength=1 set in JS) */
.demo-link path.base { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sp, 0)); }

/* Inventory diagram wipes in */
.js .inv-scroll { clip-path: inset(0 calc((1 - var(--sp, 0)) * 100%) 0 0); }
.js .inv-legend > div { opacity: calc(var(--sp, 0) * 1.4 - 0.2); transform: translateY(calc((1 - var(--sp, 0)) * 12px)); }

/* 3D tilt */
.card, .demo-out, .person .avatar { transform-style: preserve-3d; }
.js .tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .35s var(--ease), border-color .25s, box-shadow .25s; }

/* Team avatars + FAQ rows enter with stagger too */
.team, .faq { }

/* Section counter chip */
.sec-no { position: absolute; right: 24px; top: 40px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--ink-muted); opacity: .55; font-variant-numeric: tabular-nums; }
.section { position: relative; }
.sec-no b { color: var(--amber); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .progress, .bg-grid { display: none; }
  .js .hero canvas, .js .hero.scrubbed .hero-inner, .js .hero.scrubbed .stats { transform: none; opacity: 1; }
  .sw .w i, .js .st > * { transform: none; opacity: 1; transition: none; }
  .ticker .row.a, .ticker .row.b { transform: none; }
  .head-block::after { transform: scaleX(1); }
  .ad::before { transform: none; }
  .demo-link path.base { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .inv-scroll { clip-path: none; } .js .inv-legend > div { opacity: 1; transform: none; }
  .js .tilt { transform: none; }
  .rack .sensor, .bus .bus-run, .model .pipe, .ops .pipe, .demo-link .hub .ring, .demo-link .hub .core, .demo-link path.flow, .src.on .models i, .live-dot::before { animation: none; }
}
