:root {
  color-scheme: dark;
  --bg: #030405;
  --bg-elevated: #0b0d10;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --panel: #0c0f13;
  --panel-soft: #11151b;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #fbfbfd;
  --text-soft: #dde0e6;
  --muted: #a8acb6;
  --faint: #6d727c;
  --accent: #f2f3f4;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --mint: #9bd8c2;
  --mint-soft: rgba(155, 216, 194, 0.11);
  --amber: #d9c27f;
  --amber-soft: rgba(217, 194, 127, 0.1);
  --wide: 1540px;
  --article: 760px;
  --radius: 8px;
  --button-radius: 14px;
  --header: 86px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.22);
  --shadow-panel: 0 28px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 28px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 160px),
    linear-gradient(180deg, #080809 0%, #0a0a0b 26%, #0b0b0c 100%);
  font-family: "Onest", "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 180px),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.01), transparent 42%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ol {
  margin: 0;
}

p {
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Onest", "Inter", "Segoe UI", sans-serif;
}

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

.reading-progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.76) 0%, #ffffff 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 140;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(11, 11, 12, 0.98);
}

.header-progress-row,
.header-panel {
  width: calc(100% - 48px);
  max-width: var(--wide);
  margin: 0 auto;
}

.header-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 26px;
  padding-top: 6px;
  padding-bottom: 5px;
}

.header-progress-label {
  color: rgba(245, 245, 247, 0.62);
  font-size: 0.73rem;
  font-weight: 530;
  line-height: 1;
}

.header-progress-track {
  position: relative;
  width: 100%;
  padding: 0 24px;
}

.header-progress-track .reading-progress {
  max-width: var(--wide);
  margin: 0 auto;
}

.header-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0;
}

.header-spacer,
.header-nav {
  display: flex;
  align-items: center;
}

.header-spacer {
  justify-self: start;
  min-width: 0;
}

.site-logo {
  display: inline-grid;
  gap: 1px;
  min-width: 48px;
  padding: 4px 0;
  color: rgba(245, 245, 247, 0.92);
  font-size: 0.78rem;
  font-weight: 880;
  line-height: 0.88;
  text-transform: lowercase;
  transition: color 180ms var(--ease), opacity 180ms var(--ease), transform 180ms var(--ease);
}

.site-logo span {
  display: block;
}

.site-logo:hover,
.site-logo:focus-visible {
  color: var(--text);
  opacity: 1;
  outline: none;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-width: 0;
}

.header-nav {
  justify-content: center;
  gap: 42px;
  margin: 0;
}

.header-nav a,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 4px;
  border-radius: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  transition: color 180ms var(--ease), opacity 180ms var(--ease), transform 180ms var(--ease);
}

.header-nav a {
  position: relative;
  color: rgba(245, 245, 247, 0.76);
  border: 0;
  background: transparent;
  font-weight: 530;
}

.header-nav a::after {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
  opacity: 1;
  outline: none;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta {
  min-width: 148px;
  min-height: 38px;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.01);
  font-weight: 580;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.reading-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 36px;
  color: rgba(245, 245, 247, 0.82);
  font-size: 0.73rem;
  font-weight: 540;
  line-height: 1;
}

.site-search {
  position: relative;
  width: 42px;
  margin-left: 0;
  opacity: 0.58;
  transition: opacity 180ms var(--ease), width 220ms var(--ease);
}

.site-search:focus-within {
  width: 148px;
  opacity: 1;
}

.site-search input {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px 8px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.008);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.site-search input::placeholder {
  color: rgba(245, 245, 247, 0.46);
}

.site-search:not(:focus-within) input::placeholder {
  color: transparent;
}

