/* ============================================================
   Mi6 Group — site stylesheet
   Brand-system locked tokens. Editorial, executive, restrained.
   ============================================================ */

:root {
  /* Brand colors */
  --black: #1C1B19;
  --red: #D4282E;
  --gray-text: #4B5563;
  --gray-light: #6B7280;
  --gray-border: #D8D2C4;
  --surface: #F4F1EA;
  --bg: #ECE7DD;
  --white: #FFFFFF;

  /* Type scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: clamp(28px, 3.2vw, 38px);
  --text-2xl: clamp(36px, 4.6vw, 56px);
  --text-hero: clamp(44px, 6.6vw, 88px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  font-feature-settings: "ss01", "cv11";
}

/* ===== Layout primitives ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.section--tight {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.section--bg-surface { background: var(--surface); }
.section--bg-warm { background: var(--bg); }

/* ===== Type ===== */
h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--black);
}
h1 { font-size: var(--text-hero); font-weight: 600; line-height: 1.05; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--gray-text);
  max-width: 60ch;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--gray-border);
  margin: var(--space-12) 0;
}
.rule--red {
  height: 2px;
  width: 56px;
  background: var(--red);
  margin: 0 0 var(--space-6);
}

/* ===== Buttons / links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--black); }
.btn--ghost {
  background: transparent;
  color: var(--black);
}
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--on-dark {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--on-dark:hover { background: transparent; color: var(--white); border-color: var(--white); }

.text-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid var(--gray-border);
  transition: border-color 200ms var(--ease);
}
.text-link:hover { border-color: var(--black); }
.text-link--on-dark { color: var(--white); border-color: rgba(255,255,255,0.3); }
.text-link--on-dark:hover { border-color: var(--white); }

/* ===== Top nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.nav--scrolled { border-color: var(--gray-border); }
.nav--on-dark {
  background: rgba(28,27,25,0.78);
  color: var(--white);
}
.nav--on-dark.nav--scrolled { border-color: rgba(255,255,255,0.08); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand img { height: 22px; width: auto; display: block; }
.nav__brand--partner img { height: 30px; }
@media (max-width: 720px) { .nav__brand--partner img { height: 26px; } }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: inherit;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 180ms var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--red);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding: var(--space-6) var(--gutter) var(--space-8);
    transform: translateY(-110%);
    transition: transform 280ms var(--ease);
  }
  .nav--on-dark .nav__links { background: #1C1B19; border-color: rgba(255,255,255,0.08); }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links li { width: 100%; border-bottom: 1px solid var(--gray-border); }
  .nav--on-dark .nav__links li { border-color: rgba(255,255,255,0.08); }
  .nav__links li:last-child { border: 0; }
  .nav__links a { display: block; padding: 16px 0; font-size: 16px; }
}

/* ===== Hero (dark) ===== */
.hero-dark {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding-top: clamp(80px, 14vw, 180px);
  padding-bottom: clamp(80px, 14vw, 180px);
  overflow: hidden;
}
.hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.hero-dark__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-dark__lockup {
  margin: 0 auto var(--space-12);
  max-width: 460px;
}
.hero-dark__lockup img { width: 100%; height: auto; }
.hero-dark h1 {
  color: var(--white);
  max-width: 18ch;
  margin: 0 auto var(--space-6);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.hero-dark__sub {
  color: rgba(255,255,255,0.72);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto var(--space-10);
}
.hero-dark__cta {
  display: inline-flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Page hero (light) ===== */
.page-hero {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background: var(--white);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: var(--space-6);
}
.page-hero .lede { max-width: 56ch; }

/* ===== Footer ===== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: clamp(56px, 7vw, 88px) 0 var(--space-10);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-12);
}
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
.footer__brand img {
  width: 320px;
  max-width: 100%;
  margin-bottom: var(--space-6);
}
.footer__brand p {
  font-size: var(--text-sm);
  max-width: 38ch;
}
.footer__col h5 {
  color: var(--white);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: var(--space-2); font-size: var(--text-sm); }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 600px) {
  .footer__bottom { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
}

/* ===== Card / pillar ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; gap: var(--space-6); } }

.pillar {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.pillar__num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  margin-bottom: var(--space-6);
}
.pillar h3 { margin-bottom: var(--space-4); }
.pillar p { color: var(--gray-text); font-size: var(--text-base); }

/* ===== Two-column generic ===== */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: var(--space-8); } }

.two-col__head .eyebrow { margin-bottom: var(--space-6); }
.two-col__head h2 { max-width: 14ch; }

/* ===== Outcome list ===== */
.outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--gray-border);
}
@media (max-width: 720px) { .outcomes { grid-template-columns: 1fr; } }

