/* AKDIREV AI — landing page
   Type + layering modelled on explee.com: Geist Sans at weight 400, tight display tracking,
   warm off-white canvas, white cards with layered soft shadows, sticky stacking cards.
   Every colour is a token below; the dark theme only redefines tokens. */

:root {
  color-scheme: light;
  --bg: #f6f5f3;
  --surface: #ffffff;
  --inset: #f6f5f3;
  --ink: #0a0a0a;
  --ink-hover: #262626;
  --on-ink: #ffffff;          /* text on an ink-filled surface (primary button, root node) */
  --muted: #6b6b67;
  --line: rgba(0, 0, 0, 0.08);
  --chip: rgba(0, 0, 0, 0.04);
  --ghost-hover: rgba(0, 0, 0, 0.07);
  --accent: #0d9467;          /* brand green — explee.com headline green */
  --accent-soft: rgba(13, 148, 103, 0.12);
  --accent-ring: rgba(13, 148, 103, 0.3);
  --accent-glow: rgba(13, 148, 103, 0.35);   /* soft halo around green elements */
  --accent-text: #076f4d;   /* same green, deepened so small text passes WCAG AA 4.5:1 */
  --on-accent: #ffffff;     /* text on an --accent-text fill */
  --nav-material: rgba(246, 245, 243, 0.72);
  --shadow: 0 0 0.5px rgba(0, 0, 0, 0.16), 0 3px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 0 0.5px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.05);
  --trace: rgba(0, 0, 0, 0.1);
  --trace-end: rgba(0, 0, 0, 0.12);
  --graph-line: rgba(0, 0, 0, 0.18);
  --graph-dash: rgba(0, 0, 0, 0.25);
  --viz-bg: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f0f0f0 70%);
  --viz-ring: rgba(0, 0, 0, 0.05);
  --mock-bg: #ffffff;
  --mock-row: #f6f5f3;
  --mock-line: rgba(0, 0, 0, 0.1);
  --mock-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 10px 24px -12px rgba(0, 0, 0, 0.2);
  --radius: 16px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --nav-h: 4.25rem;
  --gutter: 1.5rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e0d;
  --surface: #181816;
  --inset: #201f1d;
  --ink: #f2f1ee;
  --ink-hover: #d8d7d3;
  --on-ink: #0e0e0d;
  --muted: #a09f99;
  --line: rgba(255, 255, 255, 0.1);
  --chip: rgba(255, 255, 255, 0.07);
  --ghost-hover: rgba(255, 255, 255, 0.12);
  --accent-soft: rgba(13, 148, 103, 0.14);
  --accent-ring: rgba(13, 148, 103, 0.35);
  --accent-glow: rgba(13, 148, 103, 0.55);
  --accent-text: #1fb582;   /* brighter for small text on dark surfaces (AA 4.5:1) */
  --on-accent: #0e0e0d;
  --nav-material: rgba(14, 14, 13, 0.72);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 3px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --trace: rgba(255, 255, 255, 0.12);
  --trace-end: rgba(255, 255, 255, 0.18);
  --graph-line: rgba(255, 255, 255, 0.2);
  --graph-dash: rgba(255, 255, 255, 0.28);
  --viz-bg: radial-gradient(120% 90% at 50% 0%, #151515 0%, #0a0a0a 75%);
  --viz-ring: rgba(255, 255, 255, 0.07);
  --mock-bg: #1b1b1a;
  --mock-row: rgba(255, 255, 255, 0.05);
  --mock-line: rgba(255, 255, 255, 0.16);
  --mock-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px -12px rgba(0, 0, 0, 0.7);
}

/* Theme switch cross-fades the whole page instead of snapping brightness */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 350ms; }

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps anchor targets and keyboard focus clear of the sticky nav and the
   bottom blur (WCAG 2.4.11 Focus Not Obscured) */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); scroll-padding-bottom: 7rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Accessibility helpers ── */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
/* Skip link: first thing a keyboard user reaches; hidden until focused (WCAG 2.4.1) */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 160ms ease-out;
}
.skip-link:focus-visible { transform: none; outline-offset: 3px; }
main:focus { outline: none; }


.container { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type: size-specific tracking & leading ── */
.display {
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
}
.h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 35rem; margin: 0 auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}
.accent { color: var(--accent); }

