/* ==========================================================================
   ModelScale — single design layer
   Tokens → base → typography → primitives → components → page themes
   No other stylesheet should be imported by the site.
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --paper: #f0ebe1;
  --paper-2: #e7e1d4;
  --paper-3: #ded7c7;
  --surface: #faf7f0;
  --ink: #121714;
  --ink-2: #444b46;
  --muted: #565e58;
  --rule: #d5cdbd;
  --rule-soft: #e2dbce;
  --rule-strong: #c1b8a5;

  --brand: #0e4a34;
  --brand-hover: #0a3a29;
  --brand-tint: #e3ece5;
  --brand-ink: #f3f7f1;
  --clay: #b8481f;
  --clay-tint: #f6e6dd;

  --night: #0c1310;
  --night-2: #121b17;
  --night-ink: #f0ede2;
  --night-muted: #a3ab9f;
  --night-rule: #26322b;

  --ok: #147a4d;
  --warn: #a5540f;
  --err: #a3271d;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  --fs-xl: clamp(1.5rem, 1.2vw + 1.2rem, 1.875rem);
  --fs-2xl: clamp(1.875rem, 2vw + 1.3rem, 2.75rem);
  --fs-3xl: clamp(2.25rem, 3.4vw + 1.1rem, 3.75rem);
  --fs-4xl: clamp(2.75rem, 5.2vw + 1rem, 5.25rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(18, 23, 20, 0.05);
  --shadow-2: 0 18px 40px -28px rgba(18, 23, 20, 0.35);
  --shadow-3: 0 30px 70px -40px rgba(18, 23, 20, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 520ms;

  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 72px;

  /* per-page accent, overridden by .theme-* */
  --page-accent: var(--brand);
  --page-accent-ink: #ffffff;
  --page-band: var(--night);
  --page-band-ink: var(--night-ink);
  --page-band-muted: var(--night-muted);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-feature-settings: 'ss01' 1, 'cv05' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--fs-3xl);
}