.outcome {
  padding: var(--space-10) var(--space-6) var(--space-10) 0;
  border-bottom: 1px solid var(--gray-border);
}
.outcomes > .outcome:nth-child(odd) { padding-right: var(--space-10); }
.outcomes > .outcome:nth-child(even) {
  padding-left: var(--space-10);
  border-left: 1px solid var(--gray-border);
}
@media (max-width: 720px) {
  .outcomes > .outcome { padding: var(--space-8) 0; border-left: 0 !important; }
}
.outcome__sector {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: var(--space-3);
}
.outcome h4 { margin-bottom: var(--space-3); font-size: var(--text-lg); }
.outcome p { font-size: var(--text-base); color: var(--gray-text); }

/* ===== Methodology timeline ===== */
.timeline {
  position: relative;
  margin-top: var(--space-8);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--gray-border);
}
.phase {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-8);
  padding: var(--space-10) 0;
  position: relative;
  align-items: start;
}
@media (max-width: 720px) {
  .timeline::before { display: none; }
  .phase { grid-template-columns: 1fr; gap: var(--space-3); }
  .phase__dot { margin-left: 0; }
}
.phase:not(:last-child) { border-bottom: 1px solid var(--gray-border); }
.phase__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum";
  margin-top: 4px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border: 2px solid var(--surface);
}
.section--bg-warm .phase__dot { border-color: var(--bg); }
.phase__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-10); }
@media (max-width: 880px) { .phase__inner { grid-template-columns: 1fr; gap: var(--space-4); } }
.phase__head .meta {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: var(--space-3);
}
.phase h3 { margin-bottom: var(--space-3); }
.phase p { color: var(--gray-text); margin-bottom: var(--space-6); }
.phase ul { list-style: none; padding: 0; margin: 0; }
.phase li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--black);
}
.phase li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 12px;
  height: 1px;
  background: var(--red);
}

/* ===== Operator profiles ===== */
.operators-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--gray-border);
}
@media (max-width: 720px) { .operators-grid { grid-template-columns: 1fr; } }
.operator {
  padding: var(--space-10) var(--space-6) var(--space-10) 0;
  border-bottom: 1px solid var(--gray-border);
}
.operators-grid > .operator:nth-child(even) {
  padding-left: var(--space-10);
  border-left: 1px solid var(--gray-border);
}
@media (max-width: 720px) {
  .operators-grid > .operator { padding: var(--space-8) 0; border-left: 0 !important; }
}
.operator__role {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-3);
  font-weight: 600;
}
.operator h4 { margin-bottom: var(--space-3); font-size: var(--text-lg); }
.operator p { color: var(--gray-text); }

/* Named partner card */
.partner-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--gray-border);
  margin-bottom: var(--space-6);
  align-items: start;
}
@media (max-width: 540px) { .partner-card { grid-template-columns: 1fr; } }
.partner-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.partner-card__name { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.partner-card__role {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: var(--space-3);
}

/* ===== Forms ===== */
.form { display: grid; gap: var(--space-4); max-width: 540px; }
.form__field { display: grid; gap: 6px; }
.form__field label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-text);
}
.form__field input, .form__field textarea {
  border: 0;
  border-bottom: 1px solid var(--gray-border);
  background: transparent;
  padding: 12px 0;
  font-size: var(--text-base);
  color: var(--black);
  outline: none;
  transition: border-color 200ms var(--ease);
  border-radius: 0;
}
.form__field input:focus, .form__field textarea:focus { border-color: var(--black); }
.form__field textarea { min-height: 100px; resize: vertical; }
.form__submit { margin-top: var(--space-3); justify-self: start; }
.form__success {
  display: none;
  padding: var(--space-6);
  background: var(--surface);
  border-left: 2px solid var(--red);
  font-size: var(--text-base);
}
.form.is-submitted .form__success { display: block; }
.form.is-submitted .form__field, .form.is-submitted .form__submit { display: none; }

/* ===== CTA strip ===== */
.cta-strip {
  background: var(--black);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: left;
}
.cta-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}
@media (max-width: 720px) { .cta-strip__inner { grid-template-columns: 1fr; } }
.cta-strip h2 { color: var(--white); max-width: 18ch; }
.cta-strip__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .cta-strip__actions { justify-content: flex-start; } }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Misc ===== */
.kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  font-weight: 600;
}
.text-muted { color: var(--gray-text); }
.text-on-dark { color: rgba(255,255,255,0.78); }
.divider-red {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: 0 0 var(--space-6);
  border: 0;
}

/* Intelligence private page */
.intel-page {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
}
.intel-page main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
.intel-card {
  max-width: 640px;
}
.intel-card h1 {
  color: var(--white);
  font-weight: 500;
  margin-bottom: var(--space-6);
  font-size: clamp(34px, 4.4vw, 60px);
}
.intel-card .lede { color: rgba(255,255,255,0.7); margin-bottom: var(--space-10); }
.intel-form { display: grid; gap: var(--space-4); max-width: 460px; }
.intel-form input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 14px 0;
  font-size: var(--text-base);
  outline: none;
  transition: border-color 200ms var(--ease);
  border-radius: 0;
}
.intel-form input:focus { border-color: var(--white); }
.intel-form input::placeholder { color: rgba(255,255,255,0.45); }