/* ── Buttons: feedback on press, instantly ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.375rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 160ms ease-out, background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn--ghost { background: var(--chip); }
.btn--ghost:hover { background: var(--ghost-hover); }
.btn--compact { height: 2.375rem; padding: 0 1rem; font-size: 0.875rem; border-radius: 999px; }

/* ── "Let's Talk" pill: on hover the label shrinks and an arrow circle scales in from the right ── */
.cta {
  --cta-h: 48px;
  --cta-pad: 60px;
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  align-items: center;
  height: var(--cta-h);
  border-radius: 999px;
  color: var(--on-ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 160ms ease-out;
}
/* Nav size: padding keeps the label clear of the pill ends after the shrink, and fits phone nav */
.cta--sm { --cta-h: 2.375rem; --cta-pad: 2.125rem; font-size: 0.875rem; }
.cta:active { transform: scale(0.97); transition-duration: 80ms; }
.cta__inner,
.cta__circle {
  background-color: var(--ink);
  border-radius: 999px;
  height: var(--cta-h);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.5s var(--ease-out-quart);
}
.cta__inner {
  width: 100%;
  padding-inline: var(--cta-pad);
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cta__circle {
  position: absolute;
  right: 0;
  width: var(--cta-h);
  scale: 0;
  transform-origin: left center;
}
.cta__circle span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: all 0.3s var(--ease-out-quart) 0.1s;
}
/* Hover only where hover exists (no stuck state after a tap); keyboard focus gets the same reveal */
@media (hover: hover) {
  .cta:hover .cta__inner { width: calc(100% - var(--cta-h) - 4px); }
  .cta:hover .cta__circle { scale: 1; }
  .cta:hover .cta__circle span { transform: translateX(0); }
}
.cta:focus-visible { outline-offset: 4px; border-radius: 999px; }
.cta:focus-visible .cta__inner { width: calc(100% - var(--cta-h) - 4px); }
.cta:focus-visible .cta__circle { scale: 1; }
.cta:focus-visible .cta__circle span { transform: translateX(0); }

/* ── Nav: translucent material, scroll-edge fade instead of a hard divider ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -1.25rem;
  background: var(--nav-material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 1.25rem), transparent);
  mask-image: linear-gradient(#000 calc(100% - 1.25rem), transparent);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav__logo { display: inline-flex; padding: 0.5rem 0; }
.wordmark { width: 8.25rem; height: auto; aspect-ratio: 700 / 69; color: var(--ink); }
.nav__links { display: flex; gap: 0.25rem; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a { padding: 0.75rem 1rem; transition: opacity 200ms ease; }
.nav__links a:hover { opacity: 0.6; }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

/* Theme switch: a soft pill track with a raised oval knob. Knob right = light, left = dark. */
.theme-toggle {
  --sw-track: linear-gradient(#d6d5d2, #e4e3e0);
  --sw-rim: inset 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.75), 0 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1);
  --sw-knob: linear-gradient(#fdfdfc, #e9e8e5);
  --sw-knob-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.22), 0 3px 6px rgba(0, 0, 0, 0.14);
  position: relative;
  display: block;
  flex: none;
  width: 3.5rem;
  height: 1.875rem;
  margin: 0 0.375rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sw-track);
  box-shadow: var(--sw-rim);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  view-transition-name: theme-toggle;
}
[data-theme="dark"] .theme-toggle {
  --sw-track: linear-gradient(#111110, #1d1d1b);
  --sw-rim: inset 0 1px 3px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.5), 0 2px 5px rgba(0, 0, 0, 0.35);
  --sw-knob: linear-gradient(#56564f, #3a3a36);
  --sw-knob-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.4);
}
.theme-toggle::before { content: ""; position: absolute; inset: -0.5rem; }   /* 44px tap area around the pill */
.theme-toggle__knob {
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.875rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--sw-knob);
  box-shadow: var(--sw-knob-shadow);
  transform: translateX(1.25rem);
  transition: transform 420ms cubic-bezier(0.3, 1.25, 0.4, 1), width 200ms ease;
}
[data-theme="dark"] .theme-toggle__knob { transform: translateX(0); }
.theme-toggle:active .theme-toggle__knob { width: 2.125rem; transform: translateX(1rem); }
[data-theme="dark"] .theme-toggle:active .theme-toggle__knob { transform: translateX(0); }
/* The page cross-fades on a theme change; the switch is lifted out of that fade so the knob really slides */
::view-transition-old(theme-toggle) { display: none; }
::view-transition-new(theme-toggle) { animation: none; }
@media (prefers-reduced-motion: reduce) { .theme-toggle__knob { transition: none; } }
@media (forced-colors: active) { .theme-toggle__knob { background: ButtonText; } }

