/* ============================================================
   Command Leadership Systems — site styles
   Dark, premium, ember accent. Zodiak display + Satoshi body.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Graphite surfaces with warm white and restrained ember accents. */
  --color-bg: #202733;
  --color-surface: #313b49;
  --color-surface-2: #142b49;
  --color-divider: #465161;
  --color-border: oklch(0.92 0.01 70 / 0.14);
  --color-text: #f7f5f0;
  --color-text-muted: #d4d9df;
  --color-text-faint: #b9c1ca;
  --color-primary: #ffad7e;
  --color-primary-hover: #ffc6a5;
  --color-primary-active: #e58a56;
  --shadow-sm: 0 1px 2px oklch(0.1 0.01 60 / 0.4);
  --shadow-md: 0 4px 12px oklch(0.05 0.01 60 / 0.5);
  --shadow-lg: 0 12px 32px oklch(0.05 0.01 60 / 0.6);

  /* Light (paper) section tokens */
  --paper-bg: #f7f5f0;
  --paper-surface: #fffdf9;
  --paper-divider: #ddd5c8;
  --paper-border: oklch(0.2 0.01 70 / 0.14);
  --paper-text: #241f1a;
  --paper-text-muted: #63594f;
  --paper-primary: #b94716;
  --paper-primary-hover: #96380e;
}

/* ============ Base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-24);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: oklch(0.68 0.18 45 / 0.35);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a,
button,
[role='button'],
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--content-wide);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition-interactive),
    background var(--transition-interactive);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo {
  width: 48px;
  height: auto;
  flex: none;
  object-fit: contain;
}
.wordmark-name { line-height: 1.3; }
.site-footer .brand-logo { width: 50px; }

@media (max-width: 600px) {
  .site-header .brand-logo { width: 32px; }
  .site-header .wordmark { gap: var(--space-2); font-size: 15px; }
  .site-header .wordmark-name { max-width: 200px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2.3vw, var(--space-8));
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text);
}

.site-nav a[aria-current='page'] {
  color: var(--color-text);
}

.site-nav .nav-cta {
  color: var(--color-primary);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.5);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
}

.site-nav .nav-cta:hover {
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

@media (min-width: 1100px) {
  .header-inner { max-width: var(--content-wide); }
  .site-nav a, .site-header .wordmark-name { white-space: nowrap; }
}

.nav-toggle {
  display: none;
  color: var(--color-text);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle:active {
  background: var(--color-surface-2);
}

@media (max-width: 880px) {
  html.nav-ready .nav-toggle {
    display: grid;
    place-items: center;
  }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4) var(--space-6) var(--space-6);
  }
  .site-nav.is-open {
    display: flex;
  }
  html:not(.nav-ready) .header-inner { flex-wrap: wrap; }
  html:not(.nav-ready) .site-nav {
    display: flex;
    position: static;
    width: 100%;
  }
  .site-nav a {
    padding-block: var(--space-3);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-divider);
  }
  .site-nav a:last-child {
    border-bottom: none;
  }
  .site-nav .nav-cta {
    border: none;
    padding-inline: 0;
    color: var(--color-primary);
  }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.52;
}

.hero__media picture,
.band__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: saturate(0.85) contrast(1.02);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, oklch(from var(--color-bg) l c h / 0.6), oklch(from var(--color-bg) l c h / 0.08) 35%),
    linear-gradient(to right, oklch(from var(--color-bg) l c h / 0.92), oklch(from var(--color-bg) l c h / 0.65) 42%, oklch(from var(--color-bg) l c h / 0.08) 82%);
}

.hero__inner {
  padding-block: var(--space-16) var(--space-16);
  max-width: 720px;
}

.hero__kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 500;
  margin-bottom: var(--space-6);
}
.hero__statement { display: block; text-wrap: balance; }
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2rem, 9.6vw, 2.5rem); }
}
.hero__motto {
  display: block;
  margin-top: var(--space-4);
  font-size: 0.62em;
  line-height: 1.3;
  color: var(--color-primary);
}

.hero__lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
}

.btn--primary {
  background: #b94716;
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #96380e;
  box-shadow: none;
}

.btn--primary:active {
  background: #7d2e0c;
}

.btn--ghost {
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-text-muted);
  background: oklch(from var(--color-text) l c h / 0.05);
}

/* ============ Sections ============ */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.section__kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}

