/* ==========================================================================
   IVG.one, Search + AI Authority Growth
   Stylesheet. Hand-authored. No framework, no build step.
   Sections: 1 Tokens · 2 Reset · 3 Type · 4 Layout · 5 Header · 6 Buttons
             7 Components · 8 Diagrams · 9 Page blocks · 10 Footer
             11 Motion · 12 Responsive
   ========================================================================== */

/* 1 · TOKENS ============================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces */
  --ink-900: #040a0d;
  --ink-800: #071014;
  --ink-700: #0b171d;
  --ink-600: #12242d;
  --ink-500: #1b333e;

  --paper: #ffffff;
  --paper-alt: #f5f7f8;
  --line: #e3e8ea;
  --line-soft: #eef2f3;

  /* text */
  --on-dark: #ffffff;
  --on-dark-mid: #b6c4cb;
  --on-dark-low: #8c9ba3;
  --on-light: #071014;
  --on-light-mid: #4a5a63;
  --on-light-low: #6d7d86;

  /* accents, drawn from the IVG monogram
     Swap --accent / --accent-deep / --accent-wash back to the red trio below
     to return to a red-primary site. Nothing else needs to change.
     red-primary: #ff3b45 / #d9202b / rgba(255,59,69,.10)                    */
  --accent: #0060f0;          /* electric blue, the monogram's V */
  --accent-deep: #0048c4;     /* hover / pressed */
  --accent-wash: rgba(0, 96, 240, 0.12);
  --cyan: #00cdf8;            /* the monogram's highlight stripe */
  --navy: #002860;            /* the monogram's deep field */
  --signal: #ff3b45;          /* reserved: verification, the no-mass-outreach callout */
  --teal: #00cdf8;
  --blue: #0060f0;
  --gold: #c9a227;

  /* type */
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --h1: clamp(2.6rem, 1.55rem + 4.2vw, 4.9rem);
  --h2: clamp(1.95rem, 1.38rem + 2.4vw, 3.2rem);
  --h3: clamp(1.32rem, 1.14rem + 0.78vw, 1.72rem);
  --h4: clamp(1.08rem, 1.02rem + 0.28vw, 1.22rem);
  --body: clamp(1rem, 0.965rem + 0.16vw, 1.1rem);
  --small: 0.9375rem;
  --label: 0.72rem;

  /* space */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4rem;
  --s8: 6rem;
  --section-y: clamp(4.5rem, 8.5vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 1240px;

  /* shape */
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2 · RESET =============================================================== */

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

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-light);
  font-family: var(--sans);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

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

::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  padding: 0.9rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* 3 · TYPE ================================================================ */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: var(--h1); letter-spacing: -0.038em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -0.022em; line-height: 1.22; }
h4 { font-size: var(--h4); letter-spacing: -0.014em; line-height: 1.3; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}
.eyebrow.is-quiet { color: var(--on-light-low); }
.on-dark .eyebrow.is-quiet,
.on-dark-deep .eyebrow.is-quiet { color: var(--on-dark-low); }

.deck {
  font-size: clamp(1.05rem, 0.99rem + 0.3vw, 1.25rem);
  line-height: 1.62;
  color: var(--on-light-mid);
  max-width: 62ch;
}
.on-dark .deck,
.on-dark-deep .deck { color: var(--on-dark-mid); }

.lede { max-width: 66ch; color: var(--on-light-mid); }
.on-dark .lede,
.on-dark-deep .lede { color: var(--on-dark-mid); }

