/* ==========================================================================
   Design System: Mobile-First Obsidian Pine + Sage Eucalyptus (De-Boxed Editorial)
   ========================================================================== */
:root {
  --bg-base: #0a0e0c;
  --bg-elevated: #111714;
  --bg-pine-band: #12211a;
  --bg-surface: rgba(120, 168, 138, 0.08);
  --accent: #78a88a;
  --accent-bright: #9bc9ac;
  --accent-deep: #3e634e;
  --accent-warm: #c7a27c;
  --text-primary: #f3f6f4;
  --text-secondary: #a6b5ac;
  --text-muted: #6f8076;
  --grid-line: rgba(155, 201, 172, 0.14);
  --grid-line-strong: rgba(155, 201, 172, 0.28);
  --radius: 4px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Sticky Header & Reading Progress Bar (Mobile-First)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grid-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.brand-name {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links,
.btn.nav-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 34px;
  padding: 0 0.65rem;
  border: 1px solid var(--grid-line-strong);
  border-radius: 4px;
  background: transparent;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-toggle .lang-active {
  color: var(--accent-bright);
}

.reading-progress {
  height: 2px;
  width: 100%;
  background: rgba(155, 201, 172, 0.08);
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 0.1s linear;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.btn-accent {
  background: var(--accent);
  color: #08100c;
  border: 1px solid var(--accent);
}

.btn-accent:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: rgba(17, 23, 20, 0.65);
  color: var(--text-primary);
  border: 1px solid var(--grid-line-strong);
}

.btn-ghost-light:hover {
  border-color: var(--accent);
  background: rgba(120, 168, 138, 0.12);
}

/* ==========================================================================
   PROLOG: Hero Poster (Mobile-First)
   ========================================================================== */
.hero-poster {
  position: relative;
  background: var(--bg-base);
  overflow: hidden;
  border-bottom: 1px solid var(--grid-line);
}

.hero-poster-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 0 2rem;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(120, 168, 138, 0.34) 0%, rgba(62, 99, 78, 0.18) 38%, rgba(10, 14, 12, 0.98) 76%),
    radial-gradient(circle at 85% 12%, rgba(199, 162, 124, 0.12) 0%, transparent 40%);
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  border-top: 1px solid var(--grid-line);
  border-left: 1px solid var(--grid-line);
  z-index: 1;
  pointer-events: none;
}

.grid-cell {
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  position: relative;
}

.desktop-cell {
  display: none;
}

.cell-outline-box {
  position: absolute;
  top: 14%;
  left: 14%;
  width: 68%;
  height: 28%;
  border: 1px solid rgba(243, 246, 244, 0.42);
}

.cell-meta-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.55rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-bright);
  line-height: 1.3;
}

.cell-accent {
  background: rgba(120, 168, 138, 0.85);
}

.cell-accent-outline {
  box-shadow: inset 0 0 0 1px rgba(120, 168, 138, 0.7);
}

.hero-portrait-layer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 1.25rem;
  margin-bottom: -1.4rem;
  pointer-events: none;
}

.hero-portrait-cutout {
  height: 310px;
  width: auto;
  max-width: 88vw;
  object-fit: contain;
  object-position: bottom center;
  transform: translateZ(0);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  mask-image: linear-gradient(to bottom, #000 76%, rgba(0, 0, 0, 0.2) 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, rgba(0, 0, 0, 0.2) 96%, transparent 100%);
}

.hero-poster-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.poster-headline {
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  font-size: clamp(2rem, 8.8vw, 3.75rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.75);
}

.poster-headline .line-white {
  color: var(--text-primary);
}

.poster-headline .line-accent {
  color: var(--accent);
}

.poster-subcopy {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 48ch;
}

.poster-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-poster-footer {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--grid-line-strong);
}

.poster-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.poster-role {
  font-size: 0.84rem;
  color: var(--accent-warm);
  font-weight: 600;
  margin: 0.15rem 0 0.85rem;
}

.poster-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.poster-pillars span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.poster-pillars svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.poster-monogram {
  align-self: flex-start;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.55rem 0.95rem;
  border: 2px solid var(--accent);
  border-radius: 6px 6px 6px 2px;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: rgba(17, 23, 20, 0.85);
}

.monogram-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  background: var(--accent-warm);
}

/* ==========================================================================
   Atmospheric Section Backgrounds (Continuing Hero Depth)
   ========================================================================== */
