/* =========================================================
   The Wandering Yank — AI Automation Agency
   Plain CSS. Brand palette: #222831 · #31363F · #76ABAE (accent) · #EEEEEE
   Two themes, chosen by the visitor's time of day (inline script in each page's <head> sets html[data-theme]):
   the white page is the base of this file; the dark page is the "Night theme" block at the end.
   Type: Bricolage Grotesque (display) · Instrument Sans (text) · Instrument Serif italic (accent) · DM Mono (labels)
   Motion system: one idea — the neon light from the hero travels through the page.
   Ambient loops: 2 only (hero tubes + console light packets). Everything else plays once
   on entry or responds to hover / scroll. Off for prefers-reduced-motion and low-end devices.
   ========================================================= */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;             /* page canvas */
  --bg-2: #f3f7f7;           /* quiet alternate band (a breath of brand teal) */
  --ink: #222831;            /* text (brand charcoal) */
  --charcoal: #222831;       /* brand */
  --graphite: #31363f;       /* brand */
  --teal: #76abae;           /* brand accent: fills, lines, glows (unchanged) */
  --teal-hi: #b4dadc;        /* lighter tint of brand teal */
  --teal-lo: #4b7f83;        /* deeper tint of brand teal */
  --teal-ink: #3d6c70;       /* same hue, deep enough for text on white (AA) */
  --fg: #222831;
  --fg-2: rgba(34, 40, 49, 0.76);
  --fg-3: rgba(34, 40, 49, 0.66);
  --line: rgba(34, 40, 49, 0.09);
  --line-2: rgba(34, 40, 49, 0.17);
  --glow: rgba(118, 171, 174, 0.35);
  --shadow-card: 0 1px 2px rgba(34, 40, 49, 0.05), 0 18px 40px -22px rgba(34, 40, 49, 0.22);
  --loss: #c4463f;           /* semantic only: money lost (readable on white) */

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --gutter: 1rem;
  --hdr-h: 108px;   /* header height at the top of the page */
  --logo-h: 92px;   /* logo height (2x the original size) */
}
@media (min-width: 62rem) { :root { --hdr-h: 128px; --logo-h: 108px; } }
@media (min-width: 62rem) { .hdr.is-stuck { --hdr-h: 96px; --logo-h: 80px; } }
/* mid-width desktops (992–1200 px): compact header so the nav + CTA always fit */
@media (min-width: 62rem) and (max-width: 74.99rem) {
  :root { --hdr-h: 112px; --logo-h: 76px; }
  .hdr.is-stuck { --hdr-h: 88px; --logo-h: 64px; }
  .hdr .pill a { padding: 0.5rem 0.6rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
  color-scheme: light;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--teal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--teal); color: var(--ink); padding: 0.7rem 1rem;
  border-radius: 10px; font-weight: 600; transition: top 0.2s var(--ease);
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }

/* ---------- Type ---------- */
.display, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 6.4vw + 0.4rem, 5.6rem); line-height: 1; }
.h2 { font-size: clamp(2rem, 3.8vw + 0.6rem, 3.6rem); line-height: 1.04; }
.h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem); color: var(--fg-2); max-width: 38em; text-wrap: pretty; }
.muted { color: var(--fg-2); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; font-size: 1.12em; line-height: 0.9; }
.grad {
  background: linear-gradient(100deg, var(--teal-ink) 0%, var(--teal-lo) 45%, #5b9498 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(118, 171, 174, 0.18);
}
.sec-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head p { color: var(--fg-2); font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--teal-hi), var(--teal) 70%);
  box-shadow: 0 0 0 1px rgba(180, 218, 220, 0.5) inset, 0 10px 30px -8px rgba(118, 171, 174, 0.65);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(180, 218, 220, 0.7) inset, 0 16px 40px -8px rgba(118, 171, 174, 0.8); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { border-color: rgba(118, 171, 174, 0.8); background: rgba(118, 171, 174, 0.12); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: border-color 0.3s; border-bottom: 1px solid transparent; }
.hdr.is-stuck { --hdr-h: 80px; --logo-h: 64px;  /* compact bar while scrolling */
  border-bottom-color: var(--line);
}
/* The frosted bar is a pseudo-element on purpose: a backdrop-filter on .hdr itself makes the header the containing block
   of the position:fixed mobile menu (#mnav, a child of .hdr), which squashed the open menu to the height of the bar. */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity 0.3s;
}
.hdr.is-stuck::before { opacity: 1; }
.hdr-in { height: var(--hdr-h); transition: height 0.35s var(--ease); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: var(--logo-h); width: auto; transition: height 0.35s var(--ease); filter: brightness(0) invert(0.14); } /* the logo file is white: charcoal on the white page */
.pill {
  display: none; align-items: center; gap: 0.15rem; padding: 0.3rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.72);
}
.pill a {
  white-space: nowrap;
  padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.9rem; color: var(--fg-2);
  transition: color 0.2s, background-color 0.2s;
}
.pill a:hover { color: var(--fg); }
.pill a[aria-current="true"] { color: var(--ink); background: var(--teal); }
.hdr-act { display: flex; align-items: center; gap: 0.6rem; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border-radius: 999px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  border: 1px solid var(--line-2); color: var(--fg-2); transition: color 0.2s, border-color 0.2s;
}
.lang:hover { color: var(--fg); border-color: var(--teal-lo); }
.hdr-cta { display: none; }
.hdr-act .lang { display: none; }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mnav {
  position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 99;
  padding: 1.5rem var(--gutter) 2rem; background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mnav a.ml {
  font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.mnav .btn { margin-top: 1.5rem; }

@media (min-width: 62rem) {
  .pill { display: flex; }
  .hdr-cta { display: inline-flex; }
  .hdr-act .lang { display: inline-flex; }
  .menu-btn, .mnav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 40rem); display: grid; align-items: center;
  padding: calc(var(--hdr-h) + 1.5rem) 0 7rem;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg > * { position: absolute; }
/* Shown instantly (and kept on devices that skip WebGL): soft teal light, no JS needed */
.hero-bg .poster {
  inset: 0;
  background:
    radial-gradient(55% 48% at 50% 58%, rgba(118, 171, 174, 0.26), transparent 72%),
    radial-gradient(38% 34% at 18% 28%, rgba(118, 171, 174, 0.18), transparent 72%),
    radial-gradient(36% 32% at 84% 74%, rgba(180, 218, 220, 0.30), transparent 72%);
}
/* WebGL "neon flow" canvas (tubes that follow the cursor) — see js/hero-tubes.js.
   The engine renders light on black. On the white page the canvas is inverted (black -> white, light -> ink) and its hue
   rotated back, so the tubes keep the brand teal; multiply lets the poster's soft teal wash show through the white. */
.hero-bg .tubes { inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); filter: invert(1) hue-rotate(180deg) brightness(1.18); mix-blend-mode: multiply; }
.hero-bg .tubes.is-ready { opacity: 1; }
/* Keeps text legible over the light + blends the hero into the next section */
.hero-bg .scrim {
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 20%, transparent 78%, var(--bg) 100%);
}
.hero-hint {
  position: absolute; left: 50%; bottom: 2.2rem; translate: -50% 0; z-index: 1; white-space: nowrap;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
  opacity: 0; transition: opacity 1s var(--ease) 0.6s; pointer-events: none;
}
.hero.tubes-on .hero-hint { opacity: 1; }
@media (hover: none), (pointer: coarse) { .hero-hint { display: none; } }

.hero-in { display: grid; justify-items: center; text-align: center; gap: 1.6rem; }

.chip {
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.9);
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.78);
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2);
  animation: fade-up 0.8s var(--ease) both;
}
.chip .pulse { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(118, 171, 174, 0.16); }
.chip .pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-lo); box-shadow: 0 0 10px var(--teal); }
.hero .display { max-width: 24ch; font-size: clamp(2.3rem, 5.1vw + 0.2rem, 4.9rem); }
/* White glow behind the hero type. Cheap on purpose: a filter on the animated headline forced a re-paint every
   frame (Lighthouse mobile 56 -> 96 after removing it), so the glow is a static halo + per-word text-shadow. */
