/* ===== Chapter pages ===== */
.chapter {
  position: relative;
  width: 100%;
}

/* Hero */
.chapter__hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.chapter__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.chapter__hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,12,0.15) 0%, rgba(14,14,12,0.45) 50%, rgba(14,14,12,0.92) 100%);
}
.chapter__hero-content {
  position: absolute;
  bottom: 8vh;
  left: var(--gutter);
  right: var(--gutter);
  max-width: 820px;
  z-index: 5;
}

@media (max-width: 600px) {
  .chapter__hero-content { bottom: 6vh; }
  .chapter__hero-content .headline { font-size: 38px; line-height: 1.05; }
  .chapter__hero-content .sub { font-size: 16px; }
}
.chapter__hero-content .eyebrow { margin-bottom: 24px; }
.chapter__hero-content .headline { margin-bottom: 20px; }
.chapter__hero-content .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--bone);
  opacity: 0.75;
  max-width: 580px;
  line-height: 1.4;
  margin: 0;
}
.chapter__brand {
  display: block;
  height: clamp(40px, 7vw, 78px);
  width: auto;
  max-width: 100%;
  margin: 0 0 28px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.55));
}
@media (max-width: 600px) {
  .chapter__brand { height: 44px; margin-bottom: 20px; }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 6;
}
.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--ember));
  animation: cue-grow 2.4s ease-in-out infinite;
}
@keyframes cue-grow {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
.scroll-cue .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.6;
}

/* Letter stagger */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

/* Body */
.chapter__body {
  position: relative;
  background: var(--ink);
  padding: 140px 0 0;
}

.chapter__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.chapter__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background-size: cover;
  background-position: center;
}
.chapter__sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,14,12,0.2) 0%, rgba(14,14,12,0.6) 100%);
}

.chapter__sections {
  padding: 80px var(--gutter) 120px;
  max-width: 640px;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(241,101,6,0.15);
}
.section:last-child { border-bottom: none; }
.section h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 36px;
  font-weight: 500;
}
.section .lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--bone);
  margin: 0 0 28px;
}
.section p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone);
  opacity: 0.78;
  margin: 0 0 20px;
}

/* Inline link (within body copy) */
.inline-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  border-bottom: 1px solid rgba(241,101,6,0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s, opacity 0.3s;
}
.inline-link:hover { border-bottom-color: var(--ember); opacity: 0.85; }

/* Capabilities footnote */
.cap-footnote {
  font-family: var(--sans);
  font-size: 13px !important;
  line-height: 1.6;
  color: var(--mist) !important;
  opacity: 1 !important;
  margin-top: 28px !important;
  font-style: italic;
}

/* Capabilities */
.capabilities { list-style: none; padding: 0; margin: 0; }

.capabilities li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(241,101,6,0.15);
  align-items: baseline;
}
.capabilities li:last-child { border-bottom: 1px solid rgba(241,101,6,0.15); }
.capabilities .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}
.capabilities .cap-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--bone);
  margin: 0 0 6px;
  font-weight: 400;
}
.capabilities .cap-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--mist);
  margin: 0;
}

/* Receipts */
.receipts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.receipt {
  background: var(--smoke);
  border: 1px solid rgba(245,242,235,0.05);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
}
.receipt .kpi {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--ember);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.receipt .caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.7;
  line-height: 1.5;
  margin-top: auto;
}

@media (max-width: 900px) {
  .chapter__split { grid-template-columns: 1fr; }
  .chapter__sticky { position: relative; height: 50vh; }
  .chapter__sections { padding: 60px var(--gutter); max-width: none; }
  .receipts { grid-template-columns: 1fr; }
  .capabilities li { grid-template-columns: 60px 1fr; gap: 12px; }
}



/* Regulator badge */
.regulator {
  display: flex;
  justify-content: center;
  padding: 80px var(--gutter);
  background: var(--ink);
}
.regulator__badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--ember);
  padding: 22px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
}
.regulator__badge svg { width: 14px; height: 20px; }
.regulator__mark { width: 16px; height: auto; }

/* Next door CTA */
.next-door {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 100px var(--gutter) 120px;
  background: var(--ink);
  text-align: center;
}
.next-door a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(241,101,6,0.4);
  padding: 22px 36px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.next-door a:hover { background: rgba(241,101,6,0.08); border-color: var(--ember); transform: translateX(4px); }
.next-door svg { width: 18px; height: 25px; }
.next-mark { width: 20px; height: auto; }
.next-door .next-label strong { color: var(--ember); font-weight: 500; }
.next-door .next-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}
.next-door .next-arrow {
  font-family: var(--mono);
  color: var(--ember);
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  padding: 120px var(--gutter) 80px;
}
.legal-page__inner {
  max-width: 720px;
  margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  margin: 0 0 48px;
  color: var(--bone);
  letter-spacing: -0.02em;
}
.legal-page h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 56px 0 20px;
  font-weight: 500;
}
.legal-page p, .legal-page li {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--bone);
  opacity: 0.85;
}
.legal-page ul { padding-left: 20px; }
.legal-page a { color: var(--ember); border-bottom: 1px solid rgba(241,101,6,0.3); }
.legal-page a:hover { border-bottom-color: var(--ember); }

/* 404 */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
  gap: 24px;
}
.notfound svg { width: 100px; height: 140px; filter: drop-shadow(0 0 30px rgba(241,101,6,0.4)); }
.notfound h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.notfound a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
  border-bottom: 1px solid var(--ember);
  padding-bottom: 4px;
}

/* Manifesto section (Manovate "Where we stand") */
.section--manifesto {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--ember);
  margin-top: 8px;
}
.section--manifesto h2 {
  color: var(--ember);
}
.section--manifesto p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--bone);
  opacity: 0.92;
}
.section--manifesto p + p {
  margin-top: 18px;
}
@media (max-width: 768px) {
  .section--manifesto {
    padding-left: 16px;
  }
  .section--manifesto p {
    font-size: 16px;
    line-height: 1.6;
  }
}