h3 {
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h4 {
  font-size: var(--fs-lg);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

::selection {
  background: var(--page-accent);
  color: var(--page-accent-ink);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: top var(--dur-1) var(--ease-out);
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* ---------- Layout -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(56px, 7vw, 104px);
}

.section--tight {
  padding-block: clamp(40px, 4vw, 64px);
}

.section--band {
  background: var(--page-band);
  color: var(--page-band-ink);
}

.section--paper2 {
  background: var(--paper-2);
}

.section--hairline {
  border-top: 1px solid var(--rule);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

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

/* ---------- Typography helpers ------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section--band .eyebrow {
  color: var(--page-band-muted);
}

.eyebrow--plain::before {
  display: none;
}

.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

.section--band .lede {
  color: var(--page-band-muted);
}

.section--band .section-head__aside,
.hero--band .section-head__aside {
  color: var(--page-band-muted);
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

.dim {
  color: var(--muted);
}

.tiny {
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.measure {
  max-width: 68ch;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: end;
  margin-bottom: var(--sp-7);
}

.section-head__title {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.section-head__aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  color: var(--ink-2);
  font-size: var(--fs-base);
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--sp-5);
  }
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn--primary {
  --btn-bg: var(--page-accent);
  --btn-fg: var(--page-accent-ink);
  --btn-border: var(--page-accent);
}

.btn--primary:hover {
  box-shadow: 0 10px 24px -14px rgba(14, 74, 52, 0.7);
  filter: brightness(1.06);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--rule-strong);
}

.btn--ghost:hover {
  --btn-border: var(--ink);
  background: rgba(18, 23, 20, 0.03);
}

.section--band .btn--ghost,
.cta-band .btn--ghost,
.band .btn--ghost {
  --btn-fg: var(--page-band-ink);
  --btn-border: #3a473f;
}

.section--band .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.band .btn--ghost:hover {
  --btn-border: var(--page-band-ink);
  background: rgba(255, 255, 255, 0.06);
}

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-border: var(--paper);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--fs-xs);
}

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

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-1) var(--ease-out), gap var(--dur-2) var(--ease-out);
}

.link-arrow::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: 0.9em;
  transition: transform var(--dur-2) var(--ease-out);
}

.link-arrow:hover {
  border-color: currentColor;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Badges / pills ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.badge--solid {
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: var(--page-accent-ink);
}

.badge--band {
  background: transparent;
  border-color: #35423a;
  color: var(--page-band-muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Cards -------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.card--flush {
  background: transparent;
  box-shadow: none;
}

.card--lift:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-2);
}

.card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
}

.card__title {
  font-size: 1.1875rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.card__body {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
}

.card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.band .card,
.section--band .card {
  background: var(--night-2);
  border-color: var(--night-rule);
  color: var(--page-band-ink);
}

.band .card__body,
.section--band .card__body {
  color: var(--page-band-muted);
}

/* ---------- Header ------------------------------------------------------- */
.topbar {
  background: var(--night);
  color: var(--night-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 34px;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__inner > span {
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .topbar__meta {
    display: none;
  }
}

.topbar__list .dot {
  background: #6fbf8f;
}

@media (max-width: 900px) {
  .topbar__inner {
    justify-content: center;
  }

  .topbar__list li:nth-child(2),
  .topbar__list li:nth-child(3) {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--rule);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.0625rem;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--rule);
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}

.nav__link:hover {
  color: var(--ink);
  background: rgba(18, 23, 20, 0.045);
}

.nav__link[aria-current='page'] {
  color: var(--ink);
}

.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 1px;
  background: var(--page-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__phone {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: transparent;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  padding-block: var(--sp-4);
}

.mobile-nav__link {
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--fs-md);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: baseline;
}

.mobile-nav__link small {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.mobile-nav__cta {
  margin-top: var(--sp-4);
}

@media (max-width: 1180px) {
  .header__phone {
    display: none;
  }
}

@media (max-width: 1020px) {
  .nav {
    display: none;
  }

  .header__toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .brand__sub {
    display: none;
  }
}

@media (max-width: 560px) {
  .header__actions .btn {
    display: none;
  }
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  padding-block: clamp(40px, 5vw, 76px) clamp(48px, 6vw, 88px);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-start;
}

.hero__title {
  max-width: 17ch;
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.hero__deck {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.hero__note {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    max-width: 22ch;
  }
}

/* Proof strip */
.proofstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.proofstrip__item {
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proofstrip__item:last-child {
  border-right: 0;
}

.proofstrip__item:not(:first-child) {
  padding-left: var(--sp-5);
}

.proofstrip__val {
  font-size: clamp(1.375rem, 1.4vw + 0.9rem, 1.875rem);
  letter-spacing: -0.03em;
  font-weight: 520;
}

.proofstrip__label {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 860px) {
  .proofstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proofstrip__item:nth-child(2) {
    border-right: 0;
  }

  .proofstrip__item:nth-child(3),
  .proofstrip__item:nth-child(4) {
    border-top: 1px solid var(--rule);
  }

  .proofstrip__item:nth-child(3) {
    padding-left: 0;
  }
}

/* ---------- Services grid ------------------------------------------------ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.svc-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-5);
  min-height: 232px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out);
}

.svc-cell:hover {
  background: var(--surface);
}

.svc-cell__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}

.svc-cell__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.svc-cell__icon {
  width: 34px;
  height: 34px;
  color: var(--svc-accent, var(--page-accent));
}

.svc-cell__title {
  font-size: 1.1875rem;
  font-weight: 540;
  letter-spacing: -0.02em;
  margin-top: auto;
}

.svc-cell__desc {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.55;
}

.svc-cell__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.svc-cell__foot span:last-child {
  color: var(--ink);
  transition: transform var(--dur-2) var(--ease-out);
}

.svc-cell:hover .svc-cell__foot span:last-child {
  transform: translateX(3px);
}

.svc-cell--wide {
  grid-column: span 2;
  min-height: 0;
  justify-content: space-between;
  gap: var(--sp-4);
  background: var(--paper-2);
}

@media (max-width: 1000px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-cell--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-cell--wide {
    grid-column: span 1;
  }
}

/* ---------- Steps / process ---------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--page-band-ink, var(--rule));
}

.step {
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-right: 1px solid currentColor;
  border-color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps .step {
  border-right-color: rgba(240, 237, 226, 0.14);
}

.step:last-child {
  border-right: 0;
}

.step:not(:first-child) {
  padding-left: var(--sp-5);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.step__title {
  font-size: 1.0625rem;
  font-weight: 540;
}

.step__desc {
  font-size: var(--fs-sm);
  line-height: 1.55;
  opacity: 0.78;
}

.step__meta {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  opacity: 0.62;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(3),
  .step:nth-child(4) {
    border-top: 1px solid rgba(240, 237, 226, 0.14);
  }

  .step:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step:not(:first-child) {
    border-right: 0;
    border-top: 1px solid rgba(240, 237, 226, 0.14);
    padding: var(--sp-4) 0;
  }

  .step:first-child {
    border-top: 0;
  }
}

/* ---------- Accordion ---------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--rule);
}

.accordion__item {
  border-bottom: 1px solid var(--rule);
}

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 22px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.accordion__btn:hover {
  color: var(--page-accent);
}

.accordion__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}

.accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__btn[aria-expanded='true'] .accordion__icon::after {
  transform: rotate(0deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-2) var(--ease-out);
}

.accordion__panel[data-open='true'] {
  grid-template-rows: 1fr;
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__panel p {
  padding: 0 0 24px;
  max-width: 72ch;
  color: var(--ink-2);
  font-size: var(--fs-base);
  line-height: 1.65;
}

/* ---------- Stat / metric rows ------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
}

.stat__val {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 500;
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.stat__note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ---------- Marquee ------------------------------------------------------ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  padding-block: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: ms-marquee 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee__item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--page-accent);
  border-radius: 50%;
}

@keyframes ms-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Pricing ------------------------------------------------------ */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.tier {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.tier--featured {
  border-color: var(--page-accent);
  box-shadow: inset 0 2px 0 0 var(--page-accent);
}

.tier__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier__name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier__price {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  font-weight: 520;
}

.tier__price small {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.tier__desc {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.5;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--rule-soft);
}

.tier__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.tier__list li {
  display: flex;
  gap: 9px;
  line-height: 1.5;
}

.tier__list li::before {
  content: '—';
  color: var(--page-accent);
  flex: none;
}

.tier__cta {
  margin-top: auto;
}

@media (max-width: 900px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

/* ---------- Forms -------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.field__hint {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa09a;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--page-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent) 14%, transparent);
}

.textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.55;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b726d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field[data-invalid='true'] .input,
.field[data-invalid='true'] .select,
.field[data-invalid='true'] .textarea {
  border-color: var(--err);
}

.field__error {
  font-size: var(--fs-xs);
  color: var(--err);
  line-height: 1.4;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: var(--fs-sm);
  line-height: 1.4;
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}

.choice:hover {
  border-color: var(--ink-2);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__box {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: none;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  display: grid;
  place-items: center;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}

.choice__box::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.choice input:checked ~ .choice__box {
  background: var(--page-accent);
  border-color: var(--page-accent);
}

.choice input:checked ~ .choice__box::after {
  opacity: 1;
}

.choice:has(input:checked) {
  border-color: var(--page-accent);
  background: color-mix(in srgb, var(--page-accent) 5%, var(--surface));
}

.choice input:focus-visible ~ .choice__box {
  outline: 2px solid var(--page-accent);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}

.consent input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--page-accent);
}

.consent a {
  color: var(--ink-2);
}

/* Multi-step form */
.lf {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.lf__progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lf__bar {
  height: 2px;
  flex: 1;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.lf__bar span {
  display: block;
  height: 100%;
  background: var(--page-accent);
  transition: width var(--dur-3) var(--ease-out);
}

.lf__stepcount {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.lf__step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.lf__steptitle {
  font-size: 1.125rem;
  font-weight: 540;
  letter-spacing: -0.015em;
}

.lf__steptitle:focus-visible {
  outline: none;
}

.lf__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.lf__actions .btn {
  flex: 1;
}

.lf--compact .lf__steptitle {
  font-size: 1rem;
}

.lf__success {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-4) 0;
}

.lf__successicon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
}

.lf__success ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.lf__success li {
  display: flex;
  gap: 8px;
}

.lf__success li::before {
  content: '→';
  font-family: var(--font-mono);
  color: var(--page-accent);
}

.lf__error {
  font-size: var(--fs-xs);
  color: var(--err);
}

/* ---------- Modal -------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal[data-open='true'] {
  display: flex;
}

.modal__scrim {
  position: fixed;
  inset: 0;
  background: rgba(12, 19, 16, 0.55);
  backdrop-filter: blur(3px);
  border: 0;
  cursor: default;
}

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  margin: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: clamp(24px, 4vw, 36px);
  animation: ms-modal-in var(--dur-2) var(--ease-out);
}

@keyframes ms-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}

.modal__close:hover {
  background: var(--surface);
}

body.ms-locked {
  overflow: hidden;
}

/* ---------- Final CTA ---------------------------------------------------- */
.cta-band {
  background: var(--page-band);
  color: var(--page-band-ink);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.cta-band h2 {
  font-size: var(--fs-2xl);
  max-width: 18ch;
}

.cta-band p {
  color: var(--page-band-muted);
  margin-top: var(--sp-3);
  font-size: var(--fs-base);
  max-width: 46ch;
}

@media (max-width: 860px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--night-ink);
  margin-top: 0;
  border-top: 1px solid var(--night-rule);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: var(--sp-6);
  padding-block: clamp(40px, 5vw, 64px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
  max-width: 34ch;
}

.footer__brand p {
  color: var(--night-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b9490;
  margin-bottom: 4px;
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--night-ink);
  text-decoration: none;
  opacity: 0.86;
  transition: opacity var(--dur-1) var(--ease-out);
}

.footer__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--night-rule);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--night-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.footer__legal a:hover {
  color: var(--night-ink);
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }
}

/* ---------- Service page visuals ---------------------------------------- */
.visual-frame {
  position: relative;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.visual-frame--dark {
  background: var(--night-2);
  border-color: var(--night-rule);
}

.visual-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.visual-frame--dark .visual-frame__bar {
  border-color: var(--night-rule);
}

.visual-frame__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule-strong);
}

.visual-frame__bar span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.visual-frame--dark .visual-frame__bar span {
  color: var(--night-muted);
}

.diagram {
  width: 100%;
  height: auto;
  display: block;
}

.diagram text {
  font-family: var(--font-mono);
  fill: var(--ink-2);
}

.diagram .d-line {
  stroke: var(--rule-strong);
  fill: none;
}

.diagram .d-accent {
  stroke: var(--page-accent);
  fill: none;
}

.diagram .d-node {
  fill: var(--surface);
  stroke: var(--rule-strong);
}

.diagram .d-node-accent {
  fill: var(--page-accent);
  stroke: var(--page-accent);
}

.diagram .d-fill {
  fill: var(--page-accent);
}

.dark-visual {
  --ink-2: var(--night-muted);
  --rule-strong: #3a473f;
  --surface: #16211b;
}

/* Two-col content */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split--reverse > :first-child {
  order: 2;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }
}

/* Deliverable list */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}

.deliverable {
  background: var(--surface);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deliverable__idx {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.deliverable__name {
  font-size: 1.0625rem;
  font-weight: 540;
  letter-spacing: -0.01em;
}

.deliverable__desc {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.55;
}

.deliverable__tag {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--page-accent);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .deliverables {
    grid-template-columns: 1fr;
  }
}

/* Problem framing */
.problems {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.problem {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.problem__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.1em;
  padding-top: 5px;
}

.problem__title {
  font-size: 1.125rem;
  font-weight: 520;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.problem__body {
  color: var(--ink-2);
  font-size: var(--fs-base);
  line-height: 1.6;
}

@media (max-width: 780px) {
  .problem {
    grid-template-columns: 40px 1fr;
  }

  .problem__body {
    grid-column: 2;
  }
}

/* Stack chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: var(--surface);
}

.chip--accent {
  border-color: var(--page-accent);
  color: var(--page-accent);
}

/* Case / proof cards */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.case {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.case__top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: baseline;
}

.case__kicker {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.case__title {
  font-size: 1.125rem;
  font-weight: 530;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.case__body {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.6;
}

.case__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-soft);
}

.case__metric strong {
  display: block;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  font-weight: 520;
}

.case__metric span {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.4;
  display: block;
}

.case__note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 780px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

/* ---------- Resources ---------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-block: var(--sp-4);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.filter {
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}

.filter:hover {
  background: var(--surface);
  color: var(--ink);
}

.filter[aria-pressed='true'],
.filter--active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}

.article-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-5);
  min-height: 230px;
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out);
}

.article-card:hover {
  background: var(--surface);
}

.article-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-card__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-accent);
}

.article-card__title {
  font-size: 1.375rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 4px;
}

.article-card__desc {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.6;
}

.article-card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 760px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* Article body */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.toc__title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.toc a {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
  border-left: 1px solid var(--rule);
  padding-left: 12px;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}

.toc a:hover {
  color: var(--ink);
  border-color: var(--page-accent);
}

.prose {
  max-width: 70ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-2);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem);
  color: var(--ink);
  margin-top: 2.1em;
  letter-spacing: -0.025em;
}

.prose h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 1.6em;
}

.prose strong {
  color: var(--ink);
  font-weight: 560;
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--page-accent);
  text-decoration-thickness: 1px;
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding-left: 0;
}

.prose li {
  display: flex;
  gap: 10px;
}

.prose ul li::before {
  content: '—';
  color: var(--page-accent);
  flex: none;
}

.prose ol {
  counter-reset: n;
}

.prose ol li {
  counter-increment: n;
}

.prose ol li::before {
  content: counter(n) '.';
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--page-accent);
  flex: none;
  padding-top: 2px;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--page-accent);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--ink);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--paper-3);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  border-top: 1px solid var(--rule-strong);
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.prose th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: 2;
  }
}