.site-search::before {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border: 1.4px solid rgba(245, 245, 247, 0.3);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-search::after {
  position: absolute;
  left: 24px;
  top: 50%;
  width: 6px;
  height: 1.4px;
  background: rgba(245, 245, 247, 0.3);
  content: "";
  transform: translateY(4px) rotate(45deg);
  pointer-events: none;
}

.site-search input:focus {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 170;
  display: none;
  width: min(360px, 86vw);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 9, 11, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.search-results.is-open {
  display: grid;
  gap: 6px;
  animation: searchOpen 180ms var(--ease) both;
}

@keyframes searchOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results a,
.search-empty {
  display: block;
  padding: 10px;
  border-radius: 7px;
}

.search-results a {
  color: var(--text);
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}

.search-results a:hover,
.search-results a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.search-results a:active {
  transform: scale(0.99);
}

.search-results strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.search-results span,
.search-empty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero {
  position: relative;
  min-height: auto;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0f0f10 0%, #0c0c0d 100%);
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-stage,
.reader-shell,
.site-footer {
  width: calc(100% - 48px);
  max-width: var(--wide);
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(340px, 0.62fr) minmax(300px, 0.42fr);
  min-height: clamp(470px, calc(100svh - var(--header)), 520px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d0e;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 38px 38px 26px;
  overflow: visible;
  z-index: 2;
}

.eyebrow,
.section-label {
  margin-top: 0 !important;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(245, 245, 247, 0.66);
  background: none;
  letter-spacing: 0.08em;
  position: relative;
}

.eyebrow::before {
  display: none;
}

.eyebrow i {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

h1 {
  max-width: min(520px, 100%);
  margin-top: 28px;
  color: var(--text);
  font-size: clamp(2.9rem, 3.25vw, 3.72rem);
  font-weight: 610;
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  letter-spacing: 0;
}

.hero-lead {
  max-width: 390px;
  margin-top: 18px;
  color: rgba(245, 245, 247, 0.61);
  font-size: 0.88rem;
  line-height: 1.54;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  position: relative;
  z-index: 4;
}

.hero-signal {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0 10px;
  align-items: start;
  min-width: 0;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.hero-signal:hover {
  opacity: 0.94;
  transform: translateY(-2px);
}

.hero-signal-mark {
  display: inline-flex;
  width: 21px;
  height: 21px;
  grid-row: 1 / span 2;
  margin-top: 2px;
  vertical-align: middle;
  color: rgba(245, 245, 247, 0.78);
}

.hero-signal-mark svg {
  width: 100%;
  height: 100%;
}

.hero-signal strong {
  display: block;
  margin-top: 0;
  color: rgba(245, 245, 247, 0.9);
  font-size: 0.78rem;
  font-weight: 580;
  line-height: 1.25;
}

.hero-signal p {
  margin-top: 2px;
  color: rgba(245, 245, 247, 0.44);
  font-size: 0.76rem;
  line-height: 1.38;
}

.hero-media {
  position: relative;
  grid-column: 1 / 3;
  grid-row: 1;
  min-width: 0;
  min-height: 100%;
  background: #0d0d0e;
  overflow: hidden;
  z-index: 0;
}

.hero-media-frame {
  position: relative;
  height: 100%;
  background: #0d0d0e;
  overflow: hidden;
}

.hero-media-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 71%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 18%;
  filter: grayscale(1) brightness(0.86) contrast(1.14);
  transform: scale(1.02);
  transform-origin: center center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 7%, #000 15%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 7%, #000 15%, #000 100%);
}

.hero-media-frame::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.035), transparent 34%),
    linear-gradient(90deg, rgba(13, 13, 14, 1) 0%, rgba(13, 13, 14, 0.86) 33%, rgba(13, 13, 14, 0.1) 61%, rgba(13, 13, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0.13) 100%);
  content: "";
  pointer-events: none;
}

.hero-aside {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  align-self: stretch;
  margin: 22px 18px 22px 0;
  padding: 28px 25px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 38%, rgba(0, 0, 0, 0.16)),
    rgba(15, 15, 16, 0.94);
  box-shadow:
    -18px 18px 48px rgba(0, 0, 0, 0.34),
    inset 1px 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(6px);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.hero-aside:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    -20px 22px 54px rgba(0, 0, 0, 0.38),
    inset 1px 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-aside-label {
  color: rgba(245, 245, 247, 0.58);
  font-size: 0.74rem;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-aside-list {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-aside-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 180ms var(--ease), transform 180ms var(--ease), opacity 180ms var(--ease);
}

.hero-aside-item:hover,
.hero-aside-item:focus-visible {
  opacity: 0.92;
  transform: translateX(3px);
  outline: none;
}

.hero-aside-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: rgba(245, 245, 247, 0.92);
}

.hero-aside-icon svg {
  width: 100%;
  height: 100%;
}

.hero-aside-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 610;
  line-height: 1.25;
}

.hero-aside-copy small {
  display: block;
  margin-top: 4px;
  color: rgba(245, 245, 247, 0.5);
  font-size: 0.72rem;
  line-height: 1.34;
}

.hero-side-cta {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
}

.hero-side-note {
  margin-top: 7px;
  color: rgba(245, 245, 247, 0.38);
  font-size: 0.68rem;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 620;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #080809;
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #f4f4f5 0%, #e5e6e8 100%);
  box-shadow: none;
}

.button-secondary {
  color: rgba(245, 245, 247, 0.84);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.quick-access-section {
  position: relative;
  padding: 18px 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #171718 0%, #111112 100%);
  overflow: hidden;
}

.quick-access-section::before {
  display: none;
}

.quick-access-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  width: calc(100% - 48px);
  max-width: var(--wide);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151516;
}

.quick-access-nav {
  padding: 42px 30px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-access-nav .section-label {
  display: block;
  margin-bottom: 22px;
  color: rgba(245, 245, 247, 0.56);
}

.quick-jump {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  color: rgba(245, 245, 247, 0.48);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.quick-jump:hover,
.quick-jump:focus-visible {
  color: var(--text);
  transform: translateX(2px);
  outline: none;
}

.quick-jump span {
  color: rgba(245, 245, 247, 0.44);
  font-size: 0.84rem;
  font-weight: 550;
}

.quick-jump strong {
  color: inherit;
  font-size: 0.88rem;
  font-weight: 540;
  line-height: 1.34;
}

.quick-jump.is-active {
  color: var(--text);
}

.quick-jump.is-active span {
  color: var(--text);
}

.quick-jump.is-active strong {
  font-weight: 610;
}

.quick-jump.chapter-link.is-active {
  background: none;
  box-shadow: none;
}

.quick-overview {
  padding: 46px 46px 42px 52px;
}

.quick-overview-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.quick-overview-number {
  color: rgba(245, 245, 247, 0.58);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.quick-overview-copy h2 {
  color: var(--text);
  font-size: clamp(2.2rem, 2.6vw, 3.15rem);
  font-weight: 600;
  line-height: 1.02;
}

.quick-overview-copy::after {
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.42);
  content: "";
}

.quick-overview-copy p {
  max-width: 560px;
  margin-top: 13px;
  color: rgba(245, 245, 247, 0.64);
  font-size: 0.94rem;
  line-height: 1.5;
}

.quick-overview-copy .quick-overview-quote {
  max-width: 690px;
  margin-top: 20px;
  color: rgba(245, 245, 247, 0.86);
  font-size: 1.06rem;
  font-weight: 560;
  line-height: 1.48;
}

.quick-overview-copy .quick-overview-quote + p {
  margin-top: 22px;
}

.quick-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
  padding-top: 0;
  border-top: 0;
}

.quick-overview-stats div {
  min-width: 0;
  padding: 18px 18px 17px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006)),
    #111213;
}

