  :root {
      --navy: #0a1628;
      --navy-mid: #112240;
      --gold: #d4a843;
      --gold-light: #f0c96e;
      --cream: #faf6ee;
      --cream-dark: #f0ead8;
      --rust: #c0392b;
      --teal: #0e7490;
      --text-dark: #1a1a2e;
      --text-mid: #3d405b;
      --text-light: #6b7280;
      --sidebar-width: 270px;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--text-dark);
      line-height: 1.7;
      font-size: clamp(14px, 1vw, 16px);
  }

  /* ── SIDEBAR NAV ── */
  #sidebar {
      position: fixed;
      left: 0;
      top: 0;
      width: var(--sidebar-width);
      height: 100vh;
      background: var(--navy);
      overflow-y: auto;
      z-index: 100;
      display: flex;
      flex-direction: column;
      border-right: 3px solid var(--gold);
  }

  #sidebar .brand {
      padding: 32px 24px;
      background: rgba(0, 0, 0, 0.15);
      border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  }

  #sidebar .brand-tag {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--gold);
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-bottom: 6px;
  }

  #sidebar .brand-title {
      font-family: 'Playfair Display', serif;
      font-size: 18px;
      color: #fff;
      font-weight: 700;
      line-height: 1.3;
  }

  #sidebar nav {
      flex: 1;
      padding: 16px 0;
  }

  .nav-section-label {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: rgba(212, 168, 67, 0.6);
      padding: 12px 24px 6px;
  }

  .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 24px;
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: clamp(12.5px, 0.9vw, 14px);
      font-weight: 400;
      transition: all 0.2s;
      border-left: 3px solid transparent;
      cursor: pointer;
  }

  .nav-item:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
      border-left-color: rgba(212, 168, 67, 0.4);
  }

  .nav-item.active {
      color: var(--gold-light);
      background: rgba(212, 168, 67, 0.12);
      border-left-color: var(--gold);
      font-weight: 600;
  }

  .nav-item .num {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--gold);
      opacity: 0.6;
      min-width: 18px;
  }

  /* ── MAIN CONTENT ── */
  #main {
      margin-left: var(--sidebar-width);
      min-height: 100vh;
      width: auto;
      background: var(--cream);
      position: relative;
  }

  /* ── COVER PAGE ── */
  #cover {
      min-height: 100vh;
      background: var(--navy);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 80px 80px 80px 100px;
      position: relative;
      overflow: hidden;
  }

  /* Decorative glow circles */
  .cover-glow {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
  }

  .cover-glow-top {
      top: -100px;
      right: -100px;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
  }

  .cover-glow-bottom {
      bottom: -80px;
      left: 40%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(14, 116, 144, 0.12) 0%, transparent 70%);
  }

  /* TOC section inside cover — #cover already has horizontal padding,
     so .ch-body must not add its own to avoid double-indent */
  #cover .ch-body {
      padding-left: 0;
      padding-right: 0;
      max-width: 100%;
      width: 100%;
  }

  /* ── HERO SECTION ── */
  .hero-section {
      min-height: 100vh;
      background: var(--navy);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 80px 80px 80px 100px;
      position: relative;
      overflow: hidden;
  }

  .hero-inner {
      position: relative;
      z-index: 2;
      max-width: 680px;
  }

  .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(212, 168, 67, 0.12);
      border: 1px solid rgba(212, 168, 67, 0.35);
      color: var(--gold-light);
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      letter-spacing: 2px;
      padding: 8px 16px;
      border-radius: 100px;
      margin-bottom: 32px;
  }

  .hero-badge-dot {
      width: 8px;
      height: 8px;
      background: var(--gold);
      border-radius: 50%;
      animation: pulse-dot 2s ease-in-out infinite;
  }

  @keyframes pulse-dot {

      0%,
      100% {
          opacity: 1;
          transform: scale(1);
      }

      50% {
          opacity: 0.4;
          transform: scale(0.7);
      }
  }

  .hero-cta {
      display: flex;
      gap: 16px;
      align-items: center;
      margin-bottom: 56px;
      flex-wrap: wrap;
  }

  .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--gold);
      color: var(--navy);
      font-family: 'DM Sans', sans-serif;
      font-weight: 700;
      font-size: 14px;
      padding: 14px 28px;
      border-radius: 8px;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.25s;
      border: 2px solid var(--gold);
      letter-spacing: 0.3px;
  }

  .btn-primary:hover {
      background: var(--gold-light);
      border-color: var(--gold-light);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(212, 168, 67, 0.35);
  }

  .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: transparent;
      color: rgba(255, 255, 255, 0.75);
      font-family: 'DM Sans', sans-serif;
      font-weight: 500;
      font-size: 14px;
      padding: 14px 28px;
      border-radius: 8px;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.25s;
      border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .btn-secondary:hover {
      border-color: var(--gold);
      color: var(--gold-light);
  }

  /* Stat icon */
  .stat-icon {
      font-size: 22px;
      display: block;
      margin-bottom: 6px;
  }

  /* Scroll Indicator */
  .scroll-indicator {
      position: absolute;
      bottom: 36px;
      left: 100px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      z-index: 2;
  }

  .scroll-line {
      width: 1px;
      height: 48px;
      background: linear-gradient(to bottom, var(--gold), transparent);
      animation: scroll-fade 2s ease-in-out infinite;
  }

  .scroll-text {
      font-family: 'Space Mono', monospace;
      font-size: 9px;
      letter-spacing: 2px;
      color: rgba(212, 168, 67, 0.5);
      text-transform: uppercase;
  }

  @keyframes scroll-fade {

      0%,
      100% {
          opacity: 0.3;
          transform: scaleY(0.8);
      }

      50% {
          opacity: 1;
          transform: scaleY(1);
      }
  }

  /* ── WHAT'S INSIDE ── */
  .whats-inside {
      background: var(--cream);
      padding: 80px 100px;
  }

  .wi-header {
      margin-bottom: 48px;
  }

  .wi-label {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
  }

  .wi-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(28px, 3vw, 42px);
      font-weight: 900;
      color: var(--navy);
      margin-bottom: 12px;
  }

  .wi-desc {
      font-size: 15px;
      color: var(--text-light);
      margin: 0;
  }

  .wi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
      gap: 14px;
      margin-bottom: 60px;
  }

  .wi-card {
      display: flex;
      align-items: center;
      gap: 16px;
      background: #fff;
      border: 1px solid var(--cream-dark);
      border-radius: 100px;
      /* Changed to pill shape for a more modern feel */
      padding: 14px 24px;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      transition: all 0.2s ease;
      position: relative;
      overflow: hidden;
  }

  .wi-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: var(--gold);
      transform: scaleY(0);
      transition: transform 0.2s ease;
  }

  .wi-card:hover {
      border-color: var(--gold);
      box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
      transform: translateY(-2px);
  }

  .wi-card:hover::before {
      transform: scaleY(1);
  }

  .wi-card-full {
      grid-column: 1 / -1;
      background: linear-gradient(135deg, rgba(212, 168, 67, 0.06), rgba(14, 116, 144, 0.04));
      border-color: rgba(212, 168, 67, 0.3);
  }

  .wi-num {
      font-family: 'Space Mono', monospace;
      font-size: 12px;
      font-weight: 700;
      color: var(--gold);
      min-width: 28px;
  }

  .wi-info {
      flex: 1;
  }

  .wi-name {
      font-weight: 600;
      font-size: 14px;
      color: var(--navy);
  }

  .wi-sub {
      font-size: 11px;
      color: var(--text-light);
      display: none;
      /* Keep it clean on small desktop, show on larger if needed */
  }

  .wi-arrow {
      font-size: 16px;
      color: var(--gold);
      opacity: 0;
      transition: all 0.2s ease;
  }

  .wi-card:hover .wi-arrow {
      opacity: 1;
      transform: translateX(4px);
  }

  /* Mission Block */
  .mission-block {
      background: var(--navy);
      border-radius: 16px;
      padding: 48px;
      position: relative;
      overflow: hidden;
  }

  .mission-quote {
      position: absolute;
      top: -20px;
      left: 32px;
      font-family: 'Playfair Display', serif;
      font-size: 120px;
      color: rgba(212, 168, 67, 0.15);
      line-height: 1;
      pointer-events: none;
  }

  .mission-text {
      font-size: 18px;
      color: rgba(255, 255, 255, 0.85);
      font-style: italic;
      line-height: 1.8;
      margin: 0 0 16px;
      max-width: 760px;
      position: relative;
  }

  .mission-source {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      color: var(--gold);
      letter-spacing: 1px;
  }

  .cover-eyebrow {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 28px;
  }

  .cover-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(42px, 5vw, 72px);
      font-weight: 900;
      color: #fff;
      line-height: 1.1;
      margin-bottom: 20px;
      max-width: 680px;
  }

  .cover-title span {
      color: var(--gold);
      font-style: italic;
  }

  .cover-subtitle {
      font-size: 16px;
      color: rgba(255, 255, 255, 0.55);
      max-width: 480px;
      margin-bottom: 60px;
      font-weight: 300;
      line-height: 1.8;
  }

  .cover-rule {
      width: 80px;
      height: 3px;
      background: var(--gold);
      margin-bottom: 40px;
  }

  .cover-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 30px;
      margin-bottom: 60px;
      width: 100%;
      max-width: 800px;
  }

  .stat-item {
      text-align: left;
  }

  .stat-num {
      font-family: 'Playfair Display', serif;
      font-size: 36px;
      font-weight: 700;
      color: var(--gold);
      display: block;
  }

  .stat-label {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.45);
      letter-spacing: 1.5px;
      text-transform: uppercase;
      font-family: 'Space Mono', monospace;
  }

  .cover-badge {
      display: inline-block;
      background: rgba(212, 168, 67, 0.15);
      border: 1px solid rgba(212, 168, 67, 0.4);
      color: var(--gold-light);
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      letter-spacing: 2px;
      padding: 8px 18px;
      border-radius: 2px;
  }

  .cover-corner-art {
      position: absolute;
      bottom: 40px;
      right: 60px;
      opacity: 0.06;
      font-family: 'Playfair Display', serif;
      font-size: 220px;
      font-weight: 900;
      color: #fff;
      line-height: 1;
      pointer-events: none;
      user-select: none;
  }

  /* ── CHAPTERS ── */
  .chapter {
      display: none;
      min-height: 100vh;
      animation: fadeIn 0.4s ease;
  }

  .chapter.active {
      display: block;
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(16px);
      }

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

  /* Chapter Header */
  .ch-header {
      padding: clamp(40px, 5vw, 60px) clamp(24px, 6vw, 80px) 50px;
      background: var(--navy-mid);
      border-bottom: 3px solid var(--gold);
      position: relative;
      overflow: hidden;
  }

  .ch-header::after {
      content: '';
      position: absolute;
      right: -60px;
      top: -60px;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(212, 168, 67, 0.1) 0%, transparent 70%);
      pointer-events: none;
  }

  .ch-number {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .ch-number::before {
      content: '';
      display: inline-block;
      width: 24px;
      height: 2px;
      background: var(--gold);
  }

  .ch-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(28px, 3.5vw, 48px);
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
      max-width: 700px;
  }

  /* Chapter Body */
  .ch-body {
      padding: clamp(40px, 5vw, 60px) clamp(24px, 6vw, 80px);
      width: 100%;
      max-width: 100%;
  }

  .ch-objective {
      background: linear-gradient(135deg, rgba(212, 168, 67, 0.08), rgba(212, 168, 67, 0.02));
      border-left: 4px solid var(--gold);
      padding: clamp(20px, 3vw, 32px);
      border-radius: 0 8px 8px 0;
      margin-bottom: clamp(32px, 5vw, 48px);
  }

  .ch-objective .obj-label {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 8px;
  }

  .ch-objective p {
      font-size: 15px;
      color: var(--text-mid);
      line-height: 1.8;
      font-weight: 400;
  }

  .section {
      margin-bottom: 52px;
  }

  .section-title {
      font-family: 'Playfair Display', serif;
      font-size: 24px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
  }

  .section-title::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--cream-dark);
      max-width: 200px;
  }

  .subsection {
      margin-bottom: 32px;
  }

  .subsection-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--teal);
      margin-bottom: 10px;
      font-family: 'DM Sans', sans-serif;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }

  p {
      font-size: 15px;
      color: var(--text-mid);
      line-height: 1.85;
      margin-bottom: 14px;
  }

  /* Bullet Lists */
  .bullet-list {
      list-style: none;
      margin: 12px 0 20px;
  }

  .bullet-list li {
      padding: 7px 0 7px 24px;
      position: relative;
      font-size: 14.5px;
      color: var(--text-mid);
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .bullet-list li::before {
      content: '▸';
      position: absolute;
      left: 0;
      color: var(--gold);
      font-size: 12px;
      top: 8px;
  }

  /* Cards */
  .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
      gap: clamp(20px, 3vw, 32px);
      margin: 32px 0;
      align-items: stretch;
  }

  .card {
      background: #fff;
      border: 1px solid var(--cream-dark);
      border-top: 3px solid var(--gold);
      border-radius: 12px;
      padding: clamp(24px, 4vw, 40px);
      position: relative;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: 100%;
  }

  .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(10, 22, 40, 0.12);
      border-color: var(--gold);
  }

  .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--gold), var(--gold-light));
  }

  .card-icon {
      font-size: 28px;
      margin-bottom: 12px;
      display: block;
  }

  .card-title {
      font-family: 'Playfair Display', serif;
      font-size: 16px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 8px;
  }

  .card-desc {
      font-size: 13.5px;
      color: var(--text-light);
      line-height: 1.7;
  }

  /* Phase Timeline */
  .phase-timeline {
      position: relative;
      padding-left: 36px;
  }

  .phase-timeline::before {
      content: '';
      position: absolute;
      left: 12px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, var(--gold), var(--teal), var(--navy));
      opacity: 0.3;
  }

  .phase-item {
      margin-bottom: 40px;
      position: relative;
  }

  .phase-dot {
      position: absolute;
      left: -36px;
      top: 6px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      color: var(--navy);
      font-weight: 700;
      box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.15);
  }

  .phase-header {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 10px;
  }

  .phase-title {
      font-family: 'Playfair Display', serif;
      font-size: 20px;
      font-weight: 700;
      color: var(--navy);
  }

  .phase-duration {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      color: var(--gold);
      background: rgba(212, 168, 67, 0.1);
      padding: 2px 10px;
      border-radius: 20px;
      border: 1px solid rgba(212, 168, 67, 0.3);
  }

  .phase-body {
      background: #fff;
      border: 1px solid var(--cream-dark);
      border-radius: 6px;
      padding: 20px 24px;
  }

  /* Policy / Rules boxes */
  .rule-box {
      background: #fff;
      border: 1px solid var(--cream-dark);
      border-radius: 8px;
      padding: 24px 28px;
      margin-bottom: 20px;
      display: flex;
      gap: 18px;
      align-items: flex-start;
  }

  .rule-num {
      font-family: 'Space Mono', monospace;
      font-size: 22px;
      font-weight: 700;
      color: var(--gold);
      opacity: 0.8;
      min-width: 32px;
      line-height: 1;
      padding-top: 2px;
  }

  .rule-content h4 {
      font-size: 15px;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 6px;
  }

  .rule-content p {
      font-size: 14px;
      margin: 0;
  }

  /* Consent form */
  .consent-form {
      background: #fff;
      border: 2px solid var(--navy);
      border-radius: 8px;
      padding: 40px;
      margin-top: 32px;
  }

  .consent-form h3 {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      color: var(--navy);
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 2px solid var(--cream-dark);
  }

  .signature-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px;
      margin-top: 24px;
  }

  .sig-field {
      border-bottom: 1.5px solid var(--navy);
      padding-bottom: 4px;
      margin-bottom: 6px;
      min-height: 36px;
  }

  .sig-label {
      font-family: 'Space Mono', monospace;
      font-size: 10px;
      letter-spacing: 1px;
      color: var(--text-light);
      text-transform: uppercase;
  }

  .consent-section {
      margin-bottom: 32px;
  }

  .consent-section h4 {
      font-size: 13px;
      font-weight: 700;
      color: var(--navy);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 16px;
      font-family: 'Space Mono', monospace;
  }

  /* Highlight callout */
  .callout {
      background: linear-gradient(135deg, var(--navy), var(--navy-mid));
      color: #fff;
      border-radius: 8px;
      padding: 32px 36px;
      margin: 32px 0;
      position: relative;
      overflow: hidden;
  }

  .callout::before {
      content: '"';
      position: absolute;
      right: 20px;
      top: -20px;
      font-family: 'Playfair Display', serif;
      font-size: 140px;
      color: rgba(212, 168, 67, 0.15);
      line-height: 1;
  }

  .callout p {
      color: rgba(255, 255, 255, 0.85);
      font-size: 16px;
      font-style: italic;
      line-height: 1.8;
      margin: 0;
  }

  .callout .callout-source {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      color: var(--gold);
      margin-top: 12px;
      letter-spacing: 1px;
      display: block;
  }

  /* Benefit pills */
  .benefit-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 14px;
      margin: 24px 0;
  }

  .benefit-pill {
      background: linear-gradient(135deg, rgba(212, 168, 67, 0.08), rgba(14, 116, 144, 0.05));
      border: 1px solid rgba(212, 168, 67, 0.25);
      border-radius: 6px;
      padding: 16px 18px;
      text-align: center;
  }

  .benefit-pill .bp-icon {
      font-size: 24px;
      display: block;
      margin-bottom: 8px;
  }

  .benefit-pill .bp-text {
      font-size: 13px;
      color: var(--text-mid);
      font-weight: 500;
      line-height: 1.4;
  }

  /* Table of contents */
  .toc-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 32px 0;
  }

  .toc-item {
      display: flex;
      align-items: center;
      gap: 14px;
      background: rgba(212, 168, 67, 0.06);
      border: 1px solid rgba(212, 168, 67, 0.15);
      border-radius: 6px;
      padding: 14px 18px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
      color: inherit;
  }

  .toc-item:hover {
      background: rgba(212, 168, 67, 0.12);
      border-color: var(--gold);
      transform: translateX(4px);
  }

  .toc-num {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      color: var(--gold);
      font-weight: 700;
      min-width: 24px;
  }

  #cover .section-title {
      color: #fff;
  }

  .toc-name {
      font-size: 14px;
      color: #fff;
      font-weight: 500;
  }

  /* Divider */
  .divider {
      width: 60px;
      height: 3px;
      background: var(--gold);
      margin: 36px 0;
      border-radius: 2px;
  }

  /* Back to top / nav buttons */
  .ch-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 24px clamp(24px, 6vw, 80px) 60px;
      border-top: 1px solid var(--cream-dark);
  }

  .ch-nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-family: 'Space Mono', monospace;
      color: var(--teal);
      cursor: pointer;
      transition: color 0.2s;
      background: none;
      border: none;
      text-decoration: none;
  }

  .ch-nav-btn:hover {
      color: var(--gold);
  }

  /* Print */
  @media print {
      #sidebar {
          display: none;
      }

      #main {
          margin-left: 0;
      }

      .chapter {
          display: block !important;
          page-break-before: always;
      }

      .ch-nav {
          display: none;
      }
  }

  /* Scrollbar */
  #sidebar::-webkit-scrollbar {
      width: 4px;
  }

  #sidebar::-webkit-scrollbar-track {
      background: transparent;
  }

  #sidebar::-webkit-scrollbar-thumb {
      background: rgba(212, 168, 67, 0.3);
      border-radius: 2px;
  }

  /* --- MOBILE TOGGLE BUTTON --- */
  #mobile-toggle {
      display: none;
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1001;
      width: 45px;
      height: 45px;
      background: var(--gold);
      color: var(--navy);
      border: none;
      border-radius: 50%;
      font-size: 20px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      align-items: center;
      justify-content: center;
      transition: transform 0.2s;
  }

  #mobile-toggle:active {
      transform: scale(0.9);
  }

  /* ==========================================================================
     RESPONSIVE DESIGN
     - XL:  > 1600px  (Large Desktop / 4K)
     - LG:  1201-1600px (Standard Desktop)
     - MD:  993-1200px  (Laptop)
     - SM:  768-992px   (Tablet)
     - XS:  < 768px     (Mobile)
     ========================================================================== */

  /* MOBILE TOGGLE: hidden by default */
  #mobile-toggle {
      display: none;
  }

  /* ── MD: Laptop (max-width: 1200px) ── */
  @media (max-width: 1200px) {
      :root {
          --sidebar-width: 240px;
      }

      #cover {
          padding: 70px 60px 70px 80px;
      }

      .cover-title {
          font-size: 52px;
      }

      .ch-header {
          padding: 60px 60px 40px;
      }

      .ch-body {
          padding: 40px 60px;
      }

      .ch-nav {
          padding: 24px 60px 50px;
      }
  }

  /* ── SM: Tablet (max-width: 992px) ── */
  @media (max-width: 992px) {

      /* Show toggle, hide sidebar off-screen */
      #mobile-toggle {
          display: flex;
      }

      :root {
          --sidebar-width: 0px;
      }

      #sidebar {
          width: 270px;
          left: -280px;
          transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
          box-shadow: none;
          z-index: 1000;
      }

      #sidebar.open {
          left: 0;
          box-shadow: 6px 0 24px rgba(0, 0, 0, 0.4);
      }

      #main {
          margin-left: 0;
      }

      /* Original Cover Responsive */
      #cover {
          padding: 80px 40px;
          align-items: flex-start;
          text-align: left;
          min-height: 100vh;
      }

      .cover-title {
          font-size: 52px;
          max-width: 100%;
      }

      .cover-subtitle {
          max-width: 100%;
      }

      .cover-stats {
          grid-template-columns: repeat(4, 1fr);
          gap: 20px;
      }

      .cover-glow-top {
          width: 300px;
          height: 300px;
          top: -50px;
          right: -50px;
      }

      .cover-glow-bottom {
          width: 250px;
          height: 250px;
      }

      .cover-title {
          font-size: 44px;
          max-width: 100%;
      }

      .cover-rule {
          margin: 0 auto 32px;
      }

      .cover-subtitle {
          margin: 0 auto 48px;
          max-width: 100%;
      }

      .cover-stats {
          grid-template-columns: repeat(4, 1fr);
          gap: 20px;
          max-width: 100%;
      }

      .stat-item {
          text-align: center;
      }

      .cover-corner-art {
          font-size: 120px;
      }

      /* Chapters */
      .ch-header {
          padding: 70px 32px 36px;
      }

      .ch-body {
          padding: 36px 32px;
      }

      .ch-nav {
          padding: 20px 32px 40px;
      }

      /* Grids */
      .card-grid {
          grid-template-columns: 1fr 1fr;
      }

      .benefit-grid {
          grid-template-columns: 1fr 1fr 1fr;
      }

      .toc-grid {
          grid-template-columns: 1fr 1fr;
      }
  }

  /* ── XS: Mobile (max-width: 600px) ── */
  @media (max-width: 600px) {

      /* Toggle button */
      #mobile-toggle {
          top: 14px;
          right: 14px;
          width: 40px;
          height: 40px;
          font-size: 17px;
      }

      /* Original Cover Mobile */
      #cover {
          padding: 72px 15px 50px;
          text-align: left;
          align-items: flex-start;
      }

      .cover-title {
          font-size: clamp(34px, 9vw, 42px);
          line-height: 1.1;
          margin-bottom: 24px;
      }

      .cover-subtitle {
          font-size: 14px;
          line-height: 1.6;
          margin-bottom: 40px;
      }

      .cover-stats {
          grid-template-columns: 1fr 1fr;
          gap: 24px 16px;
          width: 100%;
          margin-bottom: 40px;
      }

      .stat-num {
          font-size: 32px;
      }

      .stat-label {
          font-size: 10px;
      }

      .cover-eyebrow {
          font-size: 9px;
          letter-spacing: 2px;
      }

      .cover-title {
          font-size: clamp(32px, 8vw, 40px);
      }

      .cover-rule {
          width: 50px;
      }

      .cover-subtitle {
          font-size: 14px;
      }

      .cover-stats {
          grid-template-columns: 1fr 1fr;
          gap: 20px 16px;
          width: 100%;
          margin-bottom: 40px;
      }

      .stat-num {
          font-size: 30px;
      }

      .stat-label {
          font-size: 9px;
      }

      .cover-badge {
          font-size: 10px;
          padding: 6px 14px;
      }

      .cover-corner-art {
          font-size: 70px;
          bottom: 8px;
          right: 8px;
      }

      .cover-glow-top {
          width: 200px;
          height: 200px;
      }

      .cover-glow-bottom {
          width: 180px;
          height: 180px;
      }

      /* Chapter header & body */
      .ch-header {
          padding: 72px 15px 28px;
      }

      .ch-title {
          font-size: 26px;
          max-width: 100%;
      }

      .ch-body {
          padding: 28px 15px;
          max-width: 100%;
      }

      /* Chapter nav */
      .ch-nav {
          padding: 20px 18px 32px;
          flex-direction: column;
          gap: 14px;
          align-items: flex-start;
      }

      /* Objective box */
      .ch-objective {
          padding: 18px;
          margin-bottom: 28px;
      }

      /* Section titles */
      .section-title {
          font-size: 18px;
      }

      .section-title::after {
          display: none;
      }

      /* Grids — all single column on mobile */
      .card-grid,
      .toc-grid,
      .wi-grid,
      .benefit-grid,
      .signature-row {
          grid-template-columns: 1fr;
      }

      /* Cards */
      .card {
          padding: 22px 18px;
      }

      /* TOC items */
      .toc-item {
          justify-content: flex-start;
          text-align: left;
      }

      .toc-grid {
          gap: 10px;
      }

      /* Benefit pills */
      .benefit-pill {
          padding: 14px;
      }

      .benefit-pill .bp-icon {
          font-size: 20px;
      }

      /* Rule boxes */
      .rule-box {
          flex-direction: column;
          gap: 10px;
          padding: 18px;
      }

      .rule-num {
          font-size: 18px;
          min-width: auto;
      }

      /* Phase timeline */
      .phase-timeline {
          padding-left: 28px;
      }

      .phase-dot {
          width: 20px;
          height: 20px;
          left: -28px;
          font-size: 9px;
      }

      .phase-body {
          padding: 16px;
      }

      /* Callout */
      .callout {
          padding: 22px 20px;
          margin: 24px 0;
      }

      .callout p {
          font-size: 14px;
      }

      .callout::before {
          font-size: 100px;
          right: 10px;
          top: -10px;
      }

      /* Consent form */
      .consent-form {
          padding: 22px 18px;
      }

      .consent-form h3 {
          font-size: 18px;
      }

      .signature-row {
          gap: 16px;
      }

      /* Phase header wraps */
      .phase-header {
          flex-wrap: wrap;
          gap: 8px;
      }
  }

  /* ── XL: Large Desktop (min-width: 1600px) ── */
  @media (min-width: 1600px) {
      :root {
          --sidebar-width: 300px;
      }

      #cover {
          padding: 100px 100px 100px 130px;
      }

      .cover-title {
          font-size: 80px;
      }

      .cover-stats {
          gap: 50px;
      }

      .ch-header {
          padding: 80px 100px 60px;
      }

      .ch-body {
          padding: 60px 100px;
          max-width: 1200px;
      }

      .ch-nav {
          padding: 30px 100px 70px;
      }
  }