/* Gate (operators-private) */
.gate {
  position: fixed;
  inset: 0;
  background: var(--black);
  color: var(--white);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.gate.is-unlocked { display: none; }
.gate__inner { max-width: 420px; width: 100%; }
.gate__logo { width: 200px; margin-bottom: var(--space-10); }
.gate h2 { color: var(--white); font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-3); }
.gate p { color: rgba(255,255,255,0.65); font-size: var(--text-sm); margin-bottom: var(--space-8); }
.gate__row { display: flex; gap: var(--space-3); }
.gate__row input {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 12px 0;
  outline: none;
  font-size: var(--text-base);
  border-radius: 0;
}
.gate__row input:focus { border-color: var(--white); }
.gate__error {
  margin-top: var(--space-3);
  color: var(--red);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: none;
}
.gate.is-error .gate__error { display: block; }

/* Operators-private content */
.private-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--gray-border);
  padding: var(--space-3) 0;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-align: center;
}
.private-banner span { color: var(--red); font-weight: 600; }

.aip-teaser {
  background: var(--surface);
  border: 1px solid var(--gray-border);
  padding: var(--space-8);
  border-radius: 2px;
}
.aip-teaser__frame {
  background: var(--black);
  color: var(--white);
  padding: var(--space-8);
  border-radius: 2px;
  margin-top: var(--space-6);
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
  font-size: var(--text-sm);
  line-height: 1.7;
}
.aip-teaser__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.aip-teaser__row:last-child { border-bottom: 0; }
.aip-teaser__row .label { color: rgba(255,255,255,0.5); }
.aip-teaser__row .val { color: var(--white); }

/* utilities */
.flow > * + * { margin-top: var(--space-4); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================================
   Brand spine — hero badge: Reactive -> Proactive -> Predictive
   ============================================================ */
.spine {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin: 0 0 var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.spine__end {
  color: var(--white);
  font-weight: 600;
  position: relative;
}
.spine__end::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--red);
}

/* On a light section, fall back gracefully */
.section .spine,
.page-hero .spine {
  border-color: var(--gray-border);
  background: var(--white);
  color: var(--gray-text);
}
.section .spine__end,
.page-hero .spine__end { color: var(--black); }

/* ============================================================
   M-PACT letterform strip — methodology hero progression
   ============================================================ */
.mpact-strip {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-border);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--gray-text);
  letter-spacing: -0.005em;
}
.mpact-strip span { display: inline-flex; align-items: baseline; gap: 0; }
.mpact-strip b {
  display: inline-block;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  color: var(--black);
  line-height: 1;
  margin-right: 1px;
  letter-spacing: -0.03em;
}
.mpact-strip .sep {
  color: var(--red);
  font-weight: 500;
  padding: 0 4px;
  font-size: var(--text-base);
}
@media (max-width: 540px) {
  .mpact-strip { gap: 8px 12px; font-size: var(--text-sm); }
  .mpact-strip b { font-size: 24px; }
}

/* ============================================================
   CTA strip — sub-line under headline
   ============================================================ */
.cta-strip__sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  line-height: 1.55;
  margin: var(--space-3) 0 0;
  max-width: 56ch;
}

/* ============================================================
   Prose — long-form copy (About, Privacy, Terms)
   ============================================================ */
.prose {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--black);
  max-width: 68ch;
}
.prose p { margin: 0 0 var(--space-5); color: var(--gray-text); }
.prose p:first-child { color: var(--black); font-size: clamp(18px, 1.5vw, 21px); }
.prose h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: var(--space-12) 0 var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-3);
  color: var(--black);
}
.prose strong { color: var(--black); font-weight: 600; }
.prose em { font-style: italic; color: var(--black); }
.prose ul, .prose ol {
  margin: 0 0 var(--space-5);
  padding-left: 1.4em;
  color: var(--gray-text);
}
.prose li { margin-bottom: var(--space-2); }
.prose hr.rule { margin: var(--space-10) 0 var(--space-6); }
.prose a { border-bottom: 1px solid var(--gray-border); transition: border-color 200ms var(--ease); }
.prose a:hover { border-color: var(--black); }

/* ============================================================
   Mobile polish — small refinements
   ============================================================ */