/* ── Hero ── */
/* Hero fills the first screen below the nav, with its content centred vertically
   (equal padding top and bottom so the centre is true, not optically shifted) */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(3rem, 8vh, 5rem) 0;
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Circuit: traces drawn by main.js from the headline's edges; pulses travel outward */
.circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
}
.js .circuit { opacity: 0; }
.js.is-ready .circuit { opacity: 1; transition: opacity 1.2s ease 500ms; }
.circuit .trace { fill: none; stroke: var(--trace); stroke-width: 1; stroke-linecap: round; }
.circuit .end { fill: var(--trace-end); }
.circuit .deep,
.circuit .light { --tone: var(--accent); }
/* One dash per trace: it starts hidden just before the headline, travels out, then rests off the end */
.circuit .pulse {
  fill: none;
  stroke: var(--tone);
  stroke-linecap: round;
  stroke-dasharray: var(--seg) calc(var(--len) + var(--seg));
  stroke-dashoffset: var(--seg);
  animation: trace-pulse var(--dur) linear var(--delay) infinite;
}
.circuit .pulse--core { stroke-width: 2; }
.circuit .pulse--glow { stroke-width: 6; opacity: 0.35; filter: blur(3px); }
.circuit .pulse--dot { stroke-width: 5; opacity: 0.9; }
.circuit .node { fill: var(--tone); animation: node-blink 2.2s ease-in-out var(--delay) infinite; }
@keyframes trace-pulse {
  0% { stroke-dashoffset: var(--seg); }
  70%, 100% { stroke-dashoffset: calc(var(--len) * -1 - 4px); }
}
@keyframes node-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.hero .display { max-width: 52rem; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.hero .lead { margin-top: 2.25rem; text-wrap: balance; }

.tick { display: inline-grid; place-items: center; width: 1rem; color: var(--accent-text); font-weight: 600; flex: none; }
.live {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: none;
}

/* ── Sections ── */
.section { padding: clamp(5.5rem, 12vw, 8.5rem) 0 0; }
.section--faq { padding-bottom: clamp(5.5rem, 12vw, 8.5rem); }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section__sub { margin-top: 1rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── Services: feature grid (layout modelled on Wensity's "feature section with security grid") ──
   Left-aligned header with an aside on the right, then a 3×2 grid where each item is an
   illustration panel with its title and description sitting below it, not inside a card. */
.services-head { display: grid; gap: 1.5rem; }
.services-head .eyebrow { margin-bottom: 0.75rem; }
.services-head .section__sub { margin-top: 0.75rem; }
.services-head__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 24rem; }
.services-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem 1.5rem;
  margin-top: 4rem;
}
.feature__viz {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: var(--viz-bg);
  box-shadow: 0 0 0 1px var(--viz-ring);
  display: grid;
  place-items: center;
  padding: 7%;
  container-type: inline-size; /* lets the mini-interface scale to the panel's width */
}
/* Shrink the mini-interface as panels narrow (2-up on phones) so it fills but never overflows.
   Container width = the panel's inner width; the mock is 15.5rem (248px) wide at full size. */
@container (max-width: 247.98px) { .mock { zoom: 0.8; } }
@container (max-width: 199.98px) { .mock { zoom: 0.68; } }
@container (max-width: 169.98px) { .mock { zoom: 0.56; } }
@container (max-width: 139.98px) { .mock { zoom: 0.48; } }
@container (max-width: 119.98px) { .mock { zoom: 0.42; } }
.feature__title { margin-top: 1.5rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.015em; }
.feature__desc { margin-top: 0.5rem; max-width: 22rem; font-size: 0.84375rem; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* Hover: a twinkling dot field (canvas, drawn by main.js) fades in behind the mini-interface, brightest
   around the cursor, while a green light runs along the panel border nearest the pointer
   (motion modelled on visuvate.com's service grid). Mouse/trackpad only; touch keeps the still panel. */
.feature__dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.feature__viz > .mock { position: relative; }
.feature__viz::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--accent) 0%, var(--accent) 18%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--glow, 0);   /* --glow, --lift, --mx, --my are eased per frame by main.js */
  pointer-events: none;
}
.feature__viz > .mock { transform: translateY(calc(var(--lift, 0) * -3px)); }

