/* Biddle Systems cinematic preview.
   Tokens follow the Apple-derived design rules (type scale, 8pt grid, one accent, short ease-out motion). */

/* Self-hosted fonts (latin subset, variable weight) so no visitor data goes to Google Fonts. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: clamp(36px, 5vw, 48px);
  --text-4xl: clamp(44px, 8vw, 88px);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --bg: #07090f;
  --bg-2: #0c1018;
  --bg-3: #121827;
  --ink: #f2f5fb;
  --ink-2: #a3adc2;
  --ink-3: #8b95ab;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --accent: #5b8cff;
  --accent-ink: #06080e;
  --good: #29d0b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.28);

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  --container: 1120px;
  --measure: 62ch;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* ---------- type ---------- */

.display {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12ch;
}

.h-display {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.h-display .muted { color: var(--ink-2); }

h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  margin-top: var(--space-5);
  max-width: 48ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-2);
}

.lede-sm {
  margin-top: var(--space-4);
  max-width: var(--measure);
  font-size: var(--text-base);
  color: var(--ink-2);
}

.caption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-3);
  text-align: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgb(var(--a-rgb) / 0.28);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--hairline-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, 0.04); }

.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-block { width: 100%; }

/* ---------- nav ---------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.nav.solid {
  background: rgba(7, 9, 15, 0.8);
  border-bottom-color: var(--hairline);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}
.mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}
.chip {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav-links { display: flex; gap: var(--space-2); }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }

/* ---------- reveal (IntersectionObserver adds .in) ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .rv.in { opacity: 1; transform: none; }

/* word-by-word headline ("text generate" effect) */
.js [data-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  filter: blur(8px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.js [data-words].in .w { opacity: 1; transform: none; filter: blur(0); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + var(--space-9)) 0 var(--space-9);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.6;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.5;
}
.orb-a { width: min(640px, 100vw); height: min(640px, 100vw); top: -240px; left: -160px; background: radial-gradient(circle, rgb(var(--a-rgb) / 0.5), transparent 65%); }
.orb-b { width: min(560px, 100vw); height: min(560px, 100vw); bottom: -240px; right: -120px; background: radial-gradient(circle, rgb(var(--g-rgb) / 0.3), transparent 65%); }

/* spotlight follows the cursor (set by script as --mx / --my) */
.spot {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgb(var(--a-rgb) / 0.16), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.hero:hover .spot { opacity: 1; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-8);
  align-items: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
}
.stats li { display: flex; flex-direction: column; gap: var(--space-1); }
.stats strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats li > span { font-size: var(--text-base); line-height: 1.4; color: var(--ink-3); max-width: 24ch; }

/* hero panel */
.hero-visual { perspective: 1200px; }
.tilt { transform-style: preserve-3d; transition: transform var(--dur-fast) var(--ease); will-change: transform; }
.panel {
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
.panel-sub { margin-left: auto; font-weight: 400; color: var(--ink-3); white-space: normal; text-align: right; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.runlist { padding: var(--space-2) var(--space-5); }
.runlist li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-base);
  line-height: 1.4;
}
.runlist li:last-child { border-bottom: 0; }
.runlist em { font-style: normal; font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--good); font-weight: 600; white-space: nowrap; }
.tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgb(var(--g-rgb) / 0.16);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 6px; top: 3px;
  width: 5px; height: 9px;
  border: solid var(--good);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-4) var(--space-5);
  background: rgb(var(--a-rgb) / 0.08);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.panel-foot strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
}
.cue-line { width: 1px; height: 32px; background: linear-gradient(var(--ink-3), transparent); }

/* ---------- sections ---------- */

.section { padding: var(--space-10) 0; }
.section-head { margin-bottom: var(--space-8); }

/* ---------- before / after pinned stage ---------- */

.shift { position: relative; height: 320vh; }
.shift-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgb(var(--a-rgb) / 0.12), transparent 70%),
    var(--bg);
}
.shift-head { margin-bottom: var(--space-6); }