@media (max-width: 720px) {
  .hero-dark__cta { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .hero-dark__cta .text-link { margin-left: 0 !important; }
  .cta-strip__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   v2 EXTENSIONS — Two-tier brand, Hydra Teal accent, platform UI
   ============================================================ */
:root {
  --hydra: #01696F;
  --hydra-deep: #013F44;
  --hydra-tint: #E6F2F2;
  --amber: #C98B2E;
  --green: #2E8B57;
  --signal-red: #C44545;
}

/* Fonts upgrade — Satoshi/General Sans via Fontshare with Inter fallback */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&f[]=general-sans@400,500,600,700&display=swap');
body { font-family: 'Satoshi', 'Inter', system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, h4, .display { font-family: 'General Sans', 'Inter', system-ui, sans-serif; }

/* Footer wide nav — accommodate more cols */
.footer__grid--v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
}
@media (max-width: 1100px) { .footer__grid--v2 { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px) { .footer__grid--v2 { grid-template-columns: 1fr 1fr; } }

/* Top nav — 8 link slots + portal icon */
.nav__links { gap: var(--space-6); }
.nav__links a { font-size: 13px; }
.nav__portal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--gray-text);
  transition: all 200ms var(--ease);
}
.nav__portal:hover { border-color: var(--hydra); color: var(--hydra); }
.nav--on-dark .nav__portal { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.85); }
.nav--on-dark .nav__portal:hover { border-color: var(--white); color: var(--white); }
.nav__portal svg { width: 12px; height: 12px; }

@media (max-width: 1080px) {
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 12.5px; }
}

/* Hydra accent overrides (selective) */
.eyebrow::before { background: var(--hydra); }
.rule--red { background: var(--hydra); }
.btn--hydra {
  background: var(--hydra);
  border-color: var(--hydra);
  color: var(--white);
}
.btn--hydra:hover { background: var(--hydra-deep); border-color: var(--hydra-deep); color: var(--white); }
.btn--hydra-ghost {
  background: transparent;
  border-color: var(--hydra);
  color: var(--hydra);
}
.btn--hydra-ghost:hover { background: var(--hydra); color: var(--white); }
.nav__links a.is-active::after { background: var(--hydra); }
.spine__end { color: var(--hydra); }

/* Brand spine chip (mindset) */
.spine-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-6);
  background: rgba(255,255,255,0.04);
}
.spine-chip--light {
  border-color: var(--gray-border);
  color: var(--gray-text);
  background: var(--surface);
}
.spine-chip__think { opacity: 0.55; }
.spine-chip__arrow { color: var(--hydra); font-weight: 600; }

/* Tier badges */
.tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hydra);
  padding: 4px 10px;
  border: 1px solid var(--hydra);
  border-radius: 2px;
  margin-bottom: var(--space-3);
}
.tier-badge--dark { color: var(--hydra-tint); border-color: rgba(230,242,242,0.5); }

/* Card grid — generic */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } .cards--2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards, .cards--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover { border-color: var(--hydra); }
.card--hover-lift:hover { transform: translateY(-2px); }
.card h3 { margin: 0; font-size: var(--text-lg); }
.card p { color: var(--gray-text); font-size: 15px; line-height: 1.55; }
.card__foot { margin-top: auto; padding-top: var(--space-4); }
.card--surface { background: var(--surface); border-color: transparent; }

/* Soft-tease bridge card on homepage */
.bridge-card {
  background: var(--surface);
  border: 1px solid var(--gray-border);
  padding: clamp(40px, 6vw, 80px);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 820px) { .bridge-card { grid-template-columns: 1fr; gap: var(--space-6); } }
.bridge-card h2 { margin: 0; }
.bridge-card .lede { margin-top: var(--space-4); }

/* Testimonials */
.tg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 1000px) { .tg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tg { grid-template-columns: 1fr; } }
.tg__item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: clamp(24px, 2.5vw, 32px);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.tg__quote {
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  margin: 0;
}
.tg__quote::before {
  content: '"';
  display: block;
  font-size: 48px;
  line-height: 0.2;
  margin-top: 24px;
  color: var(--hydra);
  font-family: 'General Sans', serif;
  margin-bottom: 8px;
}
.tg__attr {
  font-size: 13px;
  color: var(--gray-light);
  border-top: 1px solid var(--gray-border);
  padding-top: var(--space-4);
  letter-spacing: 0.01em;
}

/* CTA pair */
.cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}
@media (max-width: 720px) { .cta-pair { grid-template-columns: 1fr; } }
.cta-pair__card {
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.cta-pair__card--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.cta-pair__card--dark .lede { color: rgba(255,255,255,0.72); }
.cta-pair__card--hydra {
  background: var(--hydra);
  color: var(--white);
  border-color: var(--hydra);
}
.cta-pair__card--hydra h3 { color: var(--white); }
.cta-pair__card--hydra .lede { color: rgba(255,255,255,0.85); }

/* Operator profile cards */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 1000px) { .ops-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .ops-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ops-grid { grid-template-columns: 1fr; } }
.op-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.op-card__avatar {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hydra) 0%, var(--hydra-deep) 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.op-card__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.op-card__badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 2px;
}
.op-card__bio { font-size: 13.5px; color: var(--gray-text); line-height: 1.5; }
.op-card__avail {
  font-size: 11.5px;
  color: var(--green);
  font-weight: 500;
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex; align-items: center; gap: 6px;
}
.op-card__avail::before {
  content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 999px;
}

