/* ===========================================================
   Lumen — homepage styles (harvey.ai-inspired clone)
   =========================================================== */

:root {
  --bg: #000000;
  --bg-cream: #ffffff;
  --bg-cream-2: #ffffff;
  --bg-stone: #000000;
  --ink: #0e1216;
  --ink-mute: #5a5f66;
  --ink-soft: #8a8f96;
  --line: rgba(14,18,22,0.10);
  --line-light: rgba(255,255,255,0.14);
  --accent: #1A3B4C;        /* Carver Edison Navy (primary) */
  --accent-2: #4EAB83;      /* Carver Edison Green (highlight) */
  --white: #ffffff;
  --max: 1240px;
  --radius: 6px;
  --serif: 'F-Plain', 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --display: 'F-Plain', 'Fraunces', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Substitute the uppercase and lowercase F glyphs with a plain serif —
   Fraunces' Fs read with strong hooks/terminals; this swaps just F and f
   for the next-available system serif so the rest of the typography is
   unaffected. */
@font-face {
  font-family: 'F-Plain';
  src: local('Iowan Old Style'),
       local('Cambria'),
       local('Times New Roman'),
       local('Georgia');
  unicode-range: U+0046, U+0066;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: #fafaf9;
  color: #0f0e0d;
}
.btn--primary:hover {
  background: var(--white);
  color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.30);
}
.btn--ghost:hover { border-color: var(--white); }
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.40);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); }
.btn--lg {
  height: 48px;
  padding: 0 20px;
  font-size: 16px;
}

.link-arrow {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--ink); }
.link-arrow--light { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.25); }
.link-arrow--light:hover { color: var(--white); border-bottom-color: var(--white); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-weight: 500;
}

/* ---------- Announcement bar ---------- */
.announce {
  position: relative;
  z-index: 30;
  background: #0a0907;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.announce-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.announce-tag {
  background: var(--accent);
  color: #1a1611;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.announce-link { color: var(--accent); }
.announce-link:hover { color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 25;
  background: transparent;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav--over-hero { color: var(--white); }
.nav.is-scrolled {
  background: rgba(13,12,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav--light.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.brand-logo {
  display: block;
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 18px;
  font-size: 14px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.92;
}
.nav-links a:hover { opacity: 1; }
.caret { font-size: 9px; opacity: 0.7; }
.nav-showcase-link {
  position: relative;
  font-weight: 600;
}
.nav-new-badge {
  display: inline-block;
  padding: 2px 6px;
  margin-left: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  background: #4EAB83;
  color: #fff;
  line-height: 1.2;
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-mobile-sub { display: none; }
/* Hidden on desktop. The mobile drawer (@media max-width: 980px) has
   higher-specificity rules that show it as a CTA when .nav--open. */
.nav-links a.nav-mobile-demo,
.nav-mobile-demo { display: none !important; }
.nav-burger {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh + 4px);
  margin-top: -65px;
  padding-top: 65px;
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center; /* push subject right, leave left side dark */
  z-index: 0;
  background: #0d0c0a;
}
@media (max-width: 720px) {
  .hero-video { object-position: 40% center; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* dominant left-side black column (harvey.ai pattern) */
    linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 28%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0) 92%),
    /* gentle top + bottom darkening for nav and logo strip */
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(22vh, 28vh, 34vh) 28px 0;
}
.hero-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 400;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 22ch;
  color: var(--white);
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.25;
  max-width: none;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 8px 0 40px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero-sub { white-space: normal; font-size: clamp(18px, 4.5vw, 22px); }
}
.hero-meta {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 30px;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Logo strip ---------- */
.logo-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 22px 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logo-strip-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 90s linear infinite;
  will-change: transform;
  color: #ffffff;
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.logo-set {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
  padding: 0 clamp(20px, 3vw, 60px);
}
.logo-set span { flex: 0 0 auto; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- EY validation strip ---------- */
.ey {
  position: relative;
  padding: 110px 0 120px;
  color: var(--white);
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(201,168,113,0.10), transparent 70%),
    radial-gradient(120% 100% at 50% 0%, #1a1611 0%, #0d0c0a 55%, #07060a 100%);
  border-top: 1px solid rgba(201,168,113,0.18);
  border-bottom: 1px solid rgba(201,168,113,0.18);
  overflow: hidden;
}
.ey::before {
  /* faint background grid for "document room" feel */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(60% 50% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.ey-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ey-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.ey-headline {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 60px;
  color: var(--white);
  text-wrap: balance;
}

/* ---------- Report card widget ---------- */
.report-card {
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto 56px;
}
.report-card-edge {
  /* cream paper edge stack — gives the illusion of a 24-page document */
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  height: calc(100% - 16px);
  background: linear-gradient(180deg, #efe7d4 0%, #d8cdb1 100%);
  border-radius: 6px 6px 4px 4px;
  box-shadow:
    0 6px 0 -2px #ddd2b6,
    0 12px 0 -4px #c9bd9c,
    0 18px 0 -6px #b6ab8b;
  z-index: 0;
}
.report-card-body {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(201,168,113,0.08), transparent 60%),
    linear-gradient(180deg, #fdfaf2 0%, #f6efde 100%);
  border-radius: 6px;
  padding: 36px 44px 32px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -20px rgba(0,0,0,0.55),
    0 80px 100px -40px rgba(201,168,113,0.18);
  color: #2a2418;
  text-align: left;
  animation: rc-float 7s ease-in-out infinite;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.report-card-body::before {
  /* gold rule across top */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 18%, var(--accent-2) 50%, var(--accent) 82%, transparent 100%);
  border-radius: 6px 6px 0 0;
}
.report-card:hover .report-card-body {
  transform: translateY(-8px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 50px 90px -20px rgba(0,0,0,0.65),
    0 100px 120px -50px rgba(201,168,113,0.30);
}
@keyframes rc-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .report-card-body { animation: none; }
}

.report-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.report-card-mark {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14110d;
  color: #fdfaf2;
  border-radius: 4px;
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 460;
  font-size: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.report-card-meta {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.report-card-kicker {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b5e3f;
}
.report-card-org {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: 18px;
  color: #2a2418;
  letter-spacing: -0.005em;
}
.report-card-stamp {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #8a3f2f;
  color: #8a3f2f;
  padding: 6px 12px 6px 14px;
  border-radius: 999px;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  transform: rotate(-3deg);
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 4px, rgba(138,63,47,0.04) 4px, rgba(138,63,47,0.04) 8px);
  position: relative;
  top: -4px;
}
.report-card-stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8a3f2f;
  box-shadow: 0 0 0 3px rgba(138,63,47,0.15);
}

.report-card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,36,24,0.18) 12%, rgba(42,36,24,0.18) 88%, transparent);
  margin: 0 -8px 24px;
}

.report-card-subject {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #6b5e3f;
  margin: 0 0 6px;
}
.report-card-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: #1a1610;
}
.report-card-blurb {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a3f2c;
  margin: 0 0 22px;
  max-width: 56ch;
}
.report-card-findings {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}
.report-card-findings li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #2a2418;
}
.rc-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2f5b41;
  color: #fdfaf2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.report-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(42,36,24,0.12);
  padding-top: 18px;
}
.report-card-sig {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rc-sig-line {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: #1a1610;
  letter-spacing: -0.005em;
}
.rc-sig-meta {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5e3f;
}
.report-card-seal {
  flex: 0 0 auto;
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rc-seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(201,168,113,0.55);
  background: radial-gradient(circle, rgba(201,168,113,0.10) 0%, transparent 70%);
  animation: rc-seal 18s linear infinite;
}
@keyframes rc-seal { to { transform: rotate(360deg); } }
.rc-seal-letters {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 460;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}

/* CTAs below card */
.ey-actions {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.ey-link {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.ey-link:hover { color: var(--white); border-color: var(--white); gap: 12px; }
.ey-link--primary { color: var(--accent); border-bottom-color: rgba(201,168,113,0.55); }
.ey-link--primary:hover { color: var(--white); border-bottom-color: var(--white); }
.ey-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.22);
}

@media (max-width: 720px) {
  .ey { padding: 70px 0 80px; }
  .report-card-body { padding: 28px 22px 24px; }
  .report-card-head { flex-wrap: wrap; }
  .report-card-stamp { order: 3; transform: none; top: 0; margin-top: 4px; }
  .report-card-foot { flex-direction: column; align-items: flex-start; }
  .ey-actions { flex-direction: column; gap: 14px; }
  .ey-divider { display: none; }
}

/* ---------- Value section ---------- */
.value {
  background: #0B0F14;
  color: #fff;
  padding: clamp(96px, 12vw, 144px) 0 clamp(28px, 4vh, 48px);
}
.value-headline {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  max-width: 42ch;
  color: #fff;
}
.rotator {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
.rotator-word {
  display: none;
  white-space: normal;
  color: var(--accent-2);
  font-style: normal;
}
.rotator-word.is-active {
  display: inline-block;
  animation: rot-in .45s cubic-bezier(.2,.8,.2,1) both;
}
.rotator-word.is-active::after { content: '.'; }
@keyframes rot-in {
  from { opacity: 0; transform: translateY(0.25em); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rotator-word.is-active { animation: none; }
}
.capability-grid {
  list-style: none;
  margin: 60px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.capability-grid li {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.capability-grid li::before {
  content: "+";
  color: var(--accent-2);
  font-size: 16px;
  width: 14px;
  display: inline-block;
}
.capability-grid li:nth-child(n+2) {
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

/* ---------- Tabbed capabilities ---------- */
.caps {
  background: #0B0F14;
  color: #fff;
  padding: 0 0 clamp(40px, 5vh, 72px);
}

/* Tab nav */
.caps-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 clamp(28px, 4vh, 48px);
  border-bottom: none;
}
.caps-tab {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 22px 16px 20px;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #fff;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.caps-tab-label {
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.caps-tab::after { display: none; }
.caps-tab:hover {
  color: var(--accent);
  background: rgba(78,171,131,0.06);
  border-color: rgba(78,171,131,0.20);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.caps-tab.is-active {
  background: #ffffff;
  color: var(--accent);
  border-color: rgba(78,171,131,0.28);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 0 0 1px rgba(78,171,131,0.12);
}
.caps-tab:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

/* Panels */
.caps-panels {
  position: relative;
}
.caps-panel {
  background: #fafafa;
  border: 1px solid rgba(26,59,76,0.10);
  border-radius: 18px;
  padding: clamp(36px, 5vw, 72px);
  opacity: 0;
  transition: opacity .45s cubic-bezier(.2,.7,.2,1);
}
.caps-panel[hidden] { display: none; }
.caps-panel.is-active {
  opacity: 1;
}

.caps-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.caps-panel-copy {
  max-width: 56ch;
}
.caps-panel-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.caps-panel-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.caps-panel-body {
  font-family: var(--sans);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 56ch;
}
.caps-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.caps-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}
.caps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 1px;
  background: var(--accent-2);
}
.caps-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,59,76,0.20);
  padding-bottom: 4px;
  transition: gap .25s ease, border-color .25s ease;
}
.caps-link:hover { gap: 12px; border-color: var(--accent); }

/* Stat callout (right side) */
.caps-panel-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--white);
  border: 1px solid rgba(26,59,76,0.10);
  border-radius: 14px;
  align-self: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Per-tab mood — subtle radial wash on the stat card */
.caps-panel[data-color="indigo"] .caps-panel-visual {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(110,127,168,0.16), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(31,39,66,0.10), transparent 60%),
    var(--white);
  border-color: rgba(31,39,66,0.20);
}
.caps-panel[data-color="slate"] .caps-panel-visual {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(117,130,144,0.18), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(59,69,77,0.10), transparent 60%),
    var(--white);
  border-color: rgba(59,69,77,0.20);
}
.caps-panel[data-color="rust"] .caps-panel-visual {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(179,104,63,0.16), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(106,58,37,0.08), transparent 60%),
    var(--white);
  border-color: rgba(106,58,37,0.18);
}
.caps-stat-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.caps-stat-num {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(64px, 7.5vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-feature-settings: "tnum", "lnum";
  font-variant-numeric: tabular-nums lining-nums;
}
.caps-stat-prefix {
  font-size: 0.55em;
  vertical-align: 0.45em;
  color: var(--accent);
  margin-right: 0.02em;
  font-feature-settings: normal;
}
.caps-stat-unit {
  font-size: 0.45em;
  vertical-align: 0.7em;
  color: var(--accent);
  margin-left: 0.05em;
  font-feature-settings: normal;
}
.caps-stat-label {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 30ch;
}
.caps-stat-rule {
  display: block;
  height: 1px;
  width: 32px;
  background: var(--accent-2);
  margin: 4px 0;
}
.caps-stat-foot {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

@media (prefers-reduced-motion: reduce) {
  .caps-tab, .caps-tab::after, .caps-panel, .caps-link {
    transition: none !important;
  }
}

/* ── Viz animation keyframes ─────────────────────────────────── */
@keyframes viz-rise {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes viz-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes viz-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes viz-spring-in {
  0%   { transform: scale(0); opacity: 0; }
  50%  { opacity: 1; }
  70%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* Default: everything hidden — no transition so it snaps back instantly */
.caps-panel-visual .viz-stack        { clip-path: inset(100% 0 0 0); }
.caps-panel-visual .viz-heading,
.caps-panel-visual .viz-col-label,
.caps-panel-visual .viz-circle-saved,
.caps-panel-visual .ba-caption       { opacity: 0; transform: translateY(6px); }
.caps-panel-visual .viz-arrow        { opacity: 0; }
.caps-panel-visual .viz-circle       { opacity: 0; transform: scale(0); }

/* Animated state — keyframes restart reliably every time is-visible is toggled */
.caps-panel-visual.is-visible .viz-col:first-child .viz-stack {
  animation: viz-rise 0.9s cubic-bezier(0.16,1,0.3,1) 80ms both;
}
.caps-panel-visual.is-visible .viz-col:last-child .viz-stack {
  animation: viz-rise 0.9s cubic-bezier(0.16,1,0.3,1) 260ms both;
}
.caps-panel-visual.is-visible .viz-heading {
  animation: viz-fade-up 0.5s ease 0ms both;
}
.caps-panel-visual.is-visible .viz-arrow {
  animation: viz-fade-in 0.4s ease 420ms both;
}
.caps-panel-visual.is-visible .viz-col-label {
  animation: viz-fade-up 0.45s ease 700ms both;
}
.caps-panel-visual.is-visible .ba-caption {
  animation: viz-fade-up 0.45s ease 880ms both;
}
.caps-panel-visual.is-visible .viz-circle--before {
  animation: viz-spring-in 0.65s cubic-bezier(0.34,1.56,0.64,1) 80ms both;
}
.caps-panel-visual.is-visible .viz-circle--after {
  animation: viz-spring-in 0.65s cubic-bezier(0.34,1.56,0.64,1) 350ms both;
}
.caps-panel-visual.is-visible .viz-circle-saved {
  animation: viz-fade-up 0.45s ease 750ms both;
}

/* ── Illustrative before/after visualizations ───────────────── */
.ba-caption {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(26,59,76,0.38);
  margin: 16px 0 0;
  text-align: center;
  border-top: 1px solid rgba(26,59,76,0.08);
  padding-top: 14px;
  letter-spacing: 0.02em;
}

.viz-heading {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(26,59,76,0.38);
  margin: 0 0 18px;
}

/* Shared column layout — subgrid so the bar bottoms across both columns
   pin to the same Y regardless of label-wrap differences. The viz-arrow
   sits between the columns in its own grid cell. */
.viz-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 12px;
  width: 100%;
  align-items: end;
}
.viz-col {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  justify-items: center;
  align-items: end;
  row-gap: 10px;
}
.viz-cols > .viz-arrow { grid-row: 1; align-self: end; }
.viz-col-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.38;
  text-align: center;
}
.viz-col--after .viz-col-label {
  color: var(--accent);
  opacity: 0.80;
}
.viz-col-sub {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--accent-2);
  opacity: 0.85;
  text-align: center;
  margin-top: -6px;
}
.viz-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: end;
  justify-content: center;
  /* sit alongside the bar bottoms (the 1fr row) above the labels */
  padding-bottom: 28px;
  color: var(--ink);
  opacity: 0.18;
}