/* Mini-interface kit used inside each illustration panel */
.mock {
  width: 100%;
  max-width: 15.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: var(--mock-bg);
  box-shadow: var(--mock-shadow);
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--ink);
}
.mock__top { display: flex; align-items: center; gap: 0.3rem; padding-bottom: 0.15rem; }
.mock__top i { width: 6px; height: 6px; border-radius: 50%; background: var(--mock-line); }
.mock__url { flex: 1; height: 10px; margin-left: 0.3rem; border-radius: 999px; background: var(--mock-row); }
.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: var(--mock-row);
  white-space: nowrap;
}
.mock__row > span:first-child { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.mock__bar { display: block; height: 6px; width: var(--w, 60%); border-radius: 999px; background: var(--mock-line); }
.mock__bar--ink { background: var(--ink); opacity: 0.85; height: 8px; }
.mock__pills { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.mock__pill { font-size: 0.625rem; padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.mock__pill.is-on { background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }
.mock__btn { align-self: flex-start; font-size: 0.625rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--accent-text); color: var(--on-accent); }
.mock__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--chip);
  font-size: 0.5625rem;
  font-weight: 600;
}
.mock__check { color: var(--accent-text); font-weight: 700; }
.mock__muted { color: var(--muted); }
.mock__time { font-family: var(--mono); font-size: 0.625rem; color: var(--muted); }
.mock__toggle { position: relative; flex: none; width: 24px; height: 14px; border-radius: 999px; background: var(--accent); }
.mock__toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.mock__wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.mock__wave i { width: 3px; height: var(--h); border-radius: 999px; background: var(--accent); opacity: 0.85; }
.mock__flow { display: flex; align-items: center; gap: 0.3rem; }
.mock__flow .mock__row { flex: 1; justify-content: center; padding: 0.4rem 0.3rem; }
.mock__flow b { flex: none; width: 10px; height: 1px; background: var(--mock-line); }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
.mock__stat { padding: 0.35rem 0.4rem; border-radius: 8px; background: var(--mock-row); display: flex; flex-direction: column; gap: 0.25rem; }
.mock__stat strong { font-size: 0.75rem; font-weight: 600; }
.mock__chart { display: flex; align-items: flex-end; gap: 3px; height: 30px; padding: 0 0.15rem; }
.mock__chart i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--mock-line); }
.mock__chart i.is-on { background: var(--accent); }
/* DM setter: incoming and outgoing chat bubbles */
.mock__bubble {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 68%;
  padding: 0.45rem 0.55rem;
  border-radius: 10px 10px 10px 3px;
  background: var(--mock-row);
}
.mock__bubble--out {
  align-self: flex-end;
  width: auto;
  border-radius: 10px 10px 3px 10px;
  background: var(--accent-text);
  color: var(--on-accent);
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
}
/* Video editor: preview frame and timeline tracks */
.mock__screen { display: grid; place-items: center; height: 46px; border-radius: 8px; background: var(--mock-row); }
.mock__play { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ink); opacity: 0.8; }
.mock__track { display: flex; gap: 3px; height: 9px; }
.mock__track i { width: var(--w); border-radius: 3px; background: var(--mock-line); }
.mock__track i.is-on { background: var(--accent); }
.mock__track--thin { height: 5px; }
/* Custom project: an empty, dashed "your idea goes here" card */
.mock--dashed {
  align-items: center;
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed var(--mock-line);
}
.mock--dashed .mock__bar { align-self: center; }
.mock--dashed .mock__pills { justify-content: center; }
.mock__plus {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

/* ── Process: sticky stacking cards ──
   main.js adds .is-stacking only when every card fits on screen below the nav (desktop and phones);
   otherwise the cards simply scroll, so nothing gets trapped under the next card. */
.stack { position: relative; padding-bottom: 4rem; --stack-top: 3rem; --stack-step: 0.875rem; }
.stack__wrap { position: static; margin-bottom: 1.5rem; }
.stack.is-stacking .stack__wrap {
  position: sticky;
  top: calc(var(--nav-h) + var(--stack-top) + var(--n) * var(--stack-step));
}
.stack:not(.is-stacking) .step::after { display: none; }
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  min-height: 21rem;
  transform-origin: 50% 0;
  will-change: transform;
  position: relative;
}
.step::after { /* dim as the next card slides over — depth via opacity only */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000;
  opacity: calc(var(--p, 0) * 0.06);
  pointer-events: none;
}
[data-theme="dark"] .step::after { opacity: calc(var(--p, 0) * 0.3); }
.step__text { display: flex; flex-direction: column; gap: 1rem; padding: 0.5rem 0.5rem 0; }
.step__text p:not(.step__num) { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; max-width: 26rem; }
.step__num { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent-text); }
.step__title { margin-top: auto; }
.step__text p:last-child { margin-bottom: 0.5rem; }