.quick-overview-stats div:last-child {
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
}

.quick-overview-stats strong {
  display: block;
  color: var(--text);
  margin-top: 16px;
  font-size: 0.96rem;
  font-weight: 610;
  line-height: 1.22;
}

.quick-overview-stats span {
  display: block;
  color: rgba(245, 245, 247, 0.38);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.quick-overview-stats p {
  margin-top: 8px;
  color: rgba(245, 245, 247, 0.52);
  font-size: 0.82rem;
  line-height: 1.42;
}

.toc-anchor {
  display: block;
  scroll-margin-top: calc(var(--header) + 18px);
}

.reader-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 780px);
  justify-content: center;
  gap: 28px;
  align-items: start;
  width: calc(100% - 48px);
  max-width: 1360px;
  padding-top: 34px;
}

.mobile-toc {
  display: none !important;
}

.desktop-toc {
  position: sticky;
  top: calc(var(--header) + 18px);
  display: block !important;
  align-self: start;
  padding: 20px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141516;
}

.toc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.82);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

.toc-title strong {
  color: rgba(245, 245, 247, 0.46);
  font-size: 0.68rem;
  font-weight: 600;
}

.nav-groups {
  display: grid;
  gap: 6px;
}

.desktop-toc .nav-groups {
  margin-top: 12px;
}