.section__lede {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 58ch;
}

/* Light paper section */
.section--paper {
  background: var(--paper-bg);
  color: var(--paper-text);
}

.section--paper .section__kicker {
  color: var(--paper-primary);
}

.section--paper .section__lede {
  color: var(--paper-text-muted);
}

.section--paper :focus-visible {
  outline-color: var(--paper-primary);
}

/* ============ Discipline grid ============ */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
  counter-reset: discipline;
}

.discipline {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    border-color var(--transition-interactive),
    transform var(--transition-interactive);
}

.discipline:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.45);
  transform: translateY(-2px);
}

.discipline__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.section--paper .discipline {
  background: var(--paper-surface);
  border-color: var(--paper-border);
}

.section--paper .discipline__num {
  color: var(--paper-primary);
}

.discipline h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.discipline p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.section--paper .discipline p {
  color: var(--paper-text-muted);
}

/* ============ Full-bleed strata band ============ */
.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, oklch(from var(--color-bg) l c h / 0.9), oklch(from var(--color-bg) l c h / 0.48) 65%, oklch(from var(--color-bg) l c h / 0.18));
}

/* ============ Package cards ============ */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.package {
  border-top: 2px solid var(--color-primary);
  background: oklch(from var(--color-text) l c h / 0.03);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--space-6);
}

.package h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.package p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.package-purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
}
.package-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.3;
}
.package-price span {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.individual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.individual-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  border-top: 1px solid var(--paper-divider);
  padding-top: var(--space-6);
}
.individual-product h3 { font-size: var(--text-lg); }
.individual-product p { font-size: var(--text-sm); }
.individual-product .btn { margin-top: auto; }
.section--paper .purchase-note { color: var(--paper-text-muted); }
[id="package-title"], #individuals { scroll-margin-top: 110px; }
.command-loop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding: 0;
  list-style: none;
}
.command-loop-grid li {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-5);
}
.command-loop-grid h3 {
  font-size: var(--text-lg);
  margin: var(--space-3) 0;
}
.command-loop-grid p,
.loop-context p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.loop-context {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  max-width: 75ch;
}
.loop-context h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }

/* ============ Founder ============ */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }
}

.founder-grid h2 {
  font-size: var(--text-2xl);
}

.founder-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.35;
  color: var(--color-text);
  border-left: 2px solid var(--color-primary);
  padding-left: var(--space-6);
  margin-top: var(--space-8);
}

.founder-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.founder-context {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-5);
  line-height: 1.6;
}
.editorial-copy p { color: var(--paper-text-muted); }
.editorial-copy p + p { margin-top: var(--space-5); }
.assessment .preview-note {
  font-size: var(--text-xs);
  margin-top: var(--space-4);
  margin-bottom: 0;
}
.btn:disabled { cursor: not-allowed; opacity: 0.75; }
.purchase-note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}
.section--paper .btn--ghost {
  color: var(--paper-text);
  border-color: var(--paper-text-muted);
}
.section--paper .btn--ghost:hover {
  background: var(--paper-surface);
  border-color: var(--paper-text);
}

/* ============ Five Laws ============ */
.law-list {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-3);
}

.law {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: baseline;
  background: var(--paper-surface);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}

.law__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--paper-primary);
}

.law h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.law p {
  font-size: var(--text-sm);
  color: var(--paper-text-muted);
  margin-top: var(--space-1);
}

/* ============ Assessment ============ */
.assessment {
  border: 1px solid oklch(from var(--paper-primary) l c h / 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  margin-top: var(--space-12);
  background: var(--paper-surface);
}

.assessment h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.assessment p {
  color: var(--paper-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

/* ============ Command Loop ============ */
.loop-wrap {
  margin-top: var(--space-10);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  overflow-x: auto;
}

.loop-svg {
  width: 100%;
  min-width: 620px;
  height: auto;
}

.loop-caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-5);
}

/* ============ Deep-dive rows (Blueprint page) ============ */
.dive-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: var(--space-6) var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.dive-row:first-of-type {
  border-top: none;
}

.dive-row h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.dive-row .dive-index {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: var(--text-lg);
}

.dive-row p {
  color: var(--color-text-muted);
  grid-column: 2;
}

@media (max-width: 600px) {
  .dive-row {
    grid-template-columns: 1fr;
  }
  .dive-row p {
    grid-column: 1;
  }
}

/* ============ Contact ============ */
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  margin-top: var(--space-10);
}

