/* ═══════════════════════════════════════════════════════
   MANTLEWAY · main.css
   Bridge-as-a-Service · Python Sidecar Architecture
   ═══════════════════════════════════════════════════════ */

:root {
  /* Ink & strata — from the logo's charcoal backdrop */
  --ink: #0d1114;
  --obsidian: #161b20;
  --strata: #1f262d;
  --strata-hi: #2a333c;

  /* Teal — the logo edge color, our secondary */
  --teal-deep: #14353a;
  --teal: #1e4d52;
  --teal-bright: #2d7a82;
  --teal-glow: rgba(45, 122, 130, 0.14);

  /* Molten — the lava vein, our accent */
  --molten: #ff5722;
  --molten-deep: #c73c0f;
  --ember: #ff7a3d;
  --ember-soft: #ffa470;

  /* Text & rules */
  --bone: #e8e4da;
  --bone-soft: rgba(232, 228, 218, 0.72);
  --bone-dim: rgba(232, 228, 218, 0.48);
  --slate: #6f7984;
  --rule: rgba(232, 228, 218, 0.08);
  --rule-hi: rgba(232, 228, 218, 0.16);

  --serif: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric overlay — faint teal glow top, molten warmth near hero */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 80% 10%, var(--teal-glow) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(255, 87, 34, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Grain texture — subtle film over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

main, nav, footer { position: relative; z-index: 3; }

/* ═══════════════ TYPOGRAPHY ═══════════════ */
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.tick {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.tick-molten { color: var(--molten); }
.tick-teal { color: var(--teal-bright); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; color: var(--bone); }

a { color: inherit; }

/* ═══════════════ NAV ═══════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(13, 17, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  text-decoration: none;
  /* Inter explicit so the logo is consistent even if a parent context later */
  /* changes the global font-family. */
  font-family: 'Inter', sans-serif;
}
.logo:hover { color: var(--ember); }
.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
  /* color flows into <use> via currentColor */
  color: inherit;
}
.logo-word {
  /* Wordmark SVG viewBox is 800x240 (10:3 aspect). Set both width and height */
  /* explicitly: inline <svg> with height:auto computes to a much-larger fallback, */
  /* which would cause the nav bar to grow to 150px+ tall. */
  width: 116px;
  height: 35px;
  display: block;
  color: inherit;
}

/* Footer lockup is slightly larger for hierarchy */
footer .logo-mark { width: 32px; height: 32px; }
footer .logo-word { width: 134px; height: 40px; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--bone-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--molten);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--bone);
  text-decoration: none;
  transition: all 0.25s;
}
.nav-cta:hover {
  background: var(--molten);
  border-color: var(--molten);
  color: var(--ink);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-left { padding-right: 20px; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--molten);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--molten);
}

h1.hero-title {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin-bottom: 36px;
  color: var(--bone);
}
h1.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ember);
}
h1.hero-title .ampersand {
  font-style: italic;
  font-weight: 300;
  color: var(--teal-bright);
  padding: 0 4px;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--bone-soft);
  max-width: 480px;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 22px;
  background: var(--molten);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--molten);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--ember);
  border-color: var(--ember);
  transform: translateX(2px);
}
.btn-primary .arrow { transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 22px;
  color: var(--bone);
  text-decoration: none;
  border: 1px solid var(--rule-hi);
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

/* Hero schematic */
.hero-right {
  position: relative;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.schematic { width: 100%; height: 100%; position: relative; }
.schematic svg { width: 100%; height: 100%; overflow: visible; }

.pulse-line { stroke-dasharray: 4 4; animation: flow 4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }

.heartbeat { animation: heartbeat 3s ease-in-out infinite; transform-origin: center; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.signal { animation: signal 2.2s ease-in-out infinite; }
@keyframes signal {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ═══════════════ SECTION BASE ═══════════════ */
section { padding: 130px 40px; position: relative; }

.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 44px;
}
.section-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}
.section-index .num {
  display: block;
  color: var(--molten);
  font-size: 14px;
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 900px;
  color: var(--bone);
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}

/* ═══════════════ PROBLEM / THE CLIFF ═══════════════ */
.problem { background: var(--obsidian); }

.cliff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-hi);
  border: 1px solid var(--rule-hi);
  margin-top: 20px;
}
.cliff-stat {
  background: var(--obsidian);
  padding: 48px 32px;
  position: relative;
}
.cliff-stat .tick { margin-bottom: 24px; }
.cliff-num {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 92px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ember);
  margin-bottom: 20px;
}
.cliff-num sup {
  font-size: 0.38em;
  vertical-align: super;
  margin-left: 4px;
  color: var(--teal-bright);
  font-family: var(--mono);
}
.cliff-label {
  font-size: 16px;
  line-height: 1.45;
  color: var(--bone-soft);
  max-width: 300px;
}
.cliff-stat::before {
  content: '';
  position: absolute;
  top: 20px; right: 20px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--molten);
  border-right: 1px solid var(--molten);
}

