/* ==========================================================================
   Zen Unity — zenunity.ai
   Ported from the "Hero B / Marquee" design canvas, Emerald theme.
   Plain CSS, no build step. Tokens first, then base, then components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — the Emerald skin, resolved
   -------------------------------------------------------------------------- */
:root {
  /* Ground and surfaces */
  --pg: #06110C;
  --pg-alt: #0A1912;
  --surface: #0F2117;
  --surface-2: #0C1B13;

  /* Lines */
  --line: #173023;
  --line-strong: #234A35;
  --hair: rgba(210, 255, 230, 0.06);

  /* Text */
  --t-hi: #E7F5EC;
  --t-mid: #9CB4A5;
  --t-low: #6C8276;

  /* Accent */
  --accent: #34D399;
  --accent-press: #5FE7B4;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --accent-soft-2: rgba(52, 211, 153, 0.22);
  --accent-glow: rgba(52, 211, 153, 0.28);
  --glow-soft: rgba(52, 211, 153, 0.08);
  --glow-mid: rgba(52, 211, 153, 0.16);
  --glow-strong: rgba(52, 211, 153, 0.42);
  --signal: #34D399;
  --on-accent: #04170F;

  /* Lit gradients (featured card, hero wash) */
  --lit-1: #0C3324;
  --lit-2: #071811;

  /* Header */
  --hdr-bg: rgba(6, 17, 12, 0.75);
  --hdr-bg-stuck: rgba(6, 17, 12, 0.94);

  /* Type */
  --f-disp: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --w-disp: 600;

  /* Radii */
  --r-pill: 999px;
  --r-card: 18px;
  --r-card-sm: 12px;
  --r-md: 10px;
  --r-sm: 6px;

  /* Buttons */
  --btn-bg: #34D399;
  --btn-fg: #04170F;
  --btn-bd: transparent;
  --btn-bg-h: #5FE7B4;
  --btn-fg-h: #04170F;
  --btn-bd-h: transparent;
  --btn-shadow-h: 0 14px 34px -14px rgba(52, 211, 153, 0.5);

  /* Elevation */
  --el-card: 0 0 0 1px #173023;
  --el-lift: 0 0 0 1px #234A35, 0 12px 32px rgba(0, 0, 0, 0.6);
  --el-featured: 0 0 0 1px rgba(52, 211, 153, 0.4), 0 24px 50px -24px rgba(52, 211, 153, 0.3);

  /* Error */
  --err: #FF8A75;
  --err-soft: rgba(255, 138, 117, 0.10);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(20px, 0.75rem + 2vw, 40px);
  --section-y: clamp(72px, 2.5rem + 8vw, 160px);
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--pg);
  color: var(--t-mid);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--f-disp);
  color: var(--t-hi);
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--t-hi); }

/* `hidden` must win over the component display values below. */
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--accent-glow); color: var(--t-hi); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link — keyboard users land here first */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 76px;
}

.section--alt { background: var(--pg-alt); }
.section--pg { background: var(--pg); }
.section--fade { background: linear-gradient(180deg, var(--pg) 0%, var(--pg-alt) 100%); }

.sec-head {
  max-width: 52ch;
  margin-bottom: clamp(40px, 1.5rem + 3vw, 72px);
}

.sec-head h2 {
  font-size: clamp(30px, 1.25rem + 2.6vw, 48px);
  font-weight: var(--w-disp);
  letter-spacing: -0.03em;
}

.sec-head > p {
  margin-top: 16px;
  font-size: clamp(16px, 0.95rem + 0.35vw, 19px);
  color: var(--t-mid);
}