/* ---------- Tools -------------------------------------------------------- */
.tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--sp-6);
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

.tool__panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.tool__result {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool__result .val {
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.tool__result .lbl {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.tool label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}

.tool input[type='range'] {
  width: 100%;
  accent-color: var(--page-accent);
}

@media (max-width: 820px) {
  .tool {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page hero (inner) ------------------------------------------- */
.page-hero {
  padding-block: clamp(36px, 4vw, 64px) clamp(32px, 3vw, 48px);
  border-bottom: 1px solid var(--rule);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: var(--sp-7);
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 3.6vw + 0.9rem, 4rem);
  max-width: 20ch;
}

.page-hero__aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  border-left: 1px solid var(--rule);
  padding-left: var(--sp-5);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: var(--sp-4);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .page-hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-hero__aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: var(--sp-4);
  }
}

/* ---------- Utility ------------------------------------------------------ */
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.maxw-56 { max-width: 56ch; }
.maxw-64 { max-width: 64ch; }
.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.w-full { width: 100%; }
.hide { display: none !important; }

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .marquee__track {
    animation: none;
    flex-wrap: wrap;
  }
}

/* ---------- Viewer entry animation (progressive, no CLS) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  }
}

/* ---------- Theme variants per service page ----------------------------- */
.theme-web {
  --page-accent: #14487a;
  --page-band: #0b1a2a;
  --page-band-ink: #eef3f8;
  --page-band-muted: #9fb0c2;
}