/* Stacked bar (Panel 1 & 3) */
.viz-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  gap: 2px;
}
.viz-seg {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
}
.viz-seg-label {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 6px;
  white-space: nowrap;
}

/* Panel 1 — SBC segments */
.viz-seg--base-cost  { background: rgba(26,59,76,0.12); }
.viz-seg--base-cost .viz-seg-label  { color: rgba(26,59,76,0.5); }

.viz-seg--sbc-before { background: rgba(190,75,55,0.42); }
.viz-seg--sbc-before .viz-seg-label { color: rgba(255,220,210,0.85); }

.viz-seg--sbc-after  { background: rgba(190,75,55,0.20); }
.viz-seg--sbc-after .viz-seg-label  { color: rgba(190,75,55,0.70); }

.viz-seg--net-before { background: rgba(78,171,131,0.30); }
.viz-seg--net-before .viz-seg-label { color: rgba(78,171,131,0.80); }

.viz-seg--net-after  { background: rgba(78,171,131,0.65); }
.viz-seg--net-after .viz-seg-label  { color: rgba(255,255,255,0.90); }

/* Panel 3 — Talent segments */
.viz-seg--base       { background: rgba(26,59,76,0.12); }
.viz-seg--base .viz-seg-label       { color: rgba(26,59,76,0.50); }

.viz-seg--equity     { background: rgba(26,59,76,0.22); }
.viz-seg--equity .viz-seg-label     { color: rgba(26,59,76,0.65); }

.viz-seg--espp-std   { background: rgba(78,171,131,0.22); }
.viz-seg--espp-std .viz-seg-label   { color: rgba(78,171,131,0.70); }

.viz-seg--espp-ce    { background: rgba(78,171,131,0.68); }
.viz-seg--espp-ce .viz-seg-label    { color: rgba(255,255,255,0.92); }

/* Panel 2 — Pool gauge (dilution / burn rate) */
.viz-pool {
  width: 100%;
  border: 1.5px solid rgba(26,59,76,0.18);
  border-radius: 8px;
  overflow: hidden;
}
.viz-col--after .viz-pool {
  border-color: rgba(78,171,131,0.38);
}
.viz-seg--pool-issued {
  background: rgba(190,75,55,0.38);
}
.viz-seg--pool-issued .viz-seg-label { color: rgba(255,190,175,0.85); }
.viz-seg--pool-issued-less {
  background: rgba(190,75,55,0.18);
}
.viz-seg--pool-issued-less .viz-seg-label { color: rgba(190,75,55,0.65); }
.viz-seg--pool-remain {
  background: rgba(78,171,131,0.22);
}
.viz-seg--pool-remain .viz-seg-label { color: rgba(78,171,131,0.65); }
.viz-seg--pool-remain-high {
  background: rgba(78,171,131,0.62);
}
.viz-seg--pool-remain-high .viz-seg-label { color: rgba(255,255,255,0.88); }

/* Panel 2 — Circles (dilution) */
.viz-circles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
}
.viz-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.viz-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  flex-shrink: 0;
}
.viz-circle-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.viz-circle--before {
  width: 128px; height: 128px;
  background: rgba(26,59,76,0.14);
  border: 2px solid rgba(26,59,76,0.20);
}
.viz-circle--before .viz-circle-label { color: rgba(26,59,76,0.50); }
.viz-circle--after {
  width: 70px; height: 70px;
  background: rgba(78,171,131,0.18);
  border: 2px solid rgba(78,171,131,0.50);
}
.viz-circle--after .viz-circle-label { color: rgba(78,171,131,0.85); }
.viz-circle-ring {
  position: relative;
  flex-shrink: 0;
}
.viz-circle-saved {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  opacity: 0.80;
  text-align: center;
  text-transform: uppercase;
}

/* ── Burn rate bars (dilution panel) ─────────────────── */
.viz-burn-rows { display: flex; flex-direction: column; gap: 20px; }
.viz-burn-row  { display: flex; flex-direction: column; gap: 8px; }
.viz-burn-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.viz-burn-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(26,59,76,0.40);
}
.viz-burn-track {
  height: 12px;
  background: rgba(26,59,76,0.06);
  border-radius: 6px;
  overflow: hidden;
}
.viz-burn-bar {
  height: 100%;
  border-radius: 6px;
  transform-origin: left;
}
.viz-burn-bar--std { background: rgba(26,59,76,0.22); width: 100%; }
.viz-burn-bar--ce  { background: #4EAB83; width: 15%; }
.viz-burn-pct {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 300;
  color: rgba(26,59,76,0.70);
  letter-spacing: -0.02em;
}
.viz-burn-pct--ce { color: #3A8F6A; }
.viz-burn-pct-sub {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(26,59,76,0.38);
  margin-top: 1px;
}
.viz-burn-callout {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(78,171,131,0.08);
  border: 1px solid rgba(78,171,131,0.18);
  border-radius: 10px;
  padding: 12px 14px;
}
.viz-burn-delta {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 300;
  color: #3A8F6A;
  letter-spacing: -0.02em;
}
.viz-burn-note { font-size: 11px; color: rgba(26,59,76,0.45); }

/* Default hidden */
.caps-panel-visual .viz-burn-bar     { transform: scaleX(0); transform-origin: left; }
.caps-panel-visual .viz-burn-pct     { opacity: 0; transform: translateY(4px); }
.caps-panel-visual .viz-burn-label   { opacity: 0; transform: translateY(4px); }
.caps-panel-visual .viz-burn-callout { opacity: 0; transform: translateY(6px); }

/* Animated state */
.caps-panel-visual.is-visible .viz-burn-row:nth-child(1) .viz-burn-label {
  animation: viz-fade-up 0.4s ease 60ms both;
}
.caps-panel-visual.is-visible .viz-burn-row:nth-child(2) .viz-burn-label {
  animation: viz-fade-up 0.4s ease 150ms both;
}
.caps-panel-visual.is-visible .viz-burn-bar--std {
  animation: viz-bar-grow 1.1s cubic-bezier(0.16,1,0.3,1) 200ms both;
}
.caps-panel-visual.is-visible .viz-burn-bar--ce {
  animation: viz-bar-grow 0.7s cubic-bezier(0.16,1,0.3,1) 500ms both;
}
.caps-panel-visual.is-visible .viz-burn-pct {
  animation: viz-fade-up 0.4s ease 900ms both;
}
.caps-panel-visual.is-visible .viz-burn-callout {
  animation: viz-fade-up 0.5s ease 1050ms both;
}

@keyframes viz-bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Line chart (dilution panel) ─────────────────────── */
.viz-chart-wrap { width: 100%; }
.viz-line-chart  { width: 100%; height: auto; display: block; overflow: visible; }

.chart-grid { stroke: rgba(26,59,76,0.09); stroke-width: 1; }

.chart-label {
  font-family: var(--sans);
  font-size: 8.5px;
  fill: rgba(26,59,76,0.32);
}
.chart-fill { fill: rgba(78,171,131,0.14); }

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}
.chart-line--std { stroke: rgba(26,59,76,0.25); stroke-width: 1.6; }
.chart-line--ce  { stroke: #4EAB83; stroke-width: 2.2; }
.chart-dot--std  { fill: rgba(26,59,76,0.28); }
.chart-dot--ce   { fill: #4EAB83; }

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  justify-content: center;
}
.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: rgba(26,59,76,0.42);
}
.chart-legend-item::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
}
.chart-legend-item--std::before { background: rgba(26,59,76,0.25); }
.chart-legend-item--ce::before  { background: #4EAB83; height: 2.5px; }

/* Default hidden — snap back on class removal */
.caps-panel-visual .chart-fill   { opacity: 0; }
.caps-panel-visual .chart-dot    { opacity: 0; }
.caps-panel-visual .chart-legend { opacity: 0; transform: translateY(4px); }

/* Animated state */
.caps-panel-visual.is-visible .chart-line--std {
  animation: viz-line-draw 1.3s cubic-bezier(0.16,1,0.3,1) 120ms both;
}
.caps-panel-visual.is-visible .chart-line--ce {
  animation: viz-line-draw 1.3s cubic-bezier(0.16,1,0.3,1) 260ms both;
}
.caps-panel-visual.is-visible .chart-fill {
  animation: viz-fade-in 0.6s ease 1100ms both;
}
.caps-panel-visual.is-visible .chart-dot {
  animation: viz-fade-in 0.3s ease 1280ms both;
}
.caps-panel-visual.is-visible .chart-legend {
  animation: viz-fade-up 0.45s ease 800ms both;
}

@keyframes viz-line-draw {
  to { stroke-dashoffset: 0; }
}

/* ── Offer comparison cards (talent panel) ────────────── */
.viz-offer-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.viz-offer-card {
  background: rgba(26,59,76,0.03);
  border: 1px solid rgba(26,59,76,0.10);
  border-radius: 12px;
  padding: 14px;
}
.viz-offer-card--ce {
  background: rgba(78,171,131,0.07);
  border-color: rgba(78,171,131,0.22);
}
.viz-offer-card-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,59,76,0.38);
  margin-bottom: 12px;
  text-align: center;
}
.viz-offer-card--ce .viz-offer-card-label { color: rgba(58,143,106,0.85); }
.viz-offer-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(26,59,76,0.06);
}
.viz-offer-row:last-child { border-bottom: none; }
.viz-offer-component {
  font-size: 9.5px;
  color: rgba(26,59,76,0.40);
  letter-spacing: 0.02em;
  text-align: center;
}
.viz-offer-amount {
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  color: rgba(26,59,76,0.78);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}
.viz-offer-card--ce .viz-offer-row--equity .viz-offer-amount { color: #3A8F6A; }
.viz-offer-row--total .viz-offer-amount { color: var(--ink); font-size: 20px; }
.viz-offer-card--ce .viz-offer-row--total .viz-offer-amount { color: #3A8F6A; }
.viz-offer-badge {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: #3A8F6A;
  background: rgba(78,171,131,0.14);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0;
  vertical-align: middle;
  margin-left: 3px;
}

/* Stacked bar chart — offer comparison */
.viz-offer-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Shared row tracks: bar (1fr, height of tallest), total, name.
     Both columns subgrid into these tracks so their bar bottoms,
     total positions, and name positions all line up at the same Y. */
  grid-template-rows: 1fr auto auto;
  gap: 0 14px;
  align-items: end;
}
.viz-bar-col {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  justify-items: center;
  align-items: end;
  row-gap: 10px;
}
.viz-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(26,59,76,0.10);
}
.viz-bar--ce { border-color: rgba(78,171,131,0.30); }
.viz-bar-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.20);
  overflow: hidden;
  min-height: 0;
}
.viz-bar-seg:last-child { border-bottom: none; }
.viz-bar-seg--other  { background: rgba(26,59,76,0.05); min-height: 36px; }
.viz-bar-seg--equity { background: rgba(26,59,76,0.10); }
.viz-bar-seg--equity-ce { background: rgba(78,171,131,0.16); border-bottom-color: rgba(78,171,131,0.18); }
.viz-bar-seg--base   { background: rgba(26,59,76,0.07); }
.viz-bar-amt {
  font-family: var(--display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(26,59,76,0.70);
  line-height: 1.1;
}
.viz-bar-amt--equity-ce { font-size: 22px; color: #3A8F6A; }
.viz-bar-lbl {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26,59,76,0.35);
  margin-top: 2px;
}
.viz-bar-lbl--ce { color: rgba(58,143,106,0.70); }
.viz-bar-total {
  font-family: var(--display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1;
}
.viz-bar-total--ce { color: #3A8F6A; }
.viz-bar-name {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(26,59,76,0.38);
  margin-top: 4px;
  text-align: center;
}
.viz-bar-name--ce { color: rgba(58,143,106,0.85); }

/* Animate bar columns in */
.caps-panel-visual .viz-bar-col { opacity: 0; transform: translateY(8px); }
.caps-panel-visual.is-visible .viz-bar-col:first-child {
  animation: viz-fade-up 0.65s cubic-bezier(0.16,1,0.3,1) 80ms both;
}
.caps-panel-visual.is-visible .viz-bar-col:last-child {
  animation: viz-fade-up 0.65s cubic-bezier(0.16,1,0.3,1) 200ms both;
}

/* Default hidden for offer cards (legacy) */
.caps-panel-visual .viz-offer-card { opacity: 0; transform: translateY(8px); }
.caps-panel-visual.is-visible .viz-offer-card:first-child {
  animation: viz-fade-up 0.65s cubic-bezier(0.16,1,0.3,1) 80ms both;
}
.caps-panel-visual.is-visible .viz-offer-card:last-child {
  animation: viz-fade-up 0.65s cubic-bezier(0.16,1,0.3,1) 200ms both;
}

@media (max-width: 880px) {
  .caps-tabs { grid-template-columns: 1fr; }
  .caps-tab { justify-content: flex-start; padding: 18px 16px; }
  .caps-tabs { gap: 8px; }
  .caps-tab::after { left: 0; right: 0; }
  .caps-panel-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- The Indexed Manifesto ----------
   A two-column editorial layout: sticky chapter rail on the left, a numbered
   stream of outcomes on the right. Borrows from Linear's Method page and
   Anthropic's research-grade restraint. The numbering IS the visual system. */
.manifesto {
  background: var(--white);
  color: var(--ink);
  padding: clamp(120px, 14vw, 200px) 0 clamp(140px, 16vw, 220px);
  border-top: 1px solid var(--line);
}
.manifesto-head {
  max-width: 880px;
  margin: 0 auto clamp(80px, 10vh, 128px);
  text-align: center;
}
.manifesto-head .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
.manifesto-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.manifesto-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

/* LEFT: sticky chapter rail */
.manifesto-rail {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}
.manifesto-rail-link {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(26,59,76,0.10);
  transition: color .25s ease;
}
.manifesto-rail-link:last-child { border-bottom: 0; }
.manifesto-rail-num {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.manifesto-rail-name {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .25s ease;
}
.manifesto-rail-range {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.manifesto-rail-link.is-active {
  color: var(--accent);
}
.manifesto-rail-link.is-active .manifesto-rail-name {
  color: var(--accent);
}
.manifesto-rail-link.is-active::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  align-self: center;
  justify-self: end;
  margin-right: -2px;
}

/* RIGHT: outcome stream */
.manifesto-stream {
  max-width: 720px;
}

.manifesto-chapter + .manifesto-chapter {
  margin-top: clamp(80px, 10vh, 144px);
}

.manifesto-chapter-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(32px, 4vh, 56px);
}
.manifesto-chapter-num {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
}
.manifesto-chapter-name {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.manifesto-chapter-line {
  display: block;
  height: 1px;
  background: rgba(26,59,76,0.16);
  align-self: center;
  margin-left: 4px;
}

/* Outcome item */
.manifesto-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: clamp(20px, 2.4vh, 28px) 0;
  border-bottom: 1px solid rgba(26,59,76,0.12);
  transition: border-color .4s cubic-bezier(.2,.7,.2,1);
  /* reveal */
  opacity: 0;
  transform: translateY(12px);
}
.manifesto-item.is-revealed {
  opacity: 1;
  transform: none;
  transition: border-color .4s cubic-bezier(.2,.7,.2,1),
              opacity .7s cubic-bezier(.2,.7,.2,1),
              transform .7s cubic-bezier(.2,.7,.2,1);
}
.manifesto-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--accent);
  align-self: start;
  padding-top: 0.5em;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.manifesto-outcome {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

/* Hover: decimal slides right, hairline lights up green */
.manifesto-item:hover { border-bottom-color: var(--accent-2); }
.manifesto-item:hover .manifesto-num { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
  .manifesto-item, .manifesto-num { transition: none !important; }
  .manifesto-item { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .manifesto-layout { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-rail { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .manifesto-rail-link { flex: 1 1 200px; border-bottom: 0; padding: 8px 0; }
  .manifesto-item { grid-template-columns: 44px 1fr; gap: 12px; }
}

/* ---------- The Arc — scroll-driven narrative ----------
   Section is tall; an inner sticky pins to viewport. Each "beat" lives at
   center of the stage. Only the active beat is sharp and visible. Past
   beats fade up; future beats wait below. At step 5 the page literally
   turns: background fades from black to white, headline morphs.
   --------------------------------------------------------------- */
.arc {
  --arc-bg: #000;
  --arc-fg: #ffffff;
  --arc-fg-mute: #ffffff;
  --arc-fg-soft: #ffffff;
  --arc-rule: rgba(255,255,255,0.18);
  --arc-emph: rgba(78,171,131,0.42);
  position: relative;
  height: 280vh; /* 8 beats — tight cadence */
}
.arc[data-phase="turn"] {
  --arc-bg: #ffffff;
  --arc-fg: #000000;
  --arc-fg-mute: #000000;
  --arc-fg-soft: #000000;
  --arc-rule: rgba(0,0,0,0.14);
  --arc-emph: rgba(78,171,131,0.40);
}
.arc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--arc-bg);
  color: var(--arc-fg);
  display: flex;
  flex-direction: column;
  transition:
    background-color .9s cubic-bezier(.2,.7,.2,1),
    color .9s cubic-bezier(.2,.7,.2,1);
}

/* Chapter mark — top-left of stage */
.arc-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(20px, 3vh, 36px) clamp(28px, 5vw, 60px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arc-fg-soft);
  transition: color .9s cubic-bezier(.2,.7,.2,1);
}
.arc-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  color: var(--accent-2);
  min-width: 1.6ch;
  display: inline-flex;
  justify-content: flex-end;
  transition: opacity .35s ease;
}
.arc-num.is-swapping { opacity: 0; }
.arc-rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.arc-name {
  letter-spacing: 0.22em;
  transition: opacity .35s ease;
}
.arc-name.is-swapping { opacity: 0; }

/* Stage where beats live */
.arc-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arc-beat {
  position: absolute;
  top: 44%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 980px;
  padding: 0 clamp(28px, 5vw, 60px);
  transform: translateY(calc(-50% + 24px));
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity .8s cubic-bezier(.2,.7,.2,1),
    transform .8s cubic-bezier(.2,.7,.2,1),
    filter .8s cubic-bezier(.2,.7,.2,1);
  text-align: left;
}
.arc-beat[data-state="active"] {
  opacity: 1;
  transform: translateY(-50%);
  filter: blur(0);
  pointer-events: auto;
}
.arc-beat[data-state="past"] {
  opacity: 0;
  transform: translateY(calc(-50% - 24px));
  filter: blur(8px);
}

/* Headline beat */
.arc-beat--head .arc-h {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
  color: var(--arc-fg);
  text-wrap: balance;
}

/* Body beats */
.arc-beat p {
  font-family: var(--display);
  font-variation-settings: "opsz" 30;
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 32ch;
  color: var(--arc-fg-mute);
}
.arc-hinge {
  font-style: normal;
  color: var(--arc-fg) !important;
}

/* Green emphasis underline */
.arc-emph {
  background-image: linear-gradient(transparent 62%, var(--arc-emph) 62%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 1px;
}

/* Thesis beat — internal staggered cascade once active */
.arc-beat--thesis { padding: 0 clamp(28px, 5vw, 60px); max-width: 980px; }
.arc-thesis-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.arc-thesis-list li {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--arc-fg);
}
.arc-thesis-list li span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  filter: blur(4px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s cubic-bezier(.2,.8,.2,1);
}
.arc-beat--thesis[data-state="active"] li:nth-child(1) span { transition-delay: .05s; opacity: 1; transform: none; filter: none; }
.arc-beat--thesis[data-state="active"] li:nth-child(2) span { transition-delay: .19s; opacity: 1; transform: none; filter: none; }
.arc-beat--thesis[data-state="active"] li:nth-child(3) span { transition-delay: .33s; opacity: 1; transform: none; filter: none; }
.arc-beat--thesis[data-state="active"] li:nth-child(4) span { transition-delay: .47s; opacity: 1; transform: none; filter: none; }
.arc-beat--thesis[data-state="active"] li:nth-child(5) span { transition-delay: .61s; opacity: 1; transform: none; filter: none; }
.arc-beat--thesis[data-state="active"] li:nth-child(6) span { transition-delay: .86s; opacity: 1; transform: none; filter: none; }
.arc-thesis-coda {
  margin-top: 12px !important;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px) !important;
  color: var(--arc-fg-soft) !important;
}

/* Progress indicator — bottom-left */
.arc-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 3vh, 36px) clamp(28px, 5vw, 60px);
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--arc-fg-soft);
  transition: color .9s cubic-bezier(.2,.7,.2,1);
}
.arc-progress-bar {
  position: relative;
  width: clamp(140px, 22vw, 320px);
  height: 1px;
  background: var(--arc-rule);
  overflow: hidden;
}
.arc-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.arc-progress-count { font-variant-numeric: tabular-nums; }
.arc-progress-sep { opacity: 0.35; margin: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  .arc-sticky, .arc-beat, .arc-thesis-list li span, .arc-progress-fill {
    transition: none !important;
  }
  .arc-beat[data-state="active"], .arc-beat--thesis[data-state="active"] li span {
    opacity: 1 !important; filter: none !important; transform: translateY(-50%) !important;
  }
}