.problem-quote {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
}
.problem-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.3;
  font-weight: 300;
  color: var(--bone);
  max-width: 820px;
}
.problem-quote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--slate);
}

/* ═══════════════ APPROACH / SIDECAR ═══════════════ */
.approach { background: var(--ink); }

.pillars {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillars-four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .pillars-four { grid-template-columns: repeat(2, 1fr); }
  .pillars-four .pillar { border-right: none; padding-right: 32px; padding-left: 32px; }
  .pillars-four .pillar:nth-child(odd) { border-right: 1px solid var(--rule); padding-left: 0; }
  .pillars-four .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
.pillar {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 32px; }

.pillar-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--molten);
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}
.pillar h3 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--bone);
}
.pillar h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}
.pillar p {
  color: var(--bone-soft);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.pillar-detail {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
  line-height: 1.65;
  padding-top: 20px;
  border-top: 1px dashed var(--rule-hi);
}
.pillar-detail span { color: var(--molten); }

/* ═══════════════ COMPARISON TABLE ═══════════════ */
.compare { background: var(--obsidian); }

.compare-table {
  margin-top: 40px;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 24px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  border-bottom: 1px solid var(--rule-hi);
  padding-bottom: 18px;
}
.compare-table thead th.us {
  color: var(--molten);
  position: relative;
}
.compare-table thead th.us::before {
  content: '';
  position: absolute;
  left: 20px; top: -1px;
  width: 48px; height: 2px;
  background: var(--molten);
}
.compare-table tbody th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  width: 24%;
  color: var(--bone);
}
.compare-table td {
  color: var(--bone-soft);
  width: 25%;
}
.compare-table td.us {
  color: var(--bone);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  background: rgba(255, 87, 34, 0.05);
  border-left: 1px solid rgba(255, 87, 34, 0.35);
  border-right: 1px solid rgba(255, 87, 34, 0.35);
}
.compare-table tr:last-child td.us { border-bottom: 1px solid rgba(255, 87, 34, 0.35); }
.compare-table tr:first-of-type td.us { border-top: 1px solid rgba(255, 87, 34, 0.35); }

/* ═══════════════ PROCESS ═══════════════ */
.process { background: var(--ink); }

.phases {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.phases::before {
  content: '';
  position: absolute;
  top: 42px; left: 0; right: 0;
  height: 1px;
  background: var(--rule-hi);
}
.phase { padding: 0 24px 0 0; position: relative; }

.phase-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--teal-bright);
  margin-bottom: 24px;
  margin-top: 36px;
  position: relative;
  z-index: 2;
}
.phase:first-child .phase-dot {
  background: var(--molten);
  border-color: var(--molten);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.15);
}

.phase-weeks {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--molten);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.phase h3 {
  font-size: 22px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--bone);
}
.phase p {
  color: var(--bone-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 280px;
}

/* ═══════════════ CLOSING CTA ═══════════════ */
.closing {
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(255, 87, 34, 0.20) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 15% 40%, rgba(30, 77, 82, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #1a1208 60%, #2d1a0a 100%);
  color: var(--bone);
  padding: 160px 40px;
  position: relative;
  overflow: hidden;
}

.closing-inner { position: relative; max-width: 1000px; }
.closing-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.closing-eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--ember);
}
.closing h2 {
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--bone);
}
.closing h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}
.closing p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--bone-soft);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  background: var(--obsidian);
  color: var(--bone);
  padding: 60px 40px 32px;
  border-top: 1px solid var(--rule);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--bone-soft);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--molten); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 960px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 20px 60px;
    gap: 40px;
  }
  .hero-right { height: 480px; }
  section { padding: 80px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .cliff-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 40px 0 !important;
  }
  .pillar:last-child { border-bottom: none; }
  .phases { grid-template-columns: 1fr; gap: 40px; }
  .phases::before { display: none; }

  .compare-table { font-size: 13px; }
  .compare-table thead { display: none; }
  .compare-table tbody th {
    display: block;
    width: 100%;
    padding: 20px 12px 8px;
    font-size: 16px;
    border-top: 1px solid var(--rule-hi);
    border-bottom: none;
  }
  .compare-table td {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 13px;
    border-bottom: none;
  }
  .compare-table td.us {
    border-left: 2px solid var(--molten);
    border-right: none;
    border-top: none !important;
    border-bottom: none !important;
    margin-left: 0;
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 4px;
  }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .problem-quote { grid-template-columns: 1fr; }
}