/* Eyebrow label with a trailing hairline rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: clamp(28px, 8vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.eyebrow--plain::after { display: none; }

/* --------------------------------------------------------------------------
   4. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    color 180ms var(--ease);
}

.btn--primary {
  border-color: var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn--primary:hover {
  background: var(--btn-bg-h);
  border-color: var(--btn-bd-h);
  color: var(--btn-fg-h);
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-h);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--t-hi);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--t-hi);
  transform: translateY(-2px);
}

.btn--lg {
  min-height: 52px;
  font-size: 17px;
  padding: 16px 30px;
  transition-duration: 220ms;
}
.btn--lg.btn--primary:hover { transform: translateY(-3px) scale(1.015); }
.btn--lg.btn--ghost:hover { transform: translateY(-3px); }
.btn--lg:active { transform: translateY(0) scale(0.99); }

.btn--block { width: 100%; }

.btn__icon { width: 16px; height: 16px; fill: currentColor; stroke: none; flex: none; }

/* Inline accent link with an arrow */
.link-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  padding-bottom: 2px;
  transition: gap 180ms var(--ease), color 180ms var(--ease);
}
.link-accent:hover { color: var(--accent-press); gap: 12px; }

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hdr-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 300ms var(--ease),
    background-color 300ms var(--ease);
}
.header.is-stuck {
  background: var(--hdr-bg-stuck);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* The brand is now a single lockup image — the ZU mark and the wordmark
   together — so this is just a container for it. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

/* Transparent PNG keyed off the artwork's own dark ground, so the mark's
   glow falls away into whatever surface it sits on. Height drives the size;
   width follows the 3.107:1 aspect. */
.brand__logo {
  display: block;
  height: 46px;
  width: auto;
}

@media (max-width: 479px) {
  .brand__logo { height: 38px; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--t-hi);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.nav-toggle:hover { border-color: var(--line-strong); background: var(--surface-2); }

.nav-toggle__bars { display: grid; gap: 5px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav__grouplabel {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--t-low);
  margin-bottom: 12px;
}

.nav__svc { position: relative; display: grid; }

.nav__svc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--t-mid);
  padding: 8px 0;
  transition: color 180ms var(--ease);
}
.nav__svc-toggle:hover,
.nav__svc:hover .nav__svc-toggle,
.nav__svc-toggle[aria-expanded="true"] { color: var(--t-hi); }
.nav__svc-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 180ms var(--ease);
}
.nav__svc:hover .nav__svc-toggle svg,
.nav__svc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Services menu items — icon tile, title, one-line blurb. Shared between the
   mobile drawer (flat list) and the desktop panel (2-up grid). */
.svc-menu__list { display: grid; gap: 2px; }

.svc-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--t-mid);
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease);
}
.svc-menu__item:hover,
.svc-menu__item:focus-visible { background: var(--surface); }

.svc-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
  transition:
    background-color 240ms var(--ease),
    box-shadow 240ms var(--ease),
    transform 240ms var(--ease);
}
.svc-menu__icon svg { width: 18px; height: 18px; }
.svc-menu__item:hover .svc-menu__icon,
.svc-menu__item:focus-visible .svc-menu__icon {
  background: var(--accent-soft-2);
  box-shadow: 0 0 20px -6px var(--glow-strong);
  transform: translateY(-1px);
}

.svc-menu__text { display: grid; gap: 2px; min-width: 0; }
.svc-menu__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--t-hi);
}
.svc-menu__desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--t-low);
  transition: color 180ms var(--ease);
}
.svc-menu__item:hover .svc-menu__desc { color: var(--t-mid); }

.svc-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--t-mid);
  transition: color 180ms var(--ease);
}
.svc-menu__foot strong { color: var(--accent); font-weight: 600; }
.svc-menu__foot:hover { color: var(--t-hi); }
.svc-menu__foot span:last-child {
  transition: transform 180ms var(--ease);
}
.svc-menu__foot:hover span:last-child { transform: translateX(3px); }

.nav__main a {
  display: block;
  color: var(--t-mid);
  font-size: 15px;
  font-weight: 500;
  transition: color 180ms var(--ease);
}
.nav__main a:hover { color: var(--t-hi); }

.nav__main a { padding: 8px 0; }

.nav__cta { flex: none; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 13vw, 132px) 0;
  background: var(--pg);
}

.hero__bg {
  position: absolute;
  inset: -10% 0 auto 0;
  height: 120%;
  pointer-events: none;
  will-change: transform;
}
.hero__wash {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 100%;
  background: radial-gradient(48% 42% at 30% 22%, var(--accent-soft-2) 0%, transparent 68%);
  animation: om-sweep 22s ease-in-out infinite alternate;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--hair) 1px, transparent 1px);
  background-size: clamp(64px, 22vw, 120px) 100%;
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  animation: om-breathe 11s ease-in-out infinite;
}

/* Narrow screens run kicker, call card, headline, lede, buttons in that
   order. The copy wrapper dissolves (display: contents) so the card can be
   ordered among its children; at 960px it becomes a real column again. */
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: clamp(48px, 8vw, 80px);
}
.hero__copy { display: contents; }
.hero__kicker { order: 1; }
.call { order: 2; margin-block: 8px 12px; }
.hero__title { order: 3; }
.hero__lede { order: 4; }
.hero__actions { order: 5; }

/* Two stacked rows: the line that introduces the three services, then the
   services themselves. The header already carries the logo, so the hero
   does not repeat it. */