@media (max-width: 720px) {
  .arc { height: 420vh; }
  .arc-mark { padding: 24px 24px; }
  .arc-progress { padding: 18px 24px; }
  .arc-beat { padding: 0 24px; }
  .arc-beat--head .arc-h { font-size: clamp(36px, 9vw, 56px); }
  .arc-beat p { font-size: clamp(20px, 5vw, 24px); max-width: 26ch; }
  .arc-thesis-list li { font-size: clamp(28px, 8vw, 44px); }
}

/* ---------- legacy .story styles (kept for backward compat, not used) ---------- */
.story {
  --story-bg: #000;
  --story-fg: #fafafa;
  --story-fg-mute: rgba(255,255,255,0.72);
  --story-fg-soft: rgba(255,255,255,0.45);
  --story-rule: rgba(255,255,255,0.18);
  --story-emph: rgba(78,171,131,0.35);
  position: relative;
  padding: clamp(110px, 16vh, 180px) 0 clamp(100px, 14vh, 160px);
  overflow: hidden;
  background: var(--story-bg);
  color: var(--story-fg);
  transition:
    background-color .9s cubic-bezier(.2,.7,.2,1),
    color .9s cubic-bezier(.2,.7,.2,1);
}
.story[data-state="turn"] {
  --story-bg: #fff;
  --story-fg: var(--ink);
  --story-fg-mute: #2b3037;
  --story-fg-soft: var(--ink-soft);
  --story-rule: rgba(14,18,22,0.10);
  --story-emph: rgba(78,171,131,0.35);
}
.story-inner {
  max-width: 880px;
}

/* Chapter mark */
.story-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 56px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--story-fg-soft);
  transition: color .9s cubic-bezier(.2,.7,.2,1);
}
.story-mark-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  color: var(--accent-2);
  min-width: 1.6ch;
  display: inline-flex;
  justify-content: flex-end;
  transition: opacity .35s ease, transform .35s ease;
}
.story-mark-rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.story-mark-name {
  letter-spacing: 0.22em;
  position: relative;
  display: inline-block;
  transition: opacity .35s ease, transform .35s ease;
}

/* Headline — both states layered, only one visible at a time */
.story-headline {
  position: relative;
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 56px;
  max-width: 18ch;
  text-wrap: balance;
}
.story-h {
  display: block;
}
.story-h--turn {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}
.story-h--tension {
  opacity: 1;
  transform: none;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
}
.story-h--turn {
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1) .25s, transform .55s cubic-bezier(.2,.7,.2,1) .25s;
}
.story[data-state="turn"] .story-h--tension {
  opacity: 0;
  transform: translateY(-0.4em);
  transition-delay: 0s;
}
.story[data-state="turn"] .story-h--turn {
  opacity: 1;
  transform: none;
}

/* Body */
.story-body {
  position: relative;
  max-width: 62ch;
}
.story-pane {
  transition: opacity .55s cubic-bezier(.2,.7,.2,1);
}
.story-pane--tension {
  position: relative;
  opacity: 1;
}
.story-pane--turn {
  position: absolute;
  inset: 0 0 auto 0;
  pointer-events: none;
  opacity: 0;
}
.story[data-state="turn"] .story-pane--tension {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}
.story[data-state="turn"] .story-pane--turn {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  transition-delay: .35s;
}

.story-pane p {
  font-family: var(--display);
  font-variation-settings: "opsz" 30;
  font-weight: 400;
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin: 0 0 28px;
  color: var(--story-fg-mute);
  transition: color .9s cubic-bezier(.2,.7,.2,1);
}
.story-hinge {
  margin-top: 44px !important;
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 24px) !important;
  color: var(--story-fg) !important;
}

/* Green emphasis underline */
.story-emph {
  background-image: linear-gradient(transparent 62%, var(--story-emph) 62%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 1px;
  transition: background-image .9s ease;
}

/* Thesis — staggered reveal once turn state is active */
.story-thesis {
  list-style: none;
  margin: clamp(56px, 8vh, 96px) 0 0;
  padding: clamp(40px, 5vh, 64px) 0 0;
  border-top: 1px solid var(--story-rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story-thesis li {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--story-fg);
}
.story-thesis li span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.story[data-state="turn"] .story-thesis li:nth-child(1) span { transition-delay: .65s; opacity: 1; transform: none; }
.story[data-state="turn"] .story-thesis li:nth-child(2) span { transition-delay: .80s; opacity: 1; transform: none; }
.story[data-state="turn"] .story-thesis li:nth-child(3) span { transition-delay: .95s; opacity: 1; transform: none; }
.story[data-state="turn"] .story-thesis li:nth-child(4) span { transition-delay: 1.10s; opacity: 1; transform: none; }
.story[data-state="turn"] .story-thesis li:nth-child(5) span { transition-delay: 1.40s; opacity: 1; transform: none; }
.story-thesis-coda {
  margin-top: 16px !important;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px) !important;
  color: var(--story-fg-soft) !important;
}

/* The flip button — premium toggle */
.story-controls {
  margin-top: clamp(56px, 7vh, 96px);
}
.story[data-state="turn"] .story-controls {
  margin-top: clamp(64px, 8vh, 110px);
}
.story-flip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid var(--story-rule);
  color: var(--story-fg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color .35s ease,
    color .35s ease,
    background-color .35s ease,
    transform .35s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.story-flip:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-1px);
}
.story-flip-track {
  position: relative;
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  min-width: 14ch;
}
.story-flip-text {
  display: block;
  white-space: nowrap;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.story-flip-text--reset {
  position: absolute;
  inset: 0;
  transform: translateY(110%);
  opacity: 0;
}
.story[data-state="turn"] .story-flip-text--prompt {
  transform: translateY(-110%);
  opacity: 0;
}
.story[data-state="turn"] .story-flip-text--reset {
  transform: translateY(0);
  opacity: 1;
}
.story-flip-icon {
  display: inline-flex;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.story[data-state="turn"] .story-flip-icon {
  transform: rotate(180deg);
}

/* Scroll reveal on first entry */
[data-reveal-root].story .story-mark,
[data-reveal-root].story .story-headline,
[data-reveal-root].story .story-pane--tension p,
[data-reveal-root].story .story-controls {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
[data-reveal-root].story.is-revealed .story-mark { transition-delay: .00s; opacity: 1; transform: none; }
[data-reveal-root].story.is-revealed .story-headline { transition-delay: .12s; opacity: 1; transform: none; }
[data-reveal-root].story.is-revealed .story-pane--tension p:nth-child(1) { transition-delay: .26s; opacity: 1; transform: none; }
[data-reveal-root].story.is-revealed .story-pane--tension p:nth-child(2) { transition-delay: .40s; opacity: 1; transform: none; }
[data-reveal-root].story.is-revealed .story-pane--tension p:nth-child(3) { transition-delay: .54s; opacity: 1; transform: none; }
[data-reveal-root].story.is-revealed .story-controls { transition-delay: .70s; opacity: 1; transform: none; }
[data-reveal-root].story[data-state="turn"] .story-pane--tension p {
  /* in turn state, tension paragraphs no longer animate via reveal — they just hide */
  opacity: 0;
  transform: none;
  transition: opacity .55s ease;
}

@media (prefers-reduced-motion: reduce) {
  .story, .story * { transition: none !important; animation: none !important; }
  .story-thesis li span { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .story { padding: 80px 0 72px; }
  .story-mark { margin-bottom: 32px; }
  .story-headline { margin-bottom: 36px; max-width: 16ch; }
  .story-controls { margin-top: 48px; }
}

/* ---------- Customer flip cards ---------- */
.cases {
  background: var(--bg);
  color: var(--white);
  padding: 110px 0;
}
.cases-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.cases-head .eyebrow { margin: 0 0 14px; color: var(--accent-2); }
.cases-head h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--white);
  text-wrap: balance;
}

/* 3-up grid */
.cases-grid {
  display: grid;
  /* Only 2 case studies — keep each card the same width it had in the
     old 3-column layout (1/3 of the available row, minus gap), and
     center the pair within the container with breathing room. */
  grid-template-columns: repeat(2, minmax(0, calc((100% - 36px) / 3)));
  justify-content: center;
  gap: 56px;
}
.case { perspective: 1600px; perspective-origin: center; }

.case-tile {
  --case-radius: 18px;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6.4;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.25,.7,.2,1);
  border-radius: var(--case-radius);
}
.case-tile:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 6px; }
.case-tile[aria-pressed="true"] { transform: rotateY(180deg); }