.scene {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.card {
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
/* Scene tilt-in: cards start leaned back and far, settle flat by p = 0.2 */
.card.before {
  transform:
    rotateX(calc(16deg * (1 - min(1, var(--p) * 5))))
    translateZ(calc(-120px * (1 - min(1, var(--p) * 5))));
  opacity: calc(0.4 + 0.6 * min(1, var(--p) * 5));
}
.card.after {
  transform:
    rotateX(calc(16deg * (1 - min(1, var(--p) * 5))))
    translateY(calc(48px * (1 - min(1, var(--p) * 4))))
    translateZ(calc(-120px * (1 - min(1, var(--p) * 5))));
  opacity: calc(0.2 + 0.8 * min(1, var(--p) * 4));
}
.card.after.lift { box-shadow: 0 24px 48px rgb(var(--a-rgb) / 0.18); border-color: rgb(var(--a-rgb) / 0.4); }

.card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--hairline);
}
.card-title { font-weight: 600; font-size: var(--text-sm); color: var(--ink-2); }
.tag {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-before { background: rgba(255, 255, 255, 0.08); color: var(--ink-2); }
.tag-after { background: rgb(var(--g-rgb) / 0.16); color: var(--good); }

.rows { padding: var(--space-2) var(--space-5); }
.row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-base);
  line-height: 1.4;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);
}
.row:last-child { border-bottom: 0; }
.row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.before .row span { position: relative; }
.before .row span::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1px;
  background: var(--ink-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.before .row.struck { color: var(--ink-3); }
.before .row.struck span::after { transform: scaleX(1); }
.before .row.struck b { color: var(--ink-3); }
.after .row { opacity: 0; transform: translateX(24px); }
.after .row.landed { opacity: 1; transform: none; }
.after .row b { color: var(--good); }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.card-foot b { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.after .card-foot b { color: var(--good); }

.saved {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  opacity: calc(min(1, var(--p) * 4));
}
.saved-label { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.saved-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.saved-sub { font-size: var(--text-sm); color: var(--ink-3); min-width: 20ch; }

.shift-note { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--ink-3); text-align: center; }

/* ---------- what we automate (bento) ---------- */

.automate { background: var(--bg); }
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.bcard {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.bcard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgb(var(--a-rgb) / 0.14), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
}
.bcard:hover::before { opacity: 1; }
.bcard:hover { border-color: var(--hairline-2); }
.bcard > * { position: relative; }
.bcard-wide { grid-column: auto; }
.bicon {
  display: inline-block;
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.bcard h3 { margin-bottom: var(--space-3); }
.bcard p { color: var(--ink-2); font-size: var(--text-base); max-width: 48ch; }
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
}
.ba div { display: flex; flex-direction: column; gap: var(--space-1); }
.ba dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.ba dd { margin: 0; font-size: var(--text-sm); color: var(--ink); }
.ba div:last-child dt { color: var(--good); }

/* mini illustrations inside each automation card (animate in when the card reveals) */
.viz {
  --vz-surface: rgba(255, 255, 255, 0.05);
  --vz-line: rgba(255, 255, 255, 0.12);
  position: relative;
  height: 152px;
  margin: calc(-1 * var(--space-2)) 0 var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--vz-line);
  border-radius: var(--radius-md);
  background: var(--vz-surface);
  overflow: hidden;
  font-size: var(--text-xs);
}
.viz i { display: block; }
.viz-report .vz-mail { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.viz-report .vz-mail em { margin-left: auto; font-style: normal; color: var(--ink-3); }
.vz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.vz-bars { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); height: 64px; display: flex; align-items: flex-end; gap: 6px; }
.vz-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); transform: scaleY(0.08); transform-origin: bottom; transition: transform 700ms var(--ease-out); }
.vz-bars i:nth-child(6) { background: linear-gradient(var(--good), color-mix(in srgb, var(--good) 30%, transparent)); }
.in .vz-bars i { transform: none; }
.in .vz-bars i:nth-child(2) { transition-delay: 60ms; } .in .vz-bars i:nth-child(3) { transition-delay: 120ms; }
.in .vz-bars i:nth-child(4) { transition-delay: 180ms; } .in .vz-bars i:nth-child(5) { transition-delay: 240ms; }
.in .vz-bars i:nth-child(6) { transition-delay: 300ms; } .in .vz-bars i:nth-child(7) { transition-delay: 360ms; }

