/* =====================================================
   Andar — Editorial Discovery Design System
   Inter only · charcoal · sage · mint · teal
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Andar core palette */
  --charcoal:       #1A1F1E;
  --charcoal-mid:   #2A3230;
  --charcoal-deep:  #111514;

  --sage:           #8FA88E;
  --sage-light:     #B4C4B3;
  --sage-dim:       rgba(143, 168, 142, 0.14);

  --mint:           #D4EDE4;
  --mint-soft:      #EBF5F1;

  --teal:           #3A8B7E;
  --teal-dark:      #2D6F64;
  --teal-dim:       rgba(58, 139, 126, 0.12);

  /* Semantic tokens */
  --bg:             #F7F9F8;
  --bg-alt:         #EEF2F0;
  --bg-dark:        var(--charcoal);
  --bg-deeper:      var(--charcoal-deep);

  --border:         rgba(26, 31, 30, 0.1);
  --border-strong:  rgba(26, 31, 30, 0.18);
  --border-dark:    rgba(255, 255, 255, 0.1);

  --text:           var(--charcoal);
  --text-muted:     #5C6664;
  --text-faint:     #8A9492;
  --text-inverse:   #F7F9F8;
  --text-muted-inverse: rgba(247, 249, 248, 0.62);

  --accent:         var(--teal);
  --accent-dim:     var(--teal-dim);
  --accent-soft:    var(--sage-light);

  --white:          #FFFFFF;
  --radius:         2px;
  --radius-lg:      4px;

  --font:           'Inter', system-ui, -apple-system, sans-serif;

  --space-chapter:  clamp(80px, 10vw, 140px);
  --space-block:    clamp(40px, 6vw, 80px);
  --max-prose:      38ch;
  --max-statement:  14ch;

  --status-new:       #4a90d9;
  --status-contacted: #e6a817;
  --status-qualified: #5cb85c;
  --status-closed:    #888888;
}

body.admin-body {
  --bg: #111514;
  --bg-card: #1A1F1E;
  --bg-alt: #222928;
  --border: #2A3230;
  --border-strong: #3A4442;
  --text: #EBF5F1;
  --text-muted: rgba(235, 245, 241, 0.55);
  --text-faint: rgba(235, 245, 241, 0.32);
  --text-inverse: #EBF5F1;
  --text-muted-inverse: rgba(235, 245, 241, 0.55);
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.18s ease;
}
body.content-loading { opacity: 0; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}
.container--narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}
/* Header + full-width body share one column (see detail-list, category-strip) */
.chapter > .container--narrow:has(+ .container) {
  max-width: 1280px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}
.chapter-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: clamp(24px, 4vw, 40px);
  display: block;
}
.bg-dark .chapter-label,
.opening .chapter-label,
.page-opening .chapter-label { color: var(--mint); }

.statement-xl {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: var(--max-statement);
}
.statement-lg {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 18ch;
}
.statement-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.prose {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted);
  max-width: var(--max-prose);
  line-height: 1.75;
}
.prose + .prose { margin-top: 1.25em; }
.prose--wide { max-width: 48ch; }
.prose--center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-dark { background: var(--bg-dark); color: var(--text-inverse); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--text-inverse); }
.bg-dark .prose { color: var(--text-muted-inverse); }
.bg-alt { background: var(--bg-alt); }
.bg-mint { background: var(--mint-soft); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--text-inverse);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 0.8125rem; }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.75;
}
.btn-ghost:hover { opacity: 1; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-on-dark { background: var(--white); color: var(--charcoal); }
.link-quiet {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.link-quiet:hover { gap: 12px; }
.bg-dark .link-quiet { color: var(--mint); }

/* ── Navigation ── */
#main-nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 48px);
  transition: background 0.35s, border-color 0.35s;
}
#main-nav.scrolled,
body:not(.page-home) #main-nav {
  background: rgba(17, 21, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--text-inverse);
  flex-shrink: 0;
}
.nav-logo img, .nav-logo svg { height: 24px; width: auto; }
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(247, 249, 248, 0.5);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-inverse); }
.nav-cta { flex-shrink: 0; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-inverse);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--charcoal-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px clamp(24px, 5vw, 48px);
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay a {
  font-family: var(--font);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-inverse);
}
.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: clamp(24px, 5vw, 48px);
  color: var(--text-inverse);
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.6;
}