.case-face {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 2.4vw, 36px);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--case-radius);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-tile:hover .case-face--front {
  border-color: rgba(14,18,22,0.22);
  background: #ffffff;
  box-shadow: 0 30px 60px -30px rgba(14,18,22,0.18);
}
.case-face--back {
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255,255,255,0.14);
  transform: rotateY(180deg);
}

/* Per-customer color mood — subtle radial wash over the ink base */
.case[data-color="moss"] .case-face--back {
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(122,142,94,0.28), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(62,79,51,0.22), transparent 60%),
    var(--ink);
}
.case[data-color="rust"] .case-face--back {
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(179,104,63,0.28), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(106,58,37,0.22), transparent 60%),
    var(--ink);
}
.case[data-color="slate"] .case-face--back {
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(117,130,144,0.26), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(59,69,77,0.22), transparent 60%),
    var(--ink);
}
.case[data-color="indigo"] .case-face--back {
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(110,127,168,0.26), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(31,39,66,0.30), transparent 60%),
    var(--ink);
}

/* FRONT — kicker / hero stat / CTA */
.case-front-kicker {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.case-hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin: clamp(16px, 2vh, 24px) 0;
}
.case-hero-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(64px, 7.5vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-feature-settings: "tnum", "lnum";
  font-variant-numeric: tabular-nums lining-nums;
}
.case-hero-unit {
  font-size: 0.55em;
  vertical-align: 0.25em;
  color: var(--accent);
  margin-left: 0.04em;
  letter-spacing: 0;
  font-feature-settings: normal;
}
.case-hero-divider {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent-2);
}
.case-hero-label {
  font-family: var(--sans);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 30ch;
}

.case-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: flex-start;
  transition: gap .25s ease;
}
.case-tile:hover .case-action { gap: 12px; }

/* BACK */
.case-back-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.20);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.case-back-org { color: var(--white); letter-spacing: 0.14em; }
.case-back-tag { color: var(--accent-2); }

/* Optional: pull-quote on back (Outset only) */
.case-back-quote {
  margin: 4px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.20);
}
.case-back-quote p {
  font-family: var(--display);
  font-variation-settings: "opsz" 30;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(14.5px, 1.05vw, 16.5px);
  line-height: 1.42;
  margin: 0 0 10px;
  color: var(--white);
}
.case-back-quote footer {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-style: normal;
}
.case-back-quote .case-name { color: var(--white); font-size: 12px; font-weight: 600; }
.case-back-quote .case-role { color: var(--white); font-size: 11.5px; letter-spacing: 0.04em; }

.case-stats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.20);
}
.case-stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-stat-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--white);
  font-feature-settings: "tnum";
}
.case-stat-num small {
  font-size: 0.5em;
  color: var(--accent-2);
  font-weight: 500;
  margin-left: 2px;
}
.case-stat-label {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--white);
  max-width: 32ch;
}

.case-back-mini {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 16px;
}

.case-back-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.20);
  font-size: 11px;
}
.case-back-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.30);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.case-back-link:hover { border-color: var(--accent-2); color: var(--accent-2); }
.case-action--reverse {
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
}

/* Reduced motion: clean crossfade */
@media (prefers-reduced-motion: reduce) {
  .case-tile { transition: none; }
  .case-tile[aria-pressed="true"] { transform: none; }
  .case-face { transition: opacity .35s ease; }
  .case-face--back { opacity: 0; transform: none; }
  .case-tile[aria-pressed="true"] .case-face--front { opacity: 0; }
  .case-tile[aria-pressed="true"] .case-face--back  { opacity: 1; }
}

@media (max-width: 980px) {
  .cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-tile { aspect-ratio: auto; min-height: 480px; }
  /* Center showcase content (kicker, big number, label, action) on mobile.
     Keep the back-face paragraph (.case-back-mini) left-aligned — it's
     reading content. */
  .case-face--front { align-items: center; text-align: center; }
  .case-hero-stat { align-items: center; }
  .case-hero-label { max-width: 32ch; }
  .case-hero-divider { margin: 0 auto; }
  .case-action { align-self: center; }
  .case-stats { text-align: center; }
}

/* ---------- Impact (video tile grid) ---------- */
.impact {
  background: var(--bg);
  color: var(--white);
  padding: 110px 0;
}
.impact-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
}
.impact-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 16ch;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.impact-card {
  background: #15130f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.impact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
}
.impact-thumb {
  aspect-ratio: 16/10;
  position: relative;
}
.impact-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.18);
  transition: background .25s ease;
}
.impact-card:hover .impact-thumb::after { background: rgba(0,0,0,0.05); }
.impact-thumb[data-tone="indigo"] {
  background: linear-gradient(135deg, #1f2742 0%, #3b4a73 60%, #6e7fa8 100%);
}
.impact-thumb[data-tone="rust"] {
  background: linear-gradient(135deg, #2a1810 0%, #6a3a25 50%, #b3683f 100%);
}
.impact-thumb[data-tone="moss"] {
  background: linear-gradient(135deg, #1c2418 0%, #3e4f33 50%, #7a8e5e 100%);
}
.impact-thumb[data-tone="slate"] {
  background: linear-gradient(135deg, #1a1e22 0%, #3b454d 50%, #758290 100%);
}
.impact-meta {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.impact-client {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
}
.impact-meta p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
}

/* ---------- By the numbers ----------
   Apple-inspired: monumental Fraunces numerals, Navy prefix/unit baseline-
   shifted up, hairline vertical dividers, single staggered fade-and-rise. */
.stats {
  background: var(--white);
  color: var(--ink);
  padding: clamp(96px, 12vw, 192px) 0;
  border-top: 1px solid var(--line);
}
.stats-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent); /* Carver Edison Navy */
  margin: 0 0 64px;
}
.stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 0 clamp(24px, 3vw, 48px);
  border-left: 1px solid rgba(26, 59, 76, 0.12);
  display: flex;
  flex-direction: column;
  /* scroll-driven reveal — set per-item delay via --i */
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .9s cubic-bezier(.2,.8,.2,1),
    transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stats[data-reveal-root].is-revealed .stat {
  opacity: 1;
  transform: none;
}

.stat-figure {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(64px, 7.5vw, 128px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  font-feature-settings: "tnum", "lnum";
  font-variant-numeric: tabular-nums lining-nums;
  /* fixed cap height so every figure occupies the same vertical box —
     the labels below then start at the same Y on every stat */
  height: 1em;
  margin-bottom: 0;
}
.stat-prefix {
  font-size: 0.55em;
  vertical-align: 0.45em;
  color: var(--accent); /* Navy */
  margin-right: 0.02em;
  font-feature-settings: normal;
}
.stat-unit {
  font-size: 0.45em;
  vertical-align: 0.7em;
  color: var(--accent); /* Navy */
  margin-left: 0.05em;
  letter-spacing: 0.02em;
  font-feature-settings: normal;
}

.stat-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #0a0a0a;
  margin: 32px 0 6px;
  letter-spacing: -0.005em;
}
.stat-desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.55);
  margin: 0;
  max-width: 24ch;
}

@media (prefers-reduced-motion: reduce) {
  .stat { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) {
    border-left: 1px solid rgba(26, 59, 76, 0.12);
    padding-left: clamp(24px, 5vw, 48px);
  }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .stats-eyebrow { text-align: center; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(26, 59, 76, 0.12); padding-top: 40px; text-align: center; }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat:nth-child(even) { border-left: 0; padding-left: 0; }
  .stat-figure { justify-content: center; }
  .stat-desc { margin-left: auto; margin-right: auto; }
}