.section {
  position: relative;
  padding: 4rem 0;
  border-bottom: 1px solid var(--grid-line);
  overflow: hidden;
}

.section > .container {
  position: relative;
  z-index: 2;
}

.section-grid-overlay {
  position: absolute;
  inset: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  border-top: 1px solid rgba(155, 201, 172, 0.07);
  border-left: 1px solid rgba(155, 201, 172, 0.07);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  contain: layout style paint;
}

.section-grid-overlay .grid-cell {
  border-right: 1px solid rgba(155, 201, 172, 0.07);
  border-bottom: 1px solid rgba(155, 201, 172, 0.07);
}

.section-grid-overlay .cell-accent {
  background: rgba(120, 168, 138, 0.14);
}

.section-grid-overlay .cell-accent-outline {
  box-shadow: inset 0 0 0 1px rgba(120, 168, 138, 0.24);
}

.section-grid-overlay .cell-outline-box {
  border-color: rgba(243, 246, 244, 0.18);
}

/* Bab 01: Asymmetric right-top Sage ambient glow */
#bab-1 {
  background:
    radial-gradient(ellipse 65% 55% at 88% 18%, rgba(120, 168, 138, 0.15) 0%, transparent 70%),
    var(--bg-base);
}

/* Bab 02: Subtle architectural grid backdrop + centered emerald glow */
#bab-2 {
  background-color: var(--bg-elevated);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(62, 99, 78, 0.24) 0%, transparent 65%),
    linear-gradient(to right, rgba(155, 201, 172, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(155, 201, 172, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 96px 96px, 96px 96px;
}

/* Bab 03: Clean dark canvas with subtle left-bottom pine glow */
#bab-3 {
  background:
    radial-gradient(circle at 12% 85%, rgba(62, 99, 78, 0.18) 0%, transparent 55%),
    var(--bg-base);
}

/* Bab 04: Deep Pine Editorial Band + Warm Tortoiseshell highlight */
#bab-4 {
  background:
    radial-gradient(ellipse 70% 60% at 80% 25%, rgba(199, 162, 124, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 15% 80%, rgba(120, 168, 138, 0.14) 0%, transparent 65%),
    var(--bg-pine-band);
}

/* Bab 05: Dual-tone atmospheric wash + subtle horizontal lines */
#bab-5 {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(120, 168, 138, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(199, 162, 124, 0.1) 0%, transparent 55%);
}

/* Bab 06: Left-edge grid fade + soft pine glow */
#bab-6 {
  background-color: var(--bg-elevated);
  background-image:
    radial-gradient(circle at 75% 50%, rgba(62, 99, 78, 0.2) 0%, transparent 60%),
    linear-gradient(to right, rgba(155, 201, 172, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 120px 100%;
}

/* Epilog: Hero Echo Backdrop */
#epilog {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 28% 35%, rgba(120, 168, 138, 0.22) 0%, rgba(62, 99, 78, 0.1) 40%, transparent 72%),
    linear-gradient(to right, rgba(155, 201, 172, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(155, 201, 172, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 96px 96px, 96px 96px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.chapter-header {
  margin-bottom: 2rem;
}

.chapter-header.centered {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.chapter-header.centered .section-intro {
  margin-inline: auto;
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 60ch;
}

/* ==========================================================================
   BAB 01: De-Boxed Vertical Timeline Spine
   ========================================================================== */
.b1-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.v-spine {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--grid-line-strong);
  padding-left: 1.35rem;
}

.v-node {
  position: relative;
  border-bottom: 1px solid var(--grid-line);
  transition: background-color 0.2s ease;
}

.v-node:first-child {
  border-top: 1px solid var(--grid-line);
}

.v-node::before {
  content: "";
  position: absolute;
  left: -1.68rem;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--bg-base);
  border: 1.5px solid var(--accent-deep);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.v-node.active::before {
  background: var(--accent);
  border-color: var(--accent);
}

.v-node-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 58px;
  padding: 1rem 0.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.v-year {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-warm);
  white-space: nowrap;
}

.v-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.v-node.active .v-heading,
.v-node-trigger:hover .v-heading {
  color: var(--text-primary);
}

.v-toggle {
  font-size: 1.2rem;
  color: var(--accent);
}

.v-node-body {
  padding: 0 0.25rem 1.35rem;
}

.v-node-body[hidden] {
  display: none;
}

.v-node-body p {
  margin: 0.25rem 0 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* ==========================================================================
   BAB 02: Architectural Hairline 2x2 Matrix + Open Editorial Callout
   ========================================================================== */
.bento-matrix {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--grid-line);
  border-left: 1px solid var(--grid-line);
  margin-bottom: 1.75rem;
}

.bento-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.6rem 1.4rem;
  background: rgba(10, 14, 12, 0.35);
  border: none;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.bento-cell:hover {
  background: rgba(120, 168, 138, 0.07);
}

.bento-cell.active {
  background: rgba(120, 168, 138, 0.14);
}

.bento-num {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-warm);
}

.bento-cell h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bento-summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.bento-spotlight {
  padding: 0.5rem 0 0;
  max-width: 72ch;
}

.spotlight-role {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 0.45rem;
}

.bento-spotlight p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.bento-spotlight p + p {
  margin-top: 0.9rem;
}

/* ==========================================================================
   BAB 03: De-Boxed Nusantara Footprint Explorer
   ========================================================================== */
.b3-topbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.filter-bar {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.region-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--grid-line-strong);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.region-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.region-btn.active {
  background: var(--accent);
  color: #08100c;
  border-color: var(--accent);
}

.footprint-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
}

.footprint-card {
  padding-top: 1.15rem;
  border-top: 1px solid var(--grid-line-strong);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footprint-card[hidden] {
  display: none;
}

.fp-loc {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
}

.footprint-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text-primary);
}

