/* ============================================================
   EXTRAS — styles for chrome-extras, terminal, ROI, constellation,
   cycle drag hint, journey rebuild, custom cursor, scroll progress,
   sticky section nav. Loaded after home.css.
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%;
  width: 100%;
  transform-origin: 0 0;
  background: var(--logo-gradient);
  box-shadow: 0 0 12px rgba(91,197,227,0.4);
  transition: transform 0.08s linear;
}

/* ---------- Sticky section mini-nav ---------- */
.section-nav {
  position: fixed;
  left: 50%;
  top: 64px;
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.section-nav-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.section-nav-hidden  { opacity: 0; pointer-events: none; transform: translate(-50%, -12px); }
.section-nav-inner {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: color-mix(in oklab, var(--bg-elevated) 92%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.section-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.section-nav-item:hover { color: var(--text); background: var(--surface); }
.section-nav-item.active { color: var(--text); background: var(--surface-hover); }
.section-nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.25s, box-shadow 0.25s;
}
.section-nav-item.active .section-nav-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

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

/* ---------- Custom cursor (disabled — native OS cursor restored) ---------- */
.cc-dot, .cc-ring { display: none !important; }

/* Hero ambient glow is now handled solely by .hero-bg-glow in home.css
   (single static off-center radial, no cursor tracking, no multiply blend). */

/* ---------- Hero terminal ---------- */
.hero { position: relative; overflow: hidden; }
/* Give hero content room on the right so the terminal never overlaps */
@media (min-width: 1100px) {
  .hero-inner { padding-right: max(460px, calc(38vw + 32px)) !important; }
}
.hero-terminal-slot {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-40%);
  width: min(420px, 34vw);
  z-index: 2;
  pointer-events: auto;
}
.hero-terminal {
  position: relative;
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px color-mix(in oklab, var(--accent) 18%, transparent),
    0 0 60px color-mix(in oklab, var(--accent) 14%, transparent);
}
[data-theme="light"] .hero-terminal {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 0 0 1px var(--border-strong);
}
.hero-terminal-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 50%, transparent);
}
.hero-terminal-dots { display: flex; gap: 6px; }
.hero-terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.hero-terminal-dots span:nth-child(1) { background: #ff5f57; opacity: 0.6; }
.hero-terminal-dots span:nth-child(2) { background: #febc2e; opacity: 0.6; }
.hero-terminal-dots span:nth-child(3) { background: #28c840; opacity: 0.6; }
.hero-terminal-title {
  display: inline-flex; gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.hero-terminal-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-terminal-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-success);
  box-shadow: 0 0 8px var(--brand-success);
  animation: terminal-pulse 1.6s ease-in-out infinite;
}
.hero-terminal-pulse.sm { width: 5px; height: 5px; }
@keyframes terminal-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

.hero-terminal-body {
  position: relative;
  min-height: 220px;
  padding: 14px 10px 14px 10px;
}
.hero-terminal-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-terminal-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg-inset) 100%, transparent));
  pointer-events: none;
}