.hero__kicker {
  display: grid;
  justify-items: start;
  gap: 12px;
  font-family: var(--f-disp);
  font-weight: var(--w-disp);
}
.hero__kicker-line {
  font-size: clamp(16px, 0.7rem + 1.1vw, 20px);
  letter-spacing: -0.012em;
  color: var(--t-mid);
}
.hero__kicker-tags {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: 0.3em;
  color: var(--t-low);
}
.hero__kicker-rule {
  display: block;
  width: clamp(28px, 8vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.hero__kicker-tag {
  white-space: nowrap;
  color: var(--accent);
  letter-spacing: 0.18em;
}

/* Three sentences, one per service. The service word takes its own line in
   the high text colour; the rest of the sentence sits under it in mid. */
.hero__title {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.06;
  font-weight: var(--w-disp);
  letter-spacing: -0.035em;
  color: var(--t-mid);
  text-align: left;
}
.hero__title > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}
/* Each sentence wraps onto two lines, so the space between sentences has to
   beat the space inside one or the three read as six loose lines. */
.hero__title > span + span { margin-top: 0.5em; }
.hero__title .line { display: block; }
.hero__svc { display: block; color: var(--t-hi); }

.hero__lede {
  max-width: 46ch;
  font-size: clamp(16px, 4vw, 19px);
  color: var(--t-mid);
}
.hero__lede strong { color: var(--t-hi); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The call card */
.call {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.call__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--t-hi);
}
.call__top .wave { height: 18px; }
.call__top .wave i { width: 2px; }
.call__who { display: grid; line-height: 1.3; min-width: 0; }
.call__who small {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--t-low);
  letter-spacing: 0.04em;
}
.call__clock {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.call__log {
  display: grid;
  gap: 10px;
  padding: 18px;
  min-height: 268px;
  align-content: start;
}
.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.msg--caller {
  justify-self: start;
  background: var(--surface);
  color: var(--t-mid);
  border-bottom-left-radius: 4px;
}
.msg--ai {
  justify-self: end;
  background: var(--accent-soft);
  color: var(--t-hi);
  border: 1px solid var(--accent-soft-2);
  border-bottom-right-radius: 4px;
}
.msg small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-low);
}
.msg--ai small { color: var(--accent); }

/* Only while the script is driving it do messages start hidden. */
.js .call.is-playing .msg { opacity: 0; transform: translateY(6px); }
.js .call.is-playing .msg.is-in { opacity: 1; transform: none; }

/* What the call set in motion, and which system did it */
.chain {
  border-top: 1px solid var(--line);
  background: var(--pg);
  padding: 14px 18px;
  display: grid;
  gap: 8px;
}
.chain__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--t-mid);
  transition: color 260ms var(--ease);
}
.chain__row b { font-weight: 500; color: var(--t-hi); }
.chain__sys {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.chain__sys::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transition: background-color 260ms var(--ease), box-shadow 260ms var(--ease);
}
.chain__t {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--t-low);
  font-variant-numeric: tabular-nums;
}
.js .call.is-playing .chain__row { color: var(--t-low); }
.js .call.is-playing .chain__row b { color: inherit; }
.js .call.is-playing .chain__sys { color: var(--t-low); }
.js .call.is-playing .chain__sys::before { background: var(--line-strong); box-shadow: none; }
.js .call.is-playing .chain__row.is-on { color: var(--t-mid); }
.js .call.is-playing .chain__row.is-on b { color: var(--t-hi); }
.js .call.is-playing .chain__row.is-on .chain__sys { color: var(--accent); }
.js .call.is-playing .chain__row.is-on .chain__sys::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Waveform, shared by the hero call card and the voice panel */
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  height: 20%;
  animation: om-wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(3n) { animation-delay: -0.2s; }
.wave i:nth-child(3n+1) { animation-delay: -0.45s; }
.wave i:nth-child(5n) { animation-delay: -0.7s; }
.wave i:nth-child(7n) { animation-delay: -0.9s; }

/* Marquee band */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--pg-alt);
  padding-block: clamp(14px, 3.4vw, 20px);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: om-marquee 34s linear infinite;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 44px);
  padding-right: clamp(20px, 5vw, 44px);
  font-family: var(--f-disp);
  font-size: clamp(13px, 3.2vw, 17px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-low);
  white-space: nowrap;
}
.marquee__dot { color: var(--accent); }
.marquee__mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--pg-alt) 0%, transparent 12%, transparent 88%, var(--pg-alt) 100%);
}

/* --------------------------------------------------------------------------
   6b. What we build — the three panels
   -------------------------------------------------------------------------- */