.rec {
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.measure { max-width: 68ch; }
.measure-tight { max-width: 54ch; }

strong { font-weight: 600; }

/* 4 · LAYOUT ============================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.is-narrow { max-width: 920px; }

section { position: relative; }

.band {
  padding-block: var(--section-y);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.band.is-tight { padding-block: clamp(3rem, 5.5vw, 5rem); }

.on-dark,
.on-dark-deep {
  background: var(--ink-800);
  color: var(--on-dark);
}
.on-dark-deep { background: var(--ink-900); color: var(--on-dark); }
.on-alt { background: var(--paper-alt); }

/* dot grid + radial wash, dark bands only */
.on-dark::before,
.on-dark-deep::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.wash-teal::after,
.wash-accent::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(820px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
}
.wash-teal::after {
  top: -28%;
  right: -18%;
  background: radial-gradient(circle, rgba(0, 205, 248, 0.13), transparent 68%);
}
.wash-accent::after {
  bottom: -32%;
  left: -16%;
  background: radial-gradient(circle, rgba(0, 96, 240, 0.16), transparent 68%);
}

.head { margin-bottom: clamp(2.5rem, 4.5vw, 4rem); }
.head h2 { max-width: 24ch; }
.head .deck { margin-top: var(--s4); }
.head.is-centered { text-align: center; }
.head.is-centered h2,
.head.is-centered .deck { margin-inline: auto; }

.grid { display: grid; gap: var(--s4); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.split.is-top { align-items: start; }

.stack-4 > * + * { margin-top: var(--s4); }
.stack-5 > * + * { margin-top: var(--s5); }

hr.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: var(--s6);
}
.on-dark hr.rule,
.on-dark-deep hr.rule { background: var(--ink-600); }

/* 5 · HEADER ============================================================== */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(7, 16, 20, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--ink-600);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: var(--s4);
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.42rem;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark {
  width: auto;
  height: 34px;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}
.brand-word {
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--on-dark-mid);
  margin-left: -0.12rem;
  padding-bottom: 0.1rem;
}
.ftr .brand-mark { height: 36px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--on-dark-mid);
  border-radius: var(--r-sm);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link[aria-current='page'] { color: #fff; }
.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.18rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.sub-toggle svg { width: 10px; height: 10px; transition: transform 0.25s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 268px;
  padding: 0.5rem;
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--on-dark-mid);
  transition: background 0.18s, color 0.18s;
}
.sub a small {
  display: block;
  font-size: 0.78rem;
  color: var(--on-dark-low);
  margin-top: 0.1rem;
}
.sub a:hover { background: var(--ink-600); color: #fff; }

.hdr-cta { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-600);
  color: #fff;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.is-menu-open .burger span { background: transparent; }
.is-menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.is-menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* 6 · BUTTONS ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-ghost-light { border-color: var(--line); color: var(--on-light); }
.btn-ghost-light:hover { border-color: var(--on-light); background: var(--paper-alt); }

.btn-solid-dark { background: var(--ink-800); color: #fff; }
.btn-solid-dark:hover { background: var(--ink-700); }

.btn-sm { padding: 0.7rem 1.1rem; font-size: 0.875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.tel-btn svg { width: 15px; height: 15px; }

.txt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.txt-link:hover { border-bottom-color: currentColor; }
.txt-link svg { width: 14px; height: 14px; }

/* 7 · COMPONENTS ========================================================== */

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-600);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--on-dark-mid);
}
.chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.chip.is-accent .dot { background: var(--signal); }
a.chip { transition: border-color .2s, color .2s; }
a.chip:hover { border-color: var(--accent); color: #fff; }
.chips-light .chip {
  border-color: var(--line);
  background: var(--paper);
  color: var(--on-light-mid);
}

/* cards */
.card {
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  height: 100%;
}
.card:hover { border-color: #c9d2d6; transform: translateY(-3px); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--on-light-mid); font-size: var(--small); }

.on-dark .card,
.on-dark-deep .card,

.card-dark {
  background: var(--ink-700);
  border-color: var(--ink-600);
  color: var(--on-dark);
}
.on-dark .card p,
.on-dark-deep .card p,

.card-dark p { color: var(--on-dark-mid); }
.on-dark .card:hover,
.on-dark-deep .card:hover,

.card-dark:hover { border-color: var(--ink-500); }

.card-ico {
  width: 40px;
  height: 40px;
  margin-bottom: var(--s4);
  color: var(--accent);
}
.card-ico svg { width: 100%; height: 100%; }

/* compact list with tick */
.ticks { display: grid; gap: 0.65rem; }
.ticks li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: var(--small);
  color: var(--on-light-mid);
  line-height: 1.5;
}
.on-dark .ticks li,
.on-dark-deep .ticks li { color: var(--on-dark-mid); }
.ticks li::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-top: 0.22em;
  border-radius: 50%;
  background: var(--accent-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230060f0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6'/%3E%3C/svg%3E");
  background-size: 100%;
  flex-shrink: 0;
}

/* plain bordered list */
.rows { border-top: 1px solid var(--line); }
.rows li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: var(--s4);
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.on-dark .rows,
.on-dark-deep .rows { border-top-color: var(--ink-600); }
.on-dark .rows li,
.on-dark-deep .rows li { border-bottom-color: var(--ink-600); }
.rows .k { font-weight: 500; }
.rows .v { color: var(--on-light-low); font-size: var(--small); text-align: right; }
.on-dark .rows .v,
.on-dark-deep .rows .v { color: var(--on-dark-low); }

/* stat */
.stat-fig {
  font-size: clamp(2.4rem, 1.7rem + 3vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.stat-lab {
  margin-top: 0.7rem;
  font-size: var(--small);
  color: var(--on-light-mid);
}
.on-dark .stat-lab,
.on-dark-deep .stat-lab { color: var(--on-dark-mid); }

/* quote / pull */
.pull {
  border-left: 2px solid var(--accent);
  padding-left: clamp(1.2rem, 2.5vw, 2rem);
  font-size: clamp(1.28rem, 1.05rem + 1.1vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.24;
  max-width: 22ch;
}

/* callout */
.callout {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--signal);
  background: rgba(255, 59, 69, 0.1);
}
.callout .rec { color: var(--signal); }
.callout h3 { margin: 0.5rem 0 0.7rem; }

/* notice */
.notice {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper-alt);
  font-size: var(--small);
  color: var(--on-light-mid);
}
.on-dark .notice,
.on-dark-deep .notice {
  border-color: var(--ink-600);
  background: rgba(255, 255, 255, 0.025);
  color: var(--on-dark-mid);
}
.notice strong { color: inherit; }

/* breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--on-dark-low);
  margin-bottom: var(--s5);
}
.crumbs a { color: var(--on-dark-mid); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.45; }
.crumbs [aria-current] { color: #fff; }

/* accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 1.35rem 0;
  text-align: left;
  font-size: var(--h4);
  font-weight: 600;
  letter-spacing: -0.014em;
}
.acc-ico {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.acc-ico::before,
.acc-ico::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}
.acc-ico::after { transform: rotate(90deg); }
.acc-btn[aria-expanded='true'] .acc-ico::after { transform: rotate(0deg); }
.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.32s var(--ease);
}
.acc-panel > div { padding-bottom: 1.5rem; }
.acc-panel p { color: var(--on-light-mid); max-width: 72ch; }

/* 8 · DIAGRAMS ============================================================ */

.dia { width: 100%; height: auto; }
.dia text { font-family: var(--mono); font-weight: 500; }
.dia .dia-brand { font-family: var(--sans); font-weight: 600; }
.dia .dia-desc { font-family: var(--sans); font-weight: 400; }
.dia .dia-body { font-family: var(--sans); font-weight: 400; }

.node-ring { transform-box: fill-box; transform-origin: center; }

@keyframes pulseRing {
  0%, 100% { opacity: 0.25; r: 7; }
  50% { opacity: 0.85; r: 11; }
}
.pulse { animation: pulseRing 6s var(--ease) infinite; }

/* ledger rail */
.ledger {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.rail-panel {
  padding: clamp(1.4rem, 2.2vw, 1.9rem) clamp(1.4rem, 2.2vw, 1.9rem) 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-alt);
}
.on-alt .rail-panel { background: var(--paper); }
.rail-panel .rail-h {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-light-low);
  padding-bottom: 1rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.report-fields { columns: 2; column-gap: clamp(1.5rem, 3vw, 2.5rem); }
.report-fields li {
  break-inside: avoid;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--small);
}
.rail { display: grid; gap: 0; }
.rail-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.9rem;
  align-items: center;
  position: relative;
  padding: 0.62rem 0;
}
.rail-step::after {
  content: '';
  position: absolute;
  left: 12.5px;
  top: 50%;
  bottom: -50%;
  width: 1px;
  background: var(--line);
}
.rail-step:last-child::after { display: none; }
.rail-dot {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.rail-dot svg { width: 12px; height: 12px; color: #0083b0; }
.rail-step.is-final .rail-dot { border-color: var(--signal); background: var(--signal); }
.rail-step.is-final .rail-dot svg { color: #fff; }
.rail-lab {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-light-mid);
}
.rail-step.is-final .rail-lab { color: var(--on-light); }
.rail-panel .rail-step:last-child { padding-bottom: 0.2rem; }

/* control split (technology vs humans) */
.control {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.control-div { background: var(--ink-600); width: 1px; height: 100%; }
.control h3 { margin-bottom: 0.4rem; font-size: var(--h4); }
.control .rec { color: var(--on-dark-low); display: block; margin-bottom: var(--s4); }
.control-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ink-600);
  font-size: var(--small);
  color: var(--on-dark-low);
}
.control-list.is-human li {
  color: #fff;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.65rem;
  align-items: center;
}
.control-list.is-human li svg { width: 14px; height: 14px; color: var(--cyan); }

/* phase rail (90 day) */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.phase {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-lg);
  background: var(--ink-700);
}
.phase-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--ink-600);
}
.phase-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-600);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  flex-shrink: 0;
}
.phase:last-child .phase-no { background: var(--signal); color: #fff; }
.phase-days {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--on-dark-low);
}
.phase h3 { font-size: 1.15rem; margin-top: 0.15rem; }