/* PLATFORM PAGE — interactive demo */
.platform-hero {
  background: radial-gradient(ellipse at 50% 20%, rgba(1,105,111,0.15), transparent 60%), var(--black);
  color: var(--white);
  padding-top: clamp(100px, 14vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.platform-hero h1 {
  color: var(--white);
  font-weight: 500;
  max-width: 18ch;
  margin: 0 auto var(--space-4);
}
.platform-hero .lede {
  color: rgba(255,255,255,0.78);
  margin: 0 auto;
  max-width: 56ch;
}

/* Demo panels */
.demo {
  background: var(--surface);
}
.demo__shell {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px -16px rgba(0,0,0,0.12);
}
.demo__tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-border);
  background: var(--surface);
  overflow-x: auto;
}
.demo__tab {
  flex: 1; min-width: 140px;
  padding: 16px 18px;
  font-size: 13px; font-weight: 500;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--gray-light);
  cursor: pointer;
  transition: all 180ms var(--ease);
  text-align: left;
}
.demo__tab:hover { color: var(--black); }
.demo__tab.is-active {
  color: var(--hydra);
  border-bottom-color: var(--hydra);
  background: var(--white);
}
.demo__tab__num { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-light); display: block; margin-bottom: 4px; }
.demo__tab.is-active .demo__tab__num { color: var(--hydra); }
.demo__panel {
  padding: clamp(28px, 4vw, 56px);
  min-height: 420px;
  display: none;
}
.demo__panel.is-active { display: block; }
.demo__panel-head { margin-bottom: var(--space-8); max-width: 60ch; }
.demo__panel-head h3 { margin-bottom: var(--space-2); }
.demo__panel-head p { color: var(--gray-text); }

/* Dimension grid (3x3) */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
}
.dim {
  background: var(--surface);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-text);
  transition: all 250ms var(--ease);
  cursor: default;
}
.dim:hover {
  background: var(--white);
  border-color: var(--hydra);
  color: var(--black);
  transform: translateY(-2px);
}
.dim__icon { display: block; font-size: 18px; color: var(--hydra); margin-bottom: 8px; font-weight: 700; }

/* Dot signals (panel 2) */
.dot-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 32px auto 16px;
  align-items: center;
}
.dot {
  width: 100%;
  aspect-ratio: 1;
  max-width: 48px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--gray-border);
  transition: background 600ms var(--ease), transform 400ms var(--ease);
}
.dot.is-green { background: var(--green); }
.dot.is-amber { background: var(--amber); }
.dot.is-red { background: var(--signal-red); }
.dot-legend {
  display: flex; gap: 24px; justify-content: center;
  font-size: 12px; color: var(--gray-light);
  margin-top: 24px;
}
.dot-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot-legend i {
  width: 10px; height: 10px; border-radius: 999px; display: inline-block;
}

/* Bucket map (panel 3 + bucket display) */
.buckets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: var(--space-8);
}
@media (max-width: 720px) { .buckets { grid-template-columns: repeat(2, 1fr); } }
.bucket {
  background: var(--surface);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  transition: all 250ms var(--ease);
}
.bucket--upside { border-top: 3px solid var(--amber); }
.bucket--probable { border-top: 3px solid var(--hydra); }
.bucket--commit { border-top: 3px solid var(--green); }
.bucket--omitted { border-top: 3px solid var(--signal-red); }
.bucket__name {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 8px;
  display: block;
}
.bucket__desc { font-size: 13px; color: var(--gray-text); line-height: 1.5; margin: 0; }

/* Time-lapse (panel 4) */
.timelapse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  position: relative;
}
@media (max-width: 720px) { .timelapse { grid-template-columns: 1fr; } }
.tl-week {
  background: var(--surface);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--gray-border);
}
.tl-week__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 12px; }
.tl-week__bucket { font-family: 'General Sans', sans-serif; font-size: 22px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.tl-week--upside .tl-week__bucket { color: var(--amber); }
.tl-week--probable .tl-week__bucket { color: var(--hydra); }
.tl-week--commit .tl-week__bucket { color: var(--green); }
.tl-week__dots { display: flex; gap: 4px; justify-content: center; margin-top: 14px; flex-wrap: wrap; max-width: 120px; margin-left: auto; margin-right: auto;}
.tl-week__dots span {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--gray-border);
}
.tl-week__dots span.g { background: var(--green); }
.tl-week__dots span.a { background: var(--amber); }
.tl-week__dots span.r { background: var(--signal-red); }