.fp-role {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.footprint-card p:last-child {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   BAB 04: Open Editorial Strip (De-Boxed) + Mobile Prev/Next Deck
   ========================================================================== */
.b4-hero-section {
  padding-bottom: 2.5rem;
}

.b4-portrait-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(120, 168, 138, 0.28) 0%, rgba(62, 99, 78, 0.14) 38%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.b4-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.b4-portrait-col {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.b4-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.b4-portrait-img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(0);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, rgba(0, 0, 0, 0.22) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, rgba(0, 0, 0, 0.22) 92%, transparent 100%);
}

.b4-content-col {
  min-width: 0;
}

.b4-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.b4-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.6rem;
}

.b4-poster-headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(2rem, 7.2vw, 3.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.b4-poster-headline .line-white {
  color: var(--text-primary);
}

.b4-poster-headline .line-accent {
  color: var(--accent);
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.deck-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--grid-line-strong);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.deck-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.deck-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-warm);
  min-width: 3rem;
  text-align: center;
}

.stage-cards-rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.stage-cards-rail::-webkit-scrollbar {
  display: none;
}

.stage-card {
  flex: 0 0 84%;
  scroll-snap-align: start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grid-line-strong);
}

.stage-year {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-warm);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.stage-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.06rem;
  color: var(--text-primary);
}

.stage-org {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.stage-card p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   BAB 05: Hairline Expanding Columns (De-Boxed)
   ========================================================================== */
.elements-showcase {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
}

.el-pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grid-line);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.25s ease, flex 0.35s ease;
}

.el-pillar:last-child {
  border-bottom: none;
}

.el-pillar.expanded {
  background: rgba(120, 168, 138, 0.09);
}

.el-pillar-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.el-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent);
}

.el-label-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
}

.el-pillar h3 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.el-short {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.el-full {
  margin-top: 1rem;
}

.el-full[hidden] {
  display: none;
}

.el-full p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 48ch;
}

/* ==========================================================================
   BAB 06: De-Boxed Master-Detail + Oversized Watermark Numeral
   ========================================================================== */
.master-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.master-list {
  display: flex;
  flex-direction: column;
}

.master-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
  padding: 0.85rem 0.25rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grid-line);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.master-item:first-child {
  border-top: 1px solid var(--grid-line);
}

.master-item.active {
  padding-left: 0.65rem;
}

.m-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.master-item.active .m-num {
  color: var(--accent-warm);
}

.m-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.master-item.active .m-title,
.master-item:hover .m-title {
  color: var(--text-primary);
}

.detail-reflection {
  position: relative;
  padding: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reflection-watermark {
  position: absolute;
  right: 0;
  top: -0.75rem;
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(120, 168, 138, 0.1);
  pointer-events: none;
  user-select: none;
}

.reflection-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.detail-reflection h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.detail-reflection p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 58ch;
}

.detail-reflection p + p {
  margin-top: 0.85rem;
}

/* ==========================================================================
   EPILOG: Editorial Footer & Collaboration Hub
   ========================================================================== */