.tri {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  min-height: 300px;
  transition:
    border-color 260ms var(--ease),
    background-color 260ms var(--ease),
    flex-grow 420ms var(--ease);
}
.panel:hover,
.panel:focus-within {
  border-color: var(--line-strong);
  background: var(--surface);
}
/* The "for" label sits above the name, so long names never fight it. */
.panel__name {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 8px;
}
.panel__name h3 {
  font-size: clamp(22px, 1.1rem + 1.4vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.panel__for {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.panel__does { font-size: 15px; color: var(--t-mid); max-width: 34ch; }
.panel__does strong { color: var(--t-hi); font-weight: 500; }
.panel__link { justify-self: start; }

/* Website panel: a small browser */
.vig-web {
  border: 1px solid var(--line);
  border-radius: var(--r-card-sm);
  overflow: hidden;
  background: var(--pg);
  color: var(--t-mid);
}
.vig-web__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.vig-web__dots { display: flex; gap: 4px; }
.vig-web__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.vig-web__url {
  flex: 1;
  min-width: 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--t-low);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vig-web__page { padding: 14px 12px 16px; display: grid; gap: 10px; }
.vig-web__h { height: 10px; width: 62%; border-radius: 3px; background: var(--t-hi); opacity: 0.9; }
.vig-web__h + .vig-web__h { width: 44%; opacity: 0.55; }
.vig-web__p { height: 5px; width: 78%; border-radius: 3px; background: var(--line-strong); }
.vig-web__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.vig-web__cta {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.vig-web__ring {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--accent);
  white-space: nowrap;
}
.vig-web__ring i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: om-pulse 2.4s ease-in-out infinite;
}

/* Automation panel: a chain of steps lit in turn by main.js */
.vig-flow { display: grid; }
.flow__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--pg);
  font-size: 13px;
  color: var(--t-mid);
  transition: border-color 260ms var(--ease);
}
.flow__step b { font-weight: 500; color: var(--t-hi); }
.flow__step small {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-low);
  transition: color 260ms var(--ease);
}
.flow__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 260ms var(--ease), box-shadow 260ms var(--ease);
}
.flow__step.is-on { border-color: var(--accent); }
.flow__step.is-on small { color: var(--accent); }
.flow__step.is-on .flow__dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.flow__link { width: 1px; height: 14px; margin-left: 24px; background: var(--line-strong); }

/* Voice panel: a call card */
.vig-call {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card-sm);
  background: var(--pg);
  color: var(--t-mid);
}
.vig-call__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--t-hi);
}
.vig-call__top small { font-family: var(--f-mono); font-size: 10.5px; color: var(--t-low); letter-spacing: 0.06em; }
.vig-call__line { font-size: 13px; }
.vig-call__line b { color: var(--t-hi); font-weight: 500; }
.vig-call__tag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r-pill);
}

/* --------------------------------------------------------------------------
   7. Pricing
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--el-card);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.plan:hover {
  border-color: var(--line-strong);
  box-shadow: 0 28px 56px -30px rgba(0, 0, 0, 0.95);
}

.plan--featured {
  background: linear-gradient(180deg, var(--lit-1) 0%, var(--surface) 60%);
  border-color: var(--accent);
  box-shadow: var(--el-featured);
}
.plan--featured:hover {
  border-color: var(--accent);
  box-shadow: var(--el-featured), 0 28px 56px -30px rgba(0, 0, 0, 0.95);
}

/* The recommended tier. Not a popularity number we can back up yet -- an
   opinion, stated as one, and sitting inside the card rather than floating on
   its top edge. The hairline carries the eye from the label into the card. */
.plan__flag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.plan__flag::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-soft-2), transparent);
}
.plan__flag-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.plan__icon,
.svc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.plan__icon { width: 44px; height: 44px; }
.plan__icon svg { width: 22px; height: 22px; }

.plan h3 {
  font-size: clamp(20px, 1.1rem + 0.6vw, 24px);
  font-weight: var(--w-disp);
}
.plan__tagline {
  font-size: 15px;
  color: var(--t-low);
  margin-top: -12px;
}
.plan__price {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.plan__amount {
  font-family: var(--f-disp);
  font-size: clamp(32px, 1.6rem + 1.6vw, 44px);
  font-weight: var(--w-disp);
  color: var(--t-hi);
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.plan__from {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-low);
}

.plan__features {
  display: grid;
  gap: 12px;
  padding-block: 8px;
  font-size: 15px;
}
.plan__features li {
  position: relative;
  padding-left: 24px;
  color: var(--t-mid);
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 6px;
  border-left: 1.75px solid var(--accent);
  border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg);
}

.plan .btn { margin-top: auto; }

/* Tag on the automation line (Growth) and the AI agent line (Scale). */
.key__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 1px;
}

/* Care plans: the monthly tier under the build packages. A short stem hangs
   off the build grid into a centred intro, then the cards repeat the plan
   layout a size smaller so they read as the follow-on, not a second offer. */