/* ═══════════════ ANIMATIONS ═══════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; }
.d5 { animation-delay: 0.7s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ MANTLECORE BRAND LOCKUP ═══════════════ */
/* Consistent treatment for the MantleCore™ product name wherever it appears. */
.mc {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bone);
  white-space: nowrap;
}
.mc-ember { color: var(--ember); }
.mc sup {
  font-family: var(--mono);
  font-size: 0.45em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 1px;
  opacity: 0.7;
  letter-spacing: 0;
}
h1 .mc, h2 .mc, h3 .mc {
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* ═══════════════ SYSTEM SPECIFICATION SHEET ═══════════════ */
/* Replaces the old "stack-strip" tag row. Reads as a machinery cut sheet: */
/* header with product/revision, four numbered spec rows, sign-off footer. */
/* No library internals — just what the buyer needs to evaluate the appliance. */

.specs {
  background: var(--obsidian);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 88px 40px 72px;
  position: relative;
  overflow: hidden;
}
.specs::before {
  /* Subtle blueprint grid in the background — echoes the hero schematic */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,228,218,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,228,218,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.specs::after {
  /* Corner tick — drawing-mark flavor */
  content: '';
  position: absolute;
  top: 32px; right: 40px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--teal);
  border-right: 1px solid var(--teal);
  opacity: 0.6;
}
.specs-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── Header row ─── */
.specs-header {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 28px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule-hi);
}
.specs-tag {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.specs-tag-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--molten);
  display: flex;
  align-items: center;
  gap: 12px;
}
.specs-tag-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--molten);
}
.specs-tag-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--slate);
  padding-left: 44px; /* align past the ::before rule */
}
.specs-sub {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--bone-soft);
  margin: 0;
  max-width: 560px;
  font-weight: 400;
}

/* ─── Spec rows ─── */
.specs-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule-hi);
  border: 1px solid var(--rule-hi);
}
.spec {
  background: var(--obsidian);
  padding: 36px 32px 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
  transition: background 0.3s;
}
.spec:hover { background: var(--strata); }

.spec-idx {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--teal-bright);
  padding: 6px 10px;
  border: 1px solid var(--teal);
  background: rgba(20, 53, 58, 0.2);
  line-height: 1;
  align-self: start;
}
.spec-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.spec-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}
.spec-val {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 2px 0 10px;
}
.spec-qual {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--bone-soft);
  margin: 0;
  font-weight: 400;
}

/* ─── Footer sign-off ─── */
.specs-foot {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.specs-foot-tick { color: var(--slate); }
.specs-foot-sep { color: var(--rule-hi); }
.specs-foot-link {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s;
}
.specs-foot-link:hover { border-bottom-color: var(--ember); }

@media (max-width: 960px) {
  .specs { padding: 56px 20px 48px; }
  .specs-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .specs-grid { grid-template-columns: 1fr; }
  .spec { padding: 28px 24px; }
  .specs-foot { font-size: 10px; }
}

/* ═══════════════ SAFETY PILLARS (C-suite guarantees) ═══════════════ */
.safety {
  background: var(--obsidian);
  position: relative;
  overflow: hidden;
}
.safety::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}
.safety-inner { position: relative; }

.safety-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-hi);
  border: 1px solid var(--rule-hi);
}
.safety-card {
  background: var(--obsidian);
  padding: 48px 36px 52px;
  position: relative;
  transition: background 0.3s;
}
.safety-card:hover { background: var(--strata); }

.safety-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-bright);
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.safety-num::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--teal-bright);
}
.safety-card h3 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.safety-card h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}
.safety-card p {
  color: var(--bone-soft);
  font-size: 16px;
  line-height: 1.55;
}
.safety-card .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule-hi);
}
.safety-card .kicker strong {
  color: var(--ember);
  font-weight: 500;
}