.viz-inbox { display: grid; gap: var(--space-2); align-content: center; }
.vz-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); opacity: 0; transform: translateX(-12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.vz-row b { padding: 2px 6px; border-radius: var(--radius-pill); font-weight: 600; text-align: center; }
.vz-row .c1 { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.vz-row .c2 { background: color-mix(in srgb, var(--good) 22%, transparent); color: var(--good); }
.vz-row .c3 { background: rgba(255, 143, 107, 0.2); color: #ff8f6b; }
.vz-row span { height: 6px; border-radius: 3px; background: var(--vz-line); }
.vz-row em { font-style: normal; color: var(--ink-3); }
.in .vz-row { opacity: 1; transform: none; }
.in .vz-row:nth-child(2) { transition-delay: 120ms; } .in .vz-row:nth-child(3) { transition-delay: 240ms; }

.vz-doc { position: absolute; left: var(--space-4); top: var(--space-4); width: 58%; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--vz-surface); border: 1px solid var(--vz-line); display: grid; gap: 6px; }
.vz-doc b { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-2); }
.vz-doc i { height: 5px; border-radius: 3px; background: var(--vz-line); }
.vz-doc i.short { width: 55%; }
.vz-doc-2 { left: auto; right: var(--space-4); top: var(--space-6); width: 44%; opacity: 0.7; transform: rotate(4deg); }
.vz-stamp { position: absolute; left: 30%; bottom: var(--space-3); padding: 4px 10px; border: 2px solid var(--good); border-radius: var(--radius-sm); color: var(--good); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform 350ms cubic-bezier(0.3, 1.6, 0.5, 1) 450ms, opacity 200ms ease 450ms; }
.in .vz-stamp { transform: rotate(-8deg) scale(1); opacity: 1; }

.viz-form { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.vz-fields { display: grid; gap: 8px; }
.vz-fields span { height: 18px; border-radius: 6px; border: 1px solid var(--vz-line); background: var(--vz-surface); }
.vz-fields span.short { width: 60%; }
.vz-flow { display: flex; justify-content: space-between; }
.vz-flow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.25; }
.in .vz-flow i { animation: vzflow 1.4s var(--ease) infinite; }
.in .vz-flow i:nth-child(2) { animation-delay: 0.2s; } .in .vz-flow i:nth-child(3) { animation-delay: 0.4s; }
@keyframes vzflow { 0%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: scale(1.3); } }
.vz-db { display: grid; gap: 4px; justify-items: center; padding: var(--space-3); border-radius: var(--radius-md); border: 1px solid color-mix(in srgb, var(--good) 50%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); font-weight: 600; text-align: center; }
.vz-db em { font-style: normal; color: var(--good); }

.viz-chat { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); }
.vz-b { max-width: 82%; padding: 6px 10px; border-radius: 12px; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.vz-b.out { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.vz-b.in { align-self: flex-start; background: var(--vz-line); color: var(--ink); border-bottom-left-radius: 4px; }
.vz-b small { display: block; margin-top: 2px; font-size: 10px; opacity: 0.75; }
.in .vz-b { opacity: 1; transform: none; }
.in .vz-b:nth-child(2) { transition-delay: 500ms; }
.bcard .vz-b { max-width: 86%; font-size: var(--text-xs); }
.bcard .vz-b.out { color: var(--accent-ink); }
.bcard .vz-b.in { color: var(--ink); }

/* ---------- proof ---------- */

.proof {
  background:
    radial-gradient(ellipse 50% 40% at 0% 30%, rgb(var(--a-rgb) / 0.1), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}
.proof-copy { position: sticky; top: calc(var(--nav-h) + var(--space-6)); }
.proof-stats {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.proof-stats li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
}
.proof-stats strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.proof-stats li > span { font-size: var(--text-base); line-height: 1.4; color: var(--ink-2); }

/* tracing beam: a vertical line that draws itself as the section scrolls (scaleY driven by script) */
.timeline { position: relative; padding-left: var(--space-7); }
.beam {
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: var(--hairline);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.beam-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(var(--accent), var(--good));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.tl { display: grid; gap: var(--space-7); }
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-7) + 6px);
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--accent);
}
.tl-item time {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tl-item h3 { margin-bottom: var(--space-2); }
.tl-item p { color: var(--ink-2); max-width: 48ch; }

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}
.step p { color: var(--ink-2); }
.step-meta { margin-top: auto; padding-top: var(--space-3); font-size: var(--text-sm); color: var(--ink-3); }

/* ---------- contact ---------- */

.contact { position: relative; overflow: hidden; }
.contact-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgb(var(--a-rgb) / 0.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 90%, rgb(var(--g-rgb) / 0.1), transparent 70%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: center;
}
.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.email:hover { color: var(--accent); }