.care-bridge {
  position: relative;
  max-width: 52ch;
  margin: clamp(44px, 2rem + 4vw, 88px) auto 0;
  text-align: center;
}
.care-bridge .eyebrow { margin-bottom: 12px; }
.care-bridge h3 {
  font-size: clamp(22px, 1.05rem + 1.4vw, 32px);
  font-weight: var(--w-disp);
  letter-spacing: -0.025em;
}
.care-bridge > p:not(.eyebrow) {
  margin-top: 12px;
  font-size: clamp(15px, 0.9rem + 0.3vw, 17px);
  color: var(--t-mid);
}
.care-bridge__stem {
  display: block;
  width: 1px;
  height: clamp(36px, 5vw, 56px);
  margin: 0 auto 22px;
  background: linear-gradient(180deg, transparent, var(--accent));
}
.care-bridge__stem::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(clamp(36px, 5vw, 56px) - 3px);
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.plans--care {
  margin-top: clamp(28px, 1.25rem + 2vw, 44px);
  gap: 20px;
}
.plan--care {
  gap: 12px;
  padding: 26px 28px;
  background: var(--surface-2);
}
.plan--care.plan--featured {
  background: linear-gradient(180deg, var(--lit-1) 0%, var(--surface-2) 60%);
}
/* The care cards run on a 12px gap, so the flag needs less negative pull. */
.plan--care .plan__flag { margin-bottom: -2px; font-size: 11px; }
.plan--care h3 { font-size: clamp(18px, 1rem + 0.5vw, 21px); }
.plan--care .plan__amount { font-size: clamp(28px, 1.4rem + 1.1vw, 36px); }
.plan__per {
  margin-left: 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--t-low);
}
.plan--care .plan__tagline {
  margin-top: -2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--t-hi);
}
.plan--care .plan__features { gap: 10px; font-size: 14.5px; }

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.svc {
  position: relative;
  scroll-margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 1rem + 2vw, 40px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition:
    transform 420ms var(--ease),
    border-color 300ms var(--ease),
    box-shadow 420ms var(--ease);
}
.svc:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--el-lift);
}

.svc__num {
  position: absolute;
  top: clamp(14px, 1.6vw, 22px);
  right: clamp(18px, 2vw, 28px);
  font-family: var(--f-disp);
  font-weight: var(--w-disp);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  pointer-events: none;
  transition:
    -webkit-text-stroke-color 380ms var(--ease),
    transform 420ms var(--ease);
}
.svc:hover .svc__num {
  -webkit-text-stroke-color: var(--accent);
  transform: translateY(-4px);
}

.svc__head { display: flex; align-items: center; gap: 16px; }
.svc__icon {
  width: 40px;
  height: 40px;
  transition:
    transform 380ms var(--ease),
    background-color 380ms var(--ease),
    box-shadow 380ms var(--ease);
}
.svc__icon svg { width: 20px; height: 20px; }
.svc:hover .svc__icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--accent-soft-2);
  box-shadow: 0 0 28px -6px var(--glow-strong);
}

.svc h3 {
  font-size: clamp(20px, 1.1rem + 0.6vw, 24px);
  font-weight: 600;
}
.svc > p { color: var(--t-mid); }

/* Accent dot bullets — shared by services and the booking rail */
.dot-list { display: grid; gap: 12px; font-size: 15px; }
.dot-list li { position: relative; padding-left: 24px; }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.svc:hover .dot-list li::before {
  transform: scale(1.5);
  box-shadow: 0 0 10px var(--glow-strong);
}

.svc .link-accent { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------------------
   9. Demo — v2, currently unused
   The markup is commented out in index.html until the demo line is ready.
   These rules are kept so restoring it is a matter of uncommenting.
   -------------------------------------------------------------------------- */
.demo {
  display: grid;
  gap: clamp(32px, 1rem + 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 1rem + 3vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 120% at 100% 0%, var(--glow-soft) 0%, transparent 60%),
    var(--surface-2);
}
.demo h2 {
  font-size: clamp(28px, 1.3rem + 2vw, 40px);
  font-weight: var(--w-disp);
}
.demo__copy > p {
  margin-top: 16px;
  font-size: clamp(16px, 0.95rem + 0.35vw, 19px);
  color: var(--t-mid);
}
.demo__card {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card-sm);
}
.demo__number {
  font-family: var(--f-disp);
  font-size: clamp(20px, 1rem + 1vw, 26px);
  font-weight: 600;
  color: var(--t-hi);
  letter-spacing: 0.01em;
}
.demo__number a { transition: color 180ms var(--ease); }
.demo__number a:hover { color: var(--accent); }
.demo__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--signal);
}
.demo__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
  animation: om-pulse 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   10. Portfolio
   -------------------------------------------------------------------------- */