/* ═══════════════ SERVICE PILLARS (rebuild of .pillars semantics) ═══════════════ */
/* The .pillar layout still works — we just need slightly different chrome for the */
/* named services. Reuse base .pillars but add a service variant. */
.services .pillar {
  padding: 48px 32px 48px 0;
}
.services .pillar:not(:first-child) { padding-left: 32px; }
.services .pillar-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--molten);
  padding: 4px 10px;
  border: 1px solid rgba(255, 87, 34, 0.3);
  margin-bottom: 20px;
}

/* ═══════════════ PRODUCT & SERVICE LADDER ═══════════════ */
/* Replaces the generic three-pillar Services section. Renders as three */
/* grouped capability blocks — Entry / Engagement / Ongoing — each with */
/* a labeled group header and tier rows. Reads as a professional services */
/* firm's rate sheet, not a SaaS pricing table. */

.services .section-head {
  margin-bottom: 72px;
}
.services-sub {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--bone-soft);
  margin: 24px 0 0;
  max-width: 780px;
  font-weight: 400;
  /* Ensure this lands in the title column (col 2) of .section-head grid, */
  /* not the narrow 180px section-index column. */
  grid-column: 2;
}
@media (max-width: 960px) {
  .services-sub { grid-column: 1; }
}

.ladder-group {
  max-width: 1200px;
  margin: 0 auto 64px;
}
.ladder-group:last-of-type { margin-bottom: 40px; }

.ladder-group-head {
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule-hi);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: baseline;
}
.ladder-group-idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  padding: 5px 10px;
  border: 1px solid rgba(255, 122, 61, 0.3);
  line-height: 1;
  white-space: nowrap;
  align-self: start;
}
.ladder-group-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--bone);
  margin: 0 0 8px;
  grid-column: 2;
}
.ladder-group-sub {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone-soft);
  margin: 0;
  max-width: 720px;
  grid-column: 2;
  font-weight: 400;
}

.ladder {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.ladder-row {
  display: grid;
  grid-template-columns: 130px 1fr 180px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background 0.25s;
}
.ladder-row:hover { background: rgba(20, 53, 58, 0.06); }
.ladder-row-accent {
  background: rgba(255, 87, 34, 0.04);
  border-bottom: 1px solid rgba(255, 87, 34, 0.15);
}
.ladder-row-accent:hover { background: rgba(255, 87, 34, 0.08); }

.ladder-tier {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  padding: 6px 10px;
  border: 1px solid var(--teal);
  background: rgba(20, 53, 58, 0.2);
  line-height: 1;
  align-self: start;
  justify-self: start;
  white-space: nowrap;
  font-weight: 500;
  margin-top: 2px;
}
.ladder-row-accent .ladder-tier {
  color: var(--ember);
  border-color: rgba(255, 87, 34, 0.4);
  background: rgba(255, 87, 34, 0.08);
}

.ladder-offering h4 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.ladder-focus {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone-soft);
  margin: 0;
  font-weight: 400;
}

.ladder-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.ladder-price-value {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 1;
  white-space: nowrap;
}
.ladder-row-accent .ladder-price-value { color: var(--ember); }
.ladder-price-unit {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--bone-dim);
  margin-left: 2px;
}
.ladder-price-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--slate);
  text-transform: uppercase;
}

.ladder-footer {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 24px 28px;
  background: rgba(13, 17, 20, 0.4);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
}
.ladder-footer-tick {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  padding: 4px 10px;
  border: 1px solid rgba(255, 122, 61, 0.3);
  line-height: 1;
  white-space: nowrap;
  align-self: start;
}
.ladder-footer p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--bone-dim);
  margin: 0;
  font-weight: 400;
}