.panel { background: var(--inset); border-radius: 0.75rem; padding: 1.25rem; display: flex; flex-direction: column; }
.panel__label {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.rows { display: flex; flex-direction: column; gap: 0.5rem; }
.rows li {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border-radius: 0.625rem; padding: 0.75rem 0.875rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.9375rem;
}
.tag { font-size: 0.75rem; padding: 0.1875rem 0.5rem; border-radius: 999px; background: var(--chip); color: var(--muted); }
.tag--go { background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }

.graph { display: flex; flex-direction: column; align-items: center; flex: 1; justify-content: center; }
.node {
  background: var(--surface); border-radius: 0.625rem; padding: 0.625rem 1rem; font-size: 0.875rem;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.node--root { background: var(--ink); color: var(--on-ink); }
.node--you { background: var(--accent-soft); color: var(--accent-text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--accent-ring); }
.graph__lines { width: 66%; height: 1.25rem; border: 1px solid var(--graph-line); border-bottom: 0; border-radius: 0.5rem 0.5rem 0 0; margin-top: 0.625rem; position: relative; }
.graph__lines::before { content: ""; position: absolute; left: 50%; top: -0.625rem; height: 1.875rem; border-left: 1px solid var(--graph-line); }
.graph__row { display: flex; gap: 0.5rem; justify-content: center; }
.graph__down { height: 1.25rem; border-left: 1px dashed var(--graph-dash); margin: 0.25rem 0; }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.tools li {
  background: var(--surface); border-radius: 0.625rem; padding: 0.75rem 0.5rem; text-align: center; font-size: 0.875rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.tools li::after { content: ""; position: absolute; top: 0.4375rem; right: 0.4375rem; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--accent); }
.test { margin-top: auto; padding-top: 1rem; font-size: 0.875rem; color: var(--muted); display: flex; gap: 0.375rem; align-items: center; }

.log { font-family: var(--mono); font-size: 0.8125rem; display: flex; flex-direction: column; }
.log li { display: flex; gap: 0.875rem; padding: 0.625rem 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--muted); flex: none; }

/* ── FAQ ── */
.faq { max-width: 45rem; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq h3 { font-size: inherit; font-weight: inherit; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.375rem 0.25rem;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 120ms ease;
}
.faq__q:active { opacity: 0.55; transition-duration: 0ms; }
.faq__icon { position: relative; width: 0.875rem; height: 0.875rem; flex: none; transform: rotate(calc(var(--t, 0) * 45deg)); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 1.5px; background: currentColor; border-radius: 1px; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { overflow: hidden; height: 0; }
.faq__a.is-open { height: auto; }
.faq__body { padding: 0 2.5rem 1.5rem 0.25rem; color: var(--muted); line-height: 1.65; opacity: var(--t, 0); }
.faq__a.is-open .faq__body { opacity: 1; }

/* ── Footer ──
   Bottom padding keeps the last line clear of the fixed bottom blur when scrolled all the way down. */
/* All footer text uses the ink colour: black in light mode, white in dark mode. */
.footer { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); padding: 3.5rem 0 9.5rem; color: var(--ink); }
/* Animated ASCII plasma in brand green behind the footer. It fades out toward the top so the
   logo, slogan and email stay readable over it. */
.footer__ascii {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: var(--ascii-opacity, 0.55);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45) 45%, #000 85%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45) 45%, #000 85%);
}
[data-theme="dark"] .footer__ascii { --ascii-opacity: 0.7; }
/* A soft halo in the page colour lifts footer text off the ASCII behind it */
.footer__slogan, .footer__label, .footer__email, .footer__legal { text-shadow: 0 0 4px var(--bg), 0 0 10px var(--bg), 0 0 18px var(--bg); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__logo { display: inline-flex; align-items: center; align-self: flex-start; min-height: 2.75rem; }
.footer__logo .wordmark { width: 9rem; }
.footer__slogan { font-size: 1rem; line-height: 1.4; letter-spacing: -0.01em; }
.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.footer__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 200ms ease;
}
.footer__email:hover { text-decoration-color: currentColor; }
.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

/* ── Entrance: opacity + blur + rise together, then rest ── */
.js .reveal { opacity: 0; transform: translateY(0.75rem); filter: blur(6px); }
.js.is-ready .reveal {
  opacity: 1; transform: none; filter: none;
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1), filter 700ms ease;
  transition-delay: calc(var(--i) * 70ms);
}
.js .reveal-on-scroll { opacity: 0; transform: translateY(1.25rem); }
.js .reveal-on-scroll.is-in { opacity: 1; transform: none; transition: opacity 600ms ease, transform 800ms cubic-bezier(.2,.7,.2,1); }
.js .features .reveal-on-scroll:nth-child(3n + 2) { transition-delay: 60ms; }
.js .features .reveal-on-scroll:nth-child(3n) { transition-delay: 120ms; }