.theme-agents {
  --page-accent: #0e4a34;
  --page-band: #07140f;
  --page-band-ink: #eef5ef;
  --page-band-muted: #9cb2a4;
}

.theme-ml {
  --page-accent: #8f3a12;
  --page-band: #17110d;
  --page-band-ink: #f6efe8;
  --page-band-muted: #bdaa99;
}

.theme-voice {
  --page-accent: #3b2f7a;
  --page-band: #100d22;
  --page-band-ink: #efecfb;
  --page-band-muted: #a9a3c8;
}

.theme-automation {
  --page-accent: #7a5300;
  --page-band: #141104;
  --page-band-ink: #f7f1df;
  --page-band-muted: #c0b394;
}

.theme-data {
  --page-accent: #075a5a;
  --page-band: #041414;
  --page-band-ink: #e9f5f3;
  --page-band-muted: #93b5b0;
}

.theme-custom {
  --page-accent: #34403a;
  --page-band: #101311;
  --page-band-ink: #f1f0ea;
  --page-band-muted: #a9aca5;
}

/* Distinct hero rhythm per layout */
.hero--band {
  background: var(--page-band);
  color: var(--page-band-ink);
  padding-block: clamp(48px, 6vw, 96px);
}

.hero--band .hero__title {
  max-width: 21ch;
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
}