/* CALCULATOR — Deal Reality Check */
.calc {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 48px);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 8px 32px -16px rgba(0,0,0,0.08);
}
.calc__progress {
  display: flex; gap: 6px;
  margin-bottom: var(--space-8);
}
.calc__progress span {
  flex: 1;
  height: 3px;
  background: var(--gray-border);
  border-radius: 2px;
  transition: background 300ms var(--ease);
}
.calc__progress span.is-on { background: var(--hydra); }
.calc__step { display: none; }
.calc__step.is-active { display: block; animation: fadeUp 320ms var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.calc__step h3 {
  font-size: 22px;
  margin-bottom: var(--space-6);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.calc__opts { display: grid; gap: 10px; }
.calc__opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  border: 1px solid var(--gray-border);
  background: var(--white);
  border-radius: 4px;
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.calc__opt:hover { border-color: var(--hydra); background: var(--hydra-tint); }
.calc__opt.is-selected { border-color: var(--hydra); background: var(--hydra-tint); color: var(--hydra-deep); }
.calc__tickler {
  font-style: italic;
  color: var(--gray-light);
  font-size: 14px;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-border);
}
.calc__nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-4);
}
.calc__back { font-size: 13px; color: var(--gray-light); background: transparent; border: 0; cursor: pointer; padding: 6px 0; }
.calc__back:hover { color: var(--black); }
.calc__back:disabled { opacity: 0.3; cursor: default; }
.calc__next { padding: 12px 22px; }

/* Calc result screen */
.calc__result {
  text-align: center;
  padding: 24px 0;
}
.calc__result-bucket {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  line-height: 1;
}
.calc__result-bucket--upside { color: var(--amber); }
.calc__result-bucket--probable { color: var(--hydra); }
.calc__result-bucket--commit { color: var(--green); }
.calc__result-bucket--omitted { color: var(--signal-red); }
.calc__result-msg {
  font-size: 17px;
  color: var(--gray-text);
  max-width: 50ch;
  margin: 0 auto var(--space-8);
  line-height: 1.55;
}

/* Lead form */
.lead-form {
  background: var(--surface);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 36px);
  margin-top: var(--space-8);
  text-align: left;
}
.lead-form h4 {
  margin-bottom: var(--space-2);
  font-size: 18px;
}
.lead-form p { font-size: 14px; color: var(--gray-text); margin-bottom: var(--space-6); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--space-4); }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-light); }
.field input, .field textarea, .field select {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 180ms var(--ease);
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--hydra); }
.field textarea { min-height: 90px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.lead-form__success {
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
}
.lead-form__success h4 { color: var(--green); margin-bottom: 8px; }

/* Modal (pricing reserve) */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(28,27,25,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.modal-backdrop.is-open { display: flex; opacity: 1; }
.modal {
  background: var(--white);
  border-radius: 6px;
  max-width: 540px;
  width: 100%;
  padding: clamp(28px, 4vw, 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 22px; color: var(--gray-light);
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.modal__close:hover { color: var(--black); }

/* Pricing cards */
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color 200ms var(--ease);
}
.price-card:hover { border-color: var(--hydra); }
.price-card--featured {
  border-color: var(--hydra);
  position: relative;
}
.price-card--featured::before {
  content: "Most depth";
  position: absolute;
  top: -12px; right: 24px;
  background: var(--hydra);
  color: var(--white);
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 600;
}
.price-card__title { font-family: 'General Sans', sans-serif; font-size: 24px; font-weight: 600; margin: 0; }
.price-card__desc { color: var(--gray-text); font-size: 15px; }
.price-card__price {
  font-family: 'General Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--black);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin: var(--space-2) 0;
}
.price-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card__list li {
  font-size: 14.5px;
  color: var(--gray-text);
  padding-left: 22px;
  position: relative;
}
.price-card__list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--hydra); position: absolute; left: 4px; top: 8px;
}
.price-card__cta { margin-top: auto; padding-top: var(--space-4); }

/* Resources cards */
.res-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: var(--space-6);
  display: flex; flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}
.res-card__type {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hydra);
}
.res-card__title { font-family: 'General Sans', sans-serif; font-size: 18px; margin: 0; line-height: 1.25; }
.res-card__desc { font-size: 14px; color: var(--gray-text); margin: 0; }
.res-card__cta { margin-top: auto; padding-top: var(--space-4); font-size: 13px; }
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--gray-border);
  border-radius: 6px;
  padding: clamp(40px, 5vw, 64px);
  text-align: center;
  color: var(--gray-light);
}
.empty-state__icon {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--white);
  margin: 0 auto var(--space-4);
  display: grid; place-items: center;
  color: var(--gray-light);
  font-size: 22px;
  border: 1px solid var(--gray-border);
}