/* process steps */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 2.6vw, 2.1rem) 0;
  border-top: 1px solid var(--ink-600);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--ink-600); }
.step-no {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 0.32em;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--on-dark-mid); max-width: 60ch; font-size: var(--small); }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; }
.tier {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: border-color 0.25s var(--ease);
}
.tier:hover { border-color: #c9d2d6; }
.tier.is-feature {
  background: var(--ink-800);
  border-color: var(--ink-600);
  color: #fff;
  position: relative;
}
.tier.is-feature p,
.tier.is-feature .ticks li { color: var(--on-dark-mid); }
.tier-flag {
  position: absolute;
  top: 0;
  right: clamp(1.6rem, 2.6vw, 2.25rem);
  padding: 0.35rem 0.75rem 0.4rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--signal);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.tier-name {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-light-low);
  margin-bottom: var(--s4);
}
.tier.is-feature .tier-name { color: var(--cyan); }
.tier-price {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.tier-per {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--on-light-low);
}
.tier.is-feature .tier-per { color: var(--on-dark-low); }
.tier-vol {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: var(--small);
  color: var(--on-light-mid);
}
.tier.is-feature .tier-vol { border-top-color: var(--ink-600); color: var(--on-dark-mid); }
.tier .ticks { margin-top: var(--s4); }
.tier-foot { margin-top: auto; padding-top: var(--s5); }
.tier-foot .btn { width: 100%; }

