/* AgentGuard showcase. Motion follows Emil Kowalski's rules: transform/opacity/clip-path only,
   strong custom curves, ease-out for enter/exit, transitions for anything replayable,
   hover gated to real pointers, and a gentler variant under prefers-reduced-motion. */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;

  /* light */
  --bg: #f1f2f9;
  --surface: #ffffff;
  --surface-2: #e8e9f3;
  --fg: #121212;
  --muted: #64698b;
  --line: rgba(18, 18, 18, 0.1);
  --accent: #7114ff;
  --accent-fg: #ffffff;
  --accent-soft: #f0e8ff;
  --ok: #1f7a32;
  --ok-soft: #e3f4e6;
  --warn: #a14a00;
  --warn-soft: #fdeedd;
  --bad: #c91b11;
  --bad-soft: #fde4e2;
  --shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 8px 24px rgba(18, 18, 18, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #181818;
    --surface-2: #222226;
    --fg: #f1f2f9;
    --muted: #a3a6c1;
    --line: rgba(241, 242, 249, 0.1);
    --accent: #9047ff;
    --accent-fg: #ffffff;
    --accent-soft: #2a1647;
    --ok: #5fd07a;
    --ok-soft: rgba(49, 159, 67, 0.16);
    --warn: #ffab5e;
    --warn-soft: rgba(249, 115, 22, 0.16);
    --bad: #ff6b61;
    --bad-soft: rgba(255, 59, 48, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #181818;
  --surface-2: #222226;
  --fg: #f1f2f9;
  --muted: #a3a6c1;
  --line: rgba(241, 242, 249, 0.1);
  --accent: #9047ff;
  --accent-fg: #ffffff;
  --accent-soft: #2a1647;
  --ok: #5fd07a;
  --ok-soft: rgba(49, 159, 67, 0.16);
  --warn: #ffab5e;
  --warn-soft: rgba(249, 115, 22, 0.16);
  --bad: #ff6b61;
  --bad-soft: rgba(255, 59, 48, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.label { text-transform: uppercase; color: var(--muted); }
.glyph { color: var(--accent); font-weight: 300; margin-right: 0.12em; }

.display {
  font-size: clamp(44px, 8.4vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 400;
}
.h1 { font-size: clamp(36px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.lede.narrow { max-width: 58ch; margin-top: 20px; }

/* -- loader: a first-visit moment, so it may delight; it never blocks for long ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
  background: var(--fg); color: var(--bg);
  transition: transform 700ms var(--ease-drawer);
}
.loader-label { text-transform: uppercase; opacity: 0.7; }
.loader-count { font-size: clamp(64px, 16vw, 220px); letter-spacing: -0.05em; line-height: 0.85; align-self: flex-end; font-variant-numeric: tabular-nums; }
.loader[data-done] { transform: translateY(-100%); }
html:not(.js) .loader { display: none; }

/* -- nav ---------------------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.brand sup { font-size: 9px; margin-left: 2px; color: var(--muted); }
.nav-links { display: flex; gap: 22px; margin: 0 auto; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 160ms ease; }
.nav-links a span { color: var(--accent); margin-right: 4px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* -- buttons: press feedback on everything pressable -------------------------------------------- */
.btn, .icon-btn, .tab, .copy, .row-btn {
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:active, .icon-btn:active, .tab:active, .copy:active { transform: scale(0.97); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--fg); }
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--fg)); }
  .btn-ghost:hover, .icon-btn:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
  .tab:hover { color: var(--fg); }
  .copy:hover { color: var(--fg); }
  .row-btn:hover { background: var(--surface-2); }
  .services li:hover .name { transform: translateX(8px); }
}

/* -- hero ---------------------------------------------------------------------------------------- */
.hero { padding: clamp(56px, 10vw, 140px) var(--gutter) 48px; }
.hero .display { margin: 22px 0 40px; max-width: 14ch; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hero-stats div { background: var(--bg); padding: 18px 20px; }
.hero-stats dt { color: var(--muted); text-transform: uppercase; }
.hero-stats dd { margin: 10px 0 0; font-size: 20px; color: var(--fg); letter-spacing: -0.01em; word-break: break-word; }

/* -- statements ---------------------------------------------------------------------------------- */
.statements {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.statement { background: var(--bg); padding: clamp(28px, 4vw, 56px) var(--gutter); }
.statement .h2 { margin-top: 18px; }

/* -- sections ------------------------------------------------------------------------------------ */
.section { padding: clamp(72px, 11vw, 160px) var(--gutter) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .h1 { margin-top: 18px; max-width: 18ch; }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
}
.stage h3 { font-size: 22px; letter-spacing: -0.02em; }
.stage .num { color: var(--accent); }
.stage .agent { color: var(--muted); }
.stage p:last-child { color: var(--muted); font-size: 15px; }

/* -- tabs (clip-path free: a plain state toggle, seen often) -------------------------------------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; }
.tab {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 10px 16px; border-radius: 999px; font: inherit; text-transform: uppercase;
}
.tab[aria-selected="true"] { background: var(--fg); color: var(--bg); }

/* -- demo ---------------------------------------------------------------------------------------- */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow);
}
.demo-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.demo-top .mono { margin-top: 6px; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0 18px; text-transform: uppercase; }
.flow li {
  position: relative; overflow: hidden;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted);
  transition: color 200ms ease;
}
/* progress fill: clip-path reveal, left to right */
.flow li::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 500ms var(--ease-in-out);
}
.flow li span { position: relative; }
.flow li[data-state="active"]::before, .flow li[data-state="done"]::before { clip-path: inset(0 0 0 0); }
.flow li[data-state="active"], .flow li[data-state="done"] { color: var(--accent-fg); }
.flow li[data-state="done"]::before { background: color-mix(in srgb, var(--accent) 70%, var(--fg)); }

