:root {
  --bg: #0c0c0d;
  --bg-raised: #131315;
  --bg-band: #131316;
  --surface: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ededee;
  --text-muted: #9a9aa1;
  --text-faint: #82828a;
  --text-tone: #6f6f76;
  --media: #1a1a1d;
  --accent: #9cb4ff;
  --accent-hover: #b6c8ff;
  --accent-ink: #0c0c0d;
  /* Panels: depth from value steps, a faint lit top edge, and a large soft
     shadow. Page (--bg) < panel (--panel); inputs sit back at --bg. */
  --panel: #17171a;
  --panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 22px 44px -18px rgba(0, 0, 0, 0.55),
    0 48px 96px -40px rgba(0, 0, 0, 0.5);
  --panel-shadow-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 30px 56px -18px rgba(0, 0, 0, 0.65),
    0 64px 112px -40px rgba(0, 0, 0, 0.55);
  /* Headlines sit on the page with the same soft depth as the panels */
  --headline-shadow: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.38));
  --ok: #2fa36b;
  --radius: 10px;
  --header-h: 57px; /* sticky header: 56px bar + 1px border */
  --radius-sm: 8px;
  --max: 1120px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

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

a { color: inherit; text-decoration: none; transition: color 0.15s ease, text-decoration-color 0.15s ease; }

:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  z-index: 10;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  /* viewport-fit=cover: keep content clear of the notch in landscape */
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  /* The background fills the top safe area too (padding, not margin) */
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(12, 12, 13, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
html { scroll-padding-top: 72px; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav .nav-section { display: none; }

/* ---------- Mobile menu (built by script.js, below 1024px, where the full nav no longer fits on one line) ---------- */
.menu-toggle { display: none; }
@media (max-width: 1023px) {
  .js .site-nav { display: none; }
  .js .menu-toggle { display: inline-flex; }
}
.menu-toggle {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle .bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
}
.menu-toggle .bar:nth-child(1) { transform: translateY(-6px); }
.menu-toggle .bar:nth-child(3) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.drawer,
.drawer-backdrop {
  position: fixed;
  top: calc(57px + env(safe-area-inset-top, 0px)); /* below the header, so the toggle stays in reach */
  bottom: 0;
}
.drawer {
  right: 0;
  z-index: 4;
  width: clamp(176px, 46vw, 220px);
  /* Runs to the bottom edge of the screen, so its own background sits behind
     the Safari toolbar if that expands; the links stay above the bar. */
  padding: 8px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  background: rgba(19, 19, 21, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.45s;
}
.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s;
}
.drawer-backdrop {
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease-in-out, visibility 0s linear 0.45s;
}
.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease-in-out, visibility 0s;
}
.drawer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.drawer-link {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.9375rem; /* same as the wordmark */
  font-weight: 600;
  letter-spacing: -0.01em;
}
.drawer-link:hover { color: var(--text); }
.drawer-link[aria-current="page"] { color: var(--accent); }
.drawer .btn {
  width: 100%;
  min-height: 42px;
  margin-top: 20px;
  padding: 0 12px;
  font-size: 0.875rem;
}
/* While the menu is open the page under it does not scroll, without touching
   overflow or position on <html> or <body>: iOS Safari treats either as a
   scroll reset and expands its toolbar. Touches on the backdrop, header and
   page are ignored for panning; the drawer contains its own scrolling. */
.menu-open .drawer-backdrop,
.menu-open .site-header,
.menu-open main,
.menu-open .site-footer { touch-action: none; }
@media (min-width: 1024px) {
  .site-nav .nav-section { display: block; }
}
.wordmark {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--text); }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.header-link:hover { color: var(--text); }
.header-link[aria-current="page"] { color: var(--text); }

/* Service pages: the page-level hero is a little shorter than the home hero */
.hero--page {
  padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px));
}

.section-head { max-width: 40em; margin: 0 auto; }
.section-head h2 { font-size: clamp(2rem, 6vw, 3.5rem); }

/* Single price card (receptionist, automation) */
.price-card {
  max-width: 560px;
  margin: 56px auto 0;
  text-align: left;
}