/* contact panel */
.tel-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
}
.tel-hero:hover { color: var(--accent); }
.tel-hero svg { width: 0.62em; height: 0.62em; color: var(--accent); flex-shrink: 0; }

/* 9 · PAGE BLOCKS ========================================================= */

.hero {
  padding-top: clamp(8.5rem, 11vw, 11rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  background: var(--ink-800);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .deck { margin-top: var(--s5); }
.hero .btn-row { margin-top: var(--s6); }
.hero .chips { margin-top: var(--s6); max-width: 440px; }

.page-hero {
  padding-top: clamp(7.5rem, 10vw, 10rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  background: var(--ink-800);
  color: #fff;
  overflow: hidden;
}
.page-hero h1 { max-width: 17ch; font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.9rem); }
.page-hero .deck { margin-top: var(--s5); }

.trustbar {
  background: var(--ink-900);
  border-block: 1px solid var(--ink-600);
  padding-block: 1.15rem;
}
.trustbar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.trustbar li {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-dark-low);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.trustbar li svg { width: 12px; height: 12px; color: var(--cyan); flex-shrink: 0; }

.cta-band { background: var(--ink-900); color: #fff; overflow: hidden; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.cta-band h2 { max-width: 16ch; }

.kpi-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.kpi {
  padding: clamp(1.75rem, 3vw, 2.6rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}
.kpi .stat-fig { color: var(--on-light); }
.kpi h3 { margin: 0.9rem 0 0.6rem; font-size: 1.22rem; }
.kpi p { color: var(--on-light-mid); font-size: var(--small); max-width: 46ch; }

.logo-note { font-size: 0.8rem; color: var(--on-light-low); }

/* 10 · FOOTER ============================================================= */

.ftr {
  background: var(--ink-900);
  color: var(--on-dark-mid);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: 2rem;
  border-top: 1px solid var(--ink-600);
}
.ftr-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.ftr-brand .brand { margin-bottom: var(--s4); }
.ftr-brand p { font-size: var(--small); max-width: 34ch; color: var(--on-dark-low); }
.ftr .ftr-h {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-low);
  margin-bottom: var(--s4);
}
.ftr-links li + li { margin-top: 0.7rem; }
.ftr-links a { font-size: var(--small); transition: color 0.2s; }
.ftr-links a:hover { color: #fff; }
.ftr-tel {
  display: inline-block;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: var(--s4);
}
.ftr-tel:hover { color: var(--accent); }
.ftr-mail { display: block; font-size: var(--small); margin-top: 0.5rem; }
.ftr-mail:hover { color: #fff; }
.ftr-base {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink-600);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--on-dark-low);
}

/* 11 · MOTION ============================================================= */

[data-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}
[data-anim].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-anim] { opacity: 1; transform: none; }
}

/* 12 · RESPONSIVE ========================================================= */

@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .dia-desc { display: none; }
  .report-fields { columns: 1; }
  .hdr-in { height: 68px; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    margin: 0;
    background: var(--ink-800);
    border-bottom: 1px solid var(--ink-600);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: var(--s3) var(--gutter) var(--s5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
  }
  .is-menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .is-menu-open .hdr { background: var(--ink-800); border-bottom-color: transparent; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    padding: 0.95rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--ink-600);
    border-radius: 0;
    color: #fff;
  }
  .nav-link[aria-current='page']::after { left: 0; right: auto; width: 20px; bottom: 0.6rem; }
  .sub-toggle { width: 100%; justify-content: space-between; }
  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink-600);
    border-radius: 0;
    padding: 0 0 0.75rem 0.9rem;
    min-width: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.28s var(--ease);
  }
  .has-sub .nav-link { border-bottom: 1px solid var(--ink-600); }
  .has-sub.is-open .nav-link { border-bottom-color: transparent; }
  .hdr-cta .btn-ghost-dark { display: none; }

  .split,
  .hero-grid,
  .cta-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: clamp(2.5rem, 6vw, 3.5rem); }
  .hero h1 { max-width: 18ch; }
  .ledger { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .control { grid-template-columns: 1fr; }
  .control-div { width: 100%; height: 1px; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .g2,
  .g3,
  .g4,
  .kpi-tiles { grid-template-columns: 1fr; }
  .trustbar ul { justify-content: flex-start; }
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step-no { padding-top: 0; }
  .btn-row .btn { width: 100%; }
  .rows li { flex-direction: column; gap: 0.25rem; }
  .rows .v { text-align: left; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-base { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-word { font-size: 1.05rem; }
  .ftr-grid { grid-template-columns: 1fr; }
}

@media print {
  .hdr, .cta-band, .burger { display: none; }
  body { background: #fff; color: #000; }
  .on-dark, .on-dark-deep, .hero, .page-hero { background: #fff !important; color: #000 !important; }
}

/* footer: office locations */
.ftr-offices {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--on-dark-low);
}

/* mission statement: set as a display block, not body copy */
.statement {
  font-size: clamp(1.32rem, 1.02rem + 1.35vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.26;
  max-width: 33ch;
  margin-inline: auto;
  text-wrap: balance;
}
.statement + .lede { max-width: 64ch; }
@media (max-width: 680px) { .statement { max-width: 100%; } }

/* postal address blocks */
.addr,
.ftr-offices {
  font-style: normal;
  display: block;
  line-height: 1.6;
}
.addr {
  margin-top: 1.75rem;
  font-size: var(--small);
  color: var(--on-dark-mid);
}
.addr-h,
.ftr-offices-h {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-low);
  margin-bottom: 0.35rem;
}
.addr + .addr { margin-top: 1.25rem; }
.ftr-offices {
  margin-top: 1.35rem;
  font-size: 0.82rem;
  color: var(--on-dark-low);
}
.ftr-offices .ftr-also { display: block; margin-top: 0.85rem; }

/* ==========================================================================
   13 · SCALING UP AND DOWN
   The container was fixed at 1240px, which left a 27in monitor using under
   half its width. These tiers let the layout grow with the display while the
   text measure caps keep line lengths readable.
   ========================================================================== */

@media (min-width: 1600px) {
  :root {
    --container: 1400px;
    --gutter: 3rem;
    --section-y: clamp(5.5rem, 7vw, 9rem);
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1560px;
    --gutter: 3.5rem;
    --h1: 5.2rem;
    --h2: 3.4rem;
    --body: 1.125rem;
  }
  .hero { padding-top: 12rem; }
}

@media (min-width: 2400px) {
  :root {
    --container: 1720px;
    --h1: 5.6rem;
    --section-y: 10rem;
  }
  /* stop the hero graphic ballooning on very large displays */
  .hero-dia { max-width: 760px; margin-inline: auto; }
}

/* very small phones: the header ran out of room for brand, phone and burger */
@media (max-width: 400px) {
  :root { --gutter: 1rem; }
  .hdr-cta .tel-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
  }
  .hdr-cta .tel-btn .tel-text { display: none; }
  .hdr-cta .tel-btn svg { width: 17px; height: 17px; }
  .brand-mark { height: 28px; }
  .brand-word { font-size: 1.2rem; }
  .trustbar li { font-size: 0.66rem; }
}

/* the phone number belongs in the mobile menu too, since the header button
   becomes icon-only */
@media (max-width: 960px) {
  .nav-tel {
    display: flex;
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
  }
}
.nav-tel { display: none; }

/* ==========================================================================
   14 · FIRST SCREEN
   The hero was shorter than the viewport on large displays, so the light
   section began above the fold and showed as a hard dark/white split. The
   hero now fills the first screen and the trust bar sits on its lower edge.
   ========================================================================== */

@media (min-width: 961px) and (min-height: 680px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 56px);
    padding-top: clamp(6rem, 8vw, 9rem);
    padding-bottom: clamp(3rem, 5vw, 5rem);
  }
  .hero > .container { width: 100%; }
}

/* soften the handover from the dark first screen to the light band below */
.trustbar + .band::before,
.trustbar + section > .band::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 16, 20, 0.055), transparent);
  pointer-events: none;
}