@media (max-width: 960px) {
  .ladder-group-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ladder-group-title, .ladder-group-sub { grid-column: 1; }
  .ladder-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .ladder-price {
    text-align: left;
    align-items: flex-start;
    flex-direction: row;
    gap: 14px;
    align-items: baseline;
  }
  .ladder-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* Sits directly below the hero. Purpose: halve the scroll distance from */
/* landing to the pilot offer. Styled to read as a shipping label, not a */
/* web banner — industrial tape, not a CTA bar. */
.pilot-banner {
  display: block;
  text-decoration: none;
  background: linear-gradient(90deg,
    rgba(255, 87, 34, 0.08) 0%,
    rgba(255, 87, 34, 0.04) 50%,
    rgba(255, 87, 34, 0.08) 100%);
  border-top: 1px solid rgba(255, 87, 34, 0.3);
  border-bottom: 1px solid rgba(255, 87, 34, 0.3);
  padding: 20px 40px;
  transition: background 0.25s;
  color: var(--bone);
  position: relative;
}
.pilot-banner:hover {
  background: linear-gradient(90deg,
    rgba(255, 87, 34, 0.14) 0%,
    rgba(255, 87, 34, 0.08) 50%,
    rgba(255, 87, 34, 0.14) 100%);
}
.pilot-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.pilot-banner-tick {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
  padding: 5px 10px;
  border: 1px solid var(--ember);
  white-space: nowrap;
  flex-shrink: 0;
}
.pilot-banner-label {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--bone);
  letter-spacing: -0.01em;
  flex: 1;
  text-align: center;
}
.pilot-banner-label strong {
  color: var(--ember);
  font-weight: 500;
}
.pilot-banner-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-soft);
}
.pilot-banner-arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-soft);
  padding: 8px 16px;
  border: 1px solid var(--rule-hi);
  transition: all 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pilot-banner:hover .pilot-banner-arrow {
  background: var(--ember);
  color: var(--ink);
  border-color: var(--ember);
}

@media (max-width: 960px) {
  .pilot-banner { padding: 16px 20px; }
  .pilot-banner-inner {
    gap: 14px;
    justify-content: flex-start;
  }
  .pilot-banner-label {
    text-align: left;
    font-size: 15px;
    flex: 1 1 100%;
    order: 2;
  }
  .pilot-banner-tick { order: 1; }
  .pilot-banner-arrow { order: 3; flex: 1; text-align: center; }
  .pilot-banner-sub { display: block; margin-top: 2px; }
}


/* The page's primary conversion instrument. Explicit price, explicit scope, */
/* explicit deliverables. Designed to survive side-by-side with a $50M */
/* Accenture proposal by being legibly, unambiguously scoped. */

.pilot {
  background:
    linear-gradient(135deg, rgba(20, 53, 58, 0.45) 0%, rgba(20, 53, 58, 0.15) 100%);
  border: 1px solid var(--teal);
  padding: 48px 48px 44px;
  margin-bottom: 72px;
  position: relative;
}
.pilot::before {
  content: 'START HERE';
  position: absolute;
  top: -10px;
  left: 40px;
  background: var(--mantle-1, #2a1a10);
  background-color: #1a1208;
  padding: 2px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ember);
  font-weight: 500;
}
.pilot::after {
  /* Drafting-tick corner — echoes hero schematic */
  content: '';
  position: absolute;
  top: 20px; right: 24px;
  width: 12px; height: 12px;
  border-top: 1px solid var(--teal-bright);
  border-right: 1px solid var(--teal-bright);
  opacity: 0.5;
}

/* ─── Header: meta row, title, lede ─── */
.pilot-header {
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(232, 228, 218, 0.12);
}
.pilot-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pilot-meta-tick { color: var(--ember); }
.pilot-meta-sep { color: rgba(232, 228, 218, 0.2); }
.pilot-meta-code { color: var(--slate); }

.pilot-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 14px;
}
.pilot-lede {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--bone-soft);
  margin: 0;
  max-width: 700px;
  font-weight: 400;
}

/* ─── Terms row: price / duration / commitment ─── */
.pilot-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 36px;
  padding: 0;
  border: 1px solid rgba(232, 228, 218, 0.1);
  background: rgba(13, 17, 20, 0.4);
}
.pilot-term {
  padding: 24px 28px;
  border-right: 1px solid rgba(232, 228, 218, 0.1);
}
.pilot-term:last-child { border-right: 0; }
.pilot-term dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.pilot-term dd {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pilot-price {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ember);
  letter-spacing: -0.025em;
  line-height: 1;
}
.pilot-price-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 400;
  line-height: 1.3;
}

/* ─── Deliverables list ─── */
.pilot-deliverables {
  margin-bottom: 32px;
}
.pilot-deliverables h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 20px;
  font-weight: 500;
}
.pilot-deliverables ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 36px;
}
.pilot-deliverables li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--bone-soft);
}
.pilot-deliverables li strong {
  color: var(--bone);
  font-weight: 500;
}
.deliverable-idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ember);
  padding: 4px 8px;
  border: 1px solid rgba(255, 122, 61, 0.35);
  line-height: 1;
  white-space: nowrap;
  align-self: start;
  margin-top: 2px;
}