.hero--band .hero__deck,
.hero--band .hero__note {
  color: var(--page-band-muted);
}

.hero--band .eyebrow {
  color: var(--page-band-muted);
}

.hero--band .btn--ghost {
  --btn-fg: var(--page-band-ink);
  --btn-border: #3a473f;
}

.hero--editorial {
  padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px);
}

.hero--editorial .hero__grid {
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.hero--editorial .hero__title {
  max-width: 22ch;
  font-size: clamp(2.75rem, 5.6vw, 5rem);
}

.hero--editorial .hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(240, 237, 226, 0.16);
}

@media (max-width: 860px) {
  .hero--editorial .hero__body {
    grid-template-columns: 1fr;
  }
}

.hero--statement .hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

/* ---------- Print ------------------------------------------------------- */
@media print {
  .site-header,
  .topbar,
  .site-footer,
  .modal,
  .marquee {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* Form controls placed on the dark CTA band */
.cta-band .lf__steptitle,
.cta-band .lf__success h3 {
  color: var(--page-band-ink);
}

.cta-band .lf__stepcount,
.cta-band .field__hint,
.cta-band .consent,
.cta-band .lf__success p,
.cta-band .lf__success li,
.cta-band .lf__success .tiny {
  color: var(--page-band-muted);
}

.cta-band .field__label {
  color: var(--page-band-ink);
}

.cta-band .lf__bar {
  background: #35423a;
}

.cta-band .lf__error {
  color: #ffb3a1;
}

.cta-band .consent a {
  color: var(--page-band-ink);
}

.cta-band .lf__successicon {
  background: #1c3326;
  color: #a9d4b6;
}

.cta-band .tiny,
.cta-band .dim {
  color: var(--page-band-muted);
}

.cta-band .choice {
  background: #16211b;
  border-color: #3a473f;
  color: var(--page-band-ink);
}

.cta-band .choice:hover {
  border-color: var(--page-band-muted);
}

.cta-band .choice:has(input:checked) {
  background: #1b2c22;
  border-color: #9fc9ac;
}

.cta-band .choice__box {
  border-color: #55665c;
}

.cta-band .choice input:checked ~ .choice__box {
  background: #9fc9ac;
  border-color: #9fc9ac;
}

.cta-band .choice input:checked ~ .choice__box::after {
  border-color: #0c1310;
}

/* Dark-band corrections */
.hero--editorial .btn--ghost {
  --btn-fg: var(--page-band-ink);
  --btn-border: #3a473f;
}

.hero--editorial .btn--ghost:hover {
  --btn-border: var(--page-band-ink);
  background: rgba(255, 255, 255, 0.06);
}

.dark-visual .visual-frame__bar span {
  color: var(--page-band-muted);
}

.section--band .card__num,
.section--band .card__foot {
  color: var(--page-band-muted);
}

/* ---------- 360° marketing theme ---------------------------------------- */
.theme-marketing {
  --page-accent: #8c2f4f;
  --page-band: #1a0e13;
  --page-band-ink: #f8eef1;
  --page-band-muted: #c3a3ae;
}

/* ==========================================================================
   Motion + interaction layer (2026 upgrade)
   ========================================================================== */

/* Page entrance — every navigation feels like entering a room */
@keyframes ms-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  main { animation: ms-page-in 520ms var(--ease-out) both; }
}

/* Scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--page-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 80ms linear;
}

.site-header.is-stuck {
  box-shadow: 0 8px 30px -24px rgba(18, 23, 20, 0.5);
}

/* Nav items + mega menu */
.nav--mega { gap: 2px; }

.navitem { position: relative; }

.nav__link--btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__link--btn svg { transition: transform var(--dur-2) var(--ease-out); opacity: .6; }
.navitem.is-open .nav__link--btn svg { transform: rotate(180deg); opacity: 1; }
.navitem.is-open .nav__link--btn { color: var(--ink); background: rgba(18, 23, 20, 0.045); }

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(880px, calc(100vw - 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  z-index: 70;
}

.navitem.is-open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.mega__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 232px;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(18, 23, 20, .45), 0 2px 0 rgba(255,255,255,.6) inset;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.mega__panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--page-accent), color-mix(in srgb, var(--page-accent) 20%, transparent));
}

.mega__panel--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 244px;
  width: 100%;
}

.mega__intro {
  grid-column: 1 / -2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 6px 0;
}

.mega__intro p { font-size: var(--fs-sm); color: var(--muted); }

.mega__grid {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.mega__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}