.contact-card a.mailto {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 2.4vw, 2rem);
  color: var(--color-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a.mailto:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.contact-notes {
  list-style: none;
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
}

.contact-notes li {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding-left: var(--space-5);
  position: relative;
}

.contact-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ============ Page hero (interior) ============ */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) clamp(var(--space-8), 5vw, var(--space-12));
  border-bottom: 1px solid var(--color-divider);
}

.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero::before {
  z-index: -2;
  background: url('/marketing/img/hero-1916.webp') right bottom / cover no-repeat;
  background-image: image-set(url('/marketing/img/hero-1916.webp') type("image/webp"));
  opacity: 0.42;
  filter: saturate(0.85);
}
.page-hero::after {
  z-index: -1;
  background:
    linear-gradient(to top, oklch(from var(--color-bg) l c h / 0.65), transparent 45%),
    linear-gradient(to right, oklch(from var(--color-bg) l c h / 0.96), oklch(from var(--color-bg) l c h / 0.75) 48%, oklch(from var(--color-bg) l c h / 0.18));
}

@media (max-width: 600px) {
  .hero__media img { object-position: 78% bottom; }
  .page-hero::before {
    background-image: image-set(url('/marketing/img/hero-960.webp') type("image/webp"));
    background-position: 80% bottom;
  }
}

.page-hero .section__kicker {
  margin-bottom: var(--space-4);
}

.page-hero h1 {
  font-size: var(--text-2xl);
  max-width: 22ch;
}

.page-hero .section__lede {
  margin-top: var(--space-5);
}

/* ============ CTA band ============ */
.cta-band {
  border-top: 1px solid var(--color-divider);
  background:
    radial-gradient(60% 120% at 85% 10%, oklch(0.68 0.18 45 / 0.12), transparent),
    var(--color-surface);
}

.cta-band .cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.cta-band h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.cta-band p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10) var(--space-12);
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-note {
  width: 100%;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  margin-top: var(--space-4);
}
.footer-motto {
  width: 100%;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}

/* ============ Commercial homepage and inquiry paths ============ */
.commercial-home .hero {
  align-items: center;
  min-height: clamp(34rem, 74svh, 49rem);
}

.commercial-home .hero::after {
  background:
    radial-gradient(55% 80% at 86% 22%, rgb(96 165 250 / 13%), transparent 78%),
    linear-gradient(90deg, rgb(32 39 51 / 96%), rgb(32 39 51 / 72%) 56%, rgb(32 39 51 / 20%)),
    linear-gradient(0deg, var(--color-bg), transparent 45%);
}