/* Demo call-out on the receptionist page */
.demo-callout {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  padding: 24px 36px 26px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.demo-callout .example-tag { margin: 0; }

/* ---------- Type ---------- */
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 11vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
h2 {
  font-size: clamp(2.25rem, 7.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
}
p { margin: 0; }

/* Two-tone fallback: before script.js runs, or without background-clip */
.tone { color: var(--text-tone); }
.tone-2 { color: color-mix(in srgb, var(--text-tone) 60%, var(--bg)); }

/* Soft drop shadow so headlines sit on the page like the panels. A filter
   (not text-shadow) so it also works on gradient-clipped text. */
h1, h2 { filter: var(--headline-shadow); }

/* Headline gradient, bright to muted, across the whole headline.
   script.js adds .grad, then .grad--multi when it wraps to 2+ lines:
   one line runs left to right, several lines fall off from the top left.
   Without background-clip support the solid color and .tone spans remain. */
.grad { width: fit-content; max-width: 100%; }
/* background-clip: text only paints inside the heading's box, and glyphs
   overhang it: descenders and tall caps past the tight line-height, the last
   letter past the right edge (negative letter-spacing). Padding widens the
   paint area; equal negative margins keep the layout exactly where it was
   (centred headings keep their auto side margins). script.js measures the
   line count without this padding. */
.grad {
  padding-top: 0.14em;
  padding-bottom: 0.26em;
  margin-top: -0.14em;
  margin-bottom: -0.26em;
}
/* Left-aligned headings also get room for the last letter's right overhang
   (the width cap grows by the same amount, so nothing re-wraps). Centred
   headings keep their auto side margins and need none. */
.about-grid .grad,
.faq-grid .grad,
.contact-grid .grad {
  max-width: calc(100% + 0.1em);
  padding-right: 0.1em;
  margin-right: -0.1em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background-image: linear-gradient(to right, var(--text) 0%, var(--text) 30%, var(--text-tone) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .grad.grad--multi {
    background-image: radial-gradient(farthest-corner at 0% 0%, var(--text) 30%, var(--text-tone) 100%);
  }
  .grad .tone,
  .grad .tone-2 { color: transparent; -webkit-text-fill-color: transparent; }
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--text-faint);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
}

/* ---------- Buttons and links ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }

/* The one quiet style: off-white text, a faint underline that firms up on
   hover, and an arrow that nudges. Used for every non-button link. */
.quiet-link,
.more-link,
.example-link,
.contact-aside a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
/* Inline-block (not flex) so one underline runs under the label and the
   arrow; vertical padding keeps a 44px tap target. */
.quiet-link,
.more-link,
.example-link {
  display: inline-block;
  padding: 11px 0;
  font-size: 0.9375rem;
  line-height: 22px;
}
.quiet-link .arrow,
.more-link .arrow,
.example-link .arrow { margin-left: 4px; }
.quiet-link:hover,
.more-link:hover,
.example-link:hover,
.contact-aside a:hover { color: var(--text); text-decoration-color: currentColor; }
.arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.more-link:hover .arrow,
.quiet-link:hover .arrow { transform: translateX(3px); }
.example-link:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Sections ---------- */
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center h1, .center h2 { margin-left: auto; margin-right: auto; }
.center .actions,
.center .meta-row,
.center .typelist { justify-content: center; }

/* Light band: same components, inverted tokens */
.section--light {
  --bg: #f5f5f7;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --media: #e8e8ed;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --text: #1d1d1f;
  --text-muted: #5e5e63;
  --text-faint: #6e6e73;
  --text-tone: #86868b;
  --accent: #2f55d4;
  --accent-hover: #1f3fae;
  --accent-ink: #ffffff;
  --panel: #ffffff;
  --panel-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 18px 40px -20px rgba(0, 0, 0, 0.14),
    0 40px 80px -48px rgba(0, 0, 0, 0.12);
  --panel-shadow-lift:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 26px 48px -20px rgba(0, 0, 0, 0.18),
    0 56px 96px -48px rgba(0, 0, 0, 0.16);
  --headline-shadow: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.12));
  background: var(--bg);
  color: var(--text);
  border-top-color: transparent;
  color-scheme: light;
}
.section--light + .section { border-top-color: transparent; }
/* Every hero, together with the sticky header above it, fills exactly one
   screen, so the next section starts at the bottom edge and none of it shows
   before scrolling. Sized with svh only: the height of the screen with the
   mobile toolbars showing, a fixed number that does not change as they
   collapse or depending on their state at load, so the hero is the same on
   every visit. dvh, then vh, are fallbacks for browsers without svh. Nothing
   in script.js sets the hero height. min-height, not height, so content can
   never be clipped on a very short screen. Safe-area insets are zero unless
   the page runs edge to edge, and are covered either way. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px));
  min-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
  min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px));
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}
.hero h1 { max-width: 11em; }
/* One plain sentence under the hero headline: small, normal weight */
.hero-sub {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- Home hero: spacious, monochrome, high contrast ----------
   Close to full viewport height (never taller than it), headline set a little
   above optical center by giving the bottom more padding than the top. The
   background is CSS only: one faint white light from the upper left and a
   hairline grid that shows only toward the edges. Both fade into the next
   section, so there is no hard edge. */
.hero--home {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 9vh, 120px) 0 calc(clamp(96px, 18vh, 220px) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
.hero--home::before,
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Lit, not glowing: a single low-opacity white falloff from one side */
.hero--home::before {
  background: radial-gradient(ellipse 70% 80% at 12% -10%, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0) 70%);
}
/* Fade into the section below (it starts on the band color) */
.hero--home::after {
  top: auto;
  height: 32%;
  background: linear-gradient(to bottom, rgba(19, 19, 22, 0), var(--bg-band));
}
.hero + .section { border-top-color: transparent; }
.hero--home h1 {
  max-width: 10.5em;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.hero--home .lede {
  max-width: 36rem;
  margin-top: clamp(32px, 4.5vh, 48px);
}
.hero--home .actions { margin-top: clamp(48px, 7vh, 80px); }
/* Entrance is a short fade only, no movement */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35));
}
/* Short screens (a phone in landscape): smaller headline and tighter spacing,
   so the hero content fits one screen instead of spilling past it. */