.footer-epilog {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 23, 20, 0.9) 28%, var(--bg-elevated) 100%);
  border-top: 1px solid var(--grid-line);
  padding-bottom: 3.5rem;
}

.footer-cta-band {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--grid-line);
}

.footer-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.65rem;
}

.footer-title {
  max-width: 18ch;
  margin-bottom: 0;
}

.contact-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  padding-top: 1.75rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.footer-col:first-child {
  grid-column: 1 / -1;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--grid-line);
}

.footer-col:last-child {
  grid-column: 1 / -1;
  padding-top: 1.35rem;
  border-top: 1px solid var(--grid-line);
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}

.footer-col-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.footer-col-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-link-list,
.footer-nav-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link-list a,
.footer-nav-grid a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-list a:hover,
.footer-nav-grid a:hover {
  color: var(--accent-bright);
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.footer-top-item {
  grid-column: 1 / -1;
  margin-top: 0.45rem;
}

.footer-top-item a {
  color: var(--accent);
  font-size: 0.85rem;
}

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--grid-line);
  color: var(--text-muted);
  padding: 1.35rem 0;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ==========================================================================
   Tablet (min-width: 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .brand-name {
    font-size: 0.92rem;
  }

  .hero-portrait-cutout {
    height: 375px;
  }

  .poster-cta-row,
  .contact-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-poster-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .bento-matrix,
  .footprint-grid,
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .footer-col:first-child,
  .footer-col:last-child {
    grid-column: auto;
    padding: 0;
    border: none;
  }

  .footer-link-list a,
  .footer-nav-grid a {
    font-size: 0.92rem;
  }

  .footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
  }

  .b3-topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .b4-header {
    align-items: center;
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .deck-controls {
    display: none;
  }

  .stage-cards-rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Desktop (min-width: 960px)
   ========================================================================== */
@media (min-width: 960px) {
  .nav-inner {
    height: 74px;
  }

  .nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
  }

  .nav-links a:hover,
  .nav-links a.active-chapter {
    color: var(--accent-bright);
  }

  .btn.nav-cta {
    display: inline-flex;
    white-space: nowrap;
  }

  .hero-poster-frame {
    min-height: min(90vh, 820px);
    justify-content: flex-end;
    padding: 2.5rem 0 2.75rem;
  }

  .hero-grid-overlay,
  .section-grid-overlay {
    inset: 1.5rem;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  .hero-grid-overlay {
    grid-template-rows: repeat(6, 1fr);
  }

  .desktop-cell {
    display: block;
  }

  .hero-portrait-layer {
    position: absolute;
    inset: 0;
    padding-top: 0;
    margin-bottom: 0;
    justify-content: center;
  }

  .hero-portrait-cutout {
    height: 94%;
    max-width: min(640px, 65vw);
    transform: translateX(12%);
  }

  .hero-headline-block {
    max-width: 600px;
  }

  .section {
    padding: 5.5rem 0;
  }

  .b1-split {
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
    align-items: start;
  }

  .b1-aside {
    position: sticky;
    top: 6rem;
  }

  .b4-hero-section {
    padding-bottom: 0;
  }

  .b4-portrait-glow {
    background:
      radial-gradient(circle at 27% 62%, rgba(120, 168, 138, 0.32) 0%, rgba(62, 99, 78, 0.18) 36%, transparent 66%);
  }

  .b4-header {
    margin-bottom: 2.75rem;
  }

  .b4-split {
    grid-template-columns: minmax(400px, 500px) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: end;
  }

  .b4-portrait-col {
    align-self: end;
  }

  .b4-portrait-frame {
    max-width: 500px;
  }

  .b4-content-col {
    align-self: center;
    padding-bottom: 4.5rem;
  }

  .stage-cards-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2.25rem;
  }

  .elements-showcase {
    flex-direction: row;
    align-items: stretch;
  }

  .el-pillar {
    flex: 1;
    min-height: 250px;
    justify-content: space-between;
    border-bottom: none;
    border-right: 1px solid var(--grid-line);
  }

  .el-pillar:last-child {
    border-right: none;
  }

  .el-pillar.expanded {
    flex: 2.1;
  }

  .master-detail {
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
    align-items: center;
  }

  .detail-reflection {
    padding: 1rem 0 1rem 2rem;
  }

  .footer-cta-band {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .footer-columns {
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .container {
    width: min(1180px, 90%);
  }
}