.mega__item:hover { background: var(--paper-2); transform: translateX(2px); }
.mega__num { font-family: var(--font-mono); font-size: 0.625rem; color: var(--muted); padding-top: 3px; }
.mega__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega__title { font-size: 0.9375rem; font-weight: 520; letter-spacing: -0.01em; }
.mega__desc { font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.mega__arrow { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; opacity: 0; transition: opacity var(--dur-1); }
.mega__item:hover .mega__arrow { opacity: .6; }

.mega__aside {
  grid-row: 1 / span 2;
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: var(--night);
  color: var(--night-ink);
  border-radius: var(--r-md);
}

.mega__aside h3 { font-size: 1.0625rem; line-height: 1.25; }
.mega__aside p { color: var(--night-muted); }
.mega__aside .btn { margin-top: auto; }

.mega__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin: 4px 0 12px;
}

.mega__media video { width: 100%; height: 100%; object-fit: cover; opacity: .8; }

.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 6px 8px;
}

.mega__panel:not(.mega__panel--wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.navitem:hover .mega,
.navitem:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

.mobile-nav__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 2px 6px;
}

@media (max-width: 1020px) {
  .mega { display: none; }
  .navitem { display: none; }
}

/* ---------- Hero media card --------------------------------------------- */
.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-3);
  background: var(--night);
  aspect-ratio: 4 / 3.35;
  isolation: isolate;
}

.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 19, 16, .1) 0%, rgba(12, 19, 16, .55) 62%, rgba(12, 19, 16, .92) 100%);
  z-index: 1;
}

.hero__media-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.hero__chiprow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(9, 16, 13, .55);
  border: 1px solid rgba(240, 237, 226, .22);
  color: #eef1e9;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero__media-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  color: #f1f3ea;
}

.hero__media-foot .k { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; color: #b9c1b6; text-transform: uppercase; display: block; margin-bottom: 4px; }
.hero__media-foot .v { font-size: 1.0625rem; letter-spacing: -.015em; }

.hero__media-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 237, 226, .35);
  background: rgba(9, 16, 13, .4);
  color: #f1f3ea;
  flex: none;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2);
}

.hero__media-play:hover { transform: scale(1.06); background: rgba(9, 16, 13, .75); }

/* Small floating "live" card over media */
.media-tag {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 96px;
  background: rgba(250, 248, 242, .95);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow-2);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  animation: ms-float 6s ease-in-out infinite;
}

@keyframes ms-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Logo / tech marquee (two rows) ------------------------------- */
.tech-marquee {
  background: var(--night);
  color: var(--night-ink);
  border-block: 1px solid var(--night-rule);
  padding-block: 22px;
  overflow: hidden;
}

.tech-marquee__label {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8e978f;
}

.tech-marquee__rows { display: flex; flex-direction: column; gap: 14px; }

.tech-marquee__row {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ms-marquee 46s linear infinite;
  will-change: transform;
}

.tech-marquee__row--rev { animation-direction: reverse; animation-duration: 58s; }
.tech-marquee:hover .tech-marquee__row { animation-play-state: paused; }

.tech-marquee__group { display: flex; align-items: center; gap: 54px; padding-right: 54px; }

.tech-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: #d9ddd2;
  opacity: .68;
  transition: opacity var(--dur-1);
}

.tech-marquee__item:hover { opacity: 1; }

.tech-marquee__item svg { width: 18px; height: 18px; opacity: .8; }

.tech-marquee__item em {
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .1em;
  color: #7e877f;
  font-style: normal;
  text-transform: uppercase;
}

/* ---------- Beyond development cards ------------------------------------ */
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.beyond-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid rgba(240, 237, 226, .14);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  color: var(--night-ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 520ms var(--ease-out), border-color 520ms var(--ease-out), background-color 520ms var(--ease-out);
}

.beyond-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) -10%, rgba(159, 201, 172, .16), transparent 70%);
  opacity: 0;
  transition: opacity 420ms var(--ease-out);
}

.beyond-card:hover { transform: translateY(-8px); border-color: rgba(159, 201, 172, .5); }
.beyond-card:hover::before { opacity: 1; }

.beyond-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(159, 201, 172, .12);
  color: #bfe0c8;
  border: 1px solid rgba(159, 201, 172, .25);
}

.beyond-card__num { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; color: #8e978f; margin-top: auto; }
.beyond-card__title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.beyond-card__desc { font-size: .875rem; line-height: 1.55; color: #aab2a8; }
.beyond-card__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: #cfe6d5; margin-top: 6px; }
.beyond-card__link::after { content: '↗'; transition: transform var(--dur-2) var(--ease-out); }
.beyond-card:hover .beyond-card__link::after { transform: translate(3px, -3px); }

@media (prefers-reduced-motion: no-preference) {
  .js .cascade .beyond-card {
    opacity: 0;
    transform: translateY(34px) rotate(-1.2deg);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), border-color 400ms, background-color 400ms;
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .cascade.is-in .beyond-card { opacity: 1; transform: none; }
  .cascade.is-in .beyond-card:hover { transform: translateY(-8px); }
}

@media (max-width: 1100px) {
  .beyond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beyond-card { min-height: 280px; }
}

@media (max-width: 600px) {
  .beyond-grid { grid-template-columns: 1fr; }
  .beyond-card { min-height: 0; }
}

/* ---------- Horizontal pinned reel -------------------------------------- */
.reel {
  position: relative;
  height: 330vh;
  background: var(--page-band);
  color: var(--page-band-ink);
}

.reel__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  padding-block: 40px;
}

.reel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.reel__head h2 { font-size: clamp(1.75rem, 2.6vw, 2.75rem); max-width: 22ch; }
.reel__head .eyebrow { color: var(--page-band-muted); }

.reel__count {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--page-band-muted);
}