@media (max-height: 600px) {
  .hero { padding: 20px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
  .hero--home { padding: 20px 0 calc(64px + env(safe-area-inset-bottom, 0px)); }
  .hero h1,
  .hero--home h1 { font-size: clamp(2rem, 9vh, 3.25rem); }
  .hero-sub { margin-top: 8px; font-size: 0.875rem; }
  .hero .lede,
  .hero--home .lede { margin-top: 12px; font-size: 1rem; }
  .hero .actions,
  .hero--home .actions { margin-top: 20px; }
  .hero .demo-callout { margin-top: 20px; padding: 14px 24px 16px; }
  .scroll-cue { height: 28px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-height: 420px) {
  .hero { padding: 14px 0 calc(16px + env(safe-area-inset-bottom, 0px)); }
  .hero .actions,
  .hero--home .actions { margin-top: 16px; }
  .hero .demo-callout { margin-top: 14px; padding: 10px 20px 12px; }
}
/* Hairline grid on wider screens only; masked so it fades out well before
   the headline and toward the bottom edge. */
@media (min-width: 760px) {
  .hero--home .container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
      linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 42%, transparent 45%, #000 100%), linear-gradient(to bottom, #000 55%, transparent 90%);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 42%, transparent 45%, #000 100%), linear-gradient(to bottom, #000 55%, transparent 90%);
    mask-composite: intersect;
  }
}

.section {
  padding: clamp(88px, 13vw, 152px) 0;
  border-top: 1px solid var(--line);
}
.section--band {
  --bg-raised: #19191c;
  --surface: #1e1e21;
  --panel: #1c1c20;
  background: var(--bg-band);
}
/* Spacing varies on purpose so the page doesn't move in one even beat */
.section--snug { padding: clamp(64px, 9vw, 104px) 0; }
.section--roomy { padding: clamp(104px, 16vw, 200px) 0; }
.section--lead-in { padding: clamp(120px, 17vw, 208px) 0 clamp(80px, 11vw, 120px); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  margin-top: 40px;
}
.price {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}
.price span { color: var(--text-muted); font-weight: 400; }

/* ---------- Panels ---------- */
.boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.box {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 26px 26px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* Lift on hover: 4px, well inside the 18px gaps, so a panel never touches
   its neighbor. Touch screens get it only while pressed. */
@media (hover: hover) and (pointer: fine) {
  .box:hover { transform: translateY(-4px); box-shadow: var(--panel-shadow-lift); }
}
.box.is-pressed { transform: translateY(-4px); box-shadow: var(--panel-shadow-lift); }
.box h3 { font-size: 1.1875rem; }
.box p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Groups vary panel sizes by count on a clean, aligned grid (no offsets;
   only Examples is deliberately uneven). Three: a wider lead panel. Four:
   two wide, two narrow. Six: wide and narrow panels alternating by row. */
@media (min-width: 680px) {
  .boxes { grid-template-columns: repeat(2, 1fr); }
  .boxes--n3 > li:first-child,
  .boxes--n4 > li:first-child,
  .boxes--n4 > li:last-child,
  .boxes--n6 > li:first-child,
  .boxes--n6 > li:nth-child(4) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .boxes--n3 { grid-template-columns: 1.45fr 1fr 1fr; }
  .boxes--n3 > li:first-child { grid-column: auto; }
  .boxes--n4,
  .boxes--n6 { grid-template-columns: repeat(3, 1fr); }
  .boxes--n4 > li:first-child,
  .boxes--n4 > li:last-child,
  .boxes--n6 > li:first-child,
  .boxes--n6 > li:nth-child(4),
  .boxes--n6 > li:nth-child(5) { grid-column: span 2; }
}
.boxes--pair {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 680px) {
  .boxes--pair { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .boxes--pair > li:nth-child(2) { margin-top: 36px; }
}

/* ---------- Sequence: three moments on one wide panel ----------
   Each dot sits over its own column (centered on desktop, on a rail at the
   left on phones). The line is drawn per step, from that step's dot center to
   the next one's, so it starts and ends exactly on the first and last dots. */
.sequence {
  position: relative;
  display: grid;
  gap: 30px;
  margin: 56px 0 0;
  padding: 32px 26px 34px 56px;
  list-style: none;
  text-align: left;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.sequence-step { position: relative; }
.sequence-step::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -30px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 0 1.5px var(--text-faint);
}
.sequence-step:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: -26px;
  top: 10px;
  width: 1px;
  height: calc(100% + 30px); /* to the next dot's center, across the gap */
  background: var(--line-strong);
}
.sequence-step h3 { font-size: 1.1875rem; }
.sequence-step p {
  max-width: 24em;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
@media (min-width: 760px) {
  .sequence {
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
    padding: 44px 44px 46px;
  }
  .sequence-step {
    padding-top: 34px;
    text-align: center;
  }
  .sequence-step p { margin-left: auto; margin-right: auto; }
  .sequence-step::before { left: calc(50% - 4.5px); top: 0; }
  .sequence-step:not(:last-of-type)::after {
    left: 50%;
    top: 4px;
    width: calc(100% + 44px);
    height: 1px;
  }
}

/* Process animation (overlay spans added by script.js, pure CSS keyframes).
   The accent line draws from dot to dot, each dot fills as the line reaches
   it, the last settles into a green check, then everything fades and the
   cycle restarts. Only transform and opacity animate. Paused until the
   sequence is on screen (.is-running). */
.seq-fill,
.seq-progress {
  position: absolute;
  pointer-events: none;
  animation-duration: 10s;
  animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-play-state: paused;
}
.sequence.is-running .seq-fill,
.sequence.is-running .seq-progress { animation-play-state: running; }
.seq-progress {
  z-index: 0;
  left: -26px;
  top: 10px;
  width: 1px;
  height: calc(100% + 30px);
  background: var(--accent);
  transform-origin: center top;
}
.seq-fill {
  z-index: 2;
  left: -30px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.sequence-step:last-of-type .seq-fill {
  left: -34px;
  top: 2px;
  width: 17px;
  height: 17px;
  background: var(--ok);
}
.sequence-step:last-of-type .seq-fill::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 3.5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (min-width: 760px) {
  .seq-progress {
    left: 50%;
    top: 4px;
    width: calc(100% + 44px);
    height: 1px;
    transform-origin: left center;
  }
  .seq-fill { left: calc(50% - 4.5px); top: 0; }
  .sequence-step:last-of-type .seq-fill { left: calc(50% - 8.5px); top: -4px; }
}
.sequence-step:nth-of-type(1) .seq-fill { animation-name: seq-dot-1; }
.sequence-step:nth-of-type(2) .seq-fill { animation-name: seq-dot-2; }
.sequence-step:nth-of-type(3) .seq-fill { animation-name: seq-dot-3; }
.sequence-step:nth-of-type(1) .seq-progress { animation-name: seq-line-1-y; }
.sequence-step:nth-of-type(2) .seq-progress { animation-name: seq-line-2-y; }
@media (min-width: 760px) {
  .sequence-step:nth-of-type(1) .seq-progress { animation-name: seq-line-1-x; }
  .sequence-step:nth-of-type(2) .seq-progress { animation-name: seq-line-2-x; }
}
@keyframes seq-dot-1 {
  0% { opacity: 0; transform: scale(0.4); }
  7%, 84% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes seq-dot-2 {
  0%, 30% { opacity: 0; transform: scale(0.4); }
  37%, 84% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes seq-dot-3 {
  0%, 60% { opacity: 0; transform: scale(0.6); }
  68%, 84% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes seq-line-1-x {
  0%, 7% { opacity: 1; transform: scaleX(0); }
  30%, 84% { opacity: 1; transform: scaleX(1); }
  94%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes seq-line-2-x {
  0%, 37% { opacity: 1; transform: scaleX(0); }
  60%, 84% { opacity: 1; transform: scaleX(1); }
  94%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes seq-line-1-y {
  0%, 7% { opacity: 1; transform: scaleY(0); }
  30%, 84% { opacity: 1; transform: scaleY(1); }
  94%, 100% { opacity: 0; transform: scaleY(1); }
}
@keyframes seq-line-2-y {
  0%, 37% { opacity: 1; transform: scaleY(0); }
  60%, 84% { opacity: 1; transform: scaleY(1); }
  94%, 100% { opacity: 0; transform: scaleY(1); }
}
/* Reduced motion: the completed state, still, with the last dot a green check */
@media (prefers-reduced-motion: reduce) {
  /* !important: must beat the per-step animation-name rules above, or the
     global 0.01ms duration below would loop them at full speed */
  .seq-fill,
  .seq-progress { animation: none !important; opacity: 1; transform: none; }
}

/* ---------- Horizontal panel tracks (home: receptionist, Lead Scraper) ----------
   Default: a native swipe carousel with scroll-snap (phones, touch, no JS).
   .is-pinned, set by script.js on wide screens with a mouse: the section pins
   while vertical scroll moves the track sideways, then lets go.
   Reduced motion: a plain grid, no pinning and no transform. */
.hscroll-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin: 48px calc(-1 * var(--gutter)) 0;
  padding: 10px var(--gutter) 44px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  list-style: none;
  text-align: left;
}
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll-track > li {
  flex: 0 0 min(82%, 380px);
  scroll-snap-align: start;
}
.hscroll-track > li:nth-child(even) { flex-basis: min(72%, 320px); }
.hscroll-progress {
  position: relative;
  max-width: 140px;
  height: 1px;
  margin: -14px auto 0;
  overflow: hidden;
  background: var(--line-strong);
}
.hscroll-progress span {
  position: absolute;
  inset: 0;
  background: var(--text-muted);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}
.hscroll.is-pinned { padding: 0; }
.hscroll.is-pinned .hscroll-after { padding-bottom: clamp(88px, 13vw, 152px); }
.hscroll-after { padding-top: 16px; }
.hscroll.is-pinned .hscroll-sticky {
  position: sticky;
  top: 57px; /* header height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100vh - 57px);
  overflow: hidden;
}
.hscroll.is-pinned .hscroll-track {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
  scroll-snap-type: none;
  /* "translate", not "transform", so the scroll-reveal transform never overrides it */
  translate: calc(var(--x, 0) * -1px) 0;
  will-change: translate;
}
.hscroll.is-pinned .hscroll-track > li { flex: 0 0 auto; width: 480px; }
.hscroll.is-pinned .hscroll-track > li:nth-child(2) { width: 380px; }
.hscroll.is-pinned .hscroll-track > li:nth-child(3) { width: 440px; }
.hscroll.is-pinned .hscroll-track > li:nth-child(4) { width: 360px; }
@media (prefers-reduced-motion: reduce) {
  .hscroll-track {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .hscroll-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 680px) {
  .hscroll-track { grid-template-columns: repeat(2, 1fr); }
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 48px auto 0;
  text-align: left;
}
@media (min-width: 680px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
.plans--3 { max-width: none; }
@media (min-width: 960px) {
  .plans--3 { grid-template-columns: repeat(3, 1fr); }
}
.plans--compact { max-width: 880px; margin-top: 28px; }
.plans--compact .box { padding: 22px 24px; }
.credit-rule {
  max-width: 36em;
  margin: 0 auto;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
.section-head + .credit-rule { margin-top: 28px; }
.plans-note {
  max-width: 34em;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.box .plan-name {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.box .plan-price {
  overflow-wrap: anywhere; /* long placeholder text wraps instead of overflowing */
  margin-top: 10px;
  color: var(--text);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.plan-price span {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}
.box .plan-desc { margin-top: 10px; }
.box .plan-price--text { font-size: 1.5rem; letter-spacing: -0.025em; }
.plan-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text);
  font-size: 0.9375rem;
}
.plan-list li {
  position: relative;
  padding-left: 20px;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

/* Examples */
.example-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-faint);
  font-size: 0.8125rem;
  font-weight: 500;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fa36b;
  box-shadow: 0 0 0 3px rgba(47, 163, 107, 0.16);
}
.box .example-link {
  margin-top: auto;
  padding-top: 14px;
  align-self: flex-start;
}
/* The demo number is the strongest proof on the site: large, and plainly
   a tappable phone link with an accent underline. */
.example-number {
  align-self: flex-start;
  display: inline-block;
  margin-top: auto;
  padding-top: 14px;
  color: var(--text);
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}
.example-number:hover { color: var(--text); text-decoration-thickness: 3px; }
.demo-callout .example-number { padding-top: 6px; }

/* ---------- Automation: the qualifying list is type, not boxes ---------- */
.qualify {
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.typelist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.85em;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #b4b4ba;
  font-size: clamp(1rem, 3.15vw, 1.7rem); /* 1/1.75 of the previous clamp(1.75rem, 5.5vw, 3rem) */
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.typelist li {
  display: inline-block;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .typelist li:hover { transform: translateY(-3px); color: #ffffff; }
}
.typelist li.is-pressed { transform: translateY(-3px); color: #ffffff; }

/* ---------- Home: service showcases ----------
   Each service is a mini hero: its name, one short line, a button, then a
   large visual. The visuals are flat, built from the same panels, lines and
   type as the rest of the site, with color only inside them (status dots, the
   confirmations, the border beam). showcase.js plays them, and only while each
   one is on screen (.is-playing); off screen their CSS animations pause too.
   Shared timing: --showcase-fade (set by showcase.js). */
.showcase { padding: clamp(72px, 9vw, 112px) 0; }
.showcase-line {
  margin: 18px auto 0;
  max-width: 30em;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.5;
}
/* A smaller second line, same muted color */
.showcase-note {
  margin: 8px auto 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.showcase-actions { margin-top: 28px; }
.showcase-visual {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 56px);
  container-type: inline-size; /* the automation boxes stack by this width */
}
.showcase-visual--wide { display: block; margin-top: clamp(8px, 2vw, 24px); }
/* The home gallery's height follows the viewport width with no breakpoint:
   from 1400px up it is the gallery's own default (unchanged), and below that
   it falls along a straight line to 200px at 390px wide, 1.5x shorter than
   the 300px phones had. min() of two continuous values, so it never jumps.
   gallery.js (data-narrow) grows the tiles back by the same share, so on a
   phone the tiles keep their size and only the curved edges come in. */
.showcase .cg {
  --cg-height: min(clamp(300px, 56vh, 560px), calc(200px + (100vw - 390px) * 0.36));
}

/* !important: each element's own animation shorthand would otherwise set
   it back to running */
[data-play]:not(.is-playing)::after,
[data-play]:not(.is-playing) *,
[data-play]:not(.is-playing) *::before,
[data-play]:not(.is-playing) *::after { animation-play-state: paused !important; }
/* showcase.js resets a visual between scenarios with transitions off */
.is-resetting,
.is-resetting *,
.is-resetting::after,
.is-resetting *::before,
.is-resetting *::after { transition: none !important; }

/* ---------- Border beam (automation boxes, the lead search box) ----------
   A conic gradient on a 1px ring (the box masked out of it). Working: two
   thin blue arcs with soft tails on opposite sides, circling slowly. Done:
   the arcs lengthen round the whole border while the color turns green, in
   about 0.6s, and stay until the example ends. Off: everything transparent.
   The angle, arc length and colors are registered with @property so they
   animate smoothly. */
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --beam-len { syntax: "<angle>"; inherits: false; initial-value: 64deg; }
@property --beam-head { syntax: "<color>"; inherits: false; initial-value: rgba(156, 180, 255, 0); }
@property --beam-tail { syntax: "<color>"; inherits: false; initial-value: rgba(156, 180, 255, 0); }
@property --beam-rest { syntax: "<color>"; inherits: false; initial-value: rgba(47, 163, 107, 0); }
.beam { position: relative; }
.beam::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--beam-angle),
    var(--beam-tail) 0deg,
    var(--beam-head) var(--beam-len),
    var(--beam-rest) calc(var(--beam-len) + 0.5deg),
    var(--beam-rest) 180deg,
    var(--beam-tail) 180deg,
    var(--beam-head) calc(180deg + var(--beam-len)),
    var(--beam-rest) calc(180.5deg + var(--beam-len)));
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beam-spin 5s linear infinite;
  transition:
    --beam-len 0.6s var(--ease),
    --beam-head 0.6s ease,
    --beam-tail 0.6s ease,
    --beam-rest 0.6s ease;
}
/* Going away (back to off) takes as long as the cards' own fade */
.beam:not(.is-working):not(.is-done)::after { transition-duration: var(--showcase-fade, 0.8s); }
.beam.is-working::after {
  --beam-head: rgba(156, 180, 255, 0.8);
  transition-duration: 0.15s; /* the arcs show the moment a box starts */
}
.beam.is-done::after {
  --beam-len: 180deg;
  --beam-head: #2fa36b;
  --beam-tail: #2fa36b;
  --beam-rest: #2fa36b;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* ---------- Receptionist: an iPhone on a call ----------
   Built in HTML and CSS: a near-black bezel inside a thin grey frame, the
   dynamic island and the side keys, tilted a few degrees.
   Size: the phone is laid out once at a fixed 258.46 x 560 (9:19.5, like a
   real iPhone) and scaled as a whole to its frame, so it is never stretched
   or squashed. The frame is exactly as tall as the phone used to be (the
   same clamp), so the section keeps its height; its width follows from the
   ratio. showcase.js sets --phone-s = frame height / 560. */
.phone-stage { padding: 12px 18px; }
.phone-frame {
  position: relative;
  height: clamp(460px, 52vh, 560px);
  aspect-ratio: 9 / 19.5;
}
.phone-scale {
  position: absolute;
  top: 0;
  left: 0;
  width: 258.46px;
  height: 560px;
  transform: scale(var(--phone-s, 1));
  transform-origin: 0 0;
  perspective: 1400px;
}
/* One transform on one element, the same list of functions in every state,
   so enter, rest and exit interpolate function by function and land exactly
   on each other. The resting tilt is the default values below (the single
   source of truth); enter starts from .is-before and ends on them, exit
   starts from them and ends on .is-exiting. One easing family (cubic):
   ease-out in, ease-in out. Opacity sits on this same element, which has no
   3D children, so a fade never flattens the tilt (that was the jump). */
.phone-swing {
  --x: 0%;
  --z: 0px;
  --ry: -12deg;
  --s: 1;
  width: 100%;
  height: 100%;
  transform: translate3d(var(--x), 0, var(--z)) rotateX(4deg) rotateY(var(--ry)) rotateZ(2deg) scale(var(--s));
  transition:
    transform 900ms cubic-bezier(0.33, 1, 0.68, 1),
    opacity 900ms cubic-bezier(0.33, 1, 0.68, 1);
}
.phone-swing.is-exiting {
  --x: 42%;
  --z: -220px;
  --ry: 22deg;
  --s: 0.9;
  opacity: 0;
  transition:
    transform 800ms cubic-bezier(0.32, 0, 0.67, 0),
    opacity 800ms cubic-bezier(0.32, 0, 0.67, 0);
}
.phone-swing.is-before {
  --x: -42%;
  --z: -220px;
  --ry: -46deg;
  --s: 0.92;
  opacity: 0;
}
.iphone {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 9px;
  border-radius: 50px;
  background: #050506;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 2px #2a2a2f,
    0 0 0 3px #3a3a40,
    0 30px 56px -18px rgba(0, 0, 0, 0.65),
    0 64px 112px -40px rgba(0, 0, 0, 0.55);
}
.iphone-key {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #3a3a40;
}
.iphone-key--action { left: -6px; top: 104px; height: 26px; }
.iphone-key--up { left: -6px; top: 148px; height: 48px; }
.iphone-key--down { left: -6px; top: 206px; height: 48px; }
.iphone-key--power { right: -6px; top: 172px; height: 76px; }
.iphone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 41px;
  background: var(--bg);
  text-align: center;
  overflow: hidden;
}
.iphone-island {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 13px;
  background: #000;
}
.call-head {
  flex: none;
  padding: 46px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.call-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.8125rem;
  font-weight: 500;
}
.call-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fa36b;
  box-shadow: 0 0 0 3px rgba(47, 163, 107, 0.16);
}
/* Between calls the name and number fade over to the next caller */
.call-id { transition: opacity 0.35s ease; }
.call-id.is-swapping { opacity: 0; }
.call-name {
  margin-top: 12px;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.call-number {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
/* Voice: seven bars. showcase.js sets each bar's scaleY every frame from one
   amplitude that eases up when a call starts and back down to this flat
   resting height when it ends. */
.voice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-top: 14px;
}
.voice span {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--text-muted);
  transform: scaleY(0.2);
}
/* The chat: the newest message stays in view; older ones slide up and fade
   into black under the top edge */
.call-chat {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  text-align: left;
}
.call-chat::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, var(--bg), rgba(12, 12, 13, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.call-chat.is-scrolled::before { opacity: 1; }
.call-thread {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 10px 18px;
  transition: transform 0.5s var(--ease), opacity var(--showcase-fade, 0.8s) ease-in;
}
.call-thread.is-leaving { opacity: 0; }
/* One message: the bubble and, just outside its squared corner, the
   speaker's icon. Caller on the right, agent on the left. */
.msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  animation: msg-in 0.5s var(--ease);
}
.msg--caller { justify-content: flex-end; }
.msg--tool { justify-content: center; padding: 2px 0; }
.msg-icon {
  flex: none;
  width: 24px;
  height: 24px;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.bubble {
  max-width: calc(100% - 30px);
  padding: 9px 13px;
  border-radius: 16px;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.42;
}
.msg--caller .bubble {
  border-bottom-right-radius: 5px;
  background: var(--surface);
}
.msg--agent .bubble {
  border-bottom-left-radius: 5px;
  background: #2a2a2f;
}
.bubble--done {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: none;
  white-space: nowrap;
  background: rgba(47, 163, 107, 0.14);
  box-shadow: inset 0 0 0 1px rgba(47, 163, 107, 0.32);
  color: #c4ecd8;
  font-weight: 600;
}
.bubble-check {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ok);
}
.bubble-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3.5px;
  width: 3.5px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}

/* ---------- Automation: four panels on a zigzag line ----------
   A short streak runs the line from one box to the next. A box shows the blue
   beam while it works and turns green when done; its status dot turns green
   too, and the last box also gets a check. Between examples the boxes and
   line fade out moving down (ease-in), then the next set fades in from
   above (ease-out).
   Wide: the boxes run left to right, 1 and 3 higher, 2 and 4 lower.
   Narrow (a phone, a service page hero column): they run down, 1 and 3 on
   the left, 2 and 4 on the right. showcase.js draws the lines (SVG, from
   each box's centre to the next, with square bends) and moves the streak
   along them. */
.flow {
  --w: 220px;   /* box width */
  --gap: 44px;  /* space between boxes */
  --zig: 64px;  /* how much lower boxes 2 and 4 sit */
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, var(--w));
  justify-content: center;
  gap: var(--gap);
  width: 100%;
  text-align: left;
  transition: opacity var(--showcase-fade, 0.8s) ease-out, transform var(--showcase-fade, 0.8s) ease-out;
}
.flow > .flow-node:nth-of-type(odd) { margin-bottom: var(--zig); }
.flow > .flow-node:nth-of-type(even) { margin-top: var(--zig); }
.flow.is-leaving {
  opacity: 0;
  transform: translateY(14px);
  transition-timing-function: ease-in;
}
.flow.is-entering { opacity: 0; transform: translateY(-14px); }
/* The lines and the streak, under the boxes (which are opaque, so each line
   shows only between two boxes) */
.flow-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.flow-rail {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}
/* The streak: three overlapping dashes ending at the same point, shorter
   ones brighter, so it has a solid head and a soft tail */
.flow-streak { opacity: 0; }
.flow-streak.is-moving { opacity: 1; }
.flow-streak path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: butt; /* butt, so the dash is cut clean at a box edge */
}
.flow-streak path:nth-child(1) { opacity: 0.25; }
.flow-streak path:nth-child(2) { opacity: 0.55; }
.flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.flow-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.flow-mark {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--text-faint);
}
.flow-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  transform: scale(0.5);
}
.flow-node.is-done .flow-mark::after { opacity: 1; transform: none; }
.flow-node:last-child .flow-mark::after { inset: -3px; }
.flow-node:last-child .flow-mark::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 3.5px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}
.flow-node:last-child.is-done .flow-mark::before { opacity: 1; }
.flow-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 18px 0;
}
.flow-field {
  height: 9px;
  border-radius: 3px;
  background: var(--line-strong);
}
.flow-field--short { width: 60%; }
.flow-value {
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.flow-text {
  padding: 9px 12px;
  border-radius: 12px 12px 12px 4px;
  background: #2a2a2f;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.flow-detail {
  color: var(--text-muted);
  font-size: 0.875rem;
}
/* In a narrow space (a phone, or a service page hero column) the steps
   stack and the line runs down */
@container (max-width: 1019px) {
  .flow {
    --gap: 30px;
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
  .flow > .flow-node:nth-of-type(n) { width: 68%; margin: 0; }
  .flow > .flow-node:nth-of-type(odd) { justify-self: start; }
  .flow > .flow-node:nth-of-type(even) { justify-self: end; }
  .flow-node { min-height: 0; padding: 16px 18px 18px; }
  .flow-body { padding: 12px 0; }
  .flow-value { font-size: 1.625rem; }
}

/* ---------- Lead Scraper: sample searches ----------
   Leads slide in one at a time while the blue beam circles the box; when the
   fourth lands the beam wraps the box in green. The cards and the border go
   together, then the next search starts. */
.leads {
  width: 100%;
  max-width: 640px;
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  text-align: left;
}
.leads-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--line);
}
.leads-search {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  transition: opacity 0.35s ease;
}
.leads-search.is-swapping { opacity: 0; }
.leads-label {
  flex: none;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.leads-query {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.leads-count {
  flex: none;
  color: var(--text-faint);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
/* Room for four leads even while it is empty, so the box never jumps */
.leads-list {
  display: grid;
  grid-auto-rows: 76px;
  align-content: start;
  gap: 10px;
  min-height: calc(4 * 76px + 3 * 10px);
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.leads-list.is-leaving .lead {
  opacity: 0;
  transition: opacity var(--showcase-fade, 0.8s) ease-in;
}
.lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: lead-in 0.6s var(--ease);
}
@keyframes lead-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
.lead > div { min-width: 0; }
.lead-name {
  overflow: hidden;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.lead-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lead-rating svg {
  width: 11px;
  height: 11px;
  fill: #d9a441;
}
.lead-tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.lead-flag {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9a441;
}
@media (max-width: 479px) {
  .leads { padding: 14px 12px 14px; }
  .leads-head { flex-wrap: wrap; gap: 4px 12px; }
  .leads-list { grid-auto-rows: 84px; min-height: calc(4 * 84px + 3 * 10px); }
  .lead { padding: 0 12px; gap: 10px; }
  .lead-meta { gap: 0 10px; }
}

/* Reduced motion: the scenarios still change, but nothing moves. No spinning
   beam (only its color changes), no travelling dash, no voice bars, no
   slides; every change is instant (the site-wide rule shortens transitions).
   !important: must beat the rules above, or the site-wide 0.01ms duration
   would loop the infinite ones at full speed. */
@media (prefers-reduced-motion: reduce) {
  .beam::after,
  .msg,
  .lead { animation: none !important; }
  .flow-streak { display: none; }
  /* The phone swap becomes a simple fade, in place */
  .phone-swing.is-exiting,
  .phone-swing.is-before { --x: 0%; --z: 0px; --ry: -12deg; --s: 1; }
  .phone-swing { transition: opacity 0.4s ease !important; }
  .phone-swing.is-resetting { transition: none !important; }
}

/* ---------- Service page heroes: text left, visual right ----------
   900px and up only. The hero keeps exactly the height it had (one screen):
   the visual's box is sized to the room inside the hero's padding, and
   showcase.js (data-fit) scales the visual down to fit that box, so neither
   ever makes the hero taller. The headline is set smaller here so the same
   words fit the narrower column in the same height. Below 900px the visual
   is hidden and the hero is the centered column it always was. */
.hero-visual { display: none; }
@media (min-width: 900px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
    text-align: left;
  }
  .hero-split h1 { font-size: clamp(2.75rem, 5.2vw, 5.25rem); }
  .hero-split h1,
  .hero-split .lede { margin-left: 0; margin-right: 0; }
  .hero-split .actions { justify-content: flex-start; }
  .hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    height: calc(100vh - var(--header-h) - 104px);
    height: calc(100svh - var(--header-h) - 104px);
    max-height: 640px;
    container-type: inline-size; /* the automation boxes stack by this width */
  }
  .hero-fit { transform-origin: center; }
  /* Automation: the whole column, with wider boxes set further apart than
     the home page's narrow layout */
  .hero-visual .flow {
    --gap: 34px;
    width: min(560px, 100cqw);
    max-width: none;
  }
  .hero-visual .flow > .flow-node:nth-of-type(n) { width: 60%; }
  .hero-visual .flow-node { padding: 18px 22px 20px; }
  .hero-visual .flow-label { font-size: 1.125rem; }
  .hero-visual .flow-value { font-size: 1.875rem; }
  .hero-visual .flow-text { font-size: 0.875rem; }
  .hero-visual .flow-detail { font-size: 0.9375rem; }
  .hero-visual .leads { width: min(560px, 100cqw); }
  /* The gallery fills the box; its keyboard links show over its foot */
  .hero-visual .cg { --cg-height: 100%; }
  .hero-visual .cg-links:focus-within {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

/* ---------- Liquid glass: the automation hero's boxes and the Lead Scraper
   hero's box only ----------
   Same size, radius, layout, beam and animation as everywhere else; only
   the surface changes. The hero smoke shows through, blurred (8px) and a
   little more saturated, under a dark fill with a faint white tint so the
   text stays readable. A 1px highlight on the inner top and left edges and
   a soft outer shadow give it an edge. The beam (::after, z-index 2) draws
   on top of the glass. Browsers without backdrop-filter keep the solid
   panel above. */
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .hero-visual .flow-node,
  .hero-visual .leads {
    background:
      linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
      rgba(14, 14, 16, 0.5);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    backdrop-filter: blur(8px) saturate(140%);
    box-shadow:
      inset 1px 1px 0 rgba(255, 255, 255, 0.16),
      0 1px 2px rgba(0, 0, 0, 0.25),
      0 20px 44px -18px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 2fr; gap: 48px; }
}
.about-grid h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  letter-spacing: -0.03em;
}
.about-text {
  max-width: 36em;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  line-height: 1.65;
}
.about-text p + p { margin-top: 1em; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) {
  .faq-grid { grid-template-columns: 1fr 2fr; gap: 48px; }
}
.faq-grid h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  letter-spacing: -0.03em;
}
.faq-solo { max-width: 820px; }
.accordion {
  border-top: 1px solid var(--line);
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item h3 { font-size: inherit; }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 64px;
  padding: 18px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}
.accordion-trigger:hover { color: #fff; }
.accordion-trigger:focus-visible { outline-offset: 2px; }
.chevron {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
}
.chevron::before,
.chevron::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}
.chevron::after { transform: rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .chevron::after { transform: rotate(0deg); }
.accordion-trigger:hover .chevron { color: var(--text); }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.accordion-panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p {
  padding: 0 40px 24px 0;
  max-width: 38em;
  color: var(--text-muted);
}
/* No-JS fallback: panels stay readable */
html:not(.js) .accordion-panel { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; }
}
.section--page {
  border-top: 0;
  padding-top: clamp(64px, 11vw, 120px);
}
.section--page h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.045em;
}
.contact-aside {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.contact-aside p + p { margin-top: 6px; }

/* Contact page: the section is the page's hero (shader, one-screen sizing).
   On a laptop the headline, the contact lines and the whole form, submit
   included, fit in one screen (1366x768), so spacing is tighter than the
   form on other pages. Phones stack and scroll as usual. */
.hero.hero--contact { padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px)); }
.hero--contact .contact-grid { align-items: center; }
@media (min-width: 960px) {
  .hero.hero--contact { padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
  .hero--contact h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
  .hero--contact .lede { margin-top: 16px; }
  .hero--contact .contact-aside { margin-top: 20px; }
  .hero--contact .form { gap: 14px 16px; padding: 24px 28px; }
  .hero--contact .field label { margin-bottom: 6px; }
  .hero--contact .field input,
  .hero--contact .field textarea { padding: 8px 12px; }
  .hero--contact .field textarea { min-height: 96px; }
}

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 5vw, 36px);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
@media (min-width: 600px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}
.field .optional {
  color: var(--text-faint);
  font-weight: 400;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px avoids iOS zoom on focus */
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 180, 255, 0.2);
}
.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form-note.is-error { color: #ff9b9b; }
.form-note.is-sent { color: var(--text); }
.form-note {
  color: var(--text-faint);
  font-size: 0.8125rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 760px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-name { color: var(--text); font-weight: 600; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--text-faint); }

/* ---------- Text selection ----------
   Off everywhere by default, so a press-and-hold anywhere (a panel, or text
   beside one) never highlights anything. Descendants left at "auto" resolve
   to "none" under this body rule. Back on only for phone numbers, email
   addresses, and form fields: people copy those, and a long-press on a tel:
   link is how a number gets saved to contacts. */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
a[href^="tel:"],
a[href^="mailto:"],
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* ---------- Reveal: the one system every animated element uses ----------
   Hidden state: .reveal, only while html.js is set (added in <head>), so it
   is present at first paint and never applies without JavaScript.
   Visible state: .is-visible, added by script.js, either after a double
   requestAnimationFrame (already on screen at load) or by the one
   IntersectionObserver (everything below). Timing lives in these custom
   properties only. Stagger is data-reveal-step, set by the script in DOM
   order. Gradient headlines and pricing panels are never .reveal
   themselves: a plain wrapper carries the class. */
:root {
  --reveal-duration: 1.2s;
  --reveal-ease: var(--ease);
  --reveal-shift: 10px;
  --reveal-step: 0.12s;
}
/* A keyframe animation rather than a transition: an animation always plays
   from its first frame when .is-visible lands, even if the engine never
   committed the hidden state first (WebKit can skip a transition in that
   case, which is what made some text pop in on iPhone). */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-shift), 0);
}
.js .reveal:not(.is-done) { will-change: opacity, transform; }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  animation: reveal-in var(--reveal-duration) var(--reveal-ease) both;
}
.js .reveal.is-visible[data-reveal-step="1"] { animation-delay: calc(var(--reveal-step) * 1); }
.js .reveal.is-visible[data-reveal-step="2"] { animation-delay: calc(var(--reveal-step) * 2); }
.js .reveal.is-visible[data-reveal-step="3"] { animation-delay: calc(var(--reveal-step) * 3); }
.js .reveal.is-visible[data-reveal-step="4"] { animation-delay: calc(var(--reveal-step) * 4); }
@keyframes reveal-in {
  from { opacity: 0; transform: translate3d(0, var(--reveal-shift), 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero headline, letter by letter ----------
   script.js splits the hero h1 into letters (never in the source) and marks
   its .reveal wrapper .hl-host: the wrapper itself no longer fades, its
   letters do, on the same trigger. Each letter is two spans. The outer .ch
   animates (opacity and transform only). The inner .ch-in carries the
   gradient with background-clip: text, sized to the whole headline and
   offset by the letter's position, so the letters together show the one
   continuous gradient. The h1 keeps its gradient value (so the one-line or
   multi-line rule is unchanged) but paints nothing itself. */
:root {
  --hl-letter: 0.6s;  /* each letter's own fade and rise */
  --hl-spread: 0.5s;  /* first to last letter start, the whole line assembles in about this */
}
.js .reveal.hl-host { opacity: 1; transform: none; animation: none; }
.hl { position: relative; }
.hl-word { display: inline-block; white-space: nowrap; }
.hl .ch { display: inline-block; }
.js .hl .ch { opacity: 0; transform: translate3d(0, 0.18em, 0); }
.js .hl-host.is-visible .hl .ch {
  opacity: 1;
  transform: none;
  animation: hl-in var(--hl-letter) var(--reveal-ease) both;
  animation-delay: calc(var(--i, 0) * var(--hl-step, 0.02s));
}
@keyframes hl-in {
  from { opacity: 0; transform: translate3d(0, 0.18em, 0); }
  to { opacity: 1; transform: none; }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad.hl { background-repeat: no-repeat; background-size: 0 0; }
  /* Glyphs overhang their boxes (tight letter-spacing, descenders), and a
     background-clip: text background only paints inside the box. Padding
     widens the paint area on every side; the negative side margins cancel it
     so spacing is unchanged (vertical padding never affects inline layout).
     --hl-grad (script.js) is the headline's own gradient in pixel terms,
     identical inside the headline box and simply continuing past its edges,
     so overhanging glyph parts get the natural colour, not a seam.
     offsetLeft/Top measure this padded box, so the offsets stay exact. */
  .grad.hl .ch-in {
    padding: 0.2em 0.12em 0.25em 0.06em;
    margin: 0 -0.12em 0 -0.06em;
    background-image: var(--hl-grad);
    background-repeat: no-repeat;
    background-size: var(--hl-w) var(--hl-h);
    background-position: var(--x, 0) var(--y, 0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* ---------- Hero shader background ----------
   A WebGL canvas (script.js) behind the hero content: a slow greyscale
   gradient with a fixed ordered dither against banding, drawn at device
   resolution (capped), faded out toward the bottom so it blends into the
   next section. If WebGL is not
   available the canvas is never added and the CSS background stays. */
.hero { isolation: isolate; }
.hero-shader {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
}
.hero-shader.is-on { opacity: 1; }
/* The canvas fades out over the bottom 20% (mask above). Under it, the hero's
   own background goes from the page color to the color of the section below
   over the same stretch, so a light section gets no dark band at the seam.
   The home hero keeps its own fade (::after) to the band color. */
.hero:not(.hero--home) {
  background: linear-gradient(to bottom, rgba(12, 12, 13, 0) 80%, var(--hero-fade-to, rgba(12, 12, 13, 0)));
}
.hero:has(+ .section--light) { --hero-fade-to: #f5f5f7; } /* .section--light --bg */
.hero:has(+ .section--band) { --hero-fade-to: var(--bg-band); }
/* With the smoke running, the home hero's corner light and hairline grid
   step aside (they would fight it); without WebGL they stay. */
.has-shader.hero--home::before,
.has-shader.hero--home .container::before { display: none; }
/* If script.js never runs, nothing stays hidden: once the script starts it
   sets html.reveal-ready, which removes this failsafe before it fires. */
.js:not(.reveal-ready) .reveal { animation: reveal-failsafe 0s 3s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal,
  .js .reveal.is-visible,
  .js .hl .ch { opacity: 1; transform: none; transition: none; animation: none !important; }
  .box:hover,
  .box.is-pressed,
  .typelist li:hover,
  .typelist li.is-pressed { transform: none; }
}