.hero .display .w > span { text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 24px rgba(255, 255, 255, 0.75); }
.hero .display .w > span.grad { text-shadow: none; }
.hero-in { position: relative; }
.hero-in::before {
  content: ""; position: absolute; z-index: -1; inset: -3rem -1.5rem -2rem; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 42%, rgba(255, 255, 255, 0.22) 74%, transparent 100%);
}
.hero .display .serif { font-size: 1.16em; }
.hero .grad { background-image: linear-gradient(100deg, var(--teal-ink) 0%, var(--teal-lo) 50%, #5b9498 100%); }
.hero .lead { color: rgba(34, 40, 49, 0.9); }
.hero .lead, .hero .micro, .hero-hint { text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 30px rgba(255, 255, 255, 0.8), 0 0 56px rgba(255, 255, 255, 0.6); }
.hero .micro { color: rgba(34, 40, 49, 0.74); }
.hero .lead { max-width: 46em; animation: fade-up 0.8s var(--ease) 0.4s both; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; animation: fade-up 0.8s var(--ease) 0.5s both; }
.micro { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--fg-3); animation: fade-up 0.8s var(--ease) 0.6s both; }

@media (max-width: 30rem) { .chip { border-radius: 20px; letter-spacing: 0.06em; padding-right: 0.9rem; text-align: left; } }

/* Headline word reveal (CSS only, no JS needed) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.14em; margin: 0 -0.08em -0.14em; }
.w > span { display: inline-block; transform: translate3d(0, 108%, 0); }
.hero .w > span { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 60ms); }
.js [data-split]:not(.is-split) { visibility: hidden; }
[data-split].is-in .w > span { animation: rise 1.05s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Live console (HTML/CSS product mockup, section below the hero) ---------- */
.console-wrap { margin-top: 0; }
.console {
  position: relative; border-radius: var(--r-lg); padding: 1px;
  background: linear-gradient(180deg, rgba(118, 171, 174, 0.7), rgba(34, 40, 49, 0.08) 35%, rgba(118, 171, 174, 0.34));
  box-shadow: 0 50px 100px -44px rgba(34, 40, 49, 0.3), 0 0 90px -34px rgba(118, 171, 174, 0.55);
}
.console-in { border-radius: calc(var(--r-lg) - 1px); overflow: hidden; background: linear-gradient(180deg, #ffffff, #f5f9f9); position: relative; }
.con-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
.con-bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(34, 40, 49, 0.16); }
.con-title { margin-left: 0.6rem; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  margin-left: auto; flex: none; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px; color: var(--teal-ink); border: 1px solid rgba(118, 171, 174, 0.55); background: rgba(118, 171, 174, 0.12);
}
.con-body { position: relative; padding: 1.25rem; }
.con-cols { position: relative; display: grid; gap: 0.75rem; }
/* phones: triggers → agent → outcomes stacked in one column (the side-by-side view returns from 52rem up) */
@media (max-width: 51.99rem) {
  .con-cols > .con-mid { position: relative; padding-block: 1.6rem; }
  .con-cols > .con-mid::before, .con-cols > .con-mid::after { content: ""; position: absolute; left: 50%; width: 1px; height: 1.3rem; background: linear-gradient(180deg, transparent, var(--teal)); }
  .con-cols > .con-mid::before { top: 0.15rem; }
  .con-cols > .con-mid::after { bottom: 0.15rem; transform: scaleY(-1); }
}
/* stacked (mobile) order: triggers → agent → outcomes */
.con-cols > .col-h { order: 1; margin-top: 0; }
.con-cols > .nodes { order: 2; }
.con-cols > .con-mid { order: 3; }
.con-cols > .col-h.r { order: 4; margin-top: 0.4rem; }
.con-cols > .nodes.o { order: 5; }
.col-h { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 0.6rem; }
.nodes { display: grid; gap: 0.7rem; }
.node {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0.85rem; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: #ffffff; box-shadow: 0 1px 2px rgba(34, 40, 49, 0.04), 0 8px 20px -14px rgba(34, 40, 49, 0.2);
}
.node .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--fg); background: rgba(34, 40, 49, 0.045); border: 1px solid var(--line-2); }
.node .ic svg { width: 18px; height: 18px; }
.node b { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.25; }
.node small { display: block; font-size: 0.78rem; color: var(--fg-3); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node .tick { margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--ink); transform: scale(0); }
.node .tick svg { width: 13px; height: 13px; }
.is-live .node .tick { animation: pop 0.6s var(--ease) both; animation-delay: calc(1.7s + var(--k, 0) * 0.35s); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.con-mid { display: grid; place-items: center; gap: 0.6rem; padding-block: 0.5rem; text-align: center; }
.core { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.core::before { /* rotating ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--teal) 90%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
.core::after { /* soft halo */
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(118, 171, 174, 0.38), transparent);
}
.core .orb { position: relative; z-index: 1; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #3d4a55, #1a2027 70%); border: 1px solid rgba(180, 218, 220, 0.3); box-shadow: 0 0 30px rgba(118, 171, 174, 0.35) inset; }
.core .orb img { width: 46px; height: 46px; }
/* power-on: the ring sweeps in and the halo opens once when the console enters the view */
.is-live .core::before { animation: ring-in 1.8s var(--ease) both; }
.is-live .core::after { animation: halo-in 1.8s var(--ease) both; }
@keyframes ring-in { from { transform: rotate(-220deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes halo-in { from { transform: scale(0.55); opacity: 0; } to { transform: none; opacity: 1; } }
.nodes .node:nth-child(1) { --n: 0; } .nodes .node:nth-child(2) { --n: 1; } .nodes .node:nth-child(3) { --n: 2; } .nodes .node:nth-child(4) { --n: 3; }
.is-live .nodes .node { animation: node-in-l 0.9s var(--ease) both; animation-delay: calc(0.1s + var(--n) * 0.14s); }
.is-live .nodes.o .node { animation-name: node-in-r; animation-delay: calc(1.05s + var(--n) * 0.16s); }
@keyframes node-in-l { from { opacity: 0; transform: translate3d(-18px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes node-in-r { from { opacity: 0; transform: translate3d(18px, 0, 0); } to { opacity: 1; transform: none; } }
.core-label b { display: block; font-size: 0.86rem; font-weight: 600; }
.core-label small { display: block; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); }

.flow { display: none; }
.con-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 1rem 1.1rem; display: grid; gap: 0.15rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat small { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.stat strong { font-family: var(--f-display); font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: auto; margin-top: 0.3rem; overflow: visible; }
.spark path { fill: none; stroke: var(--teal-lo); stroke-width: 0.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-live .spark path { animation: draw 1.8s var(--ease) 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 52rem) {
  .con-body { padding: 1.75rem 2rem 2rem; }
  .con-cols { grid-template-columns: 34% 1fr 34%; grid-template-rows: auto 1fr; column-gap: 0; min-height: 25rem; }
  .con-cols > .col-h, .con-cols > .nodes, .con-cols > .con-mid { order: 0; }
  .con-cols > .col-h.r { margin-top: 0; }
  .con-cols > .col-h { grid-row: 1; }
  .con-cols > .col-h.r { grid-column: 3; }
  .con-cols > .nodes { grid-row: 2; grid-template-rows: repeat(4, 1fr); align-content: stretch; }
  .con-cols > .nodes.o { grid-column: 3; grid-template-rows: repeat(3, 1fr); }
  .con-cols > .nodes .node { align-self: center; }
  .con-mid { grid-row: 2; grid-column: 2; align-content: center; padding-block: 0; }
  .flow { display: block; position: absolute; left: 0; right: 0; top: 2rem; bottom: 0; width: 100%; height: calc(100% - 2rem); pointer-events: none; overflow: visible; }
  .flow path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
  .flow .base { stroke: rgba(118, 171, 174, 0.34); stroke-width: 1.2; stroke-dasharray: 100; stroke-dashoffset: 0; }
  .is-live .flow .base { animation: draw-line 1.3s var(--ease) both; }
  .flow .base:nth-child(1) { animation-delay: 0.2s; } .flow .base:nth-child(2) { animation-delay: 0.34s; } .flow .base:nth-child(3) { animation-delay: 0.48s; } .flow .base:nth-child(4) { animation-delay: 0.62s; }
  .flow .base:nth-child(5) { animation-delay: 1.05s; } .flow .base:nth-child(6) { animation-delay: 1.19s; } .flow .base:nth-child(7) { animation-delay: 1.33s; }
  .flow .pkt { stroke: var(--teal); stroke-width: 2.4; stroke-dasharray: 7 93; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px var(--teal)); animation: packet 3.2s linear infinite; animation-delay: calc(2s + var(--k, 0) * 0.55s); }
  .flow .pkt.out { animation-delay: calc(3.1s + var(--k, 0) * 0.55s); }
}
@keyframes draw-line { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes packet { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ---------- Marquee ---------- */
.marquee-sec { padding-block: 2.5rem 1rem; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee-title { text-align: center; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); padding-inline: var(--gutter); margin-bottom: 1.6rem; }
.marquee { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding-bottom: 1.5rem; }
.marquee-track { display: flex; width: max-content; }
@supports (animation-timeline: view()) {
  .marquee { overflow: hidden; }
  .marquee-track { animation: marquee-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}
.marquee ul { display: flex; flex: none; gap: 0.75rem; padding-right: 0.75rem; }
.marquee li { display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); background: #ffffff; font-size: 0.92rem; color: var(--fg-2); }
.marquee li::before { content: ""; width: 6px; height: 6px; rotate: 45deg; background: var(--teal); flex: none; }
@keyframes marquee-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Reveal-on-scroll ---------- */
/* whisper: opacity only, no travel */
.js [data-reveal] { opacity: 0; transition: opacity 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; }
/* cards and panels: the light from the hero passes along the top edge once */
.js .card[data-reveal]::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--teal) 50%, transparent); box-shadow: 0 0 14px 1px rgba(118, 171, 174, 0.6);
}
.js .card[data-reveal].is-in::after { animation: light-pass 1.6s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 0.25s); }
@keyframes light-pass { 0% { opacity: 0; transform: translateX(-100%); } 14% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }

/* Off-screen animation pause */
[data-live]:not(.is-live) *, [data-live]:not(.is-live) *::before, [data-live]:not(.is-live) *::after { animation-play-state: paused !important; }

/* ---------- Spotlight + cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--line); background: linear-gradient(180deg, #ffffff, #f8fbfb); box-shadow: var(--shadow-card);
  transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(118, 171, 174, 0.16), transparent 45%);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(118, 171, 174, 0.65); }
  .card:hover::before { opacity: 1; }
}

/* ---------- Statement (the "night shift" idea + San Antonio skyline art) ---------- */
.statement { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(5.5rem, 12vw, 10rem); }
.statement .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.6rem; text-align: center; }
.stmt {
  font-family: var(--f-display); font-weight: 650; letter-spacing: -0.045em; line-height: 0.96; text-wrap: balance;
  font-size: clamp(2.6rem, 7.6vw, 6.6rem); max-width: 14ch;
}
.stmt .serif { color: var(--teal-lo); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 1.6rem; margin-top: 1.2rem; }
.facts li { display: grid; gap: 0.2rem; min-width: 8rem; }
.facts b { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.facts span { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
@media (min-width: 42rem) { .facts { gap: 1rem 4.5rem; } }
.stmt-art { position: relative; z-index: 0; margin-top: clamp(0.5rem, 3vw, 2.5rem); overflow: hidden; }
.stmt-art .frame {
  position: relative; left: 50%; translate: -50% 0; width: max(100%, 46rem);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 84%, transparent 100%);
}
.stmt-art .frame img { display: block; width: 100%; max-width: none; height: auto; }
.stmt-art .net { position: absolute; inset: 0; }
.stmt-art .frame img.only-night { display: none; } /* day = pastel skyline, night = the dark one (the hidden one is never fetched: both are lazy) */
.js .stmt-art .net { clip-path: inset(0 100% 0 0); }
.js .stmt-art.is-in .net { animation: net-wipe 2.8s var(--ease) 0.3s both; }
@keyframes net-wipe { to { clip-path: inset(0 0 0 0); } }

/* ---------- Services (bento) ---------- */
.bento { display: grid; gap: 1rem; }
.svc { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; min-height: 18rem; }
.svc .vis { height: 7.5rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.svc .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--fg); background: rgba(34, 40, 49, 0.045); border: 1px solid var(--line-2); }
.svc .ico svg { width: 20px; height: 20px; }
.svc-top { display: flex; align-items: center; gap: 0.8rem; }
.svc p { color: var(--fg-2); font-size: 0.97rem; text-wrap: pretty; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.svc .tags li { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-3); }

/* mini visuals */
.wave { display: flex; align-items: center; gap: 4px; height: 60%; }
.wave i { --h: calc(0.22 + 0.78 * sin(var(--i) * 0.42) * sin(var(--i) * 0.42)); width: 4px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, var(--teal), var(--teal-lo)); transform: scaleY(var(--h)); }
.svc.is-in .wave i { animation: wave 1.3s ease-in-out 2 both; animation-delay: calc(var(--i) * -85ms); }
@media (hover: hover) { .svc:hover .wave i { animation: wave 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * -85ms); } }
@keyframes wave { 0%, 100% { transform: scaleY(var(--h)); } 50% { transform: scaleY(calc(1.1 - var(--h))); } }
.chain { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1rem; flex-wrap: wrap; }
@media (max-width: 30rem) { .chain svg { display: none; } }
.chain span { font-size: 0.75rem; padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line-2); background: #ffffff; white-space: nowrap; }
.chain span.hi { color: var(--ink); background: var(--teal); border-color: transparent; font-weight: 600; }
.chain svg { width: 14px; height: 14px; color: var(--teal-lo); flex: none; }
.dashline { stroke: var(--teal-lo); stroke-width: 1.4; stroke-dasharray: 4 5; fill: none; }
.svc.is-in .dashline { animation: dash 1.2s linear 2 both; }
@media (hover: hover) { .svc:hover .dashline { animation: dash 1.2s linear infinite; } }
@keyframes dash { to { stroke-dashoffset: -18; } }
.bub { display: grid; grid-template-columns: 1fr; row-gap: 0.4rem; width: 100%; padding: 0.8rem 1rem; }
.bub .typing, .bub p.me { grid-row: 2; justify-self: end; }
html:not(.js) .typing { display: none; }
.js .bub > * { opacity: 0; }
/* small story: question, agent typing, answer (plays once) */
.js .svc.is-in .bub > p:first-child { animation: bub-in 0.7s var(--ease) 0.3s both; }
.js .svc.is-in .bub .typing { animation: typing-life 1.7s linear 1s both; }
.js .svc.is-in .bub p.me { animation: bub-in 0.7s var(--ease) 2.7s both; }
@keyframes bub-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
@keyframes typing-life { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
.bub p { font-size: 0.76rem; line-height: 1.3; padding: 0.4rem 0.7rem; border-radius: 12px 12px 12px 4px; background: #ffffff; border: 1px solid var(--line); width: fit-content; max-width: 88%; color: var(--fg); }
.bub p.me { margin-left: auto; border-radius: 12px 12px 4px 12px; background: rgba(118, 171, 174, 0.3); border-color: rgba(118, 171, 174, 0.4); }
.typing { display: inline-flex; gap: 4px; padding: 0.5rem 0.7rem; border-radius: 12px 12px 12px 4px; background: #ffffff; border: 1px solid var(--line); width: fit-content; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-lo); animation: bounce 1.1s ease-in-out 2; animation-delay: calc(1s + var(--i) * 0.15s); }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 62%; }
.bars i { width: 16px; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--teal), var(--teal-lo)); transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 90ms + 200ms); }
.is-in .bars i, .bars.is-in i { transform: scaleY(1); }
.road { display: grid; gap: 0.45rem; width: 100%; padding: 0.8rem 1rem; }
.road li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.76rem; color: var(--fg-2); }
.road li svg { width: 15px; height: 15px; flex: none; color: var(--teal-lo); }
.road li i { flex: 1; height: 4px; border-radius: 4px; background: rgba(34, 40, 49, 0.12); position: relative; overflow: hidden; }
.road li i::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform: scaleX(var(--p)); transform-origin: left; }

@media (min-width: 46rem) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .svc.w2 { grid-column: span 2; }
}

/* ---------- Phone carousels (scroll-snap; grid returns on larger screens) ---------- */
.dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.dots[hidden] { display: none; }
.dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(34, 40, 49, 0.2); transition: width 0.35s var(--ease), background-color 0.35s; }
.dots i.on { width: 22px; background: var(--teal-lo); }
@media (max-width: 45.99rem) {
  .bento[data-snap] {
    display: flex; overflow-x: auto; gap: 0.9rem; padding: 0.25rem var(--gutter) 0.5rem; margin-inline: calc(var(--gutter) * -1);
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .bento[data-snap]::-webkit-scrollbar { display: none; }
  .bento[data-snap] > .svc { flex: 0 0 min(84%, 22rem); scroll-snap-align: start; min-height: 0; }
}
@media (max-width: 61.99rem) {
  .plans[data-snap] {
    display: flex; overflow-x: auto; gap: 0.9rem; padding: 0.25rem var(--gutter) 0.5rem; margin-inline: calc(var(--gutter) * -1);
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .plans[data-snap]::-webkit-scrollbar { display: none; }
  .plans[data-snap] > .plan { flex: 0 0 min(86%, 24rem); scroll-snap-align: center; }
}
[data-snap]:focus-visible { outline-offset: -2px; }

/* ---------- Process (editorial rows, no cards) ---------- */
.process { display: grid; gap: 3rem; position: relative; }
.steps { display: grid; border-top: 1px solid var(--line-2); }
.step {
  display: grid; grid-template-columns: clamp(3.8rem, 9vw, 5.6rem) 1fr; gap: 1rem clamp(1rem, 3vw, 2rem);
  padding-block: clamp(1.7rem, 3vw, 2.5rem); position: relative;
}
.step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); transform-origin: left; transition: transform 1.3s var(--ease) 0.15s; }
.js .step:not(.is-in)::after { transform: scaleX(0); }
.step .num {
  font-family: var(--f-display); font-weight: 650; font-size: clamp(2.8rem, 6vw, 4.6rem); letter-spacing: -0.05em; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1px rgba(34, 40, 49, 0.28);
  transition: color 0.9s var(--ease) 0.2s, -webkit-text-stroke-color 0.9s var(--ease) 0.2s;
}
.step.is-in .num { color: rgba(118, 171, 174, 0.2); -webkit-text-stroke-color: var(--teal-lo); }
.step h3 { margin-bottom: 0.5rem; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.step p { color: var(--fg-2); max-width: 34rem; text-wrap: pretty; }
.fineprint { margin-top: 1.1rem; font-size: 0.8125rem; line-height: 1.5; color: var(--fg-3); }
.step .meta { display: inline-block; margin-top: 0.9rem; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
@media (min-width: 64rem) {
  .process { grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 5rem; }
  .process .sec-head { position: sticky; top: 8rem; margin-bottom: 0; }
}

/* ---------- Network lattice (the logo's polyhedron, as a background motif) ---------- */
.has-lattice { position: relative; isolation: isolate; }
.has-lattice::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/art/lattice-light.svg") var(--lat-pos, 0% 30%) / min(1400px, 130%) auto no-repeat;
  -webkit-mask-image: radial-gradient(60% 65% at var(--lat-fade, 15% 40%), #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 65% at var(--lat-fade, 15% 40%), #000 0%, transparent 78%);
  opacity: 0.9;
}

/* ---------- Demo (missed call → booked) ---------- */
.demo { display: grid; gap: 3rem; align-items: center; }
.checks { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.9rem; }
.checks .ck { flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--teal); transform: scale(0); transition: transform 0.6s var(--ease); transition-delay: calc(var(--k) * 0.9s + 0.6s); }
.checks .ck svg { width: 15px; height: 15px; }
.is-in .checks .ck, .checks.is-in .ck { transform: scale(1); }
.checks b { display: block; font-weight: 600; }
.checks span.d { color: var(--fg-2); font-size: 0.95rem; }
.phone { width: min(100%, 24rem); margin-inline: auto; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #3a424d, #222831 45%, #2b333d); box-shadow: 0 50px 100px -34px rgba(34, 40, 49, 0.45), 0 0 80px -24px rgba(118, 171, 174, 0.55); }
.phone-in { border-radius: 26px; background: #ffffff; overflow: hidden; }
.ph-top { padding: 1rem 1.1rem; display: flex; align-items: center; gap: 0.7rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ph-top .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--charcoal); }
.ph-top .av img { width: 22px; height: 22px; }
.ph-top b { display: block; font-size: 0.9rem; line-height: 1.2; }
.ph-top small { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-ink); }
.ph-body { display: grid; gap: 0.6rem; padding: 1.1rem; min-height: 24rem; align-content: start; }
.ph-body .sys { text-align: center; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.m { max-width: 84%; padding: 0.6rem 0.85rem; border-radius: 16px 16px 16px 4px; background: rgba(34, 40, 49, 0.07); font-size: 0.88rem; line-height: 1.4; opacity: 0; transform: translate3d(0, 10px, 0) scale(0.98); }
.m.ai { margin-left: auto; border-radius: 16px 16px 4px 16px; background: linear-gradient(180deg, rgba(118, 171, 174, 0.42), rgba(118, 171, 174, 0.3)); }
.m.done { display: flex; gap: 0.6rem; align-items: center; max-width: 100%; border-radius: 14px; background: rgba(118, 171, 174, 0.14); border: 1px solid rgba(118, 171, 174, 0.55); }
.m.done svg { flex: none; width: 20px; height: 20px; color: var(--teal-ink); }
.m.done b { display: block; font-size: 0.86rem; }
.m.done small { color: var(--fg-2); font-size: 0.78rem; }
.is-live .m { animation: msg 0.7s var(--ease) both; animation-delay: calc(var(--i) * 1.05s + 0.4s); }
@keyframes msg { to { opacity: 1; transform: none; } }
@media (min-width: 62rem) { .demo { grid-template-columns: 1fr 24rem; gap: 6rem; } }

/* ---------- Missed-call calculator ---------- */
.roi { padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; gap: 2.2rem; }
.fields { display: grid; gap: 1.6rem; }
.fld label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 500; margin-bottom: 0.7rem; }
.fld output { font-family: var(--f-display); font-size: 1.35rem; font-weight: 650; color: var(--teal-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fld small { display: block; margin-top: 0.5rem; color: var(--fg-3); font-size: 0.82rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--teal) var(--p, 0%), rgba(34, 40, 49, 0.14) var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(34, 40, 49, 0.14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--teal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #ffffff; border: 4px solid var(--teal); box-shadow: 0 0 0 6px rgba(118, 171, 174, 0.2), 0 4px 14px rgba(34, 40, 49, 0.28); transition: box-shadow 0.25s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #ffffff; border: 4px solid var(--teal); box-shadow: 0 0 0 6px rgba(118, 171, 174, 0.2); }
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(118, 171, 174, 0.24), 0 4px 14px rgba(34, 40, 49, 0.28); }
.result { position: relative; overflow: hidden; border-radius: var(--r-md); padding: clamp(1.4rem, 3vw, 2rem); background: radial-gradient(120% 90% at 100% 0%, rgba(242, 160, 160, 0.3), transparent 62%), #fff7f6; border: 1px solid rgba(196, 70, 63, 0.3); display: grid; gap: 1.3rem; align-content: start; }
.result .big { font-family: var(--f-display); font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.result .lbl { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 0.5rem; }
.result .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line-2); }
.result .split b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.result .split span { font-size: 0.82rem; color: var(--fg-2); }
.loss { color: var(--loss); }
.res-foot .btn { white-space: normal; text-align: center; }
.res-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.res-foot b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.res-foot span { font-size: 0.82rem; color: var(--fg-2); }
.roi > * { min-width: 0; }
.result .note { font-size: 0.78rem; color: var(--fg-3); line-height: 1.5; }
@media (min-width: 58rem) { .roi { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch; } }

/* ---------- Local ---------- */
.local { display: grid; gap: 3rem; align-items: center; }
.pts { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.pts li { display: flex; gap: 1rem; }
.pts .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--fg); background: rgba(34, 40, 49, 0.045); border: 1px solid var(--line-2); }
.pts .ico svg { width: 20px; height: 20px; }
.pts b { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.pts span { color: var(--fg-2); font-size: 0.96rem; }
.radar { position: relative; width: min(100%, 30rem); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; overflow: hidden; } /* contains the rotating sweep so it can't widen the page on phones */
.radar .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(118, 171, 174, 0.4); }
.radar .r1 { width: 32%; height: 32%; } .radar .r2 { width: 58%; height: 58%; } .radar .r3 { width: 84%; height: 84%; } .radar .r4 { width: 100%; height: 100%; border-style: dashed; border-color: rgba(118, 171, 174, 0.3); }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; opacity: 0; background: conic-gradient(from 0deg, rgba(118, 171, 174, 0) 0deg, rgba(118, 171, 174, 0.34) 60deg, rgba(118, 171, 174, 0) 61deg); -webkit-mask: radial-gradient(closest-side, #000 98%, transparent); mask: radial-gradient(closest-side, #000 98%, transparent); }
.radar.is-live .sweep { animation: sweep-once 2.8s linear 1 both; }
@keyframes sweep-once { 0% { transform: rotate(0); opacity: 0; } 6%, 94% { opacity: 1; } 100% { transform: rotate(360deg); opacity: 0; } }
.radar .pin { position: relative; z-index: 2; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--ink); box-shadow: 0 0 40px var(--teal); }
.radar .pin svg { width: 26px; height: 26px; }
.radar .pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; }
.radar.is-live .pin::after { animation: ping 2.4s var(--ease) 2 both; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes area-in { to { opacity: 1; transform: none; } }
.radar .hq { position: absolute; left: 50%; top: calc(50% + 40px); translate: -50% 0; z-index: 2; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); white-space: nowrap; text-shadow: 0 0 12px #ffffff, 0 0 4px #ffffff; }
.radar .city { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 1; }
.radar .city i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-lo); box-shadow: 0 0 0 3px rgba(118, 171, 174, 0.3), 0 0 12px rgba(118, 171, 174, 0.55); }
.radar .city b { position: absolute; white-space: nowrap; font-family: var(--f-mono); font-weight: 400; font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.06em; padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.94); color: var(--fg-2); box-shadow: 0 2px 8px -4px rgba(34, 40, 49, 0.25); }
.radar .city.r b { left: 10px; top: -12px; }
.radar .city.l b { right: 10px; top: -12px; }
.radar .city.t b { bottom: 10px; left: 50%; translate: -50% 0; }
.radar .city.b b { top: 10px; left: 50%; translate: -50% 0; }
.js .radar .city { opacity: 0; transform: scale(0.9); }
.radar.is-live .city { animation: area-in 0.7s var(--ease) both; animation-delay: var(--t, 0s); } /* each city appears as the sweep reaches it */
.radar .coord { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--fg-3); white-space: nowrap; }
@media (min-width: 62rem) { .local { grid-template-columns: 1fr 1fr; gap: 6rem; } }

