/* ============================================================
   Arbiter site — component styles
   Builds on tokens.css (the canonical design system)
   ============================================================ */

/* ----- Reset / base extensions ----- */
body {
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  font-feature-settings: "ss01", "kern";
}
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--red-100); color: var(--ink-900); }

/* ----- Page wrap ----- */
.page-wrap {
  min-height: 100vh;
  overflow-x: clip; /* prevent hero canvas overflow horizontal scroll */
}

/* ============================================================
   Navigation — floating dual-pill (logo + nav)
   ============================================================ */

.site-nav {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 60px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ink-300);
  border-radius: 63px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-logo {
  padding: 10px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 180ms cubic-bezier(.2, .7, .2, 1);
}
.nav-logo:hover { opacity: 0.78; }
.nav-logo img { height: 22px; width: auto; }

.nav-links {
  margin-left: auto;
  padding: 6px 6px 6px 8px;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  color: var(--ink-900);
  padding: 8px 14px;
  border-radius: 53px;
  transition:
    color 180ms cubic-bezier(.2, .7, .2, 1),
    background 180ms cubic-bezier(.2, .7, .2, 1);
}
.nav-link:hover { color: var(--red-600); }
.nav-link.is-active {
  color: var(--red-600);
  background: rgba(218, 30, 64, 0.06);
}

.nav-cta {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: var(--red-600);
  border: 1px solid var(--red-600);
  border-radius: 63px;
  padding: 8px 18px;
  margin-left: 4px;
  transition: background 180ms cubic-bezier(.2, .7, .2, 1);
}
.nav-cta:hover { background: var(--red-400); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  border-radius: 3px;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 180ms cubic-bezier(.2, .7, .2, 1),
    color 180ms cubic-bezier(.2, .7, .2, 1),
    border-color 180ms cubic-bezier(.2, .7, .2, 1),
    transform 180ms cubic-bezier(.2, .7, .2, 1);
}
.btn-primary {
  background: var(--red-600);
  color: #fff;
  border: 1px solid var(--red-600);
  box-shadow: 0 1px 2px rgba(218, 30, 64, 0.18);
}
.btn-primary:hover {
  background: var(--red-400);
  border-color: var(--red-400);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ink-400);
}
.btn-secondary:hover {
  color: var(--red-600);
  border-color: var(--red-600);
  background: rgba(218, 30, 64, 0.04);
}

/* ============================================================
   Section frame — alternating backgrounds, no hairlines
   ============================================================ */

.section {
  padding: 120px 60px;
  position: relative;
}
.section-lg { padding: 160px 60px 90px; }
.section-sm { padding: 60px 60px; }

.section-light { background: var(--ink-0); }
.section-alt   { background: var(--ink-100); }
.section-dark  {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.92);
}
.section-dark .eyebrow { color: rgba(255, 255, 255, 0.55); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.container {
  max-width: 1320px;
  margin: 0 auto;
}
.container-narrow { max-width: 1097px; margin: 0 auto; }

/* ============================================================
   §1 — HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 160px 60px 120px;
  overflow: hidden;
}

/* Atmospheric background canvas — full hero bleed, behind everything.
   Faint mask at the bottom so it doesn't fight the credibility strip. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

/* 2-column hero: text on the left, cycling phone on the right. */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 110px;
  align-items: center;
}

.hero-text-col {
  position: relative;
  min-width: 0;
}

.hero-text-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-eyebrow {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.10em;
  color: var(--ink-600);
  text-transform: lowercase;
  margin: 0;
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 80px;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  text-wrap: balance;
  /* Reserve vertical space so the typewriter doesn't cause layout shift */
  min-height: calc(0.96em * 3);
}

/* Two-tone treatment: the lead-in is muted, the payoff is bold black.
   Both segments are rendered in full at first paint with characters
   invisible, so the browser reserves the final layout and the typewriter
   never reflows mid-animation. */
.hero-headline .hh-prefix {
  color: var(--ink-500);
}
.hero-headline .hh-emph {
  color: var(--ink-900);
  font-weight: 500;
}

/* Word containers — wrap individual char-spans together so the browser
   can never break a word across lines, even when chars are in spans
   (which would otherwise create extra wrap opportunities). */
.hero-headline .hh-word {
  display: inline-block;
  white-space: nowrap;
}

/* Per-character spans — invisible until JS reveals them. Using opacity
   (not visibility) so the layout is already final on first paint. */
.hero-headline .hh-c {
  opacity: 0;
}
.hero-headline .hh-c.is-on {
  opacity: 1;
}