.nav-groups details {
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.nav-groups summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 10px 2px 8px;
  color: rgba(245, 245, 247, 0.74);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav-groups summary::-webkit-details-marker {
  display: none;
}

.nav-groups summary::after {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms var(--ease);
}

.nav-groups details[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.nav-groups details.has-current > summary,
.nav-groups details[open] > summary,
.nav-groups summary:hover,
.nav-groups summary:focus-visible {
  color: var(--text);
  outline: none;
}

.nav-groups details.has-current,
.nav-groups details[open] {
  background: transparent;
  box-shadow: none;
}

.nav-groups details[open] > a {
  animation: navReveal 180ms var(--ease) both;
}

@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-groups a {
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
  margin-left: 0;
  margin-right: 0;
  padding: 7px 10px 7px 12px;
  border-left: 0;
  border-radius: 0;
  color: rgba(245, 245, 247, 0.52);
  font-size: 0.78rem;
  line-height: 1.35;
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.nav-groups a:hover,
.nav-groups a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.chapter-link.is-active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 82%);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.article {
  width: 100%;
  max-width: 780px;
}

.article-section {
  position: relative;
  scroll-margin-top: calc(var(--header) + 28px);
  margin-bottom: 18px;
  padding: 28px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141516;
  box-shadow: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.article-section:first-child {
  padding-top: 28px;
}

.article-section::before {
  display: none;
}

.article-section.is-current::before,
.article-section:target::before {
  display: none;
}

.article-section.is-current .section-anchor,
.article-section:target .section-anchor {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.section-anchor {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  color: rgba(245, 245, 247, 0.62);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.section-anchor:hover,
.section-anchor:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
}

.article-section h2 {
  margin-top: 8px;
  color: var(--text);
  font-size: 1.62rem;
  font-weight: 640;
  line-height: 1.18;
  text-shadow: none;
}

.article-section p {
  margin-top: 15px;
  font-size: 0.93rem;
  line-height: 1.66;
  color: rgba(245, 245, 247, 0.7);
}

.article-lede {
  color: var(--text-soft);
  font-size: 0.98rem !important;
}

.reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 680ms var(--ease),
    filter 680ms var(--ease),
    transform 680ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    background 220ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  filter: none;
  transform: translateY(0);
}

.read-meta,
.thesis-list,
.summary-list,
.scan-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.read-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.read-meta div,
.thesis-list div,
.summary-list p,
.scan-list article,
.accent-block,
.route-map,
.case-preview article,
.offer-table div,
.call-flow span,
.channel-preview div,
.faq details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: #171819;
  box-shadow: none;
}

.read-meta div,
.thesis-list div,
.summary-list p,
.scan-list article {
  min-width: 0;
  padding: 15px 16px;
}

.read-meta span,
.case-preview span,
.offer-table span,
.channel-preview span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
}

.read-meta strong,
.thesis-list strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 0.9rem;
}

.read-meta p,
.thesis-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.44;
}

.summary-list p {
  margin: 0;
}

.chapter-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.chapter-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  color: rgba(245, 245, 247, 0.72);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: none;
}

.chapter-essence {
  color: var(--text-soft);
}

.chapter-body {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.chapter-body h3,
.scan-list h3 {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}

.placeholder {
  display: block;
  width: 100%;
  margin-top: 14px !important;
  padding: 14px 16px;
  border: 1px solid rgba(155, 216, 194, 0.22);
  border-left: 2px solid rgba(155, 216, 194, 0.72);
  border-radius: 0;
  color: rgba(245, 245, 247, 0.82);
  background:
    linear-gradient(90deg, var(--mint-soft), rgba(255, 255, 255, 0.018) 72%),
    #111314;
  font-size: 0.88rem !important;
  font-weight: 560;
}

.accent-block {
  margin-top: 24px;
  padding: 18px 18px 18px 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.42);
  background: #18191a;
}

.accent-block strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
}