/* ── Opening (home manifesto) ── */
.opening {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--text-inverse);
  overflow: hidden;
}
.opening-bg {
  position: absolute;
  inset: 0;
  background: var(--charcoal-deep);
  background-size: cover;
  background-position: center;
}
.opening-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 21, 20, 0.15) 0%,
    rgba(17, 21, 20, 0.35) 40%,
    rgba(17, 21, 20, 0.82) 100%
  );
}
.opening-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px clamp(24px, 5vw, 48px) clamp(56px, 10vw, 96px);
}
.opening h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: clamp(32px, 5vw, 48px);
  color: var(--text-inverse);
}
.opening-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted-inverse);
  max-width: 36ch;
  line-height: 1.7;
  margin-bottom: 40px;
}
.opening-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Page opening (inner pages) ── */
.page-opening {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: flex-end;
  color: var(--text-inverse);
  overflow: hidden;
}
.page-opening-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--charcoal-deep);
}
.page-opening-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,21,20,0.1) 0%, rgba(17,21,20,0.88) 100%);
}
.page-opening-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: clamp(56px, 10vw, 96px);
}
.page-opening h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  max-width: 14ch;
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--text-inverse);
}
.page-opening p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted-inverse);
  max-width: 40ch;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Legacy aliases for CMS / motion */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--text-inverse);
  overflow: hidden;
}
.hero-bg, .opening-bg {
  position: absolute;
  inset: 0;
  background: var(--charcoal-deep);
  background-size: cover;
  background-position: center;
}
.hero-bg::after, .opening-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,21,20,0.15) 0%, rgba(17,21,20,0.35) 40%, rgba(17,21,20,0.82) 100%);
}
.hero-inner, .opening-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px clamp(24px, 5vw, 48px) clamp(56px, 10vw, 96px);
}
.hero h1, .opening h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: clamp(32px, 5vw, 48px);
  color: var(--text-inverse);
}
.hero-sub, .opening-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-muted-inverse);
  max-width: 38ch;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-actions, .opening-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.page-hero, .page-opening {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: flex-end;
  color: var(--text-inverse);
  overflow: hidden;
}
.page-hero-bg, .page-opening-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--charcoal-deep);
}
.page-hero-bg::after, .page-opening-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,21,20,0.1) 0%, rgba(17,21,20,0.88) 100%);
}
.page-hero-content, .page-opening-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: clamp(56px, 10vw, 96px);
}
.page-hero h1, .page-opening h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  max-width: 14ch;
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--text-inverse);
}
.page-hero p, .page-opening p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted-inverse);
  max-width: 42ch;
  margin-bottom: 32px;
  line-height: 1.7;
}
.cta-band {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-inverse);
  overflow: hidden;
  padding: var(--space-chapter) clamp(24px, 5vw, 48px);
}
.cta-band-bg, .close-chapter-bg {
  position: absolute;
  inset: 0;
  background: var(--charcoal-deep);
  background-size: cover;
  background-position: center;
}
.cta-band-bg::after, .close-chapter-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 20, 0.75);
}
.cta-band .container, .close-chapter-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 40px);
}
.cta-band h2, .close-chapter h2 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
  max-width: 18ch;
  margin: 0 auto;
}
.cta-band p { color: var(--text-muted-inverse); max-width: 36ch; margin: 0 auto; }

/* ── Chapters ── */
.chapter {
  padding: var(--space-chapter) 0;
}
.chapter--tight { padding: var(--space-block) 0; }
.chapter--statement {
  padding: clamp(56px, 8vw, 96px) 0;
}
.chapter--statement .container--narrow {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 64px);
}
.chapter--statement .editorial-split {
  align-items: start;
}
.chapter--statement .editorial-split-text {
  gap: clamp(24px, 4vw, 40px);
}
.editorial-split-media--mockup img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: clamp(420px, 55vh, 520px);
  margin-inline: auto;
  aspect-ratio: 390 / 780;
  object-fit: contain;
  background: var(--bg-alt);
  border-radius: clamp(16px, 3vw, 32px);
}

/* Full bleed photo chapter */
.photo-chapter {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photo-chapter img,
.photo-chapter-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-chapter-bg {
  background-size: cover;
  background-position: center;
}
.photo-chapter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17,21,20,0.65) 100%);
  pointer-events: none;
}
.photo-chapter-caption {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 80px) clamp(24px, 5vw, 48px);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.photo-chapter-caption p {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-inverse);
  max-width: 24ch;
  line-height: 1.3;
}
.photo-chapter--panoramic {
  min-height: unset;
  aspect-ratio: 16 / 9;
  max-height: min(85vh, 900px);
}
.photo-chapter--panoramic::after { display: none; }

/* Discovery benefits — horizontal editorial blocks */
.chapter--benefits {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.chapter + .chapter {
  padding-top: var(--space-block);
}
.editorial-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(40px, 6vw, 80px);
}
.benefit-block h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: clamp(12px, 2vw, 16px);
}
.benefit-block p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 28ch;
}