/* ─── Guarantee / Mutual Exit clause ─── */
.pilot-guarantee {
  padding: 20px 24px;
  background: rgba(255, 87, 34, 0.06);
  border-left: 2px solid var(--molten);
  margin-bottom: 32px;
}
.pilot-guarantee-tick {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--molten);
  margin-bottom: 8px;
  font-weight: 500;
}
.pilot-guarantee p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--bone);
  margin: 0;
  font-weight: 400;
}

/* ─── CTAs ─── */
.pilot-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pilot-cta-primary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 26px;
  background: var(--molten);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--molten);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.pilot-cta-primary:hover {
  background: var(--ember);
  border-color: var(--ember);
  transform: translateX(2px);
}
.pilot-cta-primary .arrow { transition: transform 0.25s; }
.pilot-cta-primary:hover .arrow { transform: translateX(4px); }

.pilot-cta-ghost {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 22px;
  color: var(--bone-soft);
  text-decoration: none;
  border: 1px solid var(--rule-hi);
  transition: all 0.25s;
}
.pilot-cta-ghost:hover {
  color: var(--bone);
  border-color: var(--teal-bright);
}

/* ─── Closing tagline after the offer ─── */
.closing-tagline {
  margin-top: 24px;
  max-width: 900px;
}

@media (max-width: 960px) {
  .safety-grid { grid-template-columns: 1fr; }
  .pilot {
    padding: 36px 24px 32px;
    margin-bottom: 48px;
  }
  .pilot::before { left: 20px; }
  .pilot-terms {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pilot-term {
    border-right: 0;
    border-bottom: 1px solid rgba(232, 228, 218, 0.1);
  }
  .pilot-term:last-child { border-bottom: 0; }
  .pilot-deliverables ul {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pilot-ctas { gap: 12px; }
  .pilot-cta-primary,
  .pilot-cta-ghost { width: 100%; justify-content: center; text-align: center; }
}

/* ═══════════════ SUCCESSION ROTATOR ═══════════════ */
/* The emotional hero. Industrial rotator — industry tabs drive a mechanical */
/* "strata drum" vertical shift. Static header; slides carry the pain. */

.succession {
  padding: 120px 40px 100px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.succession::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  background: radial-gradient(ellipse, rgba(255, 87, 34, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
/* Faint horizontal striation — suggests a drum sitting in the section */
.succession::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 40px,
    rgba(232, 228, 218, 0.018) 40px,
    rgba(232, 228, 218, 0.018) 41px
  );
  pointer-events: none;
}
.succession-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Header: tag + industry tabs ─── */
.succession-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule-hi);
  flex-wrap: wrap;
}
.succession-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--molten);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.succession-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--molten);
}

.succession-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule-hi);
  background: rgba(13, 17, 20, 0.5);
}
.succession-tab {
  font-family: var(--mono);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule-hi);
  padding: 14px 20px;
  color: var(--bone-dim);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
  transition: all 0.25s ease;
  position: relative;
}
.succession-tab:last-child { border-right: 0; }
.succession-tab:hover { color: var(--bone); background: rgba(255, 87, 34, 0.04); }
.succession-tab:focus-visible {
  outline: 1px solid var(--teal-bright);
  outline-offset: -2px;
}
.succession-tab .tab-idx {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
}
.succession-tab .tab-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.succession-tab.is-active {
  color: var(--bone);
  background: rgba(255, 87, 34, 0.09);
}
.succession-tab.is-active .tab-idx { color: var(--molten); }
.succession-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--molten);
}

/* ─── The drum window ─── */
/* Default (no JS): slides stack naturally and all are readable. */
/* When JS initializes, it adds .is-ready to the drum which engages */
/* the window/overflow/scroll-stack behavior. */
.drum {
  position: relative;
  background: transparent;
}
.drum.is-ready {
  /* Exact height is set by JS based on the tallest slide's natural size. */
  /* min-height is a floor for very short content; CSS never caps. */
  min-height: 380px;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(13,17,20,0.9) 0%, transparent 8%, transparent 92%, rgba(13,17,20,0.9) 100%);
}

/* Horizontal "rails" top and bottom — only visible when drum is ready */
.drum-rails {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s;
}
.drum.is-ready .drum-rails { opacity: 1; }
.drum-rails .rail {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 87, 34, 0.4) 10%,
    rgba(255, 87, 34, 0.4) 90%,
    transparent 100%);
}
.drum-rails .rail-top { top: 0; }
.drum-rails .rail-bottom { bottom: 0; }