.reel__viewport { overflow: visible; }

.reel__track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.reel-card {
  position: relative;
  width: clamp(300px, 30vw, 420px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--night-2);
  border: 1px solid rgba(240, 237, 226, .14);
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.reel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .62;
  transition: transform 700ms var(--ease-out), opacity 500ms;
}

.reel-card:hover img { transform: scale(1.05); opacity: .75; }

.reel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 14, 11, .1), rgba(8, 14, 11, .92));
}

.reel-card__body { position: relative; z-index: 2; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.reel-card__kicker { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: #b9c9bd; }
.reel-card__title { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; }
.reel-card__desc { font-size: .8125rem; line-height: 1.5; color: #c2c9c0; }
.reel-card__stat { margin-top: 6px; font-family: var(--font-mono); font-size: .6875rem; color: #e6ece4; display: flex; gap: 8px; align-items: center; }
.reel-card__stat::before { content: ''; width: 18px; height: 1px; background: var(--page-accent); }

.reel__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--page-band-muted);
}

.reel__hint::before {
  content: '';
  width: 44px;
  height: 1px;
  background: currentColor;
  animation: ms-hint 2.4s ease-in-out infinite;
  transform-origin: 0 50%;
}

@keyframes ms-hint { 0%, 100% { transform: scaleX(.4); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }

@media (max-width: 900px) {
  .reel { height: auto; }
  .reel__sticky { position: static; height: auto; min-height: 0; padding-block: 56px; }
  .reel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .reel__track { transform: none !important; gap: 12px; }
  .reel-card { width: 78vw; scroll-snap-align: start; }
  .reel__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reel { height: auto; }
  .reel__sticky { position: static; height: auto; }
  .reel__viewport { overflow-x: auto; }
  .reel__track { transform: none !important; }
  .tech-marquee__row { animation: none; flex-wrap: wrap; width: auto; }
  .tech-marquee__group { flex-wrap: wrap; }
  .media-tag { animation: none; }
}

/* ---------- Voice demo --------------------------------------------------- */
.voice {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}

.voice__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.voice-box {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
  border-radius: var(--r-lg);
  border: 1px solid #26322b;
  box-shadow: var(--shadow-3);
  padding: 18px;
  overflow: hidden;
}

.voice-box::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(59, 47, 122, .35), transparent);
  pointer-events: none;
}

.voice-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #26322b;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  color: #a3ab9f;
  position: relative;
  z-index: 1;
}

.voice-box__live { display: inline-flex; align-items: center; gap: 7px; color: #cfe6d5; }
.voice-box__live i { width: 6px; height: 6px; border-radius: 50%; background: #7fd39a; box-shadow: 0 0 0 0 rgba(127, 211, 154, .6); animation: ms-ping 2s infinite; }

@keyframes ms-ping {
  0% { box-shadow: 0 0 0 0 rgba(127, 211, 154, .55); }
  70% { box-shadow: 0 0 0 10px rgba(127, 211, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 211, 154, 0); }
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 54px;
  margin: 14px 0;
  position: relative;
  z-index: 1;
}

.voice-wave span {
  flex: 1;
  background: linear-gradient(180deg, #a98ee8, #4a3f8f);
  border-radius: 3px;
  height: 18%;
  animation: ms-wave 1.2s ease-in-out infinite;
  opacity: .75;
}

.voice-wave.is-idle span { animation-play-state: paused; opacity: .35; }

@keyframes ms-wave { 0%, 100% { height: 14%; } 50% { height: 92%; } }

.voice-transcript {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 208px;
  padding: 4px 2px 2px;
}

.vbub {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.45;
  animation: ms-bub 420ms var(--ease-out) both;
}

.vbub--caller { align-self: flex-start; background: #1c2a22; border: 1px solid #2c3d32; color: #e8eee6; border-bottom-left-radius: 4px; }
.vbub--agent { align-self: flex-end; background: #efeade; color: #1a211c; border-bottom-right-radius: 4px; }
.vbub--note { align-self: center; background: transparent; border: 1px dashed #3a473f; color: #a3ab9f; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; padding: 6px 10px; }

@keyframes ms-bub { from { opacity: 0; transform: translateY(6px); } }

.voice-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #26322b;
  font-family: var(--font-mono);
  font-size: .625rem;
  color: #a3ab9f;
  letter-spacing: .04em;
}

.voice-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.voice-tab {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .03em;
  transition: all var(--dur-1) var(--ease-out);
}

.voice-tab:hover { border-color: var(--ink); color: var(--ink); }
.voice-tab[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  .voice__grid { grid-template-columns: 1fr; }
}

/* ---------- Media feature band ------------------------------------------ */
.media-feature {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: end;
  isolation: isolate;
  border: 1px solid var(--rule);
}

.media-feature video,
.media-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.media-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 16, 13, .92) 0%, rgba(10, 16, 13, .72) 45%, rgba(10, 16, 13, .25) 100%);
}

.media-feature__body {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 48px);
  color: #f3f4ec;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}

.media-feature__body h2 { font-size: clamp(1.75rem, 2.8vw, 2.75rem); }
.media-feature__body p { color: #c4cabd; font-size: var(--fs-base); }
.media-feature__stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.media-feature__stats div { display: flex; flex-direction: column; gap: 2px; }
.media-feature__stats strong { font-size: 1.5rem; letter-spacing: -.03em; font-weight: 500; }
.media-feature__stats span { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: #a8b0a4; }

@media (max-width: 640px) {
  .media-feature { min-height: 460px; }
  .media-feature::after { background: linear-gradient(180deg, rgba(10, 16, 13, .35), rgba(10, 16, 13, .95)); }
}

/* ---------- Editorial image + duotone ----------------------------------- */
.img-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-3);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 900ms var(--ease-out);
}

.img-frame:hover img { transform: scale(1.03); }

.img-frame--duo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(14, 74, 52, .32), rgba(12, 19, 16, .55));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.img-frame__cap {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .06em;
  color: #eef1e8;
  text-transform: uppercase;
}

/* Article card media */
.article-card--media { padding: 0; min-height: 0; }
.article-card--media .article-card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.article-card--media .article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.article-card--media:hover .article-card__img img { transform: scale(1.04); }
.article-card--media .article-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* Parallax utility */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .parallax-slow img {
      animation: ms-parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes ms-parallax { from { transform: scale(1.08) translateY(-2%); } to { transform: scale(1.08) translateY(2%); } }
  }
}