.accent-block p {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.route-map,
.case-preview,
.offer-table,
.call-flow,
.channel-preview {
  margin-top: 22px;
}

.route-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.route-map span {
  position: relative;
  display: grid;
  min-height: 70px;
  place-items: center;
  padding: 14px 10px;
  color: rgba(245, 245, 247, 0.9);
  background:
    linear-gradient(180deg, rgba(155, 216, 194, 0.08), rgba(255, 255, 255, 0.012)),
    #141617;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.route-map span:first-child {
  color: var(--mint);
}

.route-map span:last-child {
  color: var(--amber);
}

.case-preview,
.offer-table,
.channel-preview {
  display: grid;
  gap: 10px;
}

.case-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-preview article,
.offer-table div,
.channel-preview div {
  min-width: 0;
  padding: 15px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006)),
    #111314;
}

.case-preview strong,
.offer-table strong,
.channel-preview strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.28;
}

.case-preview p {
  margin-top: 8px;
  color: rgba(245, 245, 247, 0.58);
  font-size: 0.84rem;
  line-height: 1.45;
}

.offer-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offer-table div:nth-child(2),
.channel-preview div:nth-child(2) {
  border-color: rgba(155, 216, 194, 0.2);
  background:
    linear-gradient(180deg, var(--mint-soft), rgba(255, 255, 255, 0.006)),
    #111314;
}

.offer-table div:nth-child(4),
.channel-preview div:nth-child(3) {
  border-color: rgba(217, 194, 127, 0.2);
  background:
    linear-gradient(180deg, var(--amber-soft), rgba(255, 255, 255, 0.006)),
    #111314;
}

.call-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.call-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  color: rgba(245, 245, 247, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.008)),
    #111314;
  font-size: 0.82rem;
  font-weight: 620;
}

.channel-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scan-list article span {
  color: rgba(245, 245, 247, 0.78);
  font-size: 0.76rem;
  font-weight: 650;
}

.scan-list h3 {
  margin-top: 7px;
}

.scan-list p {
  margin-top: 7px;
  font-size: 0.88rem;
}

.faq details {
  margin-top: 10px;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.faq details:hover,
.faq details[open] {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    #0f1317;
}

.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.faq details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq details p {
  margin: 0;
  padding: 14px 16px 16px;
}

.inside-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.inside-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: #171819;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: none;
}

.final-cta {
  margin: 22px 0 88px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: #141516;
  box-shadow: none;
  overflow: hidden;
}

.final-cta::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
}

.final-cta h2 {
  font-size: 1.72rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
  transition: color 180ms var(--ease);
}

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

@media (hover: hover) {
  .article-section:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 980px) {
  :root {
    --header: 78px;
  }

  .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .header-progress-row,
  .header-panel {
    width: calc(100% - 32px);
    max-width: var(--wide);
  }

  .header-progress-row {
    min-height: 26px;
    padding-top: 7px;
    padding-bottom: 5px;
  }

  .header-progress-track {
    padding: 0 16px;
  }

  .header-panel {
    min-height: 52px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .header-spacer {
    display: flex;
    justify-self: start;
  }

  .header-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .hero-stage,
  .quick-access-shell,
  .reader-shell {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-copy,
  .hero-media,
  .hero-aside {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-copy,
  .hero-aside,
  .quick-overview,
  .quick-access-nav {
    padding: 26px 24px;
  }

  .hero-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
    gap: 16px;
  }

  .hero-media {
    min-height: 380px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
    border-right: 0;
  }

  .hero-aside {
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: #1b1b1c;
    box-shadow: none;
    backdrop-filter: none;
  }

  h1 {
    font-size: clamp(2.85rem, 7.6vw, 4.15rem);
  }

  .quick-access-shell {
    width: calc(100% - 32px);
    max-width: var(--wide);
  }

  .desktop-toc {
    display: none !important;
  }

  .mobile-toc {
    position: sticky;
    top: var(--header);
    z-index: 100;
    display: block !important;
    width: calc(100% - 36px);
    max-width: var(--article);
    margin: 14px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
      rgba(7, 8, 10, 0.97);
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: none;
  }

  .mobile-toc > summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 13px 14px;
    color: var(--text);
    font-weight: 600;
    list-style: none;
  }

  .mobile-toc > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-toc > summary span {
    color: rgba(245, 245, 247, 0.58);
    font-size: 0.76rem;
    font-weight: 650;
    text-transform: uppercase;
  }

  .mobile-toc > summary strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(245, 245, 247, 0.82);
    background: transparent;
    font-size: 0.76rem;
    text-align: right;
  }

  .mobile-toc-content {
    padding: 0 14px 14px;
    border-top: 1px solid var(--line);
  }

  .reader-shell {
    width: calc(100% - 36px);
    max-width: 860px;
    gap: 0;
    padding-top: 24px;
  }

  .quick-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .quick-overview-stats div:nth-child(2n) {
    padding-right: 0;
    border-right: 0;
    padding-left: 18px;
  }

  .quick-overview-stats div:nth-child(2n + 1) {
    padding-right: 18px;
  }
}