/* Blinking caret. Zero inline-width (border-left provides the visible bar
   and a negative margin-right cancels its 2px so the caret can be moved
   around the DOM without pushing subsequent characters or affecting word
   wrap. */
.hero-headline .hh-caret {
  display: inline-block;
  width: 0;
  height: 0.85em;
  vertical-align: -0.08em;
  border-left: 2px solid var(--red-600);
  margin-right: -2px;
  animation: hero-caret-blink 900ms steps(1, end) infinite;
}
.hero-headline.is-typed .hh-caret {
  animation: hero-caret-fade 500ms 200ms forwards;
}
@keyframes hero-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes hero-caret-fade {
  to { opacity: 0; transform: scaleY(0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline .hh-caret { display: none; }
  .hero-headline .hh-c { opacity: 1; }
}

/* Defer-until-typed: sub, CTA, phone all start hidden and fade in
   after the headline finishes. We use opacity + small translate, no
   layout shift since space was already reserved. */
.defer-until-typed {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms cubic-bezier(.2, .7, .2, 1),
              transform 600ms cubic-bezier(.2, .7, .2, 1);
}
.defer-until-typed.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .defer-until-typed { opacity: 1; transform: none; transition: none; }
}

.hero-sub {
  margin: 0;
  font-family: var(--font-text);
  font-size: 19px;
  line-height: 28px;
  color: var(--ink-600);
  text-wrap: pretty;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== Right column: cycling phone ===== */
.hero-phone-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-phone-frame {
  /* Phone module sets its own size (.arb-phone) on mount. We pre-reserve
     the same dimensions on the host element so the hero grid (which
     vertically centers) doesn't re-balance once the phone mounts and
     push the headline up or down. */
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 660px;
}

.hero-phone-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
  min-width: 280px;
  /* Reserve height so the hero grid doesn't re-center when the indicator
     gets populated by JS after typing finishes. */
  min-height: 60px;
}

/* Auto-progress track: thin bar that fills L→R for the slide duration,
   resets each time setStep runs. Animation is driven by --hero-cycle-ms
   which the JS controller sets per slide. */
.hero-phone-progress {
  width: 220px;
  height: 2px;
  background: var(--ink-200);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.hero-phone-progress-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--red-600);
  transform-origin: left center;
  transform: scaleX(0);
}
.hero-phone-progress-fill.is-running {
  animation: hero-progress var(--hero-cycle-ms, 6000ms) linear forwards;
}
.hero-phone-progress-fill.is-paused {
  animation-play-state: paused;
}
@keyframes hero-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-phone-dots {
  display: flex;
  gap: 8px;
}

.hero-phone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--ink-300);
  cursor: pointer;
  transition: background 240ms ease, transform 240ms ease;
}
.hero-phone-dot.is-active {
  background: var(--red-600);
  transform: scale(1.25);
}
.hero-phone-dot:hover:not(.is-active) {
  background: var(--ink-500);
}

.hero-phone-label {
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-600);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.hero-phone-label-modality {
  color: var(--ink-900);
  font-weight: 500;
}

/* ===== Type reveal animation =====
   Each "reveal-line" element starts hidden, animated in by JS via .is-in.
   Longer travel + duration so the motion is unmistakable on first paint. */
.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1100ms cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
    transform 1100ms cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}
.reveal-line.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   §1.5 — CREDIBILITY STRIP (text-only, below hero)
   Sits on the alt off-white background to break visually from hero.
   ============================================================ */

.credibility {
  padding: 36px 60px;
  position: relative;
  background: var(--ink-100);
  border-top: 1px solid var(--ink-300);
}
.credibility-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 36px;
  align-items: center;
}
.credibility-label {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--ink-600);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.credibility-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--red-600);
}
.credibility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.credibility-list .sep {
  color: var(--ink-400);
  user-select: none;
}

@media (max-width: 900px) {
  .credibility { padding: 24px 24px; }
  .credibility-inner { grid-template-columns: 1fr; gap: 12px; }
  .credibility-list { font-size: 17px; line-height: 26px; }
}

/* ============================================================
   §2 — VERTICALITY (dark section)
   "Voice-only competitors close calls. We close patient journeys."
   ============================================================ */

.verticality {
  padding: 110px 60px 130px;
  position: relative;
}

.verticality-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 80px;
}
.verticality-eyebrow {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--red-600);
  margin: 0;
}
.verticality-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: #fff;
  text-wrap: balance;
  max-width: 1100px;
}
.verticality-sub {
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.65);
  text-wrap: pretty;
  max-width: 780px;
}
.verticality-sub strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