/* The stack moves as a single unit — but only when ready. */
.drum-stack {
  position: relative;
}
.drum.is-ready .drum-stack {
  transition: transform 900ms cubic-bezier(0.72, 0.02, 0.2, 1);
  will-change: transform;
}

.slide {
  padding: 36px 0 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  box-sizing: border-box;
  transition: opacity 600ms ease;
  border-top: 1px solid var(--rule);
}
.slide:first-child { border-top: 0; }
/* In drum mode, each slide fills the drum height; JS sets the exact value. */
.drum.is-ready .slide { border-top: 0; }

/* Fade non-active slides only when drum is active */
.drum.is-ready .drum-stack[data-active="0"] .slide[data-slide-idx]:not([data-slide-idx="0"]),
.drum.is-ready .drum-stack[data-active="1"] .slide[data-slide-idx]:not([data-slide-idx="1"]),
.drum.is-ready .drum-stack[data-active="2"] .slide[data-slide-idx]:not([data-slide-idx="2"]),
.drum.is-ready .drum-stack[data-active="3"] .slide[data-slide-idx]:not([data-slide-idx="3"]) {
  opacity: 0.15;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.slide-tick {
  color: var(--molten);
  padding: 4px 10px;
  border: 1px solid rgba(255, 87, 34, 0.4);
  letter-spacing: 0.18em;
}
.slide-sector {
  color: var(--slate);
  letter-spacing: 0.15em;
}

.slide-q {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: var(--bone);
  max-width: 1000px;
}
.slide-q em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}

.slide-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px dashed var(--rule-hi);
}
.trio-item { min-width: 0; }
.trio-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 10px;
}
/* Third column (the Handoff) gets the molten accent */
.trio-item:nth-child(3) .trio-label { color: var(--molten); }

.trio-item p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--bone-soft);
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

/* ─── Progress indicator ─── */
.drum-progress {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--slate);
  pointer-events: none;
  z-index: 4;
}
.drum-progress-label { white-space: nowrap; }
.drum-progress-bar {
  display: inline-block;
  width: 140px;
  height: 1px;
  background: var(--rule-hi);
  position: relative;
  overflow: hidden;
}
.drum-progress-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: var(--molten);
  transform: scaleX(0);
}
.drum-progress.is-paused .drum-progress-label { color: var(--teal-bright); }
.drum-progress.is-paused .drum-progress-label::before { content: 'PAUSED · '; }
.drum-progress.is-paused .drum-progress-fill { background: var(--teal-bright); }

/* ─── Static foot: hostage line + powered-by ─── */
.succession-foot {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: center;
}
.succession-foot .succession-a {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--bone-soft);
  max-width: 700px;
  margin: 0;
  font-weight: 400;
}
.succession-foot .succession-a em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}

.succession-powered {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-soft);
  padding: 16px 20px;
  border: 1px solid var(--rule-hi);
  background: rgba(30, 77, 82, 0.08);
  line-height: 1.5;
}
.powered-tick { color: var(--slate); }
.powered-sep { color: var(--rule-hi); }
.powered-desc { color: var(--bone-dim); font-size: 10px; letter-spacing: 0.1em; }
.succession-powered .mc { font-size: 14px; text-transform: none; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  .drum-stack { transition-duration: 0ms !important; }
  .drum-progress-fill { transition: none; }
}