/* Portal feature cards */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1000px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .portal-grid { grid-template-columns: 1fr; } }
.portal-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: var(--space-6);
  opacity: 0.55;
  filter: saturate(0.6);
  position: relative;
}
.portal-card__icon {
  width: 36px; height: 36px;
  border-radius: 4px;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--hydra);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.portal-card h4 { font-size: 15px; margin: 0 0 6px; }
.portal-card p { font-size: 13px; color: var(--gray-text); margin: 0; }
.coming-soon-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hydra-tint);
  color: var(--hydra-deep);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Methodology diagram */
.flow-diagram {
  background: var(--surface);
  border-radius: 8px;
  padding: clamp(32px, 4vw, 56px);
  margin-top: var(--space-8);
}
.flow-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.flow-row {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  gap: var(--space-6);
}
@media (max-width: 820px) {
  .flow-row { grid-template-columns: 1fr; text-align: left; gap: 12px; }
}
.flow-block {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: 18px 22px;
  text-align: center;
}
.flow-block--center {
  background: var(--hydra);
  color: var(--white);
  border-color: var(--hydra);
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
}
.flow-block strong { display: block; font-size: 14px; margin-bottom: 4px; }
.flow-block span { font-size: 12px; color: var(--gray-light); }
.flow-block--center span { color: rgba(255,255,255,0.85); }
.flow-arrow {
  text-align: center;
  font-size: 22px;
  color: var(--hydra);
  font-weight: 700;
}
@media (max-width: 820px) { .flow-arrow { transform: rotate(90deg); margin: 4px 0; } }

/* Stagger reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Cast roles list */
.cast-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-6);
  list-style: none;
  padding: 0; margin: 0;
}
@media (max-width: 720px) { .cast-list { grid-template-columns: 1fr; } }
.cast-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-border);
}
.cast-list strong { font-family: 'General Sans', sans-serif; font-weight: 600; font-size: 15px; }
.cast-list span { font-size: 13.5px; color: var(--gray-text); }

/* Key principles */
.principles { counter-reset: pc; }
.principle {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--gray-border);
}
@media (max-width: 600px) { .principle { grid-template-columns: 1fr; gap: 6px; } }
.principle::before {
  counter-increment: pc;
  content: "0" counter(pc);
  font-family: 'General Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--hydra);
}
.principle h4 { margin: 0 0 8px; }
.principle p { color: var(--gray-text); margin: 0; }

/* Contact split */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 820px) { .contact-split { grid-template-columns: 1fr; } }

/* Industries cluster */
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.industries span {
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray-text);
  border: 1px solid var(--gray-border);
}

/* Storyboard tab card */
.story-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: stretch;
  transition: border-color 200ms var(--ease);
}
.story-card:hover { border-color: var(--hydra); }
@media (max-width: 720px) { .story-card { grid-template-columns: 1fr; } }
.story-card__cover {
  background: linear-gradient(135deg, var(--hydra) 0%, var(--hydra-deep) 100%);
  color: var(--white);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 12px;
}
.story-card__cover .tier-badge { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--white); align-self: flex-start; }
.story-card__cover h3 { color: var(--white); margin: 0; font-size: 24px; }
.story-card__cover p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0; }
.story-card__body { padding: clamp(24px, 3vw, 40px); }
.story-card__body p { font-size: 14.5px; color: var(--gray-text); }

/* Hide on small screens helper */
.hide-sm { display: inline; }
@media (max-width: 720px) { .hide-sm { display: none; } }


/* Ensure nav portal SVG renders at fixed size (overrides global max-width rule) */
.nav__portal svg { width: 12px !important; height: 12px !important; flex-shrink: 0; }

/* ===== Illustrated storyboard ===== */
.sb-cover {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 820px) { .sb-cover { grid-template-columns: 1fr; } }
.sb-cover__copy { padding: clamp(28px, 4vw, 48px); }
.sb-cover__copy h2 { color: var(--white); margin: 0 0 var(--space-3); font-size: clamp(28px, 3.4vw, 40px); }
.sb-cover__copy p { color: rgba(255,255,255,0.85); margin: 0; }
.sb-cover__copy .eyebrow { color: rgba(255,255,255,0.6); }
.sb-cover__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }

.sb-scenario { margin-top: clamp(40px, 6vw, 72px); }
.sb-scenario__head { max-width: 60ch; margin-bottom: var(--space-6); }
.sb-scenario__meta {
  display: inline-flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gray-light); margin-bottom: var(--space-3);
}
.sb-scenario__meta span { padding: 4px 10px; border: 1px solid var(--gray-border); border-radius: 999px; }

.sb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 1024px) { .sb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sb-panel {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sb-panel:hover { border-color: var(--hydra); transform: translateY(-2px); }
.sb-panel__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--surface); }
.sb-panel__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.sb-panel__num { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hydra); font-weight: 600; }
.sb-panel__title { font-family: 'General Sans', sans-serif; font-size: 14px; line-height: 1.3; margin: 0; color: var(--black); }