/* Editorial split */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.editorial-split--reverse { direction: rtl; }
.editorial-split--reverse > * { direction: ltr; }
.editorial-split-text { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 40px); }
.editorial-split-media img {
  width: 100%;
  aspect-ratio: 5/6;
  object-fit: cover;
}

/* Audience editorial chapters */
.audience-chapter {
  display: block;
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  color: var(--text-inverse);
  overflow: hidden;
  margin-bottom: 2px;
}
.audience-chapter:last-child { margin-bottom: 0; }
.audience-chapter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.audience-chapter:hover img { transform: scale(1.02); }
.audience-chapter::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,21,20,0.88) 0%, rgba(17,21,20,0.35) 55%, rgba(17,21,20,0.15) 100%);
  pointer-events: none;
}
.audience-chapter-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) clamp(24px, 5vw, 48px);
}
.audience-chapter-index {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: auto;
  padding-top: 80px;
}
.audience-chapter h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  max-width: 12ch;
  margin-bottom: 20px;
  color: var(--text-inverse);
}
.audience-chapter p {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted-inverse);
  max-width: 36ch;
  margin-bottom: 32px;
  line-height: 1.7;
}
.audience-chapter-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mint);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.audience-chapter:hover .audience-chapter-link { opacity: 1; }

/* Story leads — article openings, not cards */
.story-lead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.story-lead:first-child { border-top: none; padding-top: 0; }
.story-lead-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: block;
}
.story-lead h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.story-lead-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 42ch;
}
.story-lead-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.story-lead-meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 12px;
}
.bg-dark .story-lead { border-color: var(--border-dark); }
.bg-dark .story-lead h3 { color: var(--text-inverse); }
.bg-dark .story-lead-body p { color: var(--text-muted-inverse); }
.bg-dark .story-lead-tag { color: var(--mint); }

/* Detail list — editorial, not cards */
.detail-list {
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--border);
}
.bg-dark .detail-list { border-color: var(--border-dark); }
.detail-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(24px, 4vw, 36px) 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.bg-dark .detail-item { border-color: var(--border-dark); }
.detail-item strong {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.bg-dark .detail-item strong { color: var(--text-inverse); }
.detail-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Category list — inline editorial */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--border);
}
.category-item {
  flex: 1 1 280px;
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.category-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.category-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Steps — editorial numbered */
.steps-editorial {
  margin-top: clamp(48px, 8vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-editorial {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
}
.step-editorial-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--sage);
  line-height: 1;
}
.bg-dark .step-editorial-num { color: rgba(180, 196, 179, 0.35); }
.step-editorial h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 12px;
}
.step-editorial p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.7;
}
.bg-dark .step-editorial p { color: var(--text-muted-inverse); }

/* Pricing — minimal statement */
.pricing-statement {
  padding: clamp(48px, 8vw, 80px) 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.pricing-statement h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-inverse);
}
.pricing-price {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--mint);
  margin-bottom: clamp(32px, 5vw, 48px);
}
.pricing-statement + .detail-list {
  margin-top: 0;
  border-top: none;
}

/* Beliefs — vertical chapters */
.belief-chapter {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
}
.belief-chapter:first-child { border-top: none; }
.belief-chapter h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 12px;
}
.belief-chapter p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.75;
}

/* Team — editorial portraits */
.team-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(48px, 8vw, 80px);
}
.team-member img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 20px;
}
.team-member h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-member-role {
  font-size: 0.8125rem;
  color: var(--teal);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}
.team-member p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Timeline — minimal */
.timeline-editorial {
  margin-top: clamp(40px, 6vw, 64px);
}
.timeline-entry {
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: baseline;
}
.timeline-entry h4 {
  font-size: 1rem;
  font-weight: 600;
}
.timeline-entry p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Stats — quiet numbers */
.stats-quiet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 40px);
  margin-top: clamp(48px, 8vw, 64px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--border);
}
.stat-quiet-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-quiet-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Close chapter */
.close-chapter {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-inverse);
  overflow: hidden;
  padding: var(--space-chapter) clamp(24px, 5vw, 48px);
  background: var(--charcoal-deep);
}
.close-chapter-bg {
  position: absolute;
  inset: 0;
  background: var(--charcoal-deep);
  background-size: cover;
  background-position: center;
}
.close-chapter-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 20, 0.75);
}
.close-chapter-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 40px);
}
.close-chapter h2 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
}
.close-chapter p {
  color: var(--text-muted-inverse);
  max-width: 36ch;
  font-size: 1.0625rem;
}