/* ---------- Security ---------- */
.security {
  background: var(--bg-cream);
  padding: 120px 0;
}
.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.security h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.security .lede {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 50ch;
  margin: 0;
}
.security-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.badge {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 22px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.badge::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.badge[data-color="moss"]::before   { background: #7a8e5e; box-shadow: 0 0 0 4px rgba(122,142,94,0.16); }
.badge[data-color="indigo"]::before { background: #6e7fa8; box-shadow: 0 0 0 4px rgba(110,127,168,0.18); }
.badge[data-color="slate"]::before  { background: #758290; box-shadow: 0 0 0 4px rgba(117,130,144,0.18); }
.badge[data-color="rust"]::before   { background: #b3683f; box-shadow: 0 0 0 4px rgba(179,104,63,0.16); }
.badge:hover { transform: translateY(-2px); }
.badge[data-color="moss"]:hover   { border-color: #7a8e5e; }
.badge[data-color="indigo"]:hover { border-color: #6e7fa8; }
.badge[data-color="slate"]:hover  { border-color: #758290; }
.badge[data-color="rust"]:hover   { border-color: #b3683f; }
.badge span {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.badge small {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Buyer fork (CFO / CHRO) ---------- */
.fork {
  background: var(--white);
  padding: clamp(96px, 12vw, 160px) 0 clamp(0px, 0vw, 0px);
  border-top: 1px solid var(--line);
}
.fork-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 auto clamp(64px, 8vh, 96px);
  max-width: 18ch;
  color: var(--ink);
  text-wrap: balance;
}
.fork-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--accent); /* navy hairline framing */
  border-bottom: 1px solid var(--accent);
}
.fork-panel {
  position: relative;
  padding: clamp(48px, 6vw, 96px) clamp(28px, 4.5vw, 72px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 28px);
  min-height: clamp(420px, 48vh, 540px);
  transition: background-color .45s cubic-bezier(.2,.7,.2,1);
}
.fork-panel--dark {
  background: var(--accent); /* Navy */
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.10);
}
.fork-panel--light {
  background: var(--white);
  color: var(--accent); /* Navy text */
}

/* Eyebrow — only green on the LIGHT (CHRO) side; dark side uses muted white */
.fork-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fork-panel--dark  .fork-eyebrow { color: rgba(255,255,255,0.62); }
.fork-panel--light .fork-eyebrow { color: var(--accent-2); /* Green */ }

.fork-h {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  max-width: 18ch;
}
.fork-panel--dark  .fork-h { color: var(--white); }
.fork-panel--light .fork-h { color: var(--accent); }

.fork-body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  margin: 0;
  max-width: 38ch;
  transition: opacity .35s cubic-bezier(.2,.7,.2,1);
}
.fork-panel--dark  .fork-body { color: rgba(255,255,255,0.82); }
.fork-panel--light .fork-body { color: rgba(26, 59, 76, 0.78); }

.fork-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.fork-panel--dark  .fork-cta { color: var(--white); }
.fork-panel--light .fork-cta { color: var(--accent); }
.fork-arrow {
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.fork-panel:hover .fork-arrow { transform: translateX(6px); }

/* Panel hover: subtle inner highlight, no lift */
.fork-panel--dark:hover {
  background: #1f4256; /* slightly lighter navy on hover */
}
.fork-panel--light:hover {
  background: #fafafa;
}
.fork-panel:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -8px;
}

/* Peer dim — when one panel is hovered, the other's body softens */
.fork-grid[data-peer="cfo"]  .fork-panel--light .fork-body,
.fork-grid[data-peer="chro"] .fork-panel--dark  .fork-body {
  opacity: 0.45;
}

/* Reveal */
[data-reveal-root].fork .fork-title,
[data-reveal-root].fork .fork-panel {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal-root].fork.is-revealed .fork-title { opacity: 1; transform: none; transition-delay: 0s; }
[data-reveal-root].fork.is-revealed .fork-panel:nth-child(1) { opacity: 1; transform: none; transition-delay: .15s; }
[data-reveal-root].fork.is-revealed .fork-panel:nth-child(2) { opacity: 1; transform: none; transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  .fork-arrow, .fork-panel, .fork-body { transition: none !important; }
  [data-reveal-root].fork .fork-title,
  [data-reveal-root].fork .fork-panel { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .fork-grid { grid-template-columns: 1fr; }
  .fork-panel--dark { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
  .fork-panel { min-height: auto; }
}

/* ---------- The mechanism, in three forms ---------- */
.mech {
  background: var(--white);
  color: var(--ink);
  padding: clamp(96px, 12vw, 160px) 0;
}

/* Notched rule signature: a single horizontal hairline that threads through
   the section title. The title sits over the rule with white padding masking
   the line behind it. */
.mech-eyebrow-wrap {
  position: relative;
  margin: 0 0 clamp(56px, 7vh, 96px);
  height: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mech-rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(26, 59, 76, 0.20);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.mech.is-revealed .mech-rule {
  transform: scaleX(1);
}
.mech-eyebrow {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 0 clamp(20px, 3vw, 32px);
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -0.01em;
  color: var(--accent); /* Navy */
}

/* Trio grid */
.mech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.mech-form {
  position: relative;
  padding: clamp(32px, 4vh, 56px) clamp(28px, 3vw, 48px) clamp(40px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid rgba(26, 59, 76, 0.12);
  /* reveal */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1),
    transform .7s cubic-bezier(.2,.7,.2,1);
}
.mech-form:first-child { border-left: 0; padding-left: 0; }
.mech-form:last-child { padding-right: 0; }
.mech.is-revealed .mech-form:nth-child(1) { transition-delay: .35s; opacity: 1; transform: none; }
.mech.is-revealed .mech-form:nth-child(2) { transition-delay: .45s; opacity: 1; transform: none; }
.mech.is-revealed .mech-form:nth-child(3) { transition-delay: .55s; opacity: 1; transform: none; }

.mech-marker {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--accent-2); /* Green */
}

.mech-name {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent); /* Navy */
  margin: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  text-wrap: balance;
}

.mech-body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: rgba(26, 59, 76, 0.78);
  margin: 0;
  max-width: 36ch;
  flex: 1;
}

.mech-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2); /* Green */
  text-decoration: none;
  align-self: flex-start;
  transition: gap .35s cubic-bezier(.2,.7,.2,1);
}
.mech-cta svg {
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

/* Hover: name shifts up 1px, arrow translates 4px */
.mech-form:hover .mech-name { transform: translateY(-1px); }
.mech-form:hover .mech-cta svg { transform: translateX(4px); }
.mech-form:hover .mech-cta { gap: 12px; }

/* Per-product color mood — subtle top-edge accent and hover glow */
.mech-form[data-color] { position: relative; }
.mech-form[data-color]::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(28px, 3vw, 48px);
  right: clamp(28px, 3vw, 48px);
  height: 2px;
  border-radius: 2px;
  transition: opacity .35s ease;
  opacity: 0.7;
}
.mech-form[data-color="moss"]::before   { background: linear-gradient(90deg, #7a8e5e, #3e4f33); }
.mech-form[data-color="indigo"]::before { background: linear-gradient(90deg, #6e7fa8, #1f2742); }
.mech-form[data-color="rust"]::before   { background: linear-gradient(90deg, #b3683f, #6a3a25); }
.mech-form[data-color]:first-child::before { left: 0; }
.mech-form[data-color]:last-child::before { right: 0; }
.mech-form[data-color="moss"]:hover {
  background: radial-gradient(60% 80% at 50% 0%, rgba(122,142,94,0.08), transparent 65%);
}
.mech-form[data-color="indigo"]:hover {
  background: radial-gradient(60% 80% at 50% 0%, rgba(110,127,168,0.09), transparent 65%);
}
.mech-form[data-color="rust"]:hover {
  background: radial-gradient(60% 80% at 50% 0%, rgba(179,104,63,0.08), transparent 65%);
}
.mech-form[data-color]:hover::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mech-rule, .mech-form, .mech-name, .mech-cta, .mech-cta svg {
    transition: none !important;
  }
  .mech-rule { transform: scaleX(1); }
  .mech-form { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .mech-grid { grid-template-columns: 1fr; }
  .mech-form {
    border-left: 0;
    padding: 32px 0;
    border-top: 1px solid rgba(26, 59, 76, 0.12);
  }
  .mech-form:first-child { border-top: 0; padding-top: 0; }
  .mech-form:last-child { padding-bottom: 0; }
}

/* ---------- Security — Attestation Ledger ---------- */
.security {
  background: var(--white);
  color: var(--ink);
  padding: clamp(96px, 12vw, 160px) 0 clamp(96px, 12vw, 144px);
  border-top: 1px solid var(--line);
}

/* Header block */
.sec-head {
  max-width: 880px;
  margin: 0 0 clamp(64px, 8vh, 96px);
}
.sec-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 24px;
}
.sec-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.sec-lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 60ch;
}
.sec-counter {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.sec-counter [data-days],
.sec-counter [data-next] {
  color: var(--accent-2);
  font-weight: 600;
}

/* Credential strip — 3-column row, no cards */
.sec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: clamp(40px, 5vh, 60px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 5vh, 64px);
}
.sec-strip-col {
  padding: 0 clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec-strip-col:first-child {
  border-left: 0;
}
.sec-strip-mark {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-strip-scope {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* Ledger table */
.sec-ledger {
  display: flex;
  flex-direction: column;
}
.sec-ledger-head,
.sec-ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr 1fr auto;
  gap: clamp(18px, 2.5vw, 32px);
  align-items: center;
  padding: 18px 16px;
}
.sec-ledger-head {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding-bottom: 14px;
}
.sec-ledger-action-head { text-align: right; }

.sec-ledger-row {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color .25s ease;
  opacity: 0;
  transform: translateY(6px);
  transition-property: opacity, transform, background-color;
  transition-duration: .7s, .7s, .25s;
  transition-timing-function: cubic-bezier(.2,.7,.2,1), cubic-bezier(.2,.7,.2,1), ease;
}
.sec-ledger-row.is-revealed {
  opacity: 1;
  transform: none;
}
.sec-ledger-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background-color .25s ease;
}
.sec-ledger-row:hover {
  background-color: rgba(78,171,131,0.06);
}
.sec-ledger-row:hover::before {
  background-color: var(--accent-2);
}
.sec-ledger-framework {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.sec-ledger-scope,
.sec-ledger-auditor {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--white);
}
.sec-ledger-date {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 13.5px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.sec-ledger-action {
  justify-self: end;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .2s ease;
}
.sec-ledger-action:hover { border-bottom-color: var(--accent-2); }

/* Footer link */
.sec-foot {
  margin-top: clamp(40px, 5vh, 64px);
  text-align: right;
}
.sec-foot-link {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.30);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.sec-foot-link:hover { border-bottom-color: var(--accent-2); }

@media (prefers-reduced-motion: reduce) {
  .sec-ledger-row { opacity: 1; transform: none; transition: background-color .2s ease; }
}

@media (max-width: 880px) {
  .sec-head { text-align: center; }
  .sec-title, .security h2 { max-width: none; }
  .sec-lede { margin-left: auto; margin-right: auto; }
  .sec-strip { grid-template-columns: 1fr; row-gap: 28px; }
  .sec-strip-col { border-left: 0; padding-left: 0; padding-top: 28px; border-top: 1px solid var(--line); align-items: center; text-align: center; }
  .sec-strip-col:first-child { padding-top: 0; border-top: 0; }
  .sec-ledger-head { display: none; }
  .sec-ledger-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
    padding: 18px 0;
  }
  .sec-ledger-framework { grid-column: 1 / 2; font-size: 17px; }
  .sec-ledger-date { grid-column: 2 / 3; justify-self: end; }
  .sec-ledger-scope { grid-column: 1 / 2; opacity: 0.7; font-size: 12.5px; }
  .sec-ledger-auditor { grid-column: 2 / 3; justify-self: end; opacity: 0.7; font-size: 12.5px; }
  .sec-ledger-action { grid-column: 1 / 3; justify-self: start; margin-top: 6px; }
  .sec-foot { text-align: left; }
}

/* ---------- Final CTA ---------- */
.cta-final {
  background: var(--bg);
  color: var(--white);
  padding: 130px 0;
  text-align: center;
}
.cta-final h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.08;
  margin: 0 0 36px;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
  background: #07060a;
  color: #fff;
  padding: 80px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 60px;
  padding-bottom: 60px;
}
.brand--light { color: var(--white); }
.footer .footer-tag {
  margin: 28px 0 0;
  font-size: 14px;
  color: #fff;
  max-width: 32ch;
  text-align: left;
  hyphens: manual;
  word-break: normal;
  overflow-wrap: normal;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: #fff;
}
.footer-cols a:hover { color: var(--accent-2); }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  font-size: 13px;
}
.footer-base-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: rgba(255,255,255,0.6); }
.footer-social a:hover { color: var(--white); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  background: rgba(0,0,0,0.18);
}
.footer-legal-inner {
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.footer-legal-inner p + p {
  margin-top: 8px;
}

/* ===========================================================
   Diagnostic page
   =========================================================== */

/* Light nav variant for diagnostic / inner pages */
.nav--light {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav--light .brand { color: var(--ink); }
.brand-logo--dark { filter: brightness(0); }
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover { background: #25201a; color: var(--white); }
.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost-dark:hover { border-color: var(--ink); }
.page-diagnostic { background: var(--white); }
.page-diagnostic .dx-intro-card,
.page-diagnostic .dx-score-card,
.page-diagnostic .dx-dim,
.page-diagnostic .dx-recs li {
  background: #fafaf7;
}
.page-diagnostic .dx-options button {
  background: #fafaf7;
}
.page-diagnostic .dx-options button.is-active {
  background: var(--ink);
}
.page-diagnostic .dx-q input[type="email"],
.page-diagnostic .dx-q input[type="text"] {
  background: #fafaf7;
}
.page-diagnostic .nav-links a { color: var(--ink); opacity: 0.78; }
.page-diagnostic .nav-links a:hover,
.page-diagnostic .nav-links a[aria-current="page"] { opacity: 1; }
.page-diagnostic .nav-links a[aria-current="page"] {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Intro */
.dx-intro {
  padding: 80px 0 90px;
}
.dx-intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}
.dx-intro h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 14px 0 22px;
  text-wrap: balance;
}
.dx-intro .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-mute);
  margin: 0 0 32px;
  max-width: 56ch;
}
.dx-intro-points {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 10px;
}
.dx-intro-points li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--ink);
  align-items: center;
}
.dx-intro-points li span {
  font-family: var(--display);
  color: var(--accent-2);
  font-size: 14px;
  letter-spacing: 0.02em;
  width: 22px;
}
.dx-fineprint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

.dx-intro-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  position: sticky;
  top: 100px;
}
.dx-intro-card h3 {
  font-family: var(--display);
  font-weight: 460;
  font-size: 22px;
  margin: 18px 0 14px;
  letter-spacing: -0.01em;
}
.dx-intro-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.dx-intro-card li {
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}
.dx-intro-card li::before {
  content: "→";
  color: var(--accent-2);
  position: absolute;
  left: 0;
}
.dx-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dx-card-meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dx-tier-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}
.dx-tier-pill.is-leading     { background: #2f5b41; }
.dx-tier-pill.is-established { background: #3b5b8a; }
.dx-tier-pill.is-developing  { background: #8a6a2f; }
.dx-tier-pill.is-emerging    { background: #8a3f2f; }

/* Assessment */
.dx-assessment { padding: 60px 0 100px; }
.dx-progress {
  margin-bottom: 36px;
}
.dx-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(20,17,13,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.dx-progress-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  width: 0%;
  transition: width .3s ease;
}
.dx-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
}
.dx-restart {
  background: none;
  border: 0;
  color: var(--ink-mute);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.dx-restart:hover { color: var(--ink); }

.dx-step legend {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.015em;
  padding: 0;
  margin: 0;
  color: var(--ink);
}
.dx-step {
  border: 0;
  padding: 0;
  margin: 0;
}
.dx-step-sub {
  font-size: 16px;
  color: var(--ink-mute);
  margin: 8px 0 36px;
  max-width: 60ch;
}
.dx-q {
  margin-bottom: 30px;
  max-width: 760px;
}
.dx-q label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.dx-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dx-options button {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dx-options button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.dx-options button.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.dx-q input[type="email"],
.dx-q input[type="text"] {
  display: block;
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.dx-q input:focus {
  outline: 0;
  border-color: var(--ink);
}

.dx-nav {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.dx-nav .btn--dark { margin-left: auto; }

/* Results */
.dx-results { padding: 70px 0 100px; }
.dx-results-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.dx-results-head h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 8px 0 18px;
}
.dx-results-head h1 em {
  font-style: italic;
  color: var(--accent-2);
}
.dx-results-head h1.is-leading em     { color: #2f5b41; }
.dx-results-head h1.is-established em { color: #3b5b8a; }
.dx-results-head h1.is-developing em  { color: #8a6a2f; }
.dx-results-head h1.is-emerging em    { color: #8a3f2f; }
.dx-results-head .lede {
  font-size: 17px;
  color: var(--ink-mute);
  margin: 0;
}

.dx-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.dx-score-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(72px, 10vw, 140px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.dx-score-num small {
  font-size: 0.28em;
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: 4px;
}
.dx-score-meta {
  text-align: right;
}
.dx-percentile-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dx-percentile-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}
.dx-segment {
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 6px;
}

.dx-section-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.015em;
  margin: 60px 0 24px;
}

.dx-dim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dx-dim {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.dx-dim header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dx-dim h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}
.dx-verdict {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.dx-verdict.is-good  { background: #e1efe6; color: #2f5b41; }
.dx-verdict.is-watch { background: #f3e9d4; color: #8a6a2f; }
.dx-verdict.is-fix   { background: #f1dad3; color: #8a3f2f; }

.dx-dim-bar {
  width: 100%;
  height: 6px;
  background: rgba(20,17,13,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.dx-dim-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.dx-dim-score {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.dx-dim-score small {
  font-size: 14px;
  color: var(--ink-soft);
  font-family: var(--sans);
  margin-left: 4px;
}

.dx-recs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  counter-reset: dx-rec;
}
.dx-recs li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px 24px 76px;
  position: relative;
}
.dx-recs li::before {
  counter-increment: dx-rec;
  content: counter(dx-rec, decimal-leading-zero);
  position: absolute;
  left: 28px;
  top: 24px;
  font-family: var(--display);
  font-size: 24px;
  color: var(--accent-2);
  letter-spacing: -0.01em;
}
.dx-recs h4 {
  font-family: var(--display);
  font-weight: 460;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.dx-recs p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mute);
}

.dx-cta {
  margin-top: 70px;
  background: var(--ink);
  color: var(--white);
  border-radius: 18px;
  padding: 56px 60px;
  text-align: center;
}
.dx-cta h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.dx-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  max-width: 60ch;
  margin: 0 auto 28px;
}
.dx-cta-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.dx-cta .btn--dark { background: var(--white); color: var(--ink); }
.dx-cta .btn--dark:hover { background: var(--accent); }
.dx-cta .btn--ghost-dark { color: var(--white); border-color: rgba(255,255,255,0.3); }
.dx-cta .btn--ghost-dark:hover { border-color: var(--white); }

@media (max-width: 880px) {
  .dx-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .dx-intro-card { position: static; }
  .dx-dim-grid { grid-template-columns: 1fr; }
  .dx-score-card { flex-direction: column; text-align: center; }
  .dx-score-meta { text-align: center; }
  .dx-cta { padding: 36px 24px; }
}

@media print {
  .nav, .footer, .dx-cta-actions, .dx-restart, .dx-nav { display: none !important; }
  body { background: #fff; }
}

/* ===========================================================
   Case study detail pages
   =========================================================== */
.page-study { background: var(--white); }
.page-study .nav--light { background: var(--white); border-bottom: 1px solid var(--line); }
.page-study .nav-links a[aria-current="page"] {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Hero */
.study-hero {
  padding: clamp(80px, 10vh, 140px) 0 clamp(40px, 5vh, 64px);
}
.study-hero-inner { max-width: 920px; }
.study-eyebrow {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
}
.study-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.study-lede {
  font-family: var(--display);
  font-variation-settings: "opsz" 30;
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  max-width: 56ch;
}

/* Customer meta strip */
.study-meta-strip {
  padding: clamp(24px, 4vh, 40px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.study-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}
.study-meta > div {
  padding: 0 clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--line);
}
.study-meta > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.study-meta dt {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.study-meta dd {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* Results stat row */
.study-results {
  padding: clamp(80px, 10vh, 120px) 0;
}
.study-results .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 40px;
}
.study-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}
.study-stats li {
  padding: 0 clamp(20px, 3vw, 40px);
  border-left: 1px solid rgba(26,59,76,0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.study-stats li:first-child {
  border-left: 0;
  padding-left: 0;
}
.study-stat-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #0a0a0a;
  font-feature-settings: "tnum", "lnum";
  font-variant-numeric: tabular-nums lining-nums;
}
.study-stat-prefix {
  font-size: 0.55em;
  vertical-align: 0.45em;
  color: var(--accent);
  margin-right: 0.02em;
  font-feature-settings: normal;
}
.study-stat-unit {
  font-size: 0.45em;
  vertical-align: 0.7em;
  color: var(--accent);
  margin-left: 0.05em;
  font-feature-settings: normal;
}
.study-stat-label {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 28ch;
}

/* Body narrative */
.study-body {
  padding: clamp(40px, 5vh, 80px) 0 clamp(80px, 10vh, 120px);
  border-top: 1px solid var(--line);
}
.study-body-inner {
  max-width: 740px;
}
.study-section + .study-section {
  margin-top: clamp(64px, 8vh, 96px);
}
.study-section-mark {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 16px;
}
.study-section-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 26ch;
  text-wrap: balance;
}
.study-prose p {
  font-family: var(--display);
  font-variation-settings: "opsz" 30;
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 22px;
}
.study-prose p:last-child { margin-bottom: 0; }

/* Pull quote */
.study-pullquote {
  margin: clamp(64px, 8vh, 96px) 0;
  padding: clamp(40px, 5vh, 56px) clamp(32px, 4vw, 56px);
  background: #fafaf7;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 12px 12px 0;
}
.study-pullquote p {
  font-family: var(--display);
  font-variation-settings: "opsz" 30;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 22px;
}
.study-pullquote footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
}
.study-pullquote-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.study-pullquote-role {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Reveal on body */
[data-reveal-root].study-body .study-section,
[data-reveal-root].study-body .study-pullquote {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
[data-reveal-root].study-body.is-revealed .study-section:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
[data-reveal-root].study-body.is-revealed .study-section:nth-child(2) { transition-delay: .15s; opacity: 1; transform: none; }
[data-reveal-root].study-body.is-revealed .study-section:nth-child(3) { transition-delay: .30s; opacity: 1; transform: none; }
[data-reveal-root].study-body.is-revealed .study-section:nth-child(4) { transition-delay: .45s; opacity: 1; transform: none; }
[data-reveal-root].study-body.is-revealed .study-pullquote { transition-delay: .35s; opacity: 1; transform: none; }

/* CTA */
.study-cta {
  background: var(--ink);
  color: var(--white);
  padding: clamp(80px, 12vh, 140px) 0;
  text-align: center;
}
.study-cta-inner { max-width: 720px; margin: 0 auto; }
.study-cta h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--white);
  text-wrap: balance;
}
.study-cta p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px;
}
.study-cta .btn--dark { background: var(--white); color: var(--ink); }
.study-cta .btn--dark:hover { background: var(--accent-2); color: var(--white); }

/* Related cases */
.study-related {
  background: var(--white);
  padding: clamp(80px, 10vh, 120px) 0;
}
.study-related .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 32px;
}
.study-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.study-related-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 3.5vw, 44px);
  background: #fafaf7;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.study-related-card:hover {
  border-color: rgba(26,59,76,0.22);
  background: var(--white);
  transform: translateY(-2px);
}
.study-related-kicker {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.study-related-card h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.study-related-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s ease;
}
.study-related-card:hover .study-related-cta { gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .study-section, .study-pullquote, .study-related-card {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 880px) {
  .study-meta { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .study-meta > div { border-left: 0; padding-left: 0; }
  .study-meta > div:nth-child(odd) { padding-right: 16px; }
  .study-meta > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .study-stats { grid-template-columns: 1fr; row-gap: 40px; }
  .study-stats li { border-left: 0; padding-left: 0; padding-top: 32px; border-top: 1px solid rgba(26,59,76,0.12); }
  .study-stats li:first-child { border-top: 0; padding-top: 0; }
  .study-related-grid { grid-template-columns: 1fr; }
}

/* Customers index page — editorial hero */
.customers-hero {
  padding: clamp(96px, 12vh, 160px) 0 clamp(40px, 6vh, 80px);
}
.customers-hero-inner { max-width: 1200px; }
.customers-hero-eyebrow {
  font-family: var(--sans);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 clamp(40px, 6vh, 72px);
}
.customers-hero-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(48px, 8vh, 96px);
  color: var(--ink);
  max-width: 14ch;
  text-wrap: balance;
}
.customers-hero-lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 44ch;
}
.customers-hero-lede strong {
  font-weight: 500;
  color: var(--accent);
}

/* Customers index page cards */
.customers-list {
  padding: clamp(48px, 6vh, 80px) 0 clamp(96px, 12vh, 144px);
  border-top: 1px solid var(--line);
}
.customers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.customers-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  background: #fafaf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  min-height: 360px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.customers-card:hover {
  border-color: rgba(26,59,76,0.22);
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -28px rgba(14,18,22,0.18);
}
.customers-kicker {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.customers-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin: clamp(20px, 3vh, 32px) 0;
}
.customers-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(56px, 6.5vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-feature-settings: "tnum", "lnum";
  font-variant-numeric: tabular-nums lining-nums;
}
.customers-unit {
  font-size: 0.5em;
  vertical-align: 0.3em;
  color: var(--accent);
  margin-left: 0.04em;
  font-feature-settings: normal;
}
.customers-rule {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent-2);
}
.customers-label {
  font-family: var(--sans);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 30ch;
}
.customers-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap .25s ease;
}
.customers-card:hover .customers-cta { gap: 12px; }

@media (max-width: 980px) {
  .customers-grid { grid-template-columns: 1fr; gap: 16px; }
  .customers-card { min-height: 320px; }
}

/* ===========================================================
   About page
   =========================================================== */
.page-about { background: var(--white); }
.page-about .nav--light { background: var(--white); }

/* Hero */
.about-hero {
  padding: clamp(80px, 10vh, 140px) 0 clamp(40px, 5vh, 64px);
}
.about-hero-inner { max-width: 880px; }
.about-hero .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
}
.about-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.about-lede {
  font-family: var(--display);
  font-variation-settings: "opsz" 30;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink-mute);
  margin: 0;
  max-width: 50ch;
}

/* Story prose */
.about-story {
  padding: clamp(40px, 5vh, 80px) 0 clamp(80px, 10vh, 120px);
}
.about-prose {
  max-width: 720px;
}
.about-prose p {
  font-family: var(--display);
  font-variation-settings: "opsz" 30;
  font-weight: 400;
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 28px;
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong {
  font-weight: 500;
  color: var(--accent);
}

[data-reveal-root].about-story .about-prose p {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal-root].about-story.is-revealed .about-prose p:nth-child(1) { transition-delay: .00s; opacity: 1; transform: none; }
[data-reveal-root].about-story.is-revealed .about-prose p:nth-child(2) { transition-delay: .14s; opacity: 1; transform: none; }

/* Stat strip */
.about-stats {
  padding: clamp(80px, 10vh, 140px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-stat-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.about-stat-row li {
  padding: 0 clamp(24px, 4vw, 56px);
  border-left: 1px solid rgba(26, 59, 76, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-stat-row li:first-child { border-left: 0; padding-left: 0; }
.about-stat-num {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #0a0a0a;
  font-feature-settings: "tnum", "lnum";
  font-variant-numeric: tabular-nums lining-nums;
}
.about-stat-prefix {
  font-size: 0.55em;
  vertical-align: 0.45em;
  color: var(--accent);
  margin-right: 0.02em;
  font-feature-settings: normal;
}
.about-stat-unit {
  font-size: 0.45em;
  vertical-align: 0.7em;
  color: var(--accent);
  margin-left: 0.05em;
  font-feature-settings: normal;
}
.about-stat-label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 26ch;
}

/* Press */
.about-press {
  padding: clamp(80px, 10vh, 120px) 0;
  text-align: center;
}
.about-press .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.press-list li {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0.005em;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity .25s ease;
}
.press-list li:hover { opacity: 1; }

/* CTA */
.about-cta {
  background: var(--ink);
  color: var(--white);
  padding: clamp(80px, 12vh, 140px) 0;
  text-align: center;
}
.about-cta-inner { max-width: 720px; margin: 0 auto; }
.about-cta h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--white);
  text-wrap: balance;
}
.about-cta p {
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px;
}
.about-cta .btn--dark {
  background: var(--white);
  color: var(--ink);
}
.about-cta .btn--dark:hover {
  background: var(--accent-2);
  color: var(--white);
}

@media (max-width: 720px) {
  .about-hero { padding: 60px 0 32px; }
  .about-stats { padding: 60px 0; }
  .about-stat-row { grid-template-columns: 1fr; gap: 40px; }
  .about-stat-row li { border-left: 0; padding-left: 0; padding-top: 32px; border-top: 1px solid rgba(26, 59, 76, 0.12); }
  .about-stat-row li:first-child { border-top: 0; padding-top: 0; }
}

/* ===========================================================
   Ticker savings teaser — Morgan Stanley conference booth
   =========================================================== */
:root { --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.page-ticker {
  background: radial-gradient(120% 80% at 50% -10%, #19140d 0%, #0a0907 60%, #050403 100%);
  color: var(--white);
  min-height: 100vh;
  font-feature-settings: "ss01", "ss02";
}
.page-ticker [hidden] { display: none !important; }

.tt-tape {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #07060a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.tt-tape-track {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  padding-right: 26px;
  animation: marquee 60s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.tt-tape-track .tt-up   { color: #6fcf8a; }
.tt-tape-track .tt-down { color: #e8896f; }

.tt-nav { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tt-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tt-event {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Hero */
.tt-hero {
  min-height: calc(100vh - 36px - 75px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.tt-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.tt-hero h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(48px, 6.5vw, 110px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
  color: var(--white);
  text-wrap: balance;
}
.tt-hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 420;
}
.tt-hero .lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.8);
  max-width: 60ch;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.tt-input { margin: 0 auto; max-width: 720px; }
.tt-input-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  text-align: left;
  padding-left: 4px;
}
.tt-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 8px;
  transition: border-color .2s ease, background .2s ease;
}
.tt-input-row:focus-within {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.tt-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 6px 0 14px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 420;
}
#tt-ticker {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 420;
  letter-spacing: 0.04em;
  padding: 8px 4px;
  min-width: 0;
}
#tt-ticker::placeholder { color: rgba(255,255,255,0.22); }
.tt-input-row .btn {
  align-self: stretch;
  padding: 0 24px;
  white-space: nowrap;
}

.tt-input-hint {
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: left;
  padding-left: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tt-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.tt-chip:hover { background: rgba(255,255,255,0.10); border-color: var(--accent); }

/* Calculating */
.tt-calc {
  min-height: calc(100vh - 36px - 75px);
  display: flex;
  align-items: center;
}
.tt-calc-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.tt-calc-ticker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.tt-calc-ticker strong {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.18em;
}
.tt-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: tt-pulse 1.1s ease-in-out infinite;
}
@keyframes tt-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.4); opacity: 1; }
}
.tt-calc-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.tt-calc-steps li {
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  padding-left: 50px;
}
.tt-calc-steps li::before {
  content: "○";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(255,255,255,0.25);
}
.tt-calc-steps li.is-active {
  color: var(--white);
  border-color: rgba(201,168,113,0.4);
  background: rgba(201,168,113,0.06);
}
.tt-calc-steps li.is-active::before {
  content: "◐";
  color: var(--accent);
  animation: tt-spin 1s linear infinite;
}
@keyframes tt-spin { to { transform: translateY(-50%) rotate(360deg); } }
.tt-calc-steps li.is-done { color: rgba(255,255,255,0.55); }
.tt-calc-steps li.is-done::before {
  content: "●";
  color: #6fcf8a;
  animation: none;
}

/* Results */
.tt-results { padding: 48px 0 100px; }
.tt-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tt-symbol-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  font-size: 14px;
}
.tt-symbol-prefix { color: var(--accent); font-weight: 600; }
.tt-result-head .eyebrow { margin: 0; color: rgba(255,255,255,0.6); }

.tt-result-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
  padding: 48px 0 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.tt-result-num {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tt-up-to {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.tt-pct {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(96px, 16vw, 240px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.tt-result-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.tt-result-explain {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  margin: 0 0 24px;
}

.tt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.tt-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tt-card-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.tt-card-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(38px, 4vw, 60px);
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1;
  font-feature-settings: "tnum";
}
.tt-card-num .tt-from {
  color: rgba(255,255,255,0.55);
  font-size: 0.6em;
}
.tt-card-num .tt-arrow {
  color: rgba(255,255,255,0.35);
  font-size: 0.55em;
  margin: 0 6px;
}
.tt-card-num .tt-to { color: var(--accent); }
.tt-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
}

.tt-cta {
  text-align: center;
  background: rgba(201,168,113,0.06);
  border: 1px solid rgba(201,168,113,0.25);
  border-radius: 18px;
  padding: 56px 40px;
}
.tt-cta h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--white);
}
.tt-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  max-width: 60ch;
  margin: 0 auto 28px;
}
.tt-cta-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.tt-disclaimer {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin: 0;
}

@media (max-width: 880px) {
  .tt-event { display: none; }
  .tt-input-row { flex-direction: column; }
  #tt-ticker { text-align: center; }
  .tt-input-row .btn { width: 100%; padding: 14px 24px; }
  .tt-result-hero { grid-template-columns: 1fr; gap: 24px; }
  .tt-cards { grid-template-columns: 1fr; }
  .tt-cta { padding: 36px 22px; }
}

/* Booking modal */
.tt-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tt-modal[hidden] { display: none !important; }
.tt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,4,3,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  animation: tt-fade-in .25s ease;
}
.tt-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 40px 44px 44px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: tt-modal-in .3s cubic-bezier(.2,.8,.2,1);
}
.tt-modal-card .hs-form-frame {
  width: 100%;
  min-height: 560px;
}
.tt-modal-card .hs-form-frame iframe {
  width: 100% !important;
  min-height: 560px;
}
.tt-modal-card h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  font-weight: 420;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.tt-modal-sub {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--ink-mute);
}
.tt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20,17,13,0.06);
  border: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.tt-modal-close:hover { background: rgba(20,17,13,0.12); }
@keyframes tt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tt-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  /* Hide the desktop nav-cta block; we re-show its contents inside the
     mobile drawer below */
  .nav .nav-cta { display: none; }
  /* Scroll-lock the page body when the mobile drawer is open so the
     background doesn't move under the menu. */
  body.nav-is-open {
    overflow: hidden;
    touch-action: none;
  }
  .nav-burger { display: block; }
  .hero { min-height: 78vh; }
  .hero-inner { padding-bottom: 60px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid li:nth-child(n+2) { padding-left: 24px; border-left: none; }
  .capability-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
  .testimonial-inner { grid-template-columns: 1fr; gap: 36px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .security-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  /* Option D: Products + Solutions side-by-side, Company demoted to a
     horizontal utility row below */
  .footer-cols > div:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .footer-cols > div:nth-child(3) h4 { display: none; }
  .footer-cols > div:nth-child(3) a {
    display: inline-block;
    padding: 4px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
  }
  .footer-cols > div:nth-child(3) a:not(:last-of-type)::after {
    content: '·';
    margin: 0 10px;
    color: rgba(255,255,255,0.32);
  }

  /* Hamburger burger animation */
  .nav-burger span { transition: transform 0.2s ease, opacity 0.2s ease; }

  /* Mobile nav open state — full-viewport drawer. Override any
     backdrop-filter on .nav while open so .nav doesn't become the
     containing block for our fixed .nav-links. Also force a solid
     background on the header bar itself so the open drawer doesn't
     show page content through the top strip. */
  .nav.nav--open,
  .nav.nav--open.is-scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10,11,14,0.98) !important;
    border-bottom-color: rgba(255,255,255,0.10) !important;
  }
  .nav.nav--open .brand,
  .nav.nav--open .nav-burger span { color: #fff; }
  .nav.nav--open .brand-logo--dark { filter: none !important; }
  .nav.nav--open .nav-burger span { background: #fff !important; }
  .nav--open .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    margin: 0 !important;
    background: rgba(10,11,14,0.98);
    padding: 12px 28px 32px;
    border-bottom: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 24;
    box-sizing: border-box;
  }
  .nav--open .nav-links > a,
  .nav--open .nav-links .nav-mega-trigger,
  .nav--open .nav-links .nav-dropdown-trigger {
    color: rgba(255,255,255,0.9) !important;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: block;
    opacity: 1;
  }
  .nav--open .nav-links > a:last-of-type,
  .nav--open .nav-links > *:last-child .nav-dropdown-trigger { border-bottom: none; }
  /* nav-mega (desktop mega menu): completely hidden on mobile */
  .nav-mega,
  .nav--open .nav-mega { display: none !important; }
  .nav-mega-wrap .nav-mega-trigger .caret { display: inline-block; }

  /* nav-mobile-sub: collapsed until the user taps the Use Cases trigger,
     which adds .mobile-open to the wrap */
  .nav-mobile-sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
  }
  .nav--open .nav-mega-wrap.mobile-open + .nav-mobile-sub { display: block; }
  .nav-mobile-sub li {
    display: block;
    list-style: none;
  }
  .nav-mobile-sub li a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.88) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-mobile-sub li:last-child a { border-bottom: none; }
  .nav-mobile-sub-label {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    padding: 18px 0 6px;
    border-bottom: 0 !important;
    pointer-events: none;
    list-style: none;
  }
  .nav-mobile-sub-label + li a { border-top: 1px solid rgba(255,255,255,0.07); }

  /* "Request a Demo" button injected at the bottom of the open mobile
     drawer by JS. Hidden on desktop; full-width pill on mobile when
     drawer is open. Selector intentionally specific (.nav .nav--open
     .nav-links .nav-mobile-demo) so it beats the generic
     ".nav--open .nav-links > a" rule above, which forces white text. */
  .nav-mobile-demo { display: none; }
  .nav .nav--open .nav-links a.nav-mobile-demo,
  .nav--open .nav-links a.nav-mobile-demo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 14px 22px;
    width: 100%;
    background: #fff !important;
    color: #0a0a0a !important;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none !important;
    border: 1px solid #fff !important;
    border-bottom: 1px solid #fff !important;
    opacity: 1 !important;
    transition: background .15s ease, color .15s ease;
  }
  .nav--open .nav-links a.nav-mobile-demo:hover {
    background: rgba(255,255,255,0.92) !important;
  }
  /* Resources dropdown: inline-stacked when tapped */
  .nav--open .nav-dropdown {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .nav--open .nav-dropdown-panel { display: none; }
  .nav--open .nav-dropdown.is-open .nav-dropdown-panel {
    display: flex;
    flex-direction: column;
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 4px 0 12px 16px;
    pointer-events: auto;
  }
  .nav--open .nav-dropdown-panel a,
  .nav--open .nav-dropdown-item--soon {
    color: rgba(255,255,255,0.85) !important;
    padding: 10px 0;
    font-size: 14px;
  }
  /* Burger becomes X when open */
  .nav--open .nav-burger span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .nav--open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav--open .nav-burger span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .impact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-base-inner { flex-direction: column; gap: 12px; }
  .announce-inner { flex-wrap: wrap; gap: 8px; padding: 8px 16px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  /* Rotator: fix layout shift by ensuring stable min-height for all phrase lengths */
  .rotator { min-height: 2.5em; }
}

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integ {
  background: #0B0F14;
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.integ-inner {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
@media (max-width: 960px) {
  .integ-inner { grid-template-columns: 1fr; gap: 48px; }
}

.integ-copy {
  position: sticky;
  top: 110px;
}
@media (max-width: 960px) {
  .integ-copy { position: static; text-align: center; }
  .integ-lede,
  .integ-context { margin-left: auto; margin-right: auto; }
  .integ-filters { justify-content: center; }
}

.integ-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4EAB83;
  margin: 0 0 22px;
}
.integ-title {
  font-family: 'F-Plain', 'Fraunces', serif;
  font-weight: 380;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: #fff;
  margin: 0 0 22px;
}
.integ-lede {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #fff;
  margin: 0 0 32px;
  max-width: 380px;
}

.integ-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.integ-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.integ-chip:hover { border-color: #fff; transform: translateY(-1px); }
.integ-chip.is-active {
  background: #fff;
  border-color: #fff;
  color: #0b1416;
}
.integ-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4EAB83;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(78, 171, 131, 0.55);
  animation: integ-chip-pulse 2.6s ease-out infinite;
}
.integ-chip.is-active .integ-chip-dot { background: #0b1416; box-shadow: none; }
@keyframes integ-chip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(78, 171, 131, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(78, 171, 131, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 171, 131, 0); }
}
.integ-chip-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  opacity: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  padding-left: 4px;
  border-left: 1px solid currentColor;
  border-left-color: rgba(255, 255, 255, 0.35);
}
.integ-chip.is-active .integ-chip-count { color: #0b1416; border-left-color: rgba(11, 20, 22, 0.3); opacity: 0.7; }

.integ-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.integ-link:hover {
  color: #4EAB83;
  border-bottom-color: #4EAB83;
  gap: 12px;
}

.integ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .integ-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
}

.integ-context {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 22px;
  max-width: 380px;
}
.integ-context strong {
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.integ-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 152px;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 14px;
  padding: 22px 18px 16px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    opacity .5s ease,
    filter .35s ease,
    transform .35s ease;
  overflow: hidden;
}
.integ.is-revealed .integ-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.integ-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(78, 171, 131, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.integ-card:hover {
  border-color: #4EAB83;
  box-shadow:
    0 12px 32px rgba(26, 59, 76, 0.08),
    inset 0 0 0 1px #4EAB83;
  transform: translateY(-3px);
}
.integ-card:hover::before { opacity: 1; }

.integ-pulse {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4EAB83;
  opacity: 0.55;
}
.integ-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #4EAB83;
  opacity: 0;
  animation: integ-pulse 2.6s ease-out infinite;
}
@keyframes integ-pulse {
  0%   { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

.integ-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
}
.integ-logo {
  max-width: 78%;
  max-height: 44px;
  object-fit: contain;
  filter: saturate(0.92);
  transition: filter .25s ease, transform .25s ease;
}
.integ-logo--lg { max-width: 92%; max-height: 58px; }
.integ-card:hover .integ-logo {
  filter: saturate(1.05);
  transform: scale(1.04);
}

.integ-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 59, 76, 0.42);
  transition: color .25s ease;
}
.integ-card:hover .integ-tag { color: #4EAB83; }

/* Filter dim — non-matching cards */
.integ[data-integ-filter="equity"]  .integ-card:not([data-cat="equity"]),
.integ[data-integ-filter="hris"]    .integ-card:not([data-cat="hris"]),
.integ[data-integ-filter="payroll"] .integ-card:not([data-cat="payroll"]) {
  opacity: 0.16;
  filter: grayscale(1);
  transform: scale(0.985);
  pointer-events: none;
}
.integ[data-integ-filter="equity"]  .integ-card:not([data-cat="equity"]) .integ-pulse,
.integ[data-integ-filter="hris"]    .integ-card:not([data-cat="hris"]) .integ-pulse,
.integ[data-integ-filter="payroll"] .integ-card:not([data-cat="payroll"]) .integ-pulse {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .integ-card { opacity: 1; transform: none; transition: none; }
  .integ-pulse::after, .integ-chip-dot { animation: none; }
}

/* ============================================================
   INTEGRATIONS PAGE (/integrations/)
   ============================================================ */
.page-integrations { background: #fff; color: #1A3B4C; }

/* Hero -------------------------------------------------------- */
.ip-hero {
  position: relative;
  background: #fff;
  color: #1A3B4C;
  padding: clamp(96px, 10vw, 140px) 0 0;
  overflow: hidden;
}
.ip-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.ip-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4EAB83;
  margin: 0 0 26px;
}
.ip-title {
  font-family: 'F-Plain', 'Fraunces', serif;
  font-weight: 380;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: #000;
  margin: 0 auto 26px;
  max-width: 880px;
}
.ip-lede {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: #000;
  max-width: 640px;
  margin: 0 auto 36px;
}
.ip-lede strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Marquees ---------------------------------------------------- */
.ip-marquees {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 0 64px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ip-row { overflow: hidden; }
.ip-row-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: ip-marq-rtl 48s linear infinite;
}
.ip-row--ltr .ip-row-track { animation-name: ip-marq-ltr; animation-duration: 56s; }
@keyframes ip-marq-rtl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes ip-marq-ltr {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.ip-bubble {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E8E8E8;
  box-shadow: 0 2px 12px rgba(26, 59, 76, 0.04);
  transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.ip-bubble:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: #4EAB83;
  box-shadow:
    0 14px 30px rgba(78, 171, 131, 0.16),
    inset 0 0 0 1px #4EAB83;
}
.ip-bubble img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: saturate(0.92);
  transition: filter .3s ease, transform .3s ease;
}
.ip-bubble:hover img { filter: saturate(1.06); transform: scale(1.04); }
.ip-bubble--mono {
  font-family: 'Inter', sans-serif;
  font-size: 0;
  position: relative;
}
.ip-bubble--mono::after {
  content: attr(data-init);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'F-Plain', 'Fraunces', serif;
  font-weight: 400;
  font-size: 26px;
  color: #1A3B4C;
  letter-spacing: -0.02em;
}
.ip-bubble--mono:hover::after { color: #4EAB83; }

@media (max-width: 720px) {
  .ip-bubble { width: 64px; height: 64px; }
  .ip-marquees { padding: 56px 0 80px; }
}

/* Browse ------------------------------------------------------ */
.ip-browse {
  background: #fff;
  padding: clamp(64px, 8vw, 120px) 0 clamp(80px, 9vw, 140px);
}
.ip-browse-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .ip-browse-inner { grid-template-columns: 1fr; }
}

.ip-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 900px) {
  .ip-sidebar { position: static; }
}

.ip-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F7F8F8;
  border: 1px solid #E8E8E8;
  border-radius: 999px;
  padding: 11px 16px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ip-search:focus-within {
  border-color: #1A3B4C;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 59, 76, 0.06);
}
.ip-search svg { color: rgba(26, 59, 76, 0.5); flex: none; }
.ip-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1A3B4C;
  min-width: 0;
}
.ip-search input::placeholder { color: rgba(26, 59, 76, 0.45); }