/* Three pillars — borderless / surface-only */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1320px;
  margin: 0 auto;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding-top: 28px;
}
/* Red top accent rule, the only chrome on the borderless cards */
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px;
  height: 1px;
  background: var(--red-600);
}
.pillar-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
  /* Subtle background gradient field so the visual area reads as a place */
  background:
    radial-gradient(circle at 18% 50%, rgba(218, 30, 64, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
  border-radius: 3px;
  padding: 18px 22px;
  overflow: hidden;
}
.pillar-visual svg {
  width: auto;
  height: 100%;
  max-height: 96px;
  color: rgba(255, 255, 255, 0.86);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar-visual img {
  height: 100%;
  width: auto;
  max-height: 110px;
  object-fit: contain;
  filter: brightness(1.05) contrast(1);
}
.pillar-eyebrow {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--red-600);
  margin: 0;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
.pillar-num {
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.pillar-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 34px;
  letter-spacing: -0.015em;
  color: #fff;
}
.pillar-body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 360px;
  text-wrap: pretty;
}

/* ============================================================
   §3 — JOURNEYS (light section)
   "Every journey runs the same way: orchestrated, multi-modal, measured."
   ============================================================ */

.journeys {
  padding: 160px 60px 160px;
  position: relative;
}
/* Section marker — a thin red rule + lowercase chapter label,
   centered above the section. Acts like an editorial separator that
   clearly announces a new section without changing the background. */
.journeys::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background: var(--red-600);
}
.journeys-head {
  max-width: 1180px;
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.journeys-eyebrow {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--red-600);
  margin: 0;
}
.journeys-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  text-wrap: balance;
  max-width: 1180px;
}
.journeys-sub {
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-600);
  max-width: 760px;
  text-wrap: pretty;
}

/* Tab strip — matches the screenshot: pill row with one filled "active" tab */
.journey-tabs {
  display: flex;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--ink-300);
  border-radius: 4px;
  background: var(--ink-0);
}
.journey-tabs::-webkit-scrollbar { display: none; }

.journey-tab {
  flex: 1;
  min-width: 200px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--ink-300);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink-900);
  transition:
    background 220ms cubic-bezier(.2,.7,.2,1),
    color 220ms cubic-bezier(.2,.7,.2,1);
}
.journey-tab:last-child { border-right: none; }
.journey-tab:hover { background: var(--ink-200); }
.journey-tab[aria-selected="true"] {
  background: var(--ink-900);
  color: #fff;
}
.journey-tab[aria-selected="true"]:hover { background: var(--ink-900); }

.journey-tab-num {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--red-600);
}
.journey-tab[aria-selected="true"] .journey-tab-num {
  color: var(--red-400);
}
.journey-tab-label {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: inherit;
}

/* Detail panel — shows the active journey */
.journey-detail {
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid var(--ink-300);
  border-radius: 4px;
  background: var(--ink-0);
  padding: 48px 60px 60px;
  position: relative;
  overflow: hidden;
}
.journey-detail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink-300);
  margin-bottom: 48px;
}
.journey-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.journey-description {
  margin: 0;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-600);
  max-width: 640px;
  text-wrap: pretty;
}
.journey-lift {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.journey-lift-metric {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 56px;
  letter-spacing: -0.025em;
  color: var(--red-600);
}
.journey-lift-label {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--ink-600);
}

.journey-todo {
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--ink-500);
  margin: -36px 0 24px;
  padding: 8px 12px;
  border: 1px dashed var(--ink-400);
  border-radius: 3px;
  display: inline-block;
}

/* D1 → D7 timeline */
.journey-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  padding: 24px 0 12px;
}
.journey-timeline::before {
  /* dashed connector line behind the dots */
  content: "";
  position: absolute;
  top: calc(24px + 30px); /* center on the circle (60px tall + 24 padding) */
  left: 10%;
  right: 10%;
  height: 0;
  border-top: 1px dashed var(--ink-400);
  z-index: 0;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}
.journey-step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--red-600);
  background: var(--ink-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--red-600);
  letter-spacing: -0.01em;
}
.journey-step-modality {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink-900);
  text-align: center;
}
.journey-step-detail {
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-600);
  text-align: center;
  max-width: 180px;
  text-wrap: pretty;
}

.journeys-foot {
  max-width: 1320px;
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--ink-600);
  flex-wrap: wrap;
}
.journeys-foot a {
  color: var(--red-600);
  text-decoration: none;
  font-weight: 500;
}
.journeys-foot a:hover { text-decoration: underline; }