/* Site end — minimal, not a marketing footer */
.site-end {
  background: var(--charcoal-deep);
  color: var(--text-inverse);
  padding: clamp(48px, 8vw, 72px) clamp(24px, 5vw, 48px) 32px;
}
.site-end-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.site-end-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: clamp(40px, 6vw, 56px);
  border-bottom: 1px solid var(--border-dark);
}
.site-end-brand img { height: 22px; margin-bottom: 16px; }
.site-end-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted-inverse);
  max-width: 32ch;
  line-height: 1.6;
}
.site-end-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 36px);
}
.site-end-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted-inverse);
  transition: color 0.2s;
}
.site-end-nav a:hover { color: var(--text-inverse); }
.site-end-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.75rem;
  color: rgba(247, 249, 248, 0.3);
}

/* App download badges */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-inverse);
  transition: background 0.2s;
}
.app-badge:hover { background: rgba(255,255,255,0.12); }
.app-badge small { display: block; font-size: 0.625rem; opacity: 0.65; }
.app-badge strong { font-size: 0.875rem; font-weight: 600; }

/* Contact */
.contact-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact-left {
  background: var(--mint-soft);
  padding: 120px clamp(24px, 5vw, 64px) 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-left p { color: var(--text-muted); }
.contact-right { padding: 120px clamp(24px, 5vw, 64px) 80px; }
.contact-tagline {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 24px;
  max-width: 12ch;
}
.contact-info-block { margin-top: 32px; }
.contact-info-block h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--teal); }
.form-error {
  display: none;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 6px;
}
.form-error.show { display: block; }
.form-success {
  display: none;
  padding: 32px;
  background: var(--mint-soft);
  border-radius: var(--radius-lg);
}
.form-success.show { display: block; }
.form-success h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.visible { opacity: 1; transform: none; }
.close-chapter .reveal { transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Decorative gradient overlays must not block clicks */
.opening-bg::after,
.hero-bg::after,
.page-opening-bg::after,
.page-hero-bg::after,
.cta-band-bg::after,
.close-chapter-bg::after {
  pointer-events: none;
}

/* CMS edit mode */
body.edit-mode [data-content-key] {
  outline: 1px dashed rgba(58, 139, 126, 0.35);
  outline-offset: 2px;
}
body.edit-mode a.audience-chapter {
  pointer-events: none;
  cursor: default;
}
body.edit-mode a.audience-chapter [data-content-key] {
  pointer-events: auto;
  cursor: text;
}
body.edit-mode a.audience-chapter img[data-content-key] {
  cursor: pointer;
}
body.edit-mode img[data-content-key] {
  cursor: pointer;
}
body.edit-mode a.btn[data-content-href-key] {
  cursor: text;
}
body.edit-mode a.btn[data-content-href-key]::after {
  content: '↗ enlace';
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.85;
  vertical-align: middle;
}
body.edit-mode input[data-content-attr="placeholder"],
body.edit-mode textarea[data-content-attr="placeholder"] {
  outline: 2px dashed var(--teal);
  cursor: text;
}

.cms-link-editor {
  position: fixed;
  z-index: 10000;
  width: min(360px, calc(100vw - 24px));
  padding: 14px 16px;
  background: rgba(17, 21, 20, 0.96);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}
.cms-link-editor-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.72);
  margin-bottom: 10px;
}
.cms-link-editor-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-inverse);
  font: inherit;
  font-size: 0.9rem;
}
.cms-link-editor-input:focus {
  outline: 2px solid rgba(58, 139, 126, 0.45);
  border-color: var(--teal);
}
.cms-link-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cms-link-editor-apply,
.cms-link-editor-cancel {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  color: rgba(250, 248, 245, 0.88);
  background: rgba(255, 255, 255, 0.06);
}
.cms-link-editor-apply {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Designer toolbar */
.designer-toolbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(17, 21, 20, 0.94);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  max-width: calc(100vw - 40px);
}
.designer-toolbar.show { display: inline-flex; }
.designer-toolbar-label {
  font-size: 0.72rem;
  color: rgba(247, 249, 248, 0.72);
  padding: 0 8px;
}
.designer-toolbar-btn {
  padding: 8px 14px;
  font-size: 0.72rem;
  border-radius: 999px;
  color: var(--text-inverse);
  border: 1px solid var(--border-dark);
  transition: background 0.2s;
}
.designer-toolbar-btn:hover { background: rgba(255,255,255,0.08); }
.designer-toolbar-btn.primary { background: var(--teal); border-color: var(--teal); }
.designer-toolbar-btn.active { background: var(--teal-dim); }
.designer-toolbar-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.designer-toolbar-bg-actions,
.designer-toolbar-accent { display: none; align-items: center; gap: 6px; }
body.edit-mode .designer-toolbar-bg-actions,
body.edit-mode .designer-toolbar-accent { display: inline-flex; }
.designer-toolbar-bg-label { font-size: 0.65rem; color: rgba(247,249,248,0.45); }
.designer-accent-swatch input { width: 28px; height: 28px; border: none; padding: 0; cursor: pointer; }