/* ── Accent glow: a soft halo on every green element (kept after their base rules so it layers on) ── */
.accent { text-shadow: 0 0 24px var(--accent-glow); }
.eyebrow,
.step__num,
.tick,
.mock__check { text-shadow: 0 0 10px var(--accent-glow); }
.tag--go,
.mock__pill.is-on,
.mock__btn,
.mock__toggle { box-shadow: 0 0 10px -1px var(--accent-glow); }
.mock__wave i,
.mock__chart i.is-on,
.mock__track i.is-on { box-shadow: 0 0 6px var(--accent-glow); }
.mock__bubble--out,
.mock__plus { box-shadow: 0 0 10px -1px var(--accent-glow); }
.live { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 8px var(--accent-glow); }
.tools li::after { box-shadow: 0 0 6px var(--accent-glow); }
.node--you { box-shadow: inset 0 0 0 1px var(--accent-ring), 0 0 14px -2px var(--accent-glow); }
.circuit .node,
.circuit .pulse--dot { filter: drop-shadow(0 0 3px var(--accent-glow)); }

/* ── Progressive blur: fixed top/bottom viewport edges, 8 masked layers doubling in strength.
   z-index 10 keeps it above page content but below the sticky nav (50), so the nav stays crisp. ── */
.progressive-blur {
  position: fixed;
  z-index: 10;
  right: 0;
  left: 0;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}

.progressive-blur.top-blur {
  --blur-direction: to bottom;
  top: -32px;
}

.progressive-blur.bottom-blur {
  --blur-direction: to top;
  bottom: -32px;
}