.work {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
/* min-width: 0 stops the screenshot's intrinsic width from propping the grid
   column open, which otherwise overflows the page on narrow screens. */
.case { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.case__shot {
  overflow: hidden;
  border-radius: var(--r-card-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 8px;
  /* Matches the browser-window shape of the real screenshots, so a hero
     lands in the frame without losing its top bar or its call to action. */
  aspect-ratio: 1.7;
}
.case__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 400ms var(--ease);
}
.case:hover .case__shot img { transform: scale(1.04); }
/* Cards with a live URL (see data-site in index.html) get a stretched link:
   one real anchor on the title, an invisible overlay across the whole card. */
.case--linked { position: relative; }
.case__link { color: inherit; transition: color 180ms var(--ease); }
.case__link::after { content: ""; position: absolute; inset: 0; }
.case--linked:hover .case__link,
.case__link:focus-visible { color: var(--accent); }
.case--linked:has(.case__link:focus-visible) .case__shot {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.case__visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 180ms var(--ease);
}
.case__visit span { transition: transform 180ms var(--ease); }
.case--linked:hover .case__visit { opacity: 1; }
.case--linked:hover .case__visit span { transform: translate(2px, -2px); }
.case__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.case h3 {
  font-size: clamp(20px, 1.1rem + 0.6vw, 24px);
  font-weight: 600;
}
.case > p { font-size: 15px; color: var(--t-mid); }

/* --------------------------------------------------------------------------
   11. Booking
   -------------------------------------------------------------------------- */
.book { display: grid; max-width: 720px; }

.book__rail { display: grid; gap: 16px; align-content: start; }
.book__rail h2 {
  font-size: clamp(30px, 1.25rem + 2.6vw, 48px);
  font-weight: var(--w-disp);
  letter-spacing: -0.03em;
}
.book__lede {
  max-width: 38ch;
  font-size: clamp(16px, 0.95rem + 0.35vw, 19px);
  color: var(--t-mid);
}
.book__rail .dot-list { margin-top: 4px; color: var(--t-mid); }

.contact-list {
  display: grid;
  gap: 16px;
  margin: 0;
  margin-top: clamp(16px, 2vw, 24px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact-list > div { display: grid; gap: 4px; }
.contact-list dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-low);
}
.contact-list dd { margin: 0; }
.contact-list dd a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--t-hi);
  font-weight: 600;
  transition: color 180ms var(--ease);
}
.contact-list dd a:hover { color: var(--accent); }
.pin {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent);
  stroke-width: 1.6;
}

/* The calendar button, sitting directly under the heading and its lede. */
.book__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: clamp(4px, 0.6vw, 8px) 0 clamp(8px, 1.2vw, 14px);
}
.book__fine { font-size: 14px; color: var(--t-low); }

/* --------------------------------------------------------------------------
   11b. Booking modal
   A native <dialog> holding Google's own scheduling page in an iframe, so the
   booking flow happens without leaving the site. The page sets no
   X-Frame-Options and no frame-ancestors, which is what makes this possible —
   it is the same URL Google's own scheduling button embeds.
   -------------------------------------------------------------------------- */
.cal {
  width: min(920px, 96vw);
  max-width: none;
  height: min(780px, 88vh);
  max-height: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--t-hi);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.cal::backdrop {
  background: rgba(3, 9, 6, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Overrides the UA's display:block so the bar and body can stack. */
.cal[open] { display: flex; flex-direction: column; }

.cal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  padding: 14px 14px 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.cal__title {
  font-family: var(--f-disp);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-low);
}
.cal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--t-mid);
  cursor: pointer;
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background-color 180ms var(--ease);
}
.cal__close:hover {
  color: var(--t-hi);
  border-color: var(--line-strong);
  background: var(--surface);
}
.cal__close svg { width: 16px; height: 16px; stroke-width: 2; }

/* White, because Google's scheduling page is — this avoids a dark seam
   around the iframe once it paints. */
.cal__body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.cal__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  font-size: 15px;
  color: var(--t-low);
  background: var(--surface);
}

.cal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Full-screen on phones — the scheduling UI needs the room. */
@media (max-width: 599px) {
  .cal {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--pg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 2rem + 4vw, 80px) 32px;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.footer__blurb {
  margin-top: 16px;
  color: var(--t-low);
  max-width: 34ch;
}
.footer h2 {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-low);
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 12px; }
.footer ul a {
  color: var(--t-mid);
  transition: color 180ms var(--ease);
}
.footer ul a:hover { color: var(--t-hi); }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(40px, 2rem + 2vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--t-low);
}
.footer__legal {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.footer__legal a { transition: color 180ms var(--ease); }
.footer__legal a:hover { color: var(--t-hi); }

/* --------------------------------------------------------------------------
   12b. Legal pages (privacy.html, terms.html)
   A narrower measure, its own slim header and footer.
   -------------------------------------------------------------------------- */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pg);
  color: var(--t-hi);
  font-size: 16px;
}
.legal-wrap {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--pg-alt);
}
.legal-header .legal-wrap {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--t-mid);
  transition: color 180ms var(--ease);
}
.legal-back:hover { color: var(--accent); }