/* ---------- Packages ---------- */
.plans { display: grid; gap: 1rem; align-items: stretch; }
.plan { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.3rem; }
.plan .tier { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.plan .price { font-family: var(--f-display); font-size: 2.2rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { display: block; margin-top: 0.4rem; font-family: var(--f-body); font-size: 0.86rem; letter-spacing: 0; font-weight: 400; color: var(--fg-3); }
.plan ul { display: grid; gap: 0.7rem; margin-block: 0.4rem 1rem; }
.plan li { display: flex; gap: 0.7rem; font-size: 0.95rem; color: var(--fg-2); }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--fg-3); }
.plan .btn { margin-top: auto; }
.plan.pop { border: 1px solid transparent; background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(160deg, var(--teal), var(--teal-lo) 45%, rgba(118, 171, 174, 0.2) 90%) border-box; box-shadow: 0 30px 80px -30px rgba(118, 171, 174, 0.6); }
.plan .flag { position: absolute; top: 1.2rem; right: 1.2rem; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; color: var(--ink); background: var(--teal); font-weight: 600; }
@media (min-width: 62rem) { .plans { grid-template-columns: repeat(3, 1fr); } .plan.pop { transform: translateY(-14px); } }

/* ---------- FAQ (hairline list, no boxes) ---------- */
.faq { max-width: 52rem; margin-inline: auto; display: grid; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  padding: 1.35rem 0.2rem; min-height: 60px;
  font-family: var(--f-display); font-weight: 550; letter-spacing: -0.02em; font-size: clamp(1.15rem, 1.6vw + 0.6rem, 1.45rem); line-height: 1.25;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-ink); }