.ip-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.ip-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1A3B4C;
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ip-nav-item:hover { background: #F7F8F8; }
.ip-nav-item.is-active {
  background: #fff;
  border-color: #E8E8E8;
  box-shadow: 0 1px 0 rgba(26, 59, 76, 0.05);
}
.ip-nav-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(26, 59, 76, 0.5);
  font-variant-numeric: tabular-nums;
  padding-left: 10px;
  border-left: 1px solid rgba(26, 59, 76, 0.12);
  margin-left: 8px;
}
.ip-nav-item.is-active .ip-nav-count { color: #4EAB83; border-left-color: rgba(78, 171, 131, 0.35); }

.ip-side-foot {
  margin-top: 24px;
  padding: 18px;
  background: #F7F8F8;
  border: 1px solid #E8E8E8;
  border-radius: 14px;
}
.ip-side-foot-tag {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1A3B4C;
  margin: 0 0 6px;
}
.ip-side-foot-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1A3B4C;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 59, 76, 0.3);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.ip-side-foot-link:hover { color: #4EAB83; border-bottom-color: #4EAB83; }

/* Main grid --------------------------------------------------- */
.ip-main { min-width: 0; }
.ip-main-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #E8E8E8;
}
.ip-main-title {
  font-family: 'F-Plain', 'Fraunces', serif;
  font-weight: 380;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  color: #1A3B4C;
  margin: 0;
}
.ip-main-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(26, 59, 76, 0.55);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  white-space: nowrap;
}