.hero-terminal-line {
  display: grid;
  grid-template-columns: 56px 48px 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.hero-terminal-line.anim-in {
  animation: terminal-line-in 0.45s var(--ease-out) both;
}
.hero-terminal-line.age-1 { opacity: 0.78; }
.hero-terminal-line.age-2 { opacity: 0.58; }
.hero-terminal-line.age-3 { opacity: 0.38; }
.hero-terminal-line.age-4 { opacity: 0.22; }
.hero-terminal-line.age-5 { opacity: 0.08; transform: translateY(-4px); }

@keyframes terminal-line-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.htl-ts { color: var(--text-dim); font-size: 10px; letter-spacing: 0.04em; }
.htl-chan {
  justify-self: start;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  text-transform: uppercase;
}
.htl-chan-ai    { background: color-mix(in oklab, #7B5DAD 20%, transparent); color: #b89cda; border-color: color-mix(in oklab, #7B5DAD 40%, transparent); }
.htl-chan-sec   { background: color-mix(in oklab, #6B8BC5 20%, transparent); color: #9bb3dc; border-color: color-mix(in oklab, #6B8BC5 40%, transparent); }
.htl-chan-save  { background: color-mix(in oklab, #10B981 22%, transparent); color: #57d3a8; border-color: color-mix(in oklab, #10B981 40%, transparent); }
.htl-chan-flag  { background: color-mix(in oklab, #f59e0b 22%, transparent); color: #f7bf65; border-color: color-mix(in oklab, #f59e0b 40%, transparent); }
.htl-chan-call  { background: color-mix(in oklab, #5BC5E3 20%, transparent); color: #8bdaed; border-color: color-mix(in oklab, #5BC5E3 40%, transparent); }
.htl-chan-mail  { background: color-mix(in oklab, #5BC5E3 20%, transparent); color: #8bdaed; border-color: color-mix(in oklab, #5BC5E3 40%, transparent); }
.htl-chan-sched { background: color-mix(in oklab, #6B8BC5 20%, transparent); color: #9bb3dc; border-color: color-mix(in oklab, #6B8BC5 40%, transparent); }
.htl-chan-doc   { background: color-mix(in oklab, var(--text) 10%, transparent); color: var(--text-muted); border-color: var(--border); }
.htl-chan-intel { background: color-mix(in oklab, #7B5DAD 20%, transparent); color: #b89cda; border-color: color-mix(in oklab, #7B5DAD 40%, transparent); }
.htl-chan-ops   { background: color-mix(in oklab, var(--text) 10%, transparent); color: var(--text-muted); border-color: var(--border); }

.htl-glyph { font-size: 13px; color: var(--text-muted); text-align: center; }
.htl-text  { color: var(--text); font-size: 12px; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htl-meta  { color: var(--text-dim); font-size: 10px; letter-spacing: 0.04em; }

.hero-terminal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 40%, transparent);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

@media (max-width: 1100px) {
  .hero-terminal-slot {
    position: relative;
    right: auto; top: auto;
    transform: none;
    width: 100%;
    max-width: 560px;
    margin: 48px 0 0 0;
  }
}
@media (max-width: 700px) {
  .hero-terminal-line { grid-template-columns: 48px 40px 16px 1fr; }
  .htl-meta { display: none; }
}

/* Hide the agent mesh canvas globally now that it's replaced */
.agent-mesh-canvas { display: none; }

/* ---------- Journey rebuild ---------- */
.journey-scroll { /* height set inline */ }
.journey-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
}
.journey-canvas {
  position: relative;
  display: grid;
  /* Morph column widened (220 → 280) so the "6.4×" big number doesn't
     overflow and clip the × off the right edge. Left rail stays at 220. */
  grid-template-columns: 220px 1fr 280px;
  gap: 40px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}
.journey-rail-persistent { order: 1; }
.journey-stage-panel { order: 2; }
.journey-morph { order: 3; }

/* Persistent rail */
.journey-rail-persistent {
  align-self: start;
  position: relative;
  padding: 20px 0;
}
.journey-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.journey-rail-progress {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.journey-rail-track {
  position: relative;
  min-height: 300px;
  border-left: 1px dashed var(--border);
  /* padding-left doesn't reposition absolutely-positioned children, so
     the offset is applied via `.journey-rail-stop { left }` below. */
}
.journey-rail-fill {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  background: var(--logo-gradient);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 60%, transparent);
  transition: height 0.5s var(--ease-out);
  border-radius: 999px;
}
.journey-rail-stop {
  position: absolute;
  /* Push the stop's text content 36px right of the line so the dot
     (which straddles the line) doesn't overlap "STAGE 02 / Manual" etc. */
  left: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  text-align: left;
  padding: 8px 0;
}
.journey-rail-stop-dot {
  position: absolute;
  /* Dot sits on the line. Since the stop itself is offset +36px from
     the line, the dot needs -42px to land at -6px absolute (straddling
     the line's 1px border). */
  left: -42px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  transition: all 0.3s var(--ease-out);
}
.journey-rail-stop.passed .journey-rail-stop-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.journey-rail-stop.current .journey-rail-stop-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent), 0 0 16px var(--accent);
  transform: scale(1.1);
}
.journey-rail-stop-body { display: flex; flex-direction: column; gap: 2px; }
.journey-rail-stop-num {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}
.journey-rail-stop-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.journey-rail-stop.current .journey-rail-stop-num { color: var(--accent); }
.journey-rail-stop.current .journey-rail-stop-name { color: var(--text); }

/* Big morph number (right column) */
.journey-morph {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  padding: 20px 0;
}
.journey-morph-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.journey-morph-value {
  line-height: 0.92;
}
.journey-morph-num {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.05em;
  /* Was clamp(96, 13vw, 180) — the "6.4×" string at 180px was too wide
     for the morph column, cutting the × off the right edge. Scaled down
     and the column was widened to 280px so the full value fits. */
  font-size: clamp(72px, 9vw, 128px);
  display: inline-block;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}
.journey-morph-range {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Override: pinned-journey panel must fit in a single viewport height. */
.journey-stage-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.journey-stage-panel .workflow { margin-top: 0; }
.journey-stage-panel .workflow-body { padding: 14px 16px; gap: 10px; }
.journey-stage-panel .lane { padding: 6px 0; }
.journey-stage-panel .stage-stats { gap: 10px; margin-top: 0; }
.journey-stage-panel .stage-stat { padding: 10px 12px; }
.journey-stage-header { display: block; margin-bottom: 0; }
.journey-stage-name { font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 8px; }
.journey-stage-desc { max-width: 640px; font-size: 13.5px; line-height: 1.5; margin-bottom: 0; }

@media (max-width: 1180px) {
  .journey-canvas { grid-template-columns: 200px 1fr; }
  .journey-morph { display: none; }
}
@media (max-width: 900px) {
  .journey-canvas { grid-template-columns: 1fr; gap: 20px; }
  .journey-rail-persistent { display: none; }
  .journey-pin { padding-top: 80px; height: auto; position: relative; }
  .journey-scroll { height: auto !important; }
}

/* ---------- Journey mobile stack (<=900px) ---------- */
.journey-mobile {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}
.journey-mobile-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px 20px;
  background: var(--bg-elevated);
  position: relative;
}
.journey-mobile-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.journey-mobile-card-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.journey-mobile-card-mult {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}
.journey-mobile-card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.journey-mobile-card-name {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 12px;
}
.journey-mobile-card-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.journey-mobile .workflow { border-radius: 14px; }
.journey-mobile .workflow-body { padding: 18px; min-height: 0; }
.journey-mobile .lane {
  grid-template-columns: 90px 1fr 40px;
  gap: 10px;
  padding: 10px 0;
  font-size: 12px;
}
.journey-mobile .lane-label { font-size: 11px; }
.journey-mobile .lane-track { height: 22px; }
.journey-mobile .lane-block { font-size: 9px; padding: 0 6px; }
.journey-mobile .stage-stats {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.journey-mobile .stage-stat { padding: 14px 10px; }
.journey-mobile .stage-stat-value { font-size: 22px; }
@media (max-width: 520px) {
  .journey-mobile .stage-stats { grid-template-columns: 1fr 1fr; }
  .journey-mobile .stage-stat:nth-child(3) { grid-column: 1 / -1; }
  .journey-mobile .lane { grid-template-columns: 78px 1fr 34px; }
  .journey-mobile-card-name { font-size: 22px; }
}

/* ---------- Cycle wheel drag affordance ---------- */
.cycle-wheel {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.cycle-wheel.dragging { cursor: grabbing; }
.cycle-drag-hint {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  height: 14px;
}
.cycle-drag-hint.visible { opacity: 1; }
.cycle-drag-hint span::before {
  content: "↻ ";
  color: var(--accent);
  margin-right: 4px;
}

/* ---------- "Interactive — try it" hint (spend leak + radar) ---------- */
.interact-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  animation: interact-hint-in 0.4s var(--ease-out) both;
}
.interact-hint::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: terminal-pulse 1.8s ease-in-out infinite;
}
@keyframes interact-hint-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- ROI tool ---------- */
.roi-section {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}
.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.roi-head h2 { line-height: 1; }
.roi-assumptions {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roi-assumptions li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.roi-assumptions li:first-child { border-top: none; }
.roi-assumptions .label-mono { min-width: 120px; color: var(--text-dim); }

.roi-card {
  padding: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-inset));
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.roi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 200px at 80% 0%, color-mix(in oklab, var(--accent) 15%, transparent), transparent 60%);
  pointer-events: none;
}
.roi-card > * { position: relative; }

.roi-display {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: color-mix(in oklab, var(--bg) 40%, transparent);
}
.roi-display-head { margin-bottom: 14px; }
.roi-display-big {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
  margin-bottom: 16px;
}
.roi-display-big .gradient-text {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.roi-display-unit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.roi-display-sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}
.roi-display-sub strong { color: var(--text); font-weight: 500; }

.roi-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.roi-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roi-control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.roi-control-val {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 20%, var(--border-strong)));
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cta);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
  cursor: grab;
  transition: transform 0.2s;
}
.roi-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); }
.roi-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cta);
  border: 2px solid var(--accent);
  cursor: grab;
}
.roi-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.roi-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.roi-metric {
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
}
.roi-metric-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.roi-metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.roi-capture {
  border-top: 1px dashed var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.roi-capture-head { display: flex; align-items: center; gap: 8px; }
.roi-capture-row {
  display: flex;
  gap: 8px;
}
.roi-capture-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.roi-capture-input:focus { border-color: var(--accent); }
.roi-capture-btn { padding: 12px 18px; font-size: 13px; border-radius: 10px; }
.roi-capture-foot {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.roi-capture-sent {
  padding: 18px 20px;
  border: 1px solid color-mix(in oklab, var(--brand-success) 40%, transparent);
  background: color-mix(in oklab, var(--brand-success) 10%, transparent);
  border-radius: 12px;
}
.roi-capture-sent .label-mono { color: var(--brand-success); margin-bottom: 6px; }
.roi-capture-sent-body { font-size: 14px; color: var(--text); line-height: 1.5; }
.roi-capture-sent-body strong { color: var(--accent); }

@media (max-width: 960px) {
  .roi-layout { grid-template-columns: 1fr; gap: 40px; }
  .roi-metrics { grid-template-columns: 1fr; }
  .roi-capture-row { flex-direction: column; }
}

/* ---------- Technology Constellation ---------- */
.constellation-section {
  padding: 140px 0;
  background: var(--bg-inset);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.constellation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.constellation-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.constellation-legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.constellation-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 560;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.constellation-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s var(--ease-out), filter 0.3s;
  cursor: pointer;
}
.constellation-node svg {
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
  transition: transform 0.3s var(--ease-out);
}
.constellation-node.active { z-index: 2; }
.constellation-node.active svg { transform: scale(1.15); }
.constellation-node:hover svg { transform: scale(1.15); }
.constellation-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-elevated) 94%, transparent);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.constellation-node.active .constellation-label,
.constellation-node:hover .constellation-label { opacity: 1; transform: translateY(0); }

.constellation-foot {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 700px) {
  .constellation-stage { aspect-ratio: 3 / 4; }
}

/* ===========================================================
   Tech Constellation v2 — supplier marquee
   =========================================================== */
.tc-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 70%),
    var(--surface);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}

.tc-row {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.tc-row-track {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 14px;
  padding-right: 14px;
  white-space: nowrap;
  animation-name: tc-marquee-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.tc-marquee:hover .tc-row-track { animation-play-state: paused; }

@keyframes tc-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.tc-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, color 0.2s;
}
.tc-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 50%, var(--border));
  color: var(--text);
}
.tc-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.tc-chip-name {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .tc-row-track { animation: none !important; transform: none !important; }
  .tc-marquee { mask-image: none; -webkit-mask-image: none; }
  .tc-row { overflow: auto; }
}

@media (max-width: 700px) {
  .tc-chip { padding: 7px 12px; font-size: 12px; }
  .tc-marquee { padding: 16px 0; gap: 10px; }
}

/* ---------- Global serif / gradient / ghost button ---------- */
.serif {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text {
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

/* ---------- Nav ghost link ---------- */
.nav-link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link-ghost:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
@media (max-width: 1180px) {
  .nav-link-ghost { display: none; }
}


/* ---------- Page-level FAQ (LLM-citable Q&A) ---------- */
.page-faq {
  padding: 110px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.faq-list {
  display: grid;
  gap: 16px;
  max-width: 960px;
}
.faq-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  background: var(--bg-elevated, var(--bg));
  transition: border-color 0.25s, transform 0.25s;
}
.faq-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.faq-q {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.faq-a {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 78ch;
}
@media (max-width: 700px) {
  .page-faq { padding: 70px 0; }
  .faq-card { padding: 22px 22px; }
  .faq-q { font-size: 18px; }
  .faq-a { font-size: 15px; }
}


/* ---------- Mobile polish (390px + 768px) ---------- */
@media (max-width: 480px) {
  /* Tighter container gutters */
  .container, .container-narrow { padding-left: 20px; padding-right: 20px; }

  /* Hero headline needs to fit in ~350px of reading width */
  .hero-headline { font-size: clamp(36px, 11vw, 52px); }
  .hero-sub { font-size: 15px; }
  .hero-kicker-row { gap: 8px; margin-bottom: 28px; }
  .hero-kicker-row .kicker { font-size: 10px; letter-spacing: 0.12em; }
  .hero-kicker-row .kicker + .kicker { padding-left: 10px; }

  /* Hero meta — stack to 1-col on very narrow viewports */
  .hero-meta { grid-template-columns: 1fr !important; gap: 20px; }
  .hero-meta-num { font-size: 26px; }

  /* CTA buttons — full-width stack, min 44px tap target */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero-ctas > a, .hero-ctas > button { justify-content: center; min-height: 48px; width: 100%; }

  /* Section padding reduction */
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .cta-section { padding: 80px 0; }

  /* Journey mobile cards — tighter */
  .journey-mobile-card { padding: 24px 20px; }
  .journey-mobile-card-mult { font-size: 42px; }

  /* Footer grid already handles this but reduce padding */
  .footer { padding: 56px 0 36px; }
  .footer-grid { gap: 28px; }
}

@media (max-width: 768px) {
  /* H2 scale-down for tablet-ish widths */
  h2 { font-size: clamp(28px, 5.2vw, 40px) !important; }

  /* Ensure all clickable nav/footer items meet 44px tap target */
  .nav-mobile-link, .footer-col a, .footer-col-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ===========================================================
   Custom cursor
   ----------------------------------------------------------
   Two-layer cursor: a precise 6px dot that snaps to the mouse
   and a 28px ring that eases behind it. When hovering over
   anything interactive the ring inflates to 44px and the dot
   shrinks into the ring's center — reads as "targeting".
   Only mounted on fine-pointer devices; disabled under
   prefers-reduced-motion. We do NOT set `cursor: none` on the
   document — the OS cursor stays visible so hit-target
   precision is never compromised.
   =========================================================== */

.cc-ring,
.cc-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity, width, height, border-color;
  transition:
    width 180ms cubic-bezier(0.22, 1, 0.36, 1),
    height 180ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    mix-blend-mode 220ms ease;
}

.cc-ring {
  width: 28px;
  height: 28px;
  border: 1.25px solid color-mix(in oklab, var(--accent, #80ecf6) 65%, transparent);
  border-radius: 999px;
  background: transparent;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent, #80ecf6) 15%, transparent) inset,
    0 0 24px color-mix(in oklab, var(--accent, #80ecf6) 18%, transparent);
}
.cc-ring-hover {
  width: 44px;
  height: 44px;
  border-color: color-mix(in oklab, var(--accent, #80ecf6) 95%, transparent);
  background: color-mix(in oklab, var(--accent, #80ecf6) 10%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent, #80ecf6) 30%, transparent) inset,
    0 0 36px color-mix(in oklab, var(--accent, #80ecf6) 32%, transparent);
}
.cc-ring-down {
  width: 22px;
  height: 22px;
  background: color-mix(in oklab, var(--accent, #80ecf6) 22%, transparent);
}
.cc-ring-hidden,
.cc-dot-hidden {
  opacity: 0;
}

.cc-dot {
  width: 6px;
  height: 6px;
  background: var(--accent, #80ecf6);
  border-radius: 999px;
  box-shadow: 0 0 8px color-mix(in oklab, var(--accent, #80ecf6) 60%, transparent);
  opacity: 0.95;
}
.cc-dot-hover {
  width: 4px;
  height: 4px;
  opacity: 0.7;
}

/* Don't interfere on text inputs where native caret is king */
input:hover ~ .cc-ring,
textarea:hover ~ .cc-ring {
  opacity: 0;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cc-ring, .cc-dot { display: none !important; }
}