.faq summary .pl { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--fg-2); transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s; }
.faq summary .pl svg { width: 16px; height: 16px; }
.faq details[open] .pl { transform: rotate(45deg); background: rgba(118, 171, 174, 0.18); border-color: rgba(118, 171, 174, 0.65); }
.faq .ans { padding: 0 3rem 1.7rem 0.2rem; color: var(--fg-2); max-width: 44rem; text-wrap: pretty; }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Contact ---------- */
.book { position: relative; overflow: hidden; }
.book::before { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: radial-gradient(70% 80% at 50% 100%, rgba(118, 171, 174, 0.2), transparent 70%); pointer-events: none; }
.book-grid { position: relative; display: grid; gap: 3rem; align-items: start; }
.contact-pts { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-pts a, .contact-pts p { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--fg-2); }
.contact-pts a:hover { color: var(--teal-ink); }
.contact-pts svg { width: 20px; height: 20px; color: var(--fg-3); flex: none; }
.or { margin-top: 2rem; display: grid; gap: 0.8rem; justify-items: start; }
.form { padding: clamp(1.4rem, 3.5vw, 2.2rem); background: #ffffff; border-color: var(--line-2); box-shadow: 0 40px 90px -46px rgba(34, 40, 49, 0.35), var(--shadow-card); }
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--fg-2); }
.field label i { color: var(--teal-ink); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; border-radius: 12px; font-size: 1rem;
  background: #ffffff; border: 1px solid rgba(34, 40, 49, 0.24); color: var(--fg);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b7f83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-lo); box-shadow: 0 0 0 4px rgba(118, 171, 174, 0.28); }
.field input::placeholder, .field textarea::placeholder { color: rgba(34, 40, 49, 0.56); }
.field [aria-invalid="true"] { border-color: #c4463f; }
.field .err { min-height: 0; font-size: 0.8rem; color: #b23a33; }
.more { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; font-size: 0.95rem; color: var(--fg-2); }
.more summary::-webkit-details-marker { display: none; }
.more summary svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease); }
.more[open] summary svg { transform: rotate(45deg); }
.more .form-grid { padding-top: 0.6rem; }
.form-note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover { color: var(--teal-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.78rem; color: var(--fg-3); }
.form-status { padding: 0.9rem 1rem; border-radius: 12px; font-size: 0.92rem; display: none; }
.form-status.ok { display: block; background: rgba(118, 171, 174, 0.16); border: 1px solid rgba(118, 171, 174, 0.6); color: var(--teal-ink); }
.form-status.bad { display: block; background: rgba(196, 70, 63, 0.07); border: 1px solid rgba(196, 70, 63, 0.4); color: #a3362f; }
.btn[disabled] { opacity: 0.65; pointer-events: none; }
.btn.is-disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }
.soon { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
@media (min-width: 40rem) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
@media (min-width: 62rem) { .book-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }

/* ---------- Footer ---------- */
.ftr { position: relative; border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; background: var(--bg-2); }
.ftr-grid { display: grid; gap: 2.4rem; padding-bottom: 3rem; }
.ftr .brand img { height: auto; width: min(100%, 340px); }
.ftr p.tag { color: var(--fg-2); max-width: 26rem; margin-top: 1rem; }
.ftr .fh { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1rem; font-weight: 500; }
.ftr ul { display: grid; gap: 0.55rem; }
.ftr ul a { color: var(--fg-2); transition: color 0.2s; overflow-wrap: anywhere; }
.ftr .social a { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; }
.ftr .social svg { width: 20px; height: 20px; flex: none; color: var(--fg-3); transition: color 0.2s; }
.ftr .social a:hover svg { color: var(--teal-ink); }
.ftr ul a:hover { color: var(--teal-ink); }
.ftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 2rem; }
.giant { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.05em; line-height: 0.82; text-align: center; white-space: nowrap; font-size: min(8.7vw, 9rem); color: transparent; -webkit-text-stroke: 1px rgba(118, 171, 174, 0.55); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%); mask-image: linear-gradient(180deg, #000 20%, transparent 95%); user-select: none; margin-top: 1rem; }
.legal { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--fg-3); }
.legal a { text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.legal a:hover { color: var(--teal-ink); }
@media (min-width: 52rem) { .ftr-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* ---------- Legal pages (privacy) + 404 ---------- */
.doc { padding-top: calc(var(--hdr-h) + 2.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.doc .prose { max-width: 44rem; margin-inline: auto; }
.doc h1 { font-family: var(--f-display); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-size: clamp(2.3rem, 5vw, 3.6rem); text-wrap: balance; margin-bottom: 0.8rem; }
.doc .updated { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 2.4rem; }
.doc h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.4rem; margin: 2.4rem 0 0.7rem; }
.doc p, .doc li { color: var(--fg-2); margin-bottom: 0.9rem; text-wrap: pretty; }
.doc ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 0.9rem; }
.doc a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-page .hdr-act .lang { display: inline-flex; }
@media (max-width: 61.99rem) { .doc-page .hdr-act .btn { display: none; } } /* the logo already links home */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem var(--gutter); }
.notfound .code { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; font-size: clamp(6rem, 24vw, 15rem); color: transparent; -webkit-text-stroke: 1px rgba(118, 171, 174, 0.8); }

/* ---------- Mobile sticky CTA ---------- */
.mcta { position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter); bottom: calc(0.8rem + env(safe-area-inset-bottom)); display: flex; gap: 0.6rem; transform: translate3d(0, 140%, 0); transition: transform 0.5s var(--ease); pointer-events: none; }
.mcta.is-show { transform: none; pointer-events: auto; }
.mcta .btn { box-shadow: 0 0 0 1px rgba(180, 218, 220, 0.5) inset, 0 14px 40px rgba(34, 40, 49, 0.28), 0 10px 30px -8px rgba(118, 171, 174, 0.6); }
.mcta .btn-primary { flex: 1; min-width: 0; }
.mcta .btn-ghost { flex: none; width: 52px; padding: 0; background: rgba(255, 255, 255, 0.96); box-shadow: 0 14px 40px rgba(34, 40, 49, 0.28); }
.mcta .btn-ghost[hidden] { display: none; }
.mcta .btn-ghost svg { width: 22px; height: 22px; }
.mcta .btn-ghost:hover svg { transform: none; }
@media (min-width: 62rem) { .mcta { display: none; } }

/* Audit-call confirmation page (/confirm/, /es/confirmar/, js/confirm.js) */
.confirm { max-width: 44rem; margin-inline: auto; }
.confirm h1:focus { outline: none; }
.confirm .lede { font-size: 1.12rem; color: var(--fg-2); margin-bottom: 1.6rem; text-wrap: pretty; }
.confirm fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; min-width: 0; }
.confirm legend { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; padding: 0; margin-bottom: 0.4rem; color: var(--fg); }
.confirm legend .muted { font-family: var(--f-body); font-weight: 400; font-size: 0.95rem; letter-spacing: 0; }
.confirm .slot-note, .confirm .prep > .muted { font-size: 0.92rem; }
.slot-list { display: grid; gap: 0.7rem; }
@media (min-width: 40rem) { .slot-list { grid-template-columns: 1fr 1fr; } }
.slot { display: flex; align-items: center; gap: 0.75rem; min-height: 56px; padding: 0.9rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-weight: 500; color: var(--fg); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease); }
.slot input { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; accent-color: var(--teal-lo); }
.slot:hover { border-color: var(--teal); }
.slot:has(input:checked) { border-color: var(--teal-lo); background: rgba(118, 171, 174, 0.12); box-shadow: 0 0 0 3px rgba(118, 171, 174, 0.25); }
.slot:has(input:focus-visible) { outline: 2px solid var(--teal-lo); outline-offset: 2px; }
.confirm .prep .form-grid { display: grid; gap: 1rem; margin-top: 0.9rem; }
.confirm .form-status { margin-top: 1rem; }
.confirm .form-note { margin: 1rem 0 0; font-size: 0.85rem; }
.confirm [data-meet] a { overflow-wrap: anywhere; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.doc .confirm a.btn { text-decoration: none; color: var(--fg); }
.doc .confirm a.btn-primary { color: var(--ink); }

/* Chatwoot launcher (injected by js/chat.js): sits above the mobile action bar while that bar is showing */
@media (max-width: 61.99rem) { html.mcta-up .woot-widget-bubble { bottom: calc(5.2rem + env(safe-area-inset-bottom)) !important; transition: bottom 0.4s var(--ease); } }

/* ---------- Scroll-linked motion (progressive: only where scroll-driven animations exist) ---------- */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; z-index: 150; top: 0; left: 0; right: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--teal-lo), var(--teal)); box-shadow: 0 0 12px 1px rgba(118, 171, 174, 0.6);
    transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root);
  }
  .hero-in { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
  .hero-bg .tubes { animation: tubes-out linear both; animation-timeline: scroll(root); animation-range: 30vh 95vh; }
  .hero-hint { animation: hint-out linear both; animation-timeline: scroll(root); animation-range: 0 22vh; }
  .stmt-art .frame { animation: art-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}
@keyframes progress { to { transform: scaleX(1); } }
@keyframes hero-out { to { opacity: 0; transform: translate3d(0, -44px, 0); } }
@keyframes tubes-out { to { opacity: 0.1; } }
@keyframes hint-out { to { opacity: 0; } }
@keyframes art-drift { from { transform: translate3d(0, 34px, 0); } to { transform: translate3d(0, -22px, 0); } }

/* ---------- Low-power + reduced-motion ---------- */
[data-lite] .btn-primary::after { display: none; }
[data-lite] .flow .pkt { animation-duration: 5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; }
  .w > span, [data-split] .w > span { transform: none; }
  .m, .node .tick, .checks .ck, .bars i, .js .bub > p, .js .radar .city { opacity: 1; transform: none; }
  .spark path { stroke-dashoffset: 0; }
  .js .stmt-art .net { clip-path: none; }
  .js .step:not(.is-in)::after { transform: none; }
  .typing, .flow .pkt, .progress { display: none; }
  .hero-in, .hero-hint, .hero-bg .tubes, .stmt-art .frame, .marquee-track { animation: none !important; }
  .marquee { overflow-x: auto; }
}