.ip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .ip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .ip-grid { grid-template-columns: repeat(2, 1fr); } }

.ip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 22px 14px 18px;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 14px;
  text-align: center;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    opacity .35s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: ip-card-in .55s ease forwards;
  animation-delay: calc(var(--i, 0) * 14ms);
}
@keyframes ip-card-in {
  to { opacity: 1; transform: translateY(0); }
}
.ip-card:hover {
  border-color: #4EAB83;
  box-shadow:
    0 10px 28px rgba(26, 59, 76, 0.08),
    inset 0 0 0 1px #4EAB83;
  transform: translateY(-2px);
}

.ip-card-mark {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #F7F8F8;
  border: 1px solid #ECECEC;
  overflow: hidden;
  padding: 10px;
}
.ip-card-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ip-card-mono {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'F-Plain', 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ip-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #1A3B4C;
  line-height: 1.25;
  max-width: 100%;
}
.ip-card-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 59, 76, 0.4);
  transition: color .25s ease;
}
.ip-card:hover .ip-card-tag { color: #4EAB83; }

.ip-card.is-hidden {
  display: none;
}

.ip-empty {
  margin-top: 28px;
  text-align: center;
  padding: 32px;
  border: 1px dashed #E8E8E8;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(26, 59, 76, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .ip-row-track, .ip-card { animation: none; }
  .ip-card { opacity: 1; transform: none; }
}

/* ============================================================
   HUB — editorial blog / research index
   ============================================================ */
:root {
  --blog-bg: #ffffff;
  --blog-bg-2: #f6f6f4;
  --blog-ink: #0b1416;
  --blog-ink-2: #4a5560;
  --blog-line: rgba(11,20,22,0.10);
  --blog-line-strong: rgba(11,20,22,0.22);
  --blog-display: 'F-Plain', 'Fraunces', 'Iowan Old Style', Georgia, serif;
}

.page-blog {
  background: var(--blog-bg);
  color: var(--blog-ink);
}

/* Nav variant for hub (cream-on-cream, ink text) */
.page-blog .nav--blog {
  background: var(--blog-bg);
  border-bottom: 1px solid var(--blog-line);
}
.page-blog .nav--blog .nav-inner {
  height: 64px;
}
.page-blog .nav--blog .nav-links a { color: var(--blog-ink); opacity: 0.78; }
.page-blog .nav--blog .nav-links a:hover { opacity: 1; }
.page-blog .nav--blog .nav-links a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
}
.page-blog .nav--blog .brand-logo--dark { filter: brightness(0); }
.page-blog .nav--blog .btn--ghost-dark {
  color: var(--blog-ink);
  border-color: var(--blog-line-strong);
}
.page-blog .nav--blog .btn--dark {
  background: var(--blog-ink);
  color: #fafaf6;
}
.page-blog .nav--blog .btn--dark:hover { background: #1a2a30; }

/* ----- Featured / hero card ----- */
.blog-featured {
  padding: 40px 0 24px;
}
.blog-featured-inner {
  /* full container width */
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--blog-bg-2);
  box-shadow: 0 1px 0 var(--blog-line);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s ease, transform .25s ease;
}
.blog-featured-card:hover {
  box-shadow: 0 12px 40px -18px rgba(11,20,22,0.30), 0 1px 0 var(--blog-line);
}
.blog-featured-media {
  background: #0e2330;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 360px;
}
.blog-featured-body {
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.blog-featured-title {
  font-family: var(--blog-display);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--blog-ink);
  margin: 0;
  text-wrap: balance;
}
.blog-featured-lede {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--blog-ink-2);
  margin: 0;
  max-width: 50ch;
}
.blog-pill-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--blog-ink);
  border: 1px solid var(--blog-line-strong);
  font-size: 14px;
  font-weight: 500;
  align-self: flex-start;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.blog-featured-card:hover .blog-pill-btn {
  background: var(--blog-ink);
  color: #fafaf6;
  border-color: var(--blog-ink);
}

/* ----- Topic chips + search row ----- */
.blog-controls {
  padding: 36px 0 8px;
}
.blog-controls-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.blog-topics-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--blog-ink);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-chip {
  appearance: none;
  border: 1px solid var(--blog-line-strong);
  background: transparent;
  color: var(--blog-ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.blog-chip:hover {
  border-color: var(--blog-ink);
}
.blog-chip.is-active {
  background: var(--blog-ink);
  color: #fafaf6;
  border-color: var(--blog-ink);
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
  max-width: 720px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--blog-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--blog-ink-2);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.blog-search:focus-within {
  border-color: var(--blog-ink);
  box-shadow: 0 0 0 3px rgba(11,20,22,0.06);
}
.blog-search svg { flex: 0 0 auto; }
.blog-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--blog-ink);
  padding: 0;
}
.blog-search input::placeholder { color: var(--blog-ink-2); opacity: 0.7; }