.sb-aside {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
@media (max-width: 820px) { .sb-aside { grid-template-columns: 1fr; } }
.sb-aside__card {
  background: var(--surface);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 32px);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.sb-aside__card img { width: 100%; border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; }

/* ===== Article cards ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

.art-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: clamp(20px, 2.5vw, 28px);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.art-card:hover { border-color: var(--hydra); transform: translateY(-2px); }
.art-card__type { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-light); }
.art-card__title { font-family: 'General Sans', sans-serif; font-size: 20px; line-height: 1.25; margin: 0; color: var(--black); }
.art-card__desc { font-size: 14px; color: var(--gray-text); margin: 0; flex: 1; }
.art-card__cta { font-size: 13px; color: var(--hydra); font-weight: 600; margin-top: auto; }

/* ===== Article body (long-form) ===== */
.article-body {
  max-width: 68ch;
  margin: 0 auto;
}
.article-body p { font-size: 17px; line-height: 1.7; color: var(--gray-text); margin: 0 0 var(--space-4); }
.article-body p:first-of-type { font-size: 19px; color: var(--black); }
.article-body h2 { font-family: 'General Sans', sans-serif; font-size: 24px; margin: var(--space-7) 0 var(--space-3); }
.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 20px;
  margin: var(--space-5) 0;
  font-size: 19px;
  color: var(--black);
  font-style: normal;
}
.article-meta {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: var(--space-5);
}
.article-byline {
  display: flex; gap: 12px; align-items: baseline;
  padding-top: var(--space-5);
  border-top: 1px solid var(--gray-border);
  margin-top: var(--space-7);
  font-size: 14px;
  color: var(--gray-text);
}
.article-byline strong { color: var(--black); font-weight: 600; }
.article-source { margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--gray-border); }
.article-source p { font-size: 13px; color: var(--gray-light); margin: 0; }

/* ===== M-PACT acronym block ===== */
.mpact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
@media (max-width: 900px) { .mpact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .mpact-grid { grid-template-columns: 1fr; } }
.mpact-cell {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: 8px;
}
.mpact-cell__letter {
  font-family: 'General Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--hydra);
  line-height: 1;
}
.mpact-cell__name { font-size: 14px; font-weight: 600; color: var(--black); margin: 0; }
.mpact-cell__desc { font-size: 13px; color: var(--gray-text); margin: 0; line-height: 1.45; }

/* ===== 90-day phase strip ===== */
.phase-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 820px) { .phase-strip { grid-template-columns: 1fr; } }
.phase-cell {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: var(--space-5);
}
.phase-cell__state { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.phase-cell__days { font-size: 13px; color: var(--gray-light); margin-top: 4px; }
.phase-cell__name { font-family: 'General Sans', sans-serif; font-size: 22px; margin: var(--space-2) 0; color: var(--black); }
.phase-cell__desc { font-size: 14px; color: var(--gray-text); margin: 0; line-height: 1.5; }

/* ====== Dimension grid expanded with descriptions ====== */
.dim-grid {
  max-width: 900px;
}
.dim {
  text-align: left;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: default;
}
.dim strong {
  color: var(--black);
  font-size: 15px;
  font-weight: 600;
}
.dim__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(1, 105, 111, 0.08);
  border-radius: 50%;
  margin-bottom: 4px;
}
.dim__desc {
  display: block;
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}
@media (max-width: 720px) {
  .dim-grid { grid-template-columns: 1fr 1fr; max-width: 540px; }
}
@media (max-width: 480px) {
  .dim-grid { grid-template-columns: 1fr; }
}

/* ====== AIP Screenshot Tour ====== */
.aip-tour {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12, 48px);
  max-width: 980px;
  margin: 0 auto;
}
.aip-step {
  position: relative;
  padding-left: 64px;
}
.aip-step__num {
  position: absolute;
  left: 0;
  top: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.aip-step h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.25;
  color: var(--black);
}
.aip-step > p {
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  max-width: 60ch;
}
.aip-shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}
.aip-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.aip-shot figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-light);
  text-align: center;
  font-style: italic;
}
.aip-shot--mobile {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .aip-step { padding-left: 0; }
  .aip-step__num {
    position: static;
    margin-bottom: 12px;
  }
  .aip-step h3 { font-size: 19px; }
}

/* Three-column operating model grid (About page) */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .three-col { grid-template-columns: 1fr; gap: var(--space-4); }
}
.col-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.col-card h3 {
  margin: 0;
  font-family: 'General Sans', sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--black);
}
.col-card p {
  margin: 0;
  color: var(--gray-text);
  font-size: 15.5px;
  line-height: 1.55;
}