.rows { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.row { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
/* entry: transition, not keyframes, because replay re-triggers it */
.js .row { opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.js .row[data-in] { opacity: 1; transform: none; }
.row-btn {
  width: 100%; display: grid; align-items: center; gap: 12px;
  grid-template-columns: 70px minmax(0, 1.4fr) 110px minmax(0, 1.2fr) 120px 22px;
  padding: 12px 14px; background: transparent; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.row-id { font-family: var(--mono); font-size: 13px; }
.row-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-by { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-chev { color: var(--muted); transition: transform 200ms var(--ease-out); justify-self: end; }
.row-btn[aria-expanded="true"] .row-chev { transform: rotate(90deg); }
.row-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px 14px; }
.row-detail[hidden] { display: none; }
.row-detail div { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.row-detail .mono { display: block; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; font-size: 11px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; text-transform: uppercase; white-space: nowrap; width: max-content;
  background: var(--surface-2); color: var(--fg);
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-accent { background: var(--accent-soft); color: var(--accent); }

.demo-foot { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.js .demo-foot { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.js .demo-foot[data-in] { opacity: 1; transform: none; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.tile { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.tile .mono { color: var(--muted); text-transform: uppercase; font-size: 11px; }
.tile b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.verdict { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }

/* -- numbers --------------------------------------------------------------------------------------- */
.grid-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-numbers li { background: var(--bg); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; min-height: 190px; justify-content: space-between; }
.grid-numbers .big { font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.05em; line-height: 0.9; }
.grid-numbers .mono { color: var(--muted); max-width: 30ch; }

/* -- GuardBench leaderboard ------------------------------------------------------------------------- */
.bench-board { margin-top: 12px; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
.board { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.board th { text-align: left; color: var(--muted); font-weight: 400; text-transform: uppercase; font-size: 11px; padding: 8px 10px; }
.board td { padding: 10px; border-top: 1px solid var(--line); }
.board td.num { text-align: right; font-variant-numeric: tabular-nums; }
.board .bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.bench-note { margin-top: 14px; }

/* -- controls list (the agency's numbered services list) ------------------------------------------ */
.services { border-top: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.services .num { color: var(--accent); }
.services .name { font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.1; transition: transform 240ms var(--ease-out); }
.services .desc { color: var(--muted); }

/* -- run it ------------------------------------------------------------------------------------------ */
.steps { display: flex; flex-direction: column; gap: 12px; }
.steps[hidden] { display: none; }
.step {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.step .num { color: var(--accent); padding-top: 4px; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 12px; }
.step p.muted { margin-top: 12px; font-size: 15px; }
.code { position: relative; background: #0d0d0f; color: #e6e7f2; border-radius: 12px; }
.code pre { margin: 0; padding: 18px 92px 18px 18px; overflow-x: auto; font: 13px/1.7 var(--mono); }
.copy {
  position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: #a3a6c1; border: 1px solid rgba(255, 255, 255, 0.12);
}
.copy span { display: inline-block; transition: opacity 200ms ease, filter 200ms ease; }
.copy[data-copied] { color: #5fd07a; }
.copy .swap { opacity: 0.4; filter: blur(2px); }

/* -- timeline ------------------------------------------------------------------------------------------ */
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline .t { color: var(--accent); padding-top: 6px; }
.timeline h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; }
.timeline p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.docs-links { margin-top: 24px; }
.docs-links a { color: var(--accent); }

/* -- use cases ------------------------------------------------------------------------------------------ */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.case h3 { font-size: 28px; letter-spacing: -0.03em; }
.case dl { margin: 6px 0 0; display: grid; gap: 10px; }
.case dt { color: var(--accent); text-transform: uppercase; font-size: 11px; }
.case dd { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.link { color: var(--accent); }

/* -- ROI calculator --------------------------------------------------------------------------------------- */
.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); }
.roi-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.roi-inputs label { display: flex; flex-direction: column; gap: 6px; }
.roi-inputs .label { font-size: 11px; }
.roi-inputs input {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); font: 500 20px/1 var(--font); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; width: 100%; min-width: 0;
  transition: border-color 160ms ease;
}
.roi-inputs input:focus { outline: none; border-color: var(--accent); }
.roi-fixed { grid-column: 1 / -1; background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; font-size: 14px; }
.roi-fixed .label { color: var(--accent); font-size: 11px; }
.roi-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.roi-out .tile b { font-size: clamp(24px, 2.6vw, 34px); font-variant-numeric: tabular-nums; }
.tile-accent { grid-column: 1 / -1; background: var(--fg); color: var(--bg); }
.tile-accent .mono { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.tile-accent b { font-size: clamp(36px, 4.4vw, 60px) !important; letter-spacing: -0.04em; }
.roi-note { grid-column: 1 / -1; margin-top: 6px; line-height: 1.6; }

/* -- trust ------------------------------------------------------------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.trust-grid .h3 { margin-bottom: 18px; }
.chain { display: grid; gap: 0; margin-bottom: 16px; }
.chain li {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 2px 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.chain li + li { margin-top: 18px; }
.chain li + li::before { content: ""; position: absolute; left: 50%; top: -19px; height: 18px; border-left: 1px dashed var(--accent); }
.chain li > :not(.label) { grid-column: 2; }
.chain .label { grid-row: span 3; color: var(--accent); }
.chain .hash { color: var(--accent); }
.oversight { display: grid; gap: 10px; }
.oversight li { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); line-height: 1.5; }
.trust-note { margin-top: 16px; font-size: 15px; }
.frameworks { font-family: var(--font); font-size: 15px; }
.frameworks td:first-child { width: 52%; }
.frameworks td.mono { color: var(--muted); font-size: 12px; }

/* -- integrations ------------------------------------------------------------------------------------------- */
.int-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.int { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.int h3 { font-size: 22px; letter-spacing: -0.02em; }
.int p.muted { font-size: 15px; }
.int .code { margin-top: auto; }
.int pre { font-size: 12.5px; }

/* -- closing / footer ---------------------------------------------------------------------------------- */
.closing { padding: clamp(96px, 14vw, 200px) var(--gutter); }
.closing .display { margin: 22px 0 40px; max-width: 13ch; }
.footer {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); text-transform: uppercase;
}
.footer a { text-decoration: none; }

/* -- scroll reveals: marketing surface, fire once ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal[data-visible] { opacity: 1; transform: none; }
/* cells drawn on a hairline grid stay opaque; their contents reveal instead */
.js .statement.reveal, .js .grid-numbers li.reveal { opacity: 1; transform: none; }
.js .statement.reveal > *, .js .grid-numbers li.reveal > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: inherit;
}
.js .statement.reveal[data-visible] > *, .js .grid-numbers li.reveal[data-visible] > * { opacity: 1; transform: none; }
.js .h1.reveal, .js .display.reveal {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-in-out);
}
.js .h1.reveal[data-visible], .js .display.reveal[data-visible] { clip-path: inset(0 0 -10% 0); }
/* the hero headline: word by word */
.js .reveal-words .w { display: inline-block; opacity: 0; transform: translateY(0.35em); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.js .reveal-words[data-visible] .w { opacity: 1; transform: none; }

/* -- responsive ---------------------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .nav-links { gap: 16px; }
  .nav-links a span { display: none; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 1000px) {
  .roi, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .row-btn { grid-template-columns: 64px minmax(0, 1fr) 100px 120px 22px; }
  .row-by { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav .btn { height: 40px; padding: 0 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .statements { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .grid-numbers { grid-template-columns: 1fr 1fr; }
  .grid-numbers li { min-height: 150px; }
  .services li { grid-template-columns: 44px minmax(0, 1fr); }
  .services .desc { grid-column: 2; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .row-btn { grid-template-columns: 56px minmax(0, 1fr) auto 18px; row-gap: 6px; }
  .row-btn .row-status { grid-column: 2 / 4; }
  .row-detail { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .int-grid { grid-template-columns: minmax(0, 1fr); }
  .roi-inputs { grid-template-columns: minmax(0, 1fr); }
  .frameworks td:first-child { width: auto; }
  .step, .timeline li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .verdict { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .grid-numbers { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* -- reduced motion: fewer and gentler, not zero. Keep fades, drop movement ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .row, .js .demo-foot, .js .reveal-words .w,
  .js .statement.reveal > *, .js .grid-numbers li.reveal > * { transform: none; transition: opacity 200ms ease; }
  .js .h1.reveal, .js .display.reveal { clip-path: none; opacity: 0; transition: opacity 200ms ease; }
  .js .h1.reveal[data-visible], .js .display.reveal[data-visible] { opacity: 1; }
  .loader { transition: opacity 200ms ease; }
  .loader[data-done] { transform: none; opacity: 0; }
  .flow li::before { transition: opacity 200ms ease; clip-path: none; opacity: 0; }
  .flow li[data-state="active"]::before, .flow li[data-state="done"]::before { opacity: 1; }
  .services li .name, .row-chev { transition: none; }
}