/* ----- Card grid ----- */
.blog-grid-section {
  padding: 32px 0 96px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 36px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.blog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blog-bg-2);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.blog-card-media::after {
  content: "Read More";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: #fafaf6;
  background: rgba(8, 14, 16, 0.55);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.blog-card:hover .blog-card-media::after { opacity: 1; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 2px;
}
.blog-card-title {
  font-family: var(--blog-display);
  font-weight: 800;
  font-style: normal;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--blog-ink);
  margin: 0;
}
.blog-card:hover .blog-card-title {
  color: #1f6b49;
}
.blog-card-meta {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--blog-ink-2);
  margin: 4px 0 0;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  text-transform: none;
}
.blog-card-meta .blog-card-tags { display: none; }
.blog-card-tag {
  display: none;
}

.blog-empty {
  text-align: center;
  color: var(--blog-ink-2);
  padding: 80px 0;
  font-family: var(--sans);
}

/* Footer color override on hub: keeps existing dark footer */
.page-blog .footer { margin-top: 0; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .blog-featured-media { min-height: 240px; }
  .blog-featured-media img { min-height: 240px; }
  .blog-featured-body {
    padding: 36px 32px 40px;
  }
  /* Keep 3-col grid as long as possible */
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 24px;
  }
  .blog-card-title { font-size: 22px; }
}
@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
  }
  .blog-card-title { font-size: 20px; }
}
@media (max-width: 520px) {
  .blog-featured { padding: 20px 0 12px; }
  .blog-featured-body { padding: 28px 22px 32px; }
  .blog-featured-title { font-size: 34px; }
  .blog-featured-lede { font-size: 16px; }
  .blog-controls { padding: 24px 0 4px; }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .blog-card-title { font-size: 22px; }
}

/* ============================================================
   HUB ARTICLE — long-form post page (Perplexity-style)
   Pattern: wide cover → meta row → centered title → 640px body
   ============================================================ */
.blog-article-hero {
  padding: 32px 0 16px;
}
.blog-article-hero .container {
  max-width: 1240px;
}

/* Cover image is the first thing — full container width */
.blog-article-cover {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 6.5;
  background: var(--blog-bg-2);
}
.blog-article-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Meta row — Written by / Published on / Share */
.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 0 36px;
  border-bottom: 1px solid var(--blog-line);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.blog-article-meta-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.blog-article-meta-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--blog-ink-2);
  letter-spacing: 0;
}
.blog-article-meta-value {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--blog-ink);
}
.blog-article-share {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.blog-article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--blog-line-strong);
  color: var(--blog-ink);
  transition: border-color .15s ease, background .15s ease;
}
.blog-article-share a:hover {
  border-color: var(--blog-ink);
  background: var(--blog-ink);
  color: #fafaf6;
}
.blog-article-share svg { width: 14px; height: 14px; }

/* Title — centered, refined display serif (matches home page hero) */
.blog-article-title {
  font-family: var(--blog-display);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--blog-ink);
  margin: 0 auto 24px;
  max-width: 880px;
  text-align: center;
  text-wrap: balance;
}
.blog-article-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blog-ink-2);
  margin: 0 auto 18px;
  text-align: center;
}
.blog-article-eyebrow a {
  color: inherit;
  border-bottom: 1px solid var(--blog-line);
  padding-bottom: 1px;
}

.blog-article-dek {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  color: var(--blog-ink-2);
  margin: 0 auto 36px;
  max-width: 640px;
  text-align: center;
}

/* Body — narrow column, ~640px */
.blog-article-body {
  padding: 0 0 80px;
}
.blog-article-body .container {
  max-width: 720px;
  padding: 0 40px;
}
.blog-article-body p,
.blog-article-body ul,
.blog-article-body ol {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: #1a242a;
  margin: 0 0 22px;
}
.blog-article-body h2 {
  font-family: var(--blog-display);
  font-style: normal;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--blog-ink);
  margin: 48px 0 18px;
}
.blog-article-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  color: var(--blog-ink);
  margin: 36px 0 12px;
}
.blog-article-body blockquote {
  margin: 36px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--accent-2);
  font-family: var(--blog-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--blog-ink);
}
.blog-article-body ul,
.blog-article-body ol { padding-left: 22px; }
.blog-article-body li { margin-bottom: 8px; }
.blog-article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--blog-line-strong);
}
.blog-article-body a:hover { border-color: var(--accent); }

/* Inline figures inside article body */
.blog-article-figure {
  margin: 40px 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--blog-bg-2);
}
.blog-article-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.blog-article-figure figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--blog-ink-2);
  padding: 12px 4px 0;
  text-align: center;
}

/* ============================================================
   ARTICLE END — "More from the Hub" section + back CTA
   ============================================================ */
.blog-article-end {
  margin-top: 96px;
  padding: 80px 0 120px;
  background: #08090a;
  color: #efefe9;
  position: relative;
}
.blog-article-end::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 96px;
  height: 1px;
  background: rgba(255,255,255,0.18);
  transform: translateX(-50%);
}
.blog-article-end .container {
  max-width: 1240px;
  padding: 0 40px;
}
.blog-related-head {
  text-align: center;
  margin-bottom: 56px;
}
.blog-related-head .blog-article-eyebrow {
  color: rgba(255,255,255,0.55);
}
.blog-related-h {
  font-family: var(--blog-display);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: #f5f5f0;
  margin: 0;
}

/* 3-up related grid */
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 72px;
}
.blog-related-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease;
}
.blog-related-card:hover { transform: translateY(-2px); }
.blog-related-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #15181a;
}
.blog-related-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.blog-related-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,10,0) 60%, rgba(8,9,10,0.45) 100%);
  pointer-events: none;
}
.blog-related-card:hover .blog-related-media img { transform: scale(1.04); }

.blog-related-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}
.blog-related-title {
  font-family: var(--blog-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: #f5f5f0;
  margin: 0;
}
.blog-related-card:hover .blog-related-title { color: #4EAB83; }
.blog-related-date {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin: 4px 0 0;
}

/* Back CTA */
.blog-back-wrap {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}
.blog-back-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  height: 56px;
  border-radius: 999px;
  background: #f5f5f0;
  color: #08090a;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .2s ease;
}
.blog-back-cta:hover {
  background: #4EAB83;
  color: #fafaf6;
  transform: translateY(-1px);
}
.blog-back-cta svg { transition: transform .25s ease; }
.blog-back-cta:hover svg { transform: translateX(3px); }

@media (max-width: 980px) {
  .blog-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-article-end { padding: 64px 0 96px; }
}
@media (max-width: 640px) {
  .blog-article-end { margin-top: 56px; padding: 48px 0 72px; }
  .blog-related-head { margin-bottom: 36px; }
  .blog-related-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }
  .blog-related-title { font-size: 19px; }
  .blog-back-cta { height: 52px; padding: 0 24px; font-size: 14px; }
}

@media (max-width: 980px) {
  .blog-article-cover { aspect-ratio: 16 / 7.5; }
}
@media (max-width: 640px) {
  .blog-article-hero { padding: 20px 0 12px; }
  .blog-article-cover { border-radius: 12px; aspect-ratio: 16 / 9; margin-bottom: 22px; }
  .blog-article-meta { gap: 16px; padding-bottom: 24px; margin-bottom: 28px; }
  .blog-article-share { margin-left: 0; }
  .blog-article-title { font-size: 32px; letter-spacing: -0.02em; }
  .blog-article-dek { font-size: 17px; margin-bottom: 24px; }
  .blog-article-body .container,
  .blog-article-footer .container { padding: 0 22px; }
  .blog-article-body p, .blog-article-body ul, .blog-article-body ol { font-size: 17px; }
  .blog-article-body h2 { font-size: 24px; margin-top: 36px; }
  .blog-article-figure { margin: 24px 0; }
}

/* ============================================================
   NAV MEGA-MENU — Platform dropdown
   ============================================================ */
.nav-mega-wrap {
  position: static;            /* allow .nav-mega to anchor to .nav-inner */
  display: inline-flex;
  align-items: center;
}
.nav-mega-trigger {
  cursor: pointer;
  user-select: none;
}
.nav-mega-trigger .caret {
  transition: transform .25s ease, opacity .2s ease;
}
.nav-mega-wrap.is-open .nav-mega-trigger .caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* Panel */
.nav-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0 28px;
  max-width: 1320px;
  background: #ffffff;
  color: #0b1416;
  border: 1px solid rgba(11,20,22,0.08);
  border-radius: 16px;
  box-shadow:
    0 24px 80px -24px rgba(11,20,22,0.30),
    0 4px 14px -4px rgba(11,20,22,0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 50;
}
.nav-mega-wrap.is-open .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mega-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 32px 36px;
  font-family: var(--sans);
  font-size: 14px;
  color: #0b1416;
}
/* Categorized layout: grid on left, intro panel on right */
.nav-mega-inner:has(.nav-mega-grid--categorized) .nav-mega-grid--categorized {
  grid-column: 1;
  grid-row: 1;
}
.nav-mega-inner:has(.nav-mega-grid--categorized) .nav-mega-intro {
  grid-column: 2;
  grid-row: 1;
}

/* ----- Col 1: brand intro ----- */
.nav-mega-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a5560;
  margin: 0 0 14px;
}
.nav-mega-visual {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #08090a;
  margin-bottom: 18px;
}
.nav-mega-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.nav-mega-h {
  font-family: 'F-Plain', 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: #0b1416;
  margin: 0 0 10px;
  text-wrap: balance;
}
.nav-mega-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(11,20,22,0.65);
  margin: 0 0 18px;
}
.nav-mega-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0b1416;
  text-decoration: none;
  border-bottom: 1px solid rgba(11,20,22,0.3);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease, gap .15s ease;
}
.nav-mega-cta-link:hover {
  color: #4EAB83;
  border-bottom-color: #4EAB83;
  gap: 12px;
}
.nav-mega-cta-link--sm { font-size: 12px; }
.nav-mega-cta-link--light { color: #f5f5f0; border-bottom-color: rgba(255,255,255,0.32); }
.nav-mega-cta-link--light:hover { color: #4EAB83; border-bottom-color: #4EAB83; }

/* ----- Col 2: 8-category grid ----- */
.nav-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 22px;
  align-content: start;
}
.nav-mega-cat-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b1416;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11,20,22,0.10);
}
.nav-mega-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mega-cat-list li {
  margin: 0;
}
.nav-mega-cat-list a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: #0b1416;
  text-decoration: none;
  transition: color .15s ease, transform .2s ease;
}
.nav-mega-cat-list a:hover {
  color: #4EAB83;
  transform: translateX(2px);
}

/* ----- Col 3: promo cards ----- */
.nav-mega-promos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-mega-promo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: #f6f6f4;
  border-radius: 12px;
  border: 1px solid rgba(11,20,22,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nav-mega-promo:hover {
  transform: translateY(-2px);
  border-color: rgba(11,20,22,0.18);
  box-shadow: 0 8px 24px -10px rgba(11,20,22,0.25);
}
.nav-mega-promo-art {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 4px;
}
.nav-mega-promo-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-mega-promo-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11,20,22,0.55);
  margin: 0;
}
.nav-mega-promo-h {
  font-family: 'F-Plain', 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: inherit;
  margin: 0 0 6px;
}
.nav-mega-promo--dark {
  background: #0b1416;
  color: #f5f5f0;
  border-color: transparent;
}
.nav-mega-promo--dark .nav-mega-promo-eyebrow { color: rgba(245,245,240,0.55); }
.nav-mega-promo--dark:hover { background: #1a2226; }

/* ----- Backdrop (sits below .nav z-index: 25 so the panel stays crisp) ----- */
.nav-mega-backdrop {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(0,0,0,0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
  z-index: 20;
}
body.nav-mega-is-open .nav-mega-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ----- Responsive (collapse below 980px) ----- */
@media (max-width: 980px) {
  .nav-mega { display: none; }
}

/* ----- Option B — lean (no sub-features) ----- */
.nav-mega-grid--lean {
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 6px;
  align-content: start;
}
/* Categorized layout: two labeled columns */
.nav-mega-grid--categorized {
  display: flex;
  gap: 20px;
}
.nav-mega-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mega-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(11,20,22,0.38);
  padding: 0 14px 10px;
  border-bottom: 1px solid rgba(11,20,22,0.08);
  margin-bottom: 4px;
}
.nav-links a.nav-mega-item {
  display: block;
  padding: 14px 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  opacity: 1;
  gap: 0;
  align-items: stretch;
  transition: background .15s ease, transform .2s ease;
}
.nav-mega-item:hover {
  background: #f6f6f4;
  transform: translateX(2px);
}
.nav-mega-item-name {
  display: block;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #0b1416;
  margin-bottom: 4px;
  transition: color .15s ease;
}
.nav-mega-item:hover .nav-mega-item-name { color: #1F6B49; }
.nav-mega-item-desc {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(11,20,22,0.62);
}

/* ============================================================
   NAV DROPDOWN — lightweight single-item dropdown
   (used by Resources → Blog + Webinars)
   ============================================================ */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
  margin: -14px 0;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: inherit;
  text-decoration: none;
}
.nav-dropdown-trigger .caret {
  font-size: 11px;
  opacity: 0.55;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger .caret,
.nav-dropdown:focus-within .nav-dropdown-trigger .caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -4px);
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(11,20,22,0.08);
  border-radius: 12px;
  box-shadow:
    0 18px 48px -18px rgba(11,20,22,0.28),
    0 4px 14px -4px rgba(11,20,22,0.10);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-panel a:hover {
  background: rgba(78,171,131,0.08);
  color: var(--accent);
}
/* Prevent scrolled-nav dark/white overrides from bleeding into dropdown panels */
.nav.is-scrolled .nav-links .nav-dropdown-panel a,
body.page-use-case .nav.is-scrolled .nav-links .nav-dropdown-panel a { color: var(--ink); }
body.page-use-case .nav.is-scrolled .nav-links .nav-dropdown-panel a:hover { color: var(--accent); }
.nav-dropdown-item--soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(11,20,22,0.45);
  cursor: not-allowed;
}
.nav-dropdown-soon {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(78,171,131,0.10);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Ticker autocomplete ── */
.ta-wrap { position: relative; display: block; }
@keyframes ta-spin { to { transform: rotate(360deg); } }
.ta-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
  animation: ta-spin 0.7s linear infinite;
}
.ta-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(26,59,76,0.12);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(26,59,76,0.12), 0 1px 4px rgba(26,59,76,0.06);
  z-index: 50;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}
.ta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(26,59,76,0.05);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans, 'Inter', sans-serif);
}
.ta-item:last-child { border-bottom: none; }
.ta-item:hover, .ta-item--hl { background: rgba(26,59,76,0.04); }
.ta-sym {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.ta-name {
  font-size: 12px;
  color: rgba(26,59,76,0.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ta-msg {
  padding: 11px 14px;
  font-size: 12.5px;
  color: rgba(26,59,76,0.45);
  font-family: var(--sans, 'Inter', sans-serif);
}
.ta-msg--error { color: rgba(200,50,40,0.80); }