.commercial-home .hero__inner {
  max-width: 52rem;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.commercial-home .hero h1 {
  max-width: 22ch;
  font-size: clamp(2.5rem, 5.7vw, 4.6rem);
  margin-bottom: var(--space-5);
}

.hero__consequences {
  margin-bottom: var(--space-4);
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.4;
}

.hero__individual {
  margin-top: var(--space-3);
}

.hero__individual .text-link,
.guide-team-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.hero__individual .text-link {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.hero__individual .text-link:hover { color: var(--color-primary); }
.guide-team-link { font-size: var(--text-sm); }

.commercial-home .hero__lede {
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}

.commercial-grid { margin-top: var(--space-8); }

.commercial-card {
  min-width: 0;
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.commercial-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.commercial-card p,
.commercial-home .editorial-copy p {
  color: var(--color-text-muted);
}

.commercial-card p + p { margin-top: var(--space-3); }
.commercial-card .section__kicker { color: var(--color-primary); }

.commercial-business {
  background: linear-gradient(112deg, var(--color-bg), var(--color-surface-2));
  border-block: 1px solid var(--color-divider);
}

.commercial-business strong { color: var(--color-text); }

.program-stages {
  display: grid;
  gap: var(--space-4);
  list-style: none;
  margin-block: var(--space-5);
}

.program-stages li {
  border-inline-start: 2px solid var(--paper-primary);
  padding-inline-start: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
}

.pathway-card {
  display: flex;
  flex-direction: column;
}

.pathway-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-6);
}

.text-link {
  color: var(--color-primary);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.text-link:hover { color: var(--color-primary-hover); }
.commercial-resources { margin-top: var(--space-8); }
.commercial-actions { margin-top: var(--space-6); }

#blueprint-feature .text-link { color: var(--paper-primary); }
#blueprint-feature .text-link:hover { color: var(--paper-primary-hover); }

/* The Six Disciplines in one operational scenario. */
.commercial-scenario {
  background:
    radial-gradient(ellipse at top right, rgb(96 165 250 / 12%), transparent 52%),
    linear-gradient(155deg, #1b293a, var(--color-bg) 62%);
  border-block: 1px solid var(--color-divider);
}

.commercial-scenario h2 { max-width: 29ch; }

.scenario-challenge {
  display: grid;
  gap: var(--space-4) var(--space-10);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  margin-block: var(--space-8);
  border: 1px solid var(--color-border);
  border-inline-start: 2px solid #60a5fa;
  border-radius: var(--radius-lg);
  background: rgb(20 43 73 / 50%);
}

.scenario-challenge h3 { font-size: var(--text-xl); }

.scenario-caption,
.scenario-phase__number {
  color: #c4ddfe;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scenario-caption { margin-bottom: var(--space-2); }

.scenario-phases {
  position: relative;
  display: grid;
  gap: var(--space-6);
  list-style: none;
  padding-inline-start: var(--space-5);
}

.scenario-phases::before {
  content: '';
  position: absolute;
  inset-block: var(--space-4) var(--space-6);
  inset-inline-start: 0;
  width: 1px;
  background: rgb(96 165 250 / 48%);
}

.scenario-phase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
  max-width: none;
}

.scenario-phase__number {
  display: inline-flex;
  align-items: center;
  min-height: var(--space-8);
  padding-inline: var(--space-3);
  border: 1px solid rgb(96 165 250 / 48%);
  border-radius: var(--radius-full);
  background: #1c2e46;
}

.scenario-phase__number::before {
  content: '';
  position: absolute;
  inset-block-start: var(--space-4);
  inset-inline-start: calc(-1 * var(--space-5));
  width: var(--space-5);
  height: 1px;
  background: rgb(96 165 250 / 48%);
}

.scenario-phase__panel {
  width: 100%;
  flex: 1;
  background: linear-gradient(150deg, var(--color-surface), #283442);
  box-shadow: var(--shadow-md);
}

.scenario-phase__panel .scenario-phase__goal {
  color: var(--color-text);
  font-weight: 700;
}

.scenario-impact {
  margin-top: var(--space-8);
  border-inline-start: 4px solid var(--paper-primary);
  background: linear-gradient(120deg, #3a4553, var(--color-surface));
  box-shadow: var(--shadow-md);
}

.scenario-impact h3 {
  max-width: 36ch;
  margin-block: var(--space-3) var(--space-5);
  font-size: var(--text-xl);
}

.commercial-scenario .scenario-impact__statement {
  color: var(--color-text);
  font-weight: 700;
}

@media (min-width: 768px) {
  .scenario-challenge {
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  }
}

@media (min-width: 1050px) {
  .scenario-phases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline-start: 0;
  }

  .scenario-phases::before {
    inset-block: var(--space-4) auto;
    inset-inline: var(--space-4) var(--space-4);
    width: auto;
    height: 1px;
  }

  .scenario-phase__number::before { content: none; }
}

#organization-install,
#programs,
#guide-library,
#fit-call,
.inquiry-anchor {
  scroll-margin-top: 6rem;
}

.commercial-inquiry {
  background-color: var(--color-surface-2);
  border-block: 1px solid var(--color-divider);
}

.inquiry-anchor { display: block; }

.inquiry-box {
  min-width: 0;
  padding: clamp(var(--space-4), 4vw, var(--space-8));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.inquiry-form label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-weight: 700;
}

.inquiry-form :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-text-muted);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.inquiry-form select { color-scheme: dark; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form [hidden], .inquiry-form input[type="hidden"] { display: none; }

.inquiry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block: var(--space-4);
}

.inquiry-context {
  margin-top: var(--space-2);
  color: var(--color-primary);
  overflow-wrap: anywhere;
}

.inquiry-note {
  margin-block: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.inquiry-fallback { margin-top: var(--space-5); }
.inquiry-fallback summary {
  color: var(--color-primary);
  cursor: pointer;
  width: fit-content;
}
.inquiry-fallback p { margin-top: var(--space-3); }
.inquiry-fallback pre {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--text-sm);
  margin-block: var(--space-3);
  overflow-wrap: anywhere;
  padding: var(--space-4);
  white-space: pre-wrap;
}
.inquiry-fallback [hidden] { display: none; }

@media (max-width: 600px) {
  .commercial-home .hero { min-height: auto; }

  .commercial-home .hero__inner {
    padding-block: clamp(var(--space-6), 7vw, var(--space-12));
  }

  .commercial-home .hero__kicker { margin-bottom: var(--space-3); }

  .commercial-home .hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 3rem);
    margin-bottom: var(--space-4);
  }

  .hero__consequences { font-size: clamp(1rem, 4.2vw, 1.2rem); }
  .commercial-home .hero__lede { margin-bottom: var(--space-5); }
  .inquiry-fields { grid-template-columns: minmax(0, 1fr); }
}

/* ============ Reveal animation ============ */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-visible {
    animation: reveal-in 600ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes reveal-in {
    from { transform: translateY(16px); }
    to { transform: none; }
  }
}


/* Final CLS brand identity: fixed copy approved 2026-11-14; no external assets. */
.cls-mission__grid { align-items: start; }
.cls-mission {
  background: linear-gradient(145deg, #20262e, #172332);
  border-block: 1px solid var(--color-divider);
}
.cls-mission__body { max-width: 72ch; color: var(--color-text-muted); line-height: 1.7; }
.cls-mission__body p + p { margin-top: 1rem; }
.cls-mission__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.25rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-divider);
}
.cls-mission__detail h2 { margin: 0 0 1.15rem; color: var(--color-text); }
.cls-mission__detail p { color: var(--color-text-muted); line-height: 1.7; }
.cls-mission__detail p + p { margin-top: 1rem; }
.cls-mission__detail .cls-mission__progression { color: var(--color-text); font-weight: 650; line-height: 1.6; }
.cls-mission__motto {
  margin-top: clamp(2.25rem, 5vw, 4rem);
  border-left: 3px solid var(--color-primary);
  background: rgba(255,255,255,.035);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.cls-mission__motto p:last-child {
  margin-top: .7rem;
  color: var(--color-text);
  font-size: clamp(1.22rem, 2vw, 1.75rem);
  font-weight: 750;
  line-height: 1.3;
}
@media (max-width: 760px) {
  .cls-mission__details { grid-template-columns: minmax(0,1fr); }
}
#mission, #vision, #philosophy { scroll-margin-top: 6rem; }

.cls-about-intro { background: linear-gradient(145deg, #20262e, #172332); }
.cls-about .founder-grid { align-items: start; }
.cls-about .editorial-copy > :is(h2, h3) { margin-bottom: 1rem; }
.cls-about .cls-mission__detail { min-width: 0; }
.cls-mission__motto h2 { color: var(--color-text-muted); font-size: var(--text-base); }
#founder { scroll-margin-top: 6rem; }

.cls-about .editorial-copy p:not(.section__kicker) { color: var(--color-text); }

.cls-about .editorial-copy .section__kicker { color: var(--color-primary); }

/* CLS Quick Guide cover release, 24 November 2026. */
#guide-library .guide-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
}

.skip-link{position:absolute;left:1rem;top:-8rem;z-index:1000;background:#fff;color:#111;padding:1rem}.skip-link:focus{top:1rem}
.inquiry-submit-status{white-space:normal}