.svc-cell--cta:hover { background: #121b17; }
.svc-cell--cta .svc-cell__title { color: var(--night-ink); }
.svc-cell--cta .svc-cell__desc { color: #a9b0a5; }
.svc-cell--cta .svc-cell__foot span:last-child { color: var(--night-ink); }

/* Inner page hero atmosphere */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -160px;
  top: -220px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--page-accent) 12%, transparent), transparent 72%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-strong), transparent);
}

.page-hero .container { position: relative; z-index: 1; }

/* Article body first-paragraph lead */
.prose > p:first-of-type {
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.65;
}

/* Hover lift for linked cards */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .article-card,
  .case,
  .tier {
    transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out), border-color 420ms var(--ease-out);
  }

  .article-card:hover,
  .case:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
  }
}

.tech-marquee__item { opacity: .8; }
.tech-marquee__item em { color: #9aa39a; }
.proofstrip__val { white-space: nowrap; }
.hero__chiprow .badge { color: #efece2; }

/* Explicit 4-column Proofstrip Dividers from Veloare.com */
.proofstrip,
.wp-block-columns.proofstrip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  border-top: 1px solid #dcd7ca !important;
  border-bottom: 1px solid #dcd7ca !important;
  width: 100% !important;
  margin: 0 !important;
}

.proofstrip .proofstrip__item,
.proofstrip .wp-block-column.proofstrip__item {
  padding: 24px 24px 24px 0 !important;
  border-right: 1px solid #dcd7ca !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 !important;
}

.proofstrip .proofstrip__item:not(:first-child),
.proofstrip .wp-block-column.proofstrip__item:not(:first-child) {
  padding-left: 24px !important;
}

.proofstrip .proofstrip__item:last-child,
.proofstrip .wp-block-column.proofstrip__item:last-child {
  border-right: 0 !important;
}

.proofstrip .proofstrip__val,
.proofstrip h3.wp-block-heading.proofstrip__val {
  font-size: clamp(1.375rem, 1.4vw + 0.9rem, 1.875rem) !important;
  letter-spacing: -0.03em !important;
  font-weight: 520 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.proofstrip .proofstrip__label,
.proofstrip p.wp-block-paragraph.proofstrip__label {
  font-size: var(--fs-xs, 0.75rem) !important;
  color: var(--muted, #646b63) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

@media (max-width: 860px) {
  .proofstrip,
  .wp-block-columns.proofstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .proofstrip .proofstrip__item:nth-child(2),
  .proofstrip .wp-block-column.proofstrip__item:nth-child(2) {
    border-right: 0 !important;
  }
  .proofstrip .proofstrip__item:nth-child(3),
  .proofstrip .wp-block-column.proofstrip__item:nth-child(3),
  .proofstrip .proofstrip__item:nth-child(4),
  .proofstrip .wp-block-column.proofstrip__item:nth-child(4) {
    border-top: 1px solid #dcd7ca !important;
  }
  .proofstrip .proofstrip__item:nth-child(3),
  .proofstrip .wp-block-column.proofstrip__item:nth-child(3) {
    padding-left: 0 !important;
  }
}

/* Explicit 17ch Hero Title from Veloare.com */
.hero__title,
h1.hero__title,
h1.hero__title.wp-block-heading {
  font-size: clamp(2.75rem, 5.2vw + 1rem, 5.25rem) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.08 !important;
  max-width: 17ch !important;
  font-weight: 560 !important;
}

.hero__title em,
h1.hero__title em {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -0.012em !important;
}

/* Base Canvas Background Parity */
html,
body,
body.home,
#page,
#content,
#main {
  background-color: var(--paper, #f0ebe1) !important;
  color: var(--ink, #121714);
}