/* ============================================================
   PLACEHOLDER FOR LATER SECTIONS
   ============================================================ */

.placeholder-note {
  max-width: 1320px;
  margin: 0 auto;
  padding: 90px 0;
  text-align: center;
  font-family: var(--font-text);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--ink-500);
}

/* ============================================================
   §2 / §3 responsive
   ============================================================ */

@media (max-width: 1100px) {
  .pillars { grid-template-columns: 1fr; gap: 48px; max-width: 720px; }
  .verticality-headline,
  .journeys-headline { font-size: 44px; }
  .journey-detail-head { grid-template-columns: 1fr; gap: 18px; }
  .journey-lift { align-items: flex-start; text-align: left; }
  .journey-timeline { grid-template-columns: 1fr; gap: 24px; }
  .journey-timeline::before { display: none; }
  .journey-step { flex-direction: row; align-items: center; gap: 18px; }
  .journey-step-modality, .journey-step-detail { text-align: left; }
}

@media (max-width: 900px) {
  .verticality { padding: 90px 24px 100px; }
  .verticality-head { margin-bottom: 60px; }
  .verticality-headline,
  .journeys-headline { font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; }
  .journeys { padding: 90px 24px 100px; }
  .journey-detail { padding: 24px 24px 36px; }
  .journey-tab { padding: 16px 18px; min-width: 160px; }
  .journey-title { font-size: 26px; line-height: 30px; }
  .journey-lift-metric { font-size: 40px; line-height: 40px; }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Hero collapses to single column at 1000px (the phone needs ~340px
   plus the headline needs ~480px — at less than ~1000px the headline
   wraps awkwardly, so we stack). */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    justify-items: center;
  }
  .hero-text-col { width: 100%; }
  .hero-text-stack { align-items: flex-start; }
  .hero-phone-col { order: -1; } /* phone above headline on stacked layout */
  .hero-headline { font-size: 64px; }
}

@media (max-width: 900px) {
  .site-nav { padding: 0 18px; top: 12px; }
  .section, .section-lg, .section-sm { padding-left: 24px; padding-right: 24px; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .hero { padding: 130px 24px 80px; }
  .hero-inner { gap: 40px; }
  .hero-headline { font-size: 48px; line-height: 1.0; letter-spacing: -0.025em; }
  .hero-sub { font-size: 17px; line-height: 26px; }
  .nav-link { padding: 6px 10px; }
  .nav-cta { padding: 6px 14px; }
  .nav-logo { padding: 8px 14px; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 40px; }
  /* Smaller phone so the cycling preview doesn't overwhelm mobile hero */
  .arb-phone { width: 280px; height: 580px; border-radius: 40px; padding: 11px; }
  .arb-phone-screen { border-radius: 32px; }
  /* Tighten phone-internal type a touch */
  .arb-phone .video-cover { height: 200px; }
  /* hide secondary nav links on tiny screens, keep CTA */
  .nav-links .nav-link:not(:last-of-type) { display: none; }
}

/* Reduced motion — kill the type reveal and canvas */
@media (prefers-reduced-motion: reduce) {
  .reveal-line { opacity: 1; transform: none; transition: none; }
  .hero-canvas { display: none; }
}

/* ============================================================
   Booking modal
   ============================================================ */

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 220ms cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.book-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.book-modal[hidden] { display: none !important; }

.book-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 24, 0.72);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.book-modal-panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: min(720px, calc(100vh - 80px));
  background: var(--ink-0);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.985);
  transition: transform 240ms cubic-bezier(.2, .7, .2, 1);
}
.book-modal.is-open .book-modal-panel {
  transform: none;
}

.book-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--ink-200);
}
.book-modal-titlewrap { min-width: 0; }
.book-modal-eyebrow {
  margin: 0 0 2px;
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.book-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.book-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink-300);
  background: var(--ink-0);
  color: var(--ink-700, var(--ink-900));
  font-size: 24px;
  line-height: 1;
  font-family: var(--font-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.book-modal-close:hover {
  background: var(--ink-100);
  border-color: var(--ink-400);
}
.book-modal-close:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 2px;
}

.book-modal-body {
  flex: 1;
  position: relative;
  background: var(--ink-100);
  overflow: hidden;
}
.book-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--ink-0);
}

@media (max-width: 720px) {
  .book-modal { padding: 0; }
  .book-modal-panel {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  .book-modal-head { padding: 16px 18px; }
  .book-modal-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .book-modal,
  .book-modal-panel { transition: none; }
}