/* Legacy CMS class mappings */
.hero-bg, .opening-bg, .page-hero-bg, .page-opening-bg, .close-chapter-bg, .cta-band-bg {
  /* used interchangeably */
}
.cms-bg-slot { background-size: cover; background-position: center; }

/* Admin styles */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card, #1A1F1E);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.login-card h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.login-error { color: #e05252; font-size: 0.85rem; margin-bottom: 12px; display: none; }
.login-error.show { display: block; }
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card, #1A1F1E);
}
.admin-logo { font-size: 1.1rem; font-weight: 600; }
.admin-badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}
.admin-edit-site, .admin-signout {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.admin-signout { margin-left: 16px; }
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.admin-tab {
  padding: 10px 18px;
  font-size: 0.82rem;
  border-radius: 8px;
  color: var(--text-muted);
}
.admin-tab.active { background: var(--bg-card, #1A1F1E); color: var(--text); }
.admin-content { padding: 32px; max-width: 1200px; margin: 0 auto; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card, #1A1F1E);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-value { font-size: 2rem; font-weight: 600; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.filter-btn {
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.filter-btn.active { background: var(--text); color: var(--text-inverse); border-color: var(--text); }
.search-input {
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 220px;
  background: var(--bg-card, #1A1F1E);
  color: var(--text);
}
.leads-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.leads-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.leads-table th, .leads-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.leads-table th { background: var(--bg-alt, #222928); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.view-btn { font-size: 0.78rem; color: var(--accent); }
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: capitalize;
}
.status-new { background: rgba(74,144,217,0.15); color: var(--status-new); }
.status-contacted { background: rgba(230,168,23,0.15); color: var(--status-contacted); }
.status-qualified { background: rgba(92,184,92,0.15); color: var(--status-qualified); }
.status-closed { background: rgba(136,136,136,0.15); color: var(--status-closed); }
.content-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; min-height: 400px; }
.content-keys-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.content-keys-title { padding: 14px 16px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--bg-alt, #222928); border-bottom: 1px solid var(--border); }
.content-key-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; }
.content-key-item.active { background: var(--accent-dim); }
.key-type { font-size: 0.68rem; color: var(--text-faint); }
.content-editor { background: var(--bg-card, #1A1F1E); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.content-editor-placeholder { padding: 40px; color: var(--text-muted); text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.btn-save {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.85rem;
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-bottom: 24px;
  cursor: pointer;
  position: relative;
}
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.asset-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.asset-thumb { aspect-ratio: 1; object-fit: cover; width: 100%; }
.asset-info { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.asset-name { font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-copy { font-size: 0.72rem; color: var(--accent); text-align: left; }
.side-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.side-panel-overlay.open { opacity: 1; visibility: visible; }
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--bg-card, #1A1F1E);
  z-index: 301;
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.side-panel.open { transform: none; }
.side-panel-header { display: flex; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.side-panel-body { padding: 24px; overflow-y: auto; flex: 1; }
.side-panel-actions { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; }
.sp-field { margin-bottom: 20px; }
.sp-field label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: block; margin-bottom: 6px; }
.sp-message { background: var(--bg-alt, #222928); padding: 12px; border-radius: 8px; font-size: 0.88rem; white-space: pre-wrap; }
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--text-inverse);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.error { background: #c0392b; }

/* Responsive */
@media (max-width: 1024px) {
  .editorial-benefits { grid-template-columns: repeat(2, 1fr); }
  .editorial-split,
  .story-lead { grid-template-columns: 1fr; }
  .editorial-split--reverse { direction: ltr; }
  .detail-item { grid-template-columns: 1fr; gap: 8px; }
  .team-editorial { grid-template-columns: repeat(2, 1fr); }
  .stats-quiet { grid-template-columns: repeat(2, 1fr); }
  .timeline-entry { grid-template-columns: 1fr; gap: 8px; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .editorial-benefits { grid-template-columns: 1fr; gap: clamp(48px, 8vw, 64px); }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .team-editorial { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats-row, .stats-quiet { grid-template-columns: repeat(2, 1fr); }
  .step-editorial { grid-template-columns: 48px 1fr; }
  .site-end-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