.legal-main {
  flex: 1;
  padding-block: clamp(48px, 8vw, 88px) clamp(64px, 8vw, 104px);
}
.legal-main h1 {
  font-size: clamp(32px, 1.3rem + 3vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.legal-updated {
  margin-top: 16px;
  font-size: 15px;
  color: var(--t-low);
}
.legal-intro {
  margin-top: clamp(32px, 4vw, 44px);
  font-size: clamp(17px, 1rem + 0.4vw, 19px);
  color: var(--t-mid);
  max-width: 62ch;
  text-wrap: pretty;
}

.legal-body {
  display: grid;
  gap: clamp(36px, 4vw, 52px);
  margin-top: clamp(44px, 5vw, 64px);
}
.legal-body section { display: grid; gap: 14px; }
.legal-body h2 {
  font-size: clamp(21px, 1.05rem + 0.7vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal-body p,
.legal-body ul {
  color: var(--t-mid);
  max-width: 66ch;
  text-wrap: pretty;
}
.legal-body ul { display: grid; gap: 12px; }
.legal-body ul li { position: relative; padding-left: 24px; }
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-body strong { color: var(--t-hi); font-weight: 600; }
.legal-body a { color: var(--accent); }
.legal-body a:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }

.legal-callout {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  display: grid;
  gap: 12px;
}
.legal-callout h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.legal-callout > p { color: var(--t-mid); max-width: 52ch; }
.legal-callout dl {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  font-size: 15px;
}
.legal-callout dl > div { display: flex; gap: 10px; flex-wrap: wrap; }
.legal-callout dt { color: var(--t-low); min-width: 64px; }
.legal-callout dd { margin: 0; color: var(--t-mid); }
.legal-callout a { color: var(--accent); }
.legal-callout a:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }

.legal-footer {
  border-top: 1px solid var(--line);
  background: var(--pg-alt);
}
.legal-footer .legal-wrap {
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--t-low);
}
.legal-footer a { color: var(--t-low); transition: color 180ms var(--ease); }
.legal-footer a:hover { color: var(--accent); }

/* 404.html reuses the legal shell; it only adds a row of actions. */
.notfound-actions {
  margin-top: clamp(32px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 480px) {
  .notfound-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   13. Motion
   -------------------------------------------------------------------------- */
@keyframes om-breathe { 0%, 100% { opacity: .45 } 50% { opacity: .9 } }
@keyframes om-marquee { from { transform: translate3d(0, 0, 0) } to { transform: translate3d(-50%, 0, 0) } }
@keyframes om-sweep { 0% { transform: translate3d(-40%, 0, 0) } 100% { transform: translate3d(40%, 0, 0) } }
@keyframes om-rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes om-line { from { transform: translateY(112%) } to { transform: none } }
@keyframes om-in { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
@keyframes om-deal { from { opacity: 0; transform: translateY(22px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes om-deal-lift { from { opacity: 0; transform: translateY(22px) scale(.985) } to { opacity: 1; transform: translateY(-6px) } }
@keyframes om-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes om-wave { 0%, 100% { height: 18% } 50% { height: 100% } }

/* Hero — runs on load */
[data-hero] { animation: om-rise 460ms var(--ease) both; }
[data-hero-line] { animation: om-line 720ms var(--ease) both; }
[data-hero="1"] { animation-delay: 60ms; }
[data-hero-line="2"] { animation-delay: 150ms; }
[data-hero-line="3"] { animation-delay: 240ms; }
[data-hero-line="4"] { animation-delay: 330ms; }
[data-hero="5"] { animation-delay: 420ms; }
[data-hero="6"] { animation-delay: 510ms; }
[data-hero="7"] { animation-delay: 380ms; animation-duration: 640ms; }
[data-hero="8"] { animation-delay: 600ms; }

/* On narrow screens the call card sits second, so it rises second too. */
@media (max-width: 959px) {
  [data-hero="7"] { animation-delay: 150ms; }
  [data-hero-line="2"] { animation-delay: 260ms; }
  [data-hero-line="3"] { animation-delay: 350ms; }
  [data-hero-line="4"] { animation-delay: 440ms; }
  [data-hero="5"] { animation-delay: 530ms; }
  [data-hero="6"] { animation-delay: 620ms; }
  [data-hero="8"] { animation-delay: 710ms; }
}

/* Below the fold — held until scrolled into view, then staggered.
   The canvas fired these on fixed delays; on a real scrolling page that
   would burn the animation off-screen, so an observer adds .is-visible. */
.js [data-reveal],
.js .plan,
.js .svc,
.js .case { opacity: 0; }

.js [data-reveal].is-visible { animation: om-in 540ms var(--ease) both; }

.js .plan.is-visible { animation: om-deal 580ms var(--ease) both; }
.js .plan.is-visible:nth-child(2) { animation-delay: 90ms; }
.js .plan.is-visible:nth-child(3) { animation-delay: 180ms; }

.js .svc.is-visible { animation: om-in 540ms var(--ease) both; }
.js .svc.is-visible:nth-child(2) { animation-delay: 70ms; }
.js .svc.is-visible:nth-child(3) { animation-delay: 140ms; }
.js .svc.is-visible:nth-child(4) { animation-delay: 210ms; }

/* Stagger repeats every three cards so the second row lands like the first. */
.js .case.is-visible { animation: om-in 540ms var(--ease) both; }
.js .case.is-visible:nth-child(3n + 2) { animation-delay: 90ms; }
.js .case.is-visible:nth-child(3n) { animation-delay: 180ms; }

/* --------------------------------------------------------------------------
   14. Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--pg-alt);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--gutter) 32px;
    display: grid;
    gap: 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 300ms var(--ease),
      opacity 300ms var(--ease),
      visibility 0s linear 300ms;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__svc-toggle { display: none !important; }
  .nav__svc-menu {
    position: static !important;
    display: grid;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
  /* In the drawer the list is flat: icon + title only, no blurbs, and the
     footer link goes away because the CTA button sits right below. */
  .svc-menu__item { padding: 6px 0; align-items: center; }
  .svc-menu__item:hover,
  .svc-menu__item:focus-visible { background: none; }
  .svc-menu__icon { width: 32px; height: 32px; }
  .svc-menu__icon svg { width: 16px; height: 16px; }
  .svc-menu__desc,
  .svc-menu__foot { display: none; }
  .nav__main {
    display: grid;
    gap: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .nav__main a { color: var(--t-hi); font-weight: 600; }
  .nav__cta { width: 100%; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none !important; }
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav__grouplabel { display: none; }
  .nav__main {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    padding-left: 32px;
  }
  .nav__main::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 20px;
    background: var(--line-strong);
    transform: translateY(-50%);
  }
  .nav__main a { white-space: nowrap; }
  .nav__svc-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    width: 560px;
    padding: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-card-sm);
    box-shadow: var(--el-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease),
      visibility 0s linear 180ms;
  }
  /* Invisible bridge over the gap between the trigger and the panel, so the
     pointer can travel down without the hover breaking. */
  .nav__svc-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 14px;
  }
  /* Faint accent hairline along the top edge, matching the featured card. */
  .nav__svc-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-soft-2), transparent);
    pointer-events: none;
  }
  .nav__svc:hover .nav__svc-menu,
  .nav__svc-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .svc-menu__list { grid-template-columns: 1fr 1fr; gap: 2px; }
  .svc-menu__foot { margin: 8px 4px 0; padding: 12px 8px 6px; }
  .demo { grid-template-columns: 1.35fr 1fr; }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 64px);
  }
  /* 40 / 32 / 40 down the column. The kicker and the buttons get the wider
     gaps because they are the two elements the headline should stand apart
     from; the lede belongs to it. */
  .hero__copy { display: grid; gap: 32px; }
  .hero__title { margin-top: 8px; }
  .hero__actions { margin-top: 8px; }
  .call { order: 0; margin-block: 0; }
}

/* The three panels sit side by side; the hovered one widens. */
@media (min-width: 860px) {
  .tri { display: flex; }
  .panel { flex: 1 1 0; min-width: 0; }
  .panel:hover,
  .panel:focus-within { flex-grow: 1.35; }
}

@media (min-width: 720px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .services { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .svc:nth-child(even) { margin-top: clamp(32px, 5vw, 72px); }
}

/* Footer widens 1 -> 2 -> 4. These must stay in ascending order: they carry
   equal specificity, so the last matching rule is the one that applies. */
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .js .plan--featured.is-visible { animation-name: om-deal-lift; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}

@media (min-width: 1040px) {
  .work { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 479px) {
  .hero__actions { display: grid; width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   15. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  [data-hero],
  [data-hero-line],
  .js [data-reveal],
  .js .plan,
  .js .svc,
  .js .case,
  .js .call .msg {
    opacity: 1 !important;
    transform: none !important;
  }
  /* A still waveform instead of a moving one */
  .wave i { height: 55%; }
  .wave i:nth-child(even) { height: 30%; }
}