@media print { .hdr, .mcta { display: none; } }


/* =========================================================
   Night theme — the original dark page, restored under html[data-theme="dark"]
   (also the fallback when JavaScript is off). Every rule below puts back the dark values of a rule above.
   :where() adds no specificity, so the cascade behaves exactly as it did in the dark-only version.
   ========================================================= */
:root:where(:not([data-theme="light"])) {
  --bg: #12161b; --bg-2: #171c22; --ink: #12161b;
  --fg: #eeeeee; --fg-2: rgba(238, 238, 238, 0.74); --fg-3: rgba(238, 238, 238, 0.58);
  --line: rgba(238, 238, 238, 0.09); --line-2: rgba(238, 238, 238, 0.16);
  --teal-ink: var(--teal-hi); --shadow-card: none; --loss: #f2a0a0;
}
:where(html:not([data-theme="light"])) .stmt-art .frame img.only-day { display: none; }
:where(html:not([data-theme="light"])) .stmt-art .frame img.only-night { display: block; }
html:where(:not([data-theme="light"])) { background: var(--ink); color-scheme: dark; }
:where(html:not([data-theme="light"])) body { background: var(--ink); }
:where(html:not([data-theme="light"])) :focus-visible { outline: 2px solid var(--teal-hi); }
:where(html:not([data-theme="light"])) .grad { background-image: linear-gradient(100deg, var(--teal-hi) 0%, var(--teal) 55%, #9cc9cc 100%); } /* not the `background` shorthand: it would reset background-clip:text and paint solid boxes */
:where(html:not([data-theme="light"])) .btn-ghost { background: rgba(49, 54, 63, 0.35); }
:where(html:not([data-theme="light"])) .btn-ghost:hover { border-color: rgba(118, 171, 174, 0.6); background: rgba(118, 171, 174, 0.1); }
:where(html:not([data-theme="light"])) .hdr::before { background: rgba(18, 22, 27, 0.78); }
:where(html:not([data-theme="light"])) .brand img { filter: unset; }
:where(html:not([data-theme="light"])) .pill { background: rgba(34, 40, 49, 0.55); }
:where(html:not([data-theme="light"])) .lang:hover { border-color: var(--teal); }
:where(html:not([data-theme="light"])) .mnav { background: rgba(18, 22, 27, 0.97); }
:where(html:not([data-theme="light"])) .hero-bg .poster { background: radial-gradient(55% 48% at 50% 58%, rgba(118, 171, 174, 0.30), transparent 72%), radial-gradient(38% 34% at 18% 28%, rgba(75, 127, 131, 0.26), transparent 72%), radial-gradient(36% 32% at 84% 74%, rgba(180, 218, 220, 0.14), transparent 72%); }
:where(html:not([data-theme="light"])) .hero-bg .tubes { filter: unset; mix-blend-mode: unset; }
:where(html:not([data-theme="light"])) .hero-bg .scrim { background: linear-gradient(180deg, rgba(18, 22, 27, 0.35) 0%, transparent 20%, transparent 78%, var(--ink) 100%); }
:where(html:not([data-theme="light"])) .chip { box-shadow: 0 0 32px rgba(0, 0, 0, 0.7); background: rgba(34, 40, 49, 0.6); }
:where(html:not([data-theme="light"])) .chip .pulse i { background: var(--teal); }
:where(html:not([data-theme="light"])) .hero .display .w > span { text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.65); }
:where(html:not([data-theme="light"])) .hero-in::before { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.18) 74%, transparent 100%); }
:where(html:not([data-theme="light"])) .hero .grad { background-image: linear-gradient(100deg, #e6f4f5 0%, #b4dadc 55%, #8fc6ca 100%); }
:where(html:not([data-theme="light"])) .hero .lead { color: rgba(238, 238, 238, 0.92); }
:where(html:not([data-theme="light"])) .hero .lead, :where(html:not([data-theme="light"])) .hero .micro, :where(html:not([data-theme="light"])) .hero-hint { text-shadow: 0 0 12px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.75), 0 0 56px rgba(0, 0, 0, 0.5); }
:where(html:not([data-theme="light"])) .hero .micro { color: rgba(238, 238, 238, 0.75); }
:where(html:not([data-theme="light"])) .console { background: linear-gradient(180deg, rgba(180, 218, 220, 0.45), rgba(238, 238, 238, 0.06) 35%, rgba(118, 171, 174, 0.18)); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7), 0 0 100px -30px rgba(118, 171, 174, 0.45); }
:where(html:not([data-theme="light"])) .console-in { background: linear-gradient(180deg, #1b2027, #151a20); }
:where(html:not([data-theme="light"])) .con-bar > i { background: var(--graphite); }
:where(html:not([data-theme="light"])) .badge { color: var(--teal); border: 1px solid rgba(118, 171, 174, 0.35); background: rgba(118, 171, 174, 0.08); }
:where(html:not([data-theme="light"])) .node { background: linear-gradient(180deg, rgba(49, 54, 63, 0.55), rgba(34, 40, 49, 0.55)); box-shadow: unset; }
:where(html:not([data-theme="light"])) .node .ic { background: rgba(238, 238, 238, 0.05); }
:where(html:not([data-theme="light"])) .core::before { background: conic-gradient(from 0deg, transparent 0 55%, var(--teal-hi) 90%, transparent 100%); }
:where(html:not([data-theme="light"])) .core-label small { color: var(--teal); }
:where(html:not([data-theme="light"])) .spark path { stroke: var(--teal); }
@media (min-width: 52rem) {
  :where(html:not([data-theme="light"])) .flow .base { stroke: rgba(118, 171, 174, 0.22); }
  :where(html:not([data-theme="light"])) .flow .pkt { stroke: var(--teal-hi); }
}
:where(html:not([data-theme="light"])) .marquee li { background: rgba(49, 54, 63, 0.3); }
:where(html:not([data-theme="light"])) .marquee li::before { background: var(--fg-3); }
.js:where(:not([data-theme="light"])) .card[data-reveal]::after { background: linear-gradient(90deg, transparent, var(--teal-hi) 50%, transparent); box-shadow: 0 0 14px 1px rgba(118, 171, 174, 0.7); }
:where(html:not([data-theme="light"])) .card { background: linear-gradient(180deg, rgba(49, 54, 63, 0.42), rgba(34, 40, 49, 0.42)); transition: border-color 0.4s, transform 0.5s var(--ease); box-shadow: unset; }
:where(html:not([data-theme="light"])) .card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(118, 171, 174, 0.2), transparent 45%); }
@media (hover: hover) and (pointer: fine) {
  :where(html:not([data-theme="light"])) .card:hover { border-color: rgba(118, 171, 174, 0.45); }
}
:where(html:not([data-theme="light"])) .stmt .serif { color: var(--teal-hi); text-shadow: 0 0 40px rgba(118, 171, 174, 0.45); }
:where(html:not([data-theme="light"])) .svc .vis { background: rgba(18, 22, 27, 0.55); }
:where(html:not([data-theme="light"])) .svc .ico { background: rgba(238, 238, 238, 0.05); }
:where(html:not([data-theme="light"])) .wave i { background: linear-gradient(180deg, var(--teal-hi), var(--teal-lo)); }
:where(html:not([data-theme="light"])) .chain span { background: rgba(49, 54, 63, 0.5); }
:where(html:not([data-theme="light"])) .chain svg { color: var(--teal); }
:where(html:not([data-theme="light"])) .dashline { stroke: var(--teal); }
:where(html:not([data-theme="light"])) .bub p { background: rgba(49, 54, 63, 0.8); border: unset; }
:where(html:not([data-theme="light"])) .bub p.me { background: rgba(118, 171, 174, 0.22); border-color: unset; }
:where(html:not([data-theme="light"])) .typing { background: rgba(49, 54, 63, 0.8); border: unset; }
:where(html:not([data-theme="light"])) .typing i { background: var(--teal); }
:where(html:not([data-theme="light"])) .road li svg { color: var(--teal); }
:where(html:not([data-theme="light"])) .road li i { background: var(--graphite); }
:where(html:not([data-theme="light"])) .dots i { background: var(--graphite); }
:where(html:not([data-theme="light"])) .dots i.on { background: var(--teal); }
:where(html:not([data-theme="light"])) .step .num { -webkit-text-stroke: 1px rgba(238, 238, 238, 0.3); }
:where(html:not([data-theme="light"])) .step.is-in .num { color: rgba(118, 171, 174, 0.16); -webkit-text-stroke-color: var(--teal); }
:where(html:not([data-theme="light"])) .has-lattice::before { background: url("../assets/art/lattice.svg") var(--lat-pos, 0% 30%) / min(1400px, 130%) auto no-repeat; opacity: 0.85; }
:where(html:not([data-theme="light"])) .phone { background: linear-gradient(160deg, rgba(180, 218, 220, 0.4), rgba(49, 54, 63, 0.6) 40%, rgba(118, 171, 174, 0.25)); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7), 0 0 80px -20px rgba(118, 171, 174, 0.4); }
:where(html:not([data-theme="light"])) .phone-in { background: #14191f; }
:where(html:not([data-theme="light"])) .ph-top { background: rgba(34, 40, 49, 0.6); }
:where(html:not([data-theme="light"])) .ph-top .av { background: rgba(118, 171, 174, 0.16); }
:where(html:not([data-theme="light"])) .ph-top small { color: var(--teal); }
:where(html:not([data-theme="light"])) .m { background: var(--graphite); }
:where(html:not([data-theme="light"])) .m.ai { background: linear-gradient(180deg, rgba(118, 171, 174, 0.32), rgba(118, 171, 174, 0.2)); }
:where(html:not([data-theme="light"])) .m.done { border: 1px solid rgba(118, 171, 174, 0.4); }
:where(html:not([data-theme="light"])) .m.done svg { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .fld output { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--teal) var(--p, 0%), var(--graphite) var(--p, 0%)); }
:where(html:not([data-theme="light"])) input[type="range"]::-moz-range-track { background: var(--graphite); }
:where(html:not([data-theme="light"])) input[type="range"]::-webkit-slider-thumb { background: var(--fg); box-shadow: 0 0 0 6px rgba(118, 171, 174, 0.18), 0 4px 14px rgba(0, 0, 0, 0.5); }
:where(html:not([data-theme="light"])) input[type="range"]::-moz-range-thumb { background: var(--fg); box-shadow: 0 0 0 6px rgba(118, 171, 174, 0.18); }
:where(html:not([data-theme="light"])) input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(118, 171, 174, 0.22), 0 4px 14px rgba(0, 0, 0, 0.5); }
:where(html:not([data-theme="light"])) .result { background: radial-gradient(120% 90% at 100% 0%, rgba(242, 160, 160, 0.17), transparent 62%), #171c22; border: 1px solid rgba(242, 160, 160, 0.3); }
:where(html:not([data-theme="light"])) .result .big.loss { text-shadow: 0 0 34px rgba(242, 160, 160, 0.28); }
:where(html:not([data-theme="light"])) .pts .ico { background: rgba(238, 238, 238, 0.05); }
:where(html:not([data-theme="light"])) .radar .ring { border-color: rgba(118, 171, 174, 0.22); }
:where(html:not([data-theme="light"])) .radar .r4 { border-color: rgba(118, 171, 174, 0.14); }
:where(html:not([data-theme="light"])) .radar .sweep { background: conic-gradient(from 0deg, rgba(118, 171, 174, 0) 0deg, rgba(118, 171, 174, 0.28) 60deg, rgba(118, 171, 174, 0) 61deg); }
:where(html:not([data-theme="light"])) .radar .hq { color: var(--teal-hi); text-shadow: 0 0 12px rgba(18, 22, 27, 1); }
:where(html:not([data-theme="light"])) .radar .city i { background: var(--teal-hi); box-shadow: 0 0 0 3px rgba(118, 171, 174, 0.22), 0 0 12px rgba(180, 218, 220, 0.7); }
:where(html:not([data-theme="light"])) .radar .city b { background: rgba(18, 22, 27, 0.84); box-shadow: unset; }
:where(html:not([data-theme="light"])) .plan.pop { background: linear-gradient(#1b2128, #1b2128) padding-box, linear-gradient(160deg, var(--teal-hi), var(--teal-lo) 45%, rgba(118, 171, 174, 0.1) 90%) border-box; box-shadow: 0 30px 80px -30px rgba(118, 171, 174, 0.45); }
:where(html:not([data-theme="light"])) .faq summary:hover { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .faq details[open] .pl { background: rgba(118, 171, 174, 0.14); border-color: rgba(118, 171, 174, 0.5); }
:where(html:not([data-theme="light"])) .book::before { background: radial-gradient(70% 80% at 50% 100%, rgba(118, 171, 174, 0.22), transparent 70%); }
:where(html:not([data-theme="light"])) .contact-pts a:hover { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .form { background: linear-gradient(180deg, rgba(34, 40, 49, 0.85), rgba(23, 28, 34, 0.9)); box-shadow: unset; }
:where(html:not([data-theme="light"])) .field label i { color: var(--teal); }
:where(html:not([data-theme="light"])) .field input, :where(html:not([data-theme="light"])) .field select, :where(html:not([data-theme="light"])) .field textarea { background-color: rgba(18, 22, 27, 0.75); border: 1px solid var(--line-2); }
:where(html:not([data-theme="light"])) .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376abae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
:where(html:not([data-theme="light"])) .field input:focus, :where(html:not([data-theme="light"])) .field select:focus, :where(html:not([data-theme="light"])) .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(118, 171, 174, 0.2); }
:where(html:not([data-theme="light"])) .field input::placeholder, :where(html:not([data-theme="light"])) .field textarea::placeholder { color: rgba(238, 238, 238, 0.62); }
:where(html:not([data-theme="light"])) .field [aria-invalid="true"] { border-color: #e58d8d; }
:where(html:not([data-theme="light"])) .field .err { color: #f0a3a3; }
:where(html:not([data-theme="light"])) .form-note a:hover { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .form-status.ok { background: rgba(118, 171, 174, 0.14); border: 1px solid rgba(118, 171, 174, 0.45); color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .form-status.bad { background: rgba(229, 141, 141, 0.1); border: 1px solid rgba(229, 141, 141, 0.4); color: #f0b4b4; }
:where(html:not([data-theme="light"])) .ftr { background: var(--ink); }
:where(html:not([data-theme="light"])) .ftr .social a:hover svg { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .ftr ul a:hover { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .giant { -webkit-text-stroke: 1px rgba(118, 171, 174, 0.28); }
:where(html:not([data-theme="light"])) .legal a:hover { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .doc a { color: var(--teal-hi); }
:where(html:not([data-theme="light"])) .notfound .code { -webkit-text-stroke: 1px rgba(118, 171, 174, 0.5); }
:where(html:not([data-theme="light"])) .mcta .btn { box-shadow: 0 0 0 1px rgba(180, 218, 220, 0.5) inset, 0 14px 40px rgba(0, 0, 0, 0.55), 0 10px 30px -8px rgba(118, 171, 174, 0.6); }
:where(html:not([data-theme="light"])) .mcta .btn-ghost { background: rgba(23, 28, 34, 0.94); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
@supports (animation-timeline: scroll()) {
  :where(html:not([data-theme="light"])) .progress { background: linear-gradient(90deg, var(--teal-lo), var(--teal-hi)); box-shadow: 0 0 12px 1px rgba(118, 171, 174, 0.75); }
}