.progressive-blur .layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.progressive-blur .blur-1 {
  z-index: 1;
  -webkit-backdrop-filter: blur(0.078125px);
  backdrop-filter: blur(0.078125px);
  -webkit-mask-image: linear-gradient(var(--blur-direction), transparent 87.5%, #000 100%);
  mask-image: linear-gradient(var(--blur-direction), transparent 87.5%, #000 100%);
}

.progressive-blur .blur-2 {
  z-index: 2;
  -webkit-backdrop-filter: blur(0.15625px);
  backdrop-filter: blur(0.15625px);
  -webkit-mask-image: linear-gradient(var(--blur-direction), transparent 75%, #000 87.5% 100%);
  mask-image: linear-gradient(var(--blur-direction), transparent 75%, #000 87.5% 100%);
}

.progressive-blur .blur-3 {
  z-index: 3;
  -webkit-backdrop-filter: blur(0.3125px);
  backdrop-filter: blur(0.3125px);
  -webkit-mask-image: linear-gradient(var(--blur-direction), transparent 62.5%, #000 75% 87.5%, transparent 100%);
  mask-image: linear-gradient(var(--blur-direction), transparent 62.5%, #000 75% 87.5%, transparent 100%);
}

.progressive-blur .blur-4 {
  z-index: 4;
  -webkit-backdrop-filter: blur(0.625px);
  backdrop-filter: blur(0.625px);
  -webkit-mask-image: linear-gradient(var(--blur-direction), transparent 50%, #000 62.5% 75%, transparent 87.5%);
  mask-image: linear-gradient(var(--blur-direction), transparent 50%, #000 62.5% 75%, transparent 87.5%);
}

.progressive-blur .blur-5 {
  z-index: 5;
  -webkit-backdrop-filter: blur(1.25px);
  backdrop-filter: blur(1.25px);
  -webkit-mask-image: linear-gradient(var(--blur-direction), transparent 37.5%, #000 50% 62.5%, transparent 75%);
  mask-image: linear-gradient(var(--blur-direction), transparent 37.5%, #000 50% 62.5%, transparent 75%);
}

.progressive-blur .blur-6 {
  z-index: 6;
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  -webkit-mask-image: linear-gradient(var(--blur-direction), transparent 25%, #000 37.5% 50%, transparent 62.5%);
  mask-image: linear-gradient(var(--blur-direction), transparent 25%, #000 37.5% 50%, transparent 62.5%);
}

.progressive-blur .blur-7 {
  z-index: 7;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(var(--blur-direction), transparent 12.5%, #000 25% 37.5%, transparent 50%);
  mask-image: linear-gradient(var(--blur-direction), transparent 12.5%, #000 25% 37.5%, transparent 50%);
}

.progressive-blur .blur-8 {
  z-index: 8;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(var(--blur-direction), transparent 0%, #000 12.5% 25%, transparent 37.5%);
  mask-image: linear-gradient(var(--blur-direction), transparent 0%, #000 12.5% 25%, transparent 37.5%);
}

@media (max-width: 680px) {
  .progressive-blur {
    height: 160px;
  }
}

/* ── Responsive ── */
@media (min-width: 1024px) {
  .services-head { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: 3.5rem; }
  .services-head__aside { justify-self: end; }
}
@media (max-width: 1023px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.5rem; }
  /* Nine services, two per row: the odd one out (Custom Project) spans the full row */
  .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .feature:last-child:nth-child(odd) .feature__viz { aspect-ratio: 21 / 8; }
  .feature:last-child:nth-child(odd) .feature__desc { max-width: 32rem; }
}
/* Phones: two services per row with square panels and tighter type */
@media (max-width: 640px) {
  .features { gap: 2rem 0.75rem; margin-top: 2.5rem; }
  .feature__viz { aspect-ratio: 1 / 1; border-radius: 14px; padding: 6%; }
  .feature:last-child:nth-child(odd) .feature__viz { aspect-ratio: 2 / 1; padding: 4%; }
  .feature__title { margin-top: 0.875rem; font-size: 0.875rem; }
  .feature__desc { margin-top: 0.375rem; font-size: 0.8125rem; line-height: 1.55; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .step { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; min-height: 0; }
  .step__title { margin-top: 0.5rem; }
  .step__text { padding: 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 1rem; --nav-h: 3.75rem; }
  .wordmark { width: 7rem; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .graph__row .node { padding: 0.5rem 0.625rem; font-size: 0.8125rem; }
  .faq__body { padding-right: 0.25rem; }
}

/* ── Phone refinements ──
   Audited at 320 / 360 / 390 / 430px: no sideways scroll, 44px tap targets, two-line headline,
   shorter hero paragraph, and less nesting in the process cards so rows stop wrapping. */

/* Touch screens: Apple's 44px minimum tap size. The pill CTA doesn't shrink on touch (no hover),
   so it can drop the extra side padding that hover needed. */
@media (pointer: coarse) {
  .cta--sm { --cta-h: 2.75rem; --cta-pad: 1.375rem; }
  .btn--compact { height: 2.75rem; padding: 0 1.25rem; }
  .nav__logo { min-height: 2.75rem; align-items: center; }
}

@media (max-width: 560px) {
  /* Phone hero: compact headline, side-by-side pill buttons and a narrow paragraph keep the
     content in the middle and leave both screen edges free for the circuit traces and pulses */
  .display { font-size: clamp(1.625rem, 7.6vw, 2.125rem); letter-spacing: -0.03em; }
  .hero__cta { margin-top: 1.5rem; gap: 0.5rem; flex-wrap: nowrap; }
  .hero__cta .cta { --cta-h: 2.75rem; --cta-pad: 1.25rem; font-size: 0.875rem; }
  .hero__cta .btn { height: 2.75rem; padding: 0 1.125rem; font-size: 0.875rem; border-radius: 999px; }
  .hero .lead { margin-top: 1.5rem; max-width: 17.5rem; font-size: 0.875rem; line-height: 1.6; }

  .section { padding-top: 5rem; }
  .section--faq { padding-bottom: 5.5rem; }
  .section__head { margin-bottom: 2.25rem; }

  /* Process: card → panel → row nesting was eating width */
  .step { padding: 1.25rem; gap: 1.25rem; border-radius: 14px; }
  /* Stack sits closer under the shorter phone nav, with a tighter peek between cards */
  .stack { --stack-top: 1rem; --stack-step: 0.5rem; }
  .stack__wrap { margin-bottom: 1rem; }
  .step__text { gap: 0.75rem; }
  .step__text p:not(.step__num) { font-size: 1rem; }
  .panel { padding: 0.875rem; border-radius: 10px; }
  .panel__label { margin-bottom: 0.75rem; }
  .rows li { padding: 0.625rem 0.75rem; font-size: 0.875rem; gap: 0.75rem; }
  .tag { flex: none; }
  .log { font-size: 0.75rem; }

  .faq__q { padding: 1.125rem 0.25rem; font-size: 1rem; }

  .footer { padding: 3rem 0 8rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__logo .wordmark { width: 8rem; }
  .footer__legal { margin-top: 2rem; }
}

/* Small phones (iPhone SE, 320px): keep the nav inside the gutter */
@media (max-width: 374px) {
  .wordmark { width: 6rem; }
  .nav__inner { gap: 0.5rem; }
  .nav__actions { gap: 0.375rem; }
  .cta--sm { --cta-pad: 1.125rem; }
}

/* ── Intro: logo animation over the blurred page, then both animate out ──
   The page itself is blurred (filter on every top-level element) rather than seen through backdrop-filter,
   which skips content under the nav's and the progressive blur's own backdrop layers. */
:root { --intro-tint: rgba(246, 245, 243, 0.4); }
:root[data-theme="dark"] { --intro-tint: rgba(14, 14, 13, 0.45); }
/* hidden in the markup, so the overlay never shows with stale or missing CSS */
.intro-on .intro[hidden] { display: contents; }
html.intro-on { scrollbar-gutter: stable; }   /* unlocking scroll must not shift the page sideways */
html.intro-lock, html.intro-lock body { overflow: hidden; }
html.intro-on body > :not(.intro) { filter: blur(0) saturate(1); transition: filter 1100ms cubic-bezier(0.33, 1, 0.68, 1); }
html.intro-blur body > :not(.intro) { filter: blur(26px) saturate(1.1); }
.intro__blur {
  position: fixed;
  inset: 0;
  z-index: 1000;
  cursor: pointer;
  background: var(--intro-tint);
  transition: opacity 1100ms cubic-bezier(0.33, 1, 0.68, 1);
}
.intro__logo {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1001;
  width: min(860px, 59vw);
  height: auto;
  overflow: hidden;   /* the mask: letters wait below the bottom edge */
  fill: var(--ink);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.6, 1);
}
.intro__logo g { transform: translateY(78px); }
/* main.js adds .intro-play once the tab is actually on screen */
.intro-play .intro__logo { animation: intro-push 2500ms cubic-bezier(0.25, 1, 0.5, 1) both; }
.intro-play .intro__logo g { animation: intro-rise 850ms cubic-bezier(0.22, 1, 0.36, 1) calc(180ms + var(--i) * 75ms) both; }
@keyframes intro-rise { from { transform: translateY(78px); } to { transform: translateY(0); } }
@keyframes intro-push { from { scale: 0.985; } to { scale: 1; } }
.intro.is-out .intro__blur { pointer-events: none; opacity: 0; }
.intro.is-out .intro__logo { opacity: 0; }
@media (max-width: 640px) {
  .intro__logo { width: 86vw; }
}

/* ── Accessibility preferences ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circuit .pulse { animation: none; opacity: 0; }
  .circuit .node { animation: none; opacity: 0.7; }
  .js .reveal, .js .reveal-on-scroll { transform: none !important; filter: none !important; }
  .js.is-ready .reveal, .js .reveal-on-scroll.is-in { transition: opacity 300ms ease !important; transition-delay: 0ms !important; }
  .step { transform: none !important; }
  .feature__viz > .mock { transform: none; }
  .btn:active, .cta:active { transform: none; opacity: 0.8; }
  .cta__inner, .cta__circle, .cta__circle span { transition-duration: 0.01ms; transition-delay: 0s; }
  .skip-link { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3f3f3c; --line: rgba(0, 0, 0, 0.3); }
  :root[data-theme="dark"] { --muted: #cfcec9; --line: rgba(255, 255, 255, 0.35); }
  .card { box-shadow: 0 0 0 1px var(--ink); }
  .btn--ghost { box-shadow: inset 0 0 0 1px var(--ink); }
  .theme-toggle { box-shadow: var(--sw-rim), 0 0 0 2px var(--ink); }
}
/* Windows High Contrast: the system replaces our colours, so give controls real borders
   and keep focus rings in the system highlight colour */
@media (forced-colors: active) {
  .cta__inner, .cta__circle, .btn, .theme-toggle, .faq__q { border: 1px solid ButtonText; }
  .card, .feature__viz, .panel { border: 1px solid CanvasText; }
  :focus-visible { outline-color: Highlight; }
  .circuit, .progressive-blur, .footer__ascii, .feature__dots, .feature__viz::after { display: none; }
}