@media (max-width: 680px) {
  :root {
    --header: 74px;
  }

  body {
    font-size: 15px;
  }

  .header-progress-row,
  .header-panel {
    width: calc(100vw - 24px);
    max-width: var(--wide);
  }

  .header-progress-row {
    min-height: 24px;
    padding-top: 7px;
    padding-bottom: 4px;
  }

  .header-progress-label,
  .reading-status {
    font-size: 0.74rem;
  }

  .header-progress-track {
    padding: 0 12px;
  }

  .header-panel {
    position: relative;
    min-height: 50px;
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    justify-content: space-between;
  }

  .header-spacer {
    margin-right: auto;
  }

  .site-logo {
    min-width: 40px;
    font-size: 0.68rem;
  }

  .header-actions {
    position: absolute;
    top: 50%;
    right: 74px;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    justify-self: stretch;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    transform: translateY(-50%);
  }

  .site-search {
    width: 42px;
    flex: 0 0 42px;
  }

  .site-search:focus-within {
    width: min(148px, calc(100vw - 126px));
    flex-basis: min(148px, calc(100vw - 126px));
  }

  .header-nav {
    display: none;
  }

  .header-cta {
    flex: 0 0 auto;
    min-width: 94px;
    min-height: 38px;
    padding: 8px 9px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero-stage,
  .quick-access-shell,
  .site-footer {
    width: calc(100vw - 28px);
    max-width: var(--wide);
  }

  h1 {
    font-size: clamp(2rem, 8.4vw, 2.65rem);
    line-height: 1.02;
  }

  .hero-lead {
    max-width: 34ch;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-copy,
  .hero-aside,
  .quick-overview,
  .quick-access-nav {
    padding: 22px 18px;
  }

  .hero-signals {
    grid-template-columns: 1fr;
    margin-top: 24px;
    gap: 11px;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-aside-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-side-cta,
  .button {
    width: 100%;
    min-height: 48px;
  }

  .quick-overview-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-overview-copy h2,
  .article-section h2,
  .final-cta h2 {
    font-size: 1.9rem;
  }

  .quick-access-section {
    padding-bottom: 28px;
  }

  .read-meta {
    grid-template-columns: 1fr;
  }

  .chapter-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-section::before {
    display: none;
  }

  .quick-overview-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quick-overview-stats div,
  .quick-overview-stats div:nth-child(2n),
  .quick-overview-stats div:nth-child(2n + 1) {
    padding: 15px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.075);
  }

  .route-map,
  .case-preview,
  .offer-table,
  .channel-preview {
    grid-template-columns: 1fr;
  }

  .route-map span {
    min-height: 50px;
  }

  .case-preview article,
  .offer-table div,
  .channel-preview div {
    padding: 14px 15px;
  }

  .final-cta {
    padding: 24px;
    margin-bottom: 68px;
  }

  .reader-shell {
    width: calc(100% - 28px);
    max-width: 860px;
  }
}

@media (max-width: 360px) {
  .header-progress-row,
  .header-panel {
    width: calc(100vw - 16px);
  }

  .header-actions {
    gap: 4px;
    right: 52px;
  }

  .header-cta {
    min-width: 86px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 0.78rem;
  }

  .site-logo {
    font-size: 0.62rem;
  }

  .site-search:focus-within {
    width: min(132px, calc(100vw - 104px));
    flex-basis: min(132px, calc(100vw - 104px));
  }
}

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

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