.form {
  padding: var(--space-6);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 24, 0.8);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
}
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: var(--space-3); min-height: 24px; font-size: var(--text-sm); color: var(--ink-2); text-align: center; }
.status.err { color: #ff8f8f; }
.sent { padding: var(--space-5) 0 0; text-align: center; }
.sent p { color: var(--ink-2); }

/* ---------- footer ---------- */

.footer { padding: var(--space-7) 0; border-top: 1px solid var(--hairline); font-size: var(--text-sm); color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- design option switcher (preview only) ---------- */

.opt-switch {
  position: fixed;
  left: 50%;
  bottom: var(--space-4);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(10, 12, 18, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.opt-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  color: #c9d1e0;
  text-decoration: none;
  font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.opt-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.opt-switch a b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: var(--text-xs); }
.opt-switch a[aria-current="page"] { background: #fff; color: #0a0c12; }
.opt-switch a[aria-current="page"] b { background: #0a0c12; color: #fff; }
.opt-switch .opt-all { color: #8b95ab; }
.has-switch .footer { padding-bottom: calc(var(--space-7) + 64px); }

/* ---------- marquee band (scroll-velocity driven by fx.js) ---------- */

.marquee { position: relative; overflow: hidden; white-space: nowrap; }
.mq-track { display: inline-flex; align-items: center; will-change: transform; }
.mq-track span { padding: 0 0.35em; }
.mq-sep { opacity: 0.35; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero { padding-top: calc(var(--nav-h) + var(--space-8)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .proof-copy { position: static; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .opt-switch { bottom: var(--space-3); font-size: var(--text-xs); }
  .opt-switch a { padding: 0 var(--space-3); }
  .opt-switch .opt-all { display: none; }
  .nav-links { display: none; }
  .brand-name { display: none; }
  .section { padding: var(--space-9) 0; }
  .stats { grid-template-columns: 1fr; gap: var(--space-4); }
  .stats li > span { max-width: none; }
  .bento { grid-template-columns: 1fr; }
  .panel-sub { display: none; }

  /* On phones the two cards stack in the same cell: "after" slides up over "before". */
  .shift { height: 280vh; }
  .shift-head { margin-bottom: var(--space-4); }
  .scene { grid-template-columns: 1fr; gap: var(--space-3); }
  .card.before, .card.after { grid-area: 1 / 1; }
  .card.after {
    transform:
      rotateX(calc(16deg * (1 - min(1, var(--p) * 5))))
      translateY(calc(100% * (1 - min(1, max(0, (var(--p) - 0.45) * 3)))))
      translateZ(calc(-120px * (1 - min(1, var(--p) * 5))));
    opacity: 1;
  }
  .saved { grid-area: 2 / 1; flex-direction: column; align-items: center; gap: var(--space-1); text-align: center; }
  .saved-sub { min-width: 0; }
  .h-display { max-width: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .js .rv, .js [data-words] .w { opacity: 1; transform: none; filter: none; }
  .shift { height: auto; padding: var(--space-10) 0; }
  .shift-sticky { position: static; height: auto; display: block; }
  .card.before, .card.after { transform: none; opacity: 1; }
  .after .row { opacity: 1; transform: none; }
  .saved { opacity: 1; }
  .beam-fill { transform: none; }
  .spot { display: none; }
  .vz-bars i, .vz-row, .vz-b, .vz-stamp { transform: none; opacity: 1; }
}

/* Same rules when the visitor pressed "Pause animations" (html.rm, set before first paint). */
  html.rm *, html.rm *::before, html.rm *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.rm { scroll-behavior: auto; }
  html.rm.js .rv, html.rm.js [data-words] .w { opacity: 1; transform: none; filter: none; }
  html.rm .shift { height: auto; padding: var(--space-10) 0; }
  html.rm .shift-sticky { position: static; height: auto; display: block; }
  html.rm .card.before, html.rm .card.after { transform: none; opacity: 1; }
  html.rm .after .row { opacity: 1; transform: none; }
  html.rm .saved { opacity: 1; }
  html.rm .beam-fill { transform: none; }
  html.rm .spot { display: none; }
  html.rm .vz-bars i, html.rm .vz-row, html.rm .vz-b, html.rm .vz-stamp { transform: none; opacity: 1; }


/* ---------- Windows High Contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn, .menu-btn, .motion-btn, .faq summary, .field input, .field textarea, .bcard, .xcard, .mcard, .hs-card { border: 1px solid ButtonText; }
  .btn-primary { forced-color-adjust: none; background: ButtonText; color: Canvas; }
  :focus-visible { outline: 3px solid Highlight; }
  .progress, .curtain, .spot, .floor, .globe { display: none; }
  .js .rv, .js [data-words] .w { opacity: 1; transform: none; filter: none; }
}