@media (max-width: 960px) {
  .succession { padding: 72px 20px; }
  .succession-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .succession-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .succession-tabs::-webkit-scrollbar { display: none; }
  .succession-tab { min-width: 100px; flex-shrink: 0; }

  /* On mobile, ditch the drum — show only the active slide. */
  .drum.is-ready {
    height: auto !important;
    min-height: 580px;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .drum.is-ready .drum-stack {
    height: auto !important;
    transform: none !important;
    transition: none;
  }
  .drum.is-ready .slide {
    height: auto !important;
    min-height: 0;
    display: none;
    padding: 24px 0;
    opacity: 1 !important;
  }
  .drum.is-ready .drum-stack[data-active="0"] .slide[data-slide-idx="0"],
  .drum.is-ready .drum-stack[data-active="1"] .slide[data-slide-idx="1"],
  .drum.is-ready .drum-stack[data-active="2"] .slide[data-slide-idx="2"],
  .drum.is-ready .drum-stack[data-active="3"] .slide[data-slide-idx="3"] {
    display: grid;
  }
  .slide-trio { grid-template-columns: 1fr; gap: 20px; }
  .drum-progress { display: none; }
  .succession-foot { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════ DESIGN NOTE (under product pillars) ═══════════════ */
.design-note {
  margin-top: 72px;
  padding: 36px 40px;
  border: 1px solid var(--rule-hi);
  background: linear-gradient(135deg, rgba(30, 77, 82, 0.12) 0%, transparent 100%);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}
.design-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 40px;
  background: var(--teal-bright);
}
/* Quiet variant — the AI note. Reduced opacity, smaller margin-top, no accent bar. */
.design-note-quiet {
  margin-top: 24px;
  background: transparent;
  border-color: var(--rule);
  opacity: 0.82;
}
.design-note-quiet::before {
  background: var(--rule-hi);
  height: 24px;
}
.design-note-quiet .design-note-tag { color: var(--slate); }
.design-note-quiet .design-note-body h4 { font-size: clamp(18px, 1.8vw, 22px); }

/* ═══════════════ FOUNDER / THE PEOPLE ═══════════════ */
/* The missing human signal. Enterprise buyers in this segment buy people */
/* first and technology second. This section says: small firm, one person */
/* in front, direct contact, no pod of consultants. */

.founder {
  background: var(--ink);
  padding: 130px 40px;
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.founder::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 87, 34, 0.4) 30%,
    rgba(255, 87, 34, 0.4) 70%,
    transparent 100%);
}

.founder-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

/* ─── Portrait column ─── */
.founder-left { position: sticky; top: 100px; }
.founder-portrait {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid var(--rule-hi);
  background: var(--obsidian);
}
.founder-portrait::before {
  /* Ticker at top edge */
  content: 'MANTLEWAY · PRINCIPAL · 2026';
  position: absolute;
  top: -8px;
  left: 16px;
  background: var(--ink);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
}
.founder-portrait-placeholder {
  width: 100%;
  height: 100%;
}
.founder-portrait-placeholder svg { width: 100%; height: 100%; display: block; }

/* ─── Bio column ─── */
.founder-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--molten);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.founder-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--molten);
}

.founder-title {
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 40px;
  max-width: 680px;
}
.founder-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}

.founder-bio {
  margin-bottom: 36px;
}
.founder-name {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.founder-name-text {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.015em;
}
.founder-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate);
  text-transform: uppercase;
}

.founder-paragraph {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bone-soft);
  margin: 0 0 18px;
  max-width: 680px;
  font-weight: 400;
}
.founder-paragraph:last-child { margin-bottom: 0; }

/* ─── Proof row: LinkedIn / email / phone ─── */
.founder-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-hi);
  border: 1px solid var(--rule-hi);
  max-width: 680px;
}
.founder-link {
  background: var(--ink);
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s;
}
.founder-link:hover { background: var(--obsidian); }
.founder-link-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.founder-link-val {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--bone);
  letter-spacing: -0.01em;
  word-break: break-word;
  font-weight: 400;
}
.founder-link:hover .founder-link-val { color: var(--ember); }

@media (max-width: 960px) {
  .founder { padding: 72px 20px; }
  .founder-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .founder-left { position: static; }
  .founder-portrait { max-width: 240px; }
  .founder-proof { grid-template-columns: 1fr; }
}
.design-note-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-bright);
  padding-top: 4px;
}
.design-note-body h4 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 14px;
}
.design-note-body h4 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}
.design-note-body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone-soft);
  margin: 0;
  max-width: 760px;
}

/* ═══════════════ HQ / HEADQUARTERS ═══════════════ */
.hq {
  background: var(--obsidian);
  padding: 130px 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hq-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.hq-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--molten);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hq-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--molten);
}
.hq-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 28px;
}
.hq-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}
.hq-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--bone-soft);
  margin-bottom: 40px;
  max-width: 560px;
}

.hq-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.hq-meta-item { display: flex; flex-direction: column; gap: 6px; }
.hq-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}
.hq-meta-value {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--bone);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hq-meta-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-bright);
  letter-spacing: 0.05em;
}

.hq-right {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.hq-right svg { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .succession { padding: 80px 20px; }
  .design-note {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    margin-top: 40px;
  }
  .hq { padding: 80px 20px; }
  .hq-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hq-meta { grid-template-columns: 1fr; gap: 16px; }
  .hq-right { max-width: 320px; }
}