/* ==========================================================================
   15 · QUOTE FORM
   ========================================================================== */

.qform { max-width: 820px; }

.qhp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.qgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}
.qfield { margin: 0; }
.qfield.is-wide { grid-column: 1 / -1; }

.qfield label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-low);
  margin-bottom: 0.55rem;
}
.qfield label span { color: var(--accent); }

.qfield input,
.qfield select,
.qfield textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.qfield textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.qfield input::placeholder,
.qfield textarea::placeholder { color: #5d6e77; }
.qfield input:hover,
.qfield select:hover,
.qfield textarea:hover { border-color: var(--ink-500); }
.qfield input:focus,
.qfield select:focus,
.qfield textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.qfield input[aria-invalid='true'],
.qfield textarea[aria-invalid='true'] { border-color: var(--signal); }

.qfield select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238c9ba3' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.6rem;
  cursor: pointer;
}
.qfield select option { background: var(--ink-700); color: #fff; }

.qfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s5);
}
.qfoot .btn { min-width: 180px; }
.qfoot .btn[disabled] { opacity: 0.55; pointer-events: none; }
.qnote { font-size: var(--small); color: var(--on-dark-low); }
.qnote a { color: #fff; border-bottom: 1px solid var(--ink-500); }
.qnote a:hover { border-bottom-color: var(--accent); }

.qstatus {
  margin-top: var(--s4);
  padding: 0;
  font-size: var(--small);
  line-height: 1.55;
  color: var(--on-dark-mid);
}
.qstatus:empty { display: none; }
.qstatus.is-ok,
.qstatus.is-err {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-600);
  background: rgba(255, 255, 255, 0.03);
}
.qstatus.is-ok { border-color: var(--cyan); color: #fff; }
.qstatus.is-err { border-color: var(--signal); color: #fff; }
.qstatus a { color: var(--cyan); border-bottom: 1px solid currentColor; }

@media (max-width: 680px) {
  .qgrid { grid-template-columns: 1fr; }
  .qfoot { flex-direction: column; align-items: stretch; }
  .qfoot .btn { width: 100%; }
  .qnote { text-align: center; }
}

/* pricing tier: secondary call link under the quote button */
.tier-call {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  font-size: var(--small);
  color: var(--on-light-low);
}
.tier-call:hover { color: var(--on-light); }
.tier.is-feature .tier-call { color: var(--on-dark-low); }
.tier.is-feature .tier-call:hover { color: #fff; }

/* three-column variant of the control split, same component */
.control.is-three { grid-template-columns: 1fr 1px 1fr 1px 1fr; }
@media (max-width: 960px) {
  .control.is-three { grid-template-columns: 1fr; }
}
