@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; }

/* ── TOKENS ── */
:root {
  --bg:       #E6DACA;
  --bg-red:   #b62824;
  --text:     #2A3A2A;
  --text-red: #b62824;
  --inv:      #FAEFE0;
  --muted:    #2A3A2A;
  --muted-lo: rgba(42, 58, 42, 0.55);
  --border:   rgba(42, 58, 42, 0.14);
  --card:     rgba(42, 58, 42, 0.05);
  --px: 80px;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   ALT SECTIONS (red background)
───────────────────────────────────────── */
.cs-section--alt {
  background: var(--bg-red);
  --text:     #FAEFE0;
  --text-red: #FAEFE0;
  --muted:    #FAEFE0;
  --muted-lo: rgba(250, 239, 224, 0.55);
  --border:   rgba(250, 239, 224, 0.18);
  --card:     rgba(250, 239, 224, 0.08);
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.cs-nav {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 400;
  background: var(--bg);
}

.cs-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.2s;
  margin-right: 10px;
}
.cs-nav-logo:hover { opacity: 1; }
.cs-nav-logo img { height: 30px; width: auto; display: block; }

.cs-nav-label {
  font-family: 'AlternateGothic', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 1;
  text-align: center;
}

.cs-back {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-lo);
  text-decoration: none;
  transition: color 0.2s;
  margin-left: auto;
  flex-shrink: 0;
}
.cs-back:hover { color: var(--text-red); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.cs-hero {
  min-height: 540px;
  border-bottom: 1px solid var(--border);
}

.cs-hero-text {
  padding: 72px var(--px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cs-tag {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(182, 40, 36, 0.50);
  margin-bottom: 20px;
}
.cs-section--alt .cs-tag { color: rgba(250, 239, 224, 0.42); }

.cs-hero-title {
  font-family: 'Angela', serif;
  font-size: 76px;
  font-weight: 400;
  line-height: 0.94;
  color: var(--text-red);
  margin-bottom: 28px;
}

.cs-hero-sub {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 400px;
}
.cs-hero-sub p { margin: 0; }
.cs-hero-sub p + p { margin-top: 1em; }

/* ─────────────────────────────────────────
   META BAR
───────────────────────────────────────── */
.meta-bar {
  display: flex;
  align-items: center;
  padding: 0 var(--px);
  border-bottom: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
  flex: 1;
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 28px;
}

.meta-label {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted-lo);
}

.meta-value {
  font-family: 'AlternateGothic', sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--text);
}

/* ─────────────────────────────────────────
   SECTION BASE
───────────────────────────────────────── */
.cs-section {
  padding: 80px var(--px);
  border-bottom: 1px solid var(--border);
}

.cs-h2 {
  font-family: 'AlternateGothic', sans-serif;
  font-size: clamp(26px, 7vw, 35px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 40px;
}

.section-intro {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 48px;
}

/* ─────────────────────────────────────────
   SPLIT SECTION
───────────────────────────────────────── */
.cs-section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  gap: 0;
  align-items: stretch;
}

.cs-split-content {
  padding: 80px var(--px);
  border-right: 1px solid var(--border);
}

.cs-split-img {
  padding: 60px;
  display: flex;
  flex-direction: column;
}
.cs-split-img img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.cs-split-caption {
  margin-top: 12px;
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   01 — PROBLEMS
───────────────────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  margin-bottom: 20px;
}

.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 24px;
}

.problem-num {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(182, 40, 36, 0.42);
  margin-bottom: 14px;
}

.problem-card h3 {
  font-family: 'AlternateGothic', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.problem-card p {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.insight-bar {
  background: var(--card);
  border-left: 2px solid var(--text-red);
  padding: 16px 20px;
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
}
.insight-bar em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* ─────────────────────────────────────────
   02 — RESEARCH
───────────────────────────────────────── */
.contribution-row {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
}
.contribution-block { flex: 1; }

.block-label {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted-lo);
  display: block;
  margin-bottom: 10px;
}

.contribution-block p {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 40px;
}

.research-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
}

.research-num {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(182, 40, 36, 0.42);
  margin-bottom: 14px;
}

.research-card h4 {
  font-family: 'AlternateGothic', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.research-card p {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.process-photo {
  margin-bottom: 40px;
  overflow: hidden;
}
.process-photo--full { margin-bottom: 48px; }

.process-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.photo-caption {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  margin-top: 12px;
}

.pull-quote {
  border-left: 2px solid var(--text-red);
  padding: 20px 28px;
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  max-width: 620px;
}

/* ─────────────────────────────────────────
   02 — SURVEY CHART
───────────────────────────────────────── */
.survey-chart {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  margin-bottom: 40px;
}

.survey-chart-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.survey-tag {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(182, 40, 36, 0.52);
  margin-bottom: 8px;
}

.survey-q {
  font-family: 'AlternateGothic', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.survey-meta {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-lo);
  white-space: nowrap;
  padding-top: 4px;
}

.survey-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s-row {
  display: grid;
  grid-template-columns: 130px 1fr 52px;
  align-items: center;
  gap: 14px;
}

.s-lbl {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
  line-height: 1.25;
}

.s-track {
  height: 20px;
  background: rgba(42, 58, 42, 0.07);
  position: relative;
  overflow: hidden;
}

.s-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  transition: none;
}

/* triggered by JS IntersectionObserver */
.survey-chart.is-visible .s-row:nth-child(1) .s-bar { animation: barGrow 0.7s 0.00s cubic-bezier(0.22,1,0.36,1) forwards; }
.survey-chart.is-visible .s-row:nth-child(2) .s-bar { animation: barGrow 0.7s 0.06s cubic-bezier(0.22,1,0.36,1) forwards; }
.survey-chart.is-visible .s-row:nth-child(3) .s-bar { animation: barGrow 0.7s 0.12s cubic-bezier(0.22,1,0.36,1) forwards; }
.survey-chart.is-visible .s-row:nth-child(4) .s-bar { animation: barGrow 0.7s 0.18s cubic-bezier(0.22,1,0.36,1) forwards; }
.survey-chart.is-visible .s-row:nth-child(5) .s-bar { animation: barGrow 0.7s 0.24s cubic-bezier(0.22,1,0.36,1) forwards; }
.survey-chart.is-visible .s-row:nth-child(6) .s-bar { animation: barGrow 0.7s 0.30s cubic-bezier(0.22,1,0.36,1) forwards; }
.survey-chart.is-visible .s-row:nth-child(7) .s-bar { animation: barGrow 0.7s 0.36s cubic-bezier(0.22,1,0.36,1) forwards; }
.survey-chart.is-visible .s-row:nth-child(8) .s-bar { animation: barGrow 0.7s 0.42s cubic-bezier(0.22,1,0.36,1) forwards; }
.survey-chart.is-visible .s-row:nth-child(9) .s-bar { animation: barGrow 0.7s 0.48s cubic-bezier(0.22,1,0.36,1) forwards; }

@keyframes barGrow {
  from { width: 0; }
  to   { width: var(--w); }
}

.s-row--social .s-bar { background: #b62824; }
.s-row--human  .s-bar { background: rgba(42, 58, 42, 0.28); }

.s-pct {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-lo);
  white-space: nowrap;
}
.s-row--social .s-pct { color: rgba(182, 40, 36, 0.75); }

.survey-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.legend-dot--social { background: #b62824; }
.legend-dot--human  { background: rgba(42, 58, 42, 0.28); }

.legend-label {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-lo);
  margin-right: 12px;
}

.survey-note {
  margin-top: 12px;
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
  color: var(--muted-lo);
}
.survey-note strong {
  font-style: normal;
  font-weight: 700;
  color: #b62824;
}

/* ─────────────────────────────────────────
   03 — INSIGHTS (alt)
───────────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 28px;
}

.insight-stat {
  display: block;
  font-family: 'Angela', serif;
  font-size: 60px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
}

.insight-card p {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
}
.insight-card em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* ─────────────────────────────────────────
   04 — THE PIVOT
───────────────────────────────────────── */
.pivot-title {
  font-family: 'AlternateGothic', sans-serif;
  font-size: clamp(26px, 7vw, 35px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}

.pivot-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 36px;
}

.pivot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pivot-card {
  padding: 32px;
  border: 1px solid var(--border);
}

.pivot-before { background: var(--card); }

.pivot-after {
  background: var(--bg-red);
  border-color: var(--bg-red);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pivot-col-label {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.pivot-after .pivot-col-label { color: rgba(250, 239, 224, 0.40); }

.pivot-before ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pivot-before ul li {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.pivot-before ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.28;
}

.pivot-quote {
  font-family: 'Angela', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: #FAEFE0;
  margin-top: auto;
}

.decision-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px 28px;
}
.decision-label {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-lo);
  margin-bottom: 10px;
}
.decision-box p {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.75;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   05 — USER FLOW
───────────────────────────────────────── */
.flow-diagram {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 36px 32px;
  overflow-x: auto;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 90px;
}

.flow-step-dot {
  width: 10px;
  height: 10px;
  background: var(--text-red);
  border-radius: 50%;
}

.flow-step-num {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.20em;
  color: var(--muted-lo);
}

.flow-step-label {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

.flow-arrow {
  font-size: 18px;
  color: var(--muted-lo);
  flex-shrink: 0;
  padding: 0 8px;
  padding-bottom: 24px;
}

/* ─────────────────────────────────────────
   06 — BRAND IDENTITY (alt)
───────────────────────────────────────── */
.brand-row { margin-bottom: 48px; }

.brand-block-label {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(250, 239, 224, 0.36);
  margin-bottom: 18px;
}

.colour-row { display: flex; gap: 8px; }

.colour-swatch {
  flex: 1;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  gap: 3px;
}

.swatch-hex {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  color: rgba(255,255,255,0.48);
}
.swatch-name {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.colour-swatch--light .swatch-hex,
.colour-swatch--light .swatch-name { color: rgba(61,47,37,0.65); }

.type-showcase { display: flex; flex-direction: column; }

.type-row {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 28px 0;
}
.type-row--border { border-top: 1px solid var(--border); }

.type-sample-label {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: rgba(250,239,224,0.30);
  width: 140px;
  flex-shrink: 0;
}
.type-display-sample {
  font-family: 'Angela', serif;
  font-size: 60px;
  font-weight: 400;
  color: #FAEFE0;
  line-height: 1;
  flex: 1;
}
.type-body-sample {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  color: rgba(250,239,224,0.58);
  line-height: 1.5;
  flex: 1;
}
.type-spec {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  color: rgba(250,239,224,0.30);
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   06 — BRAND IDENTITY
───────────────────────────────────────── */
.cs-full-img {
  width: 92%;
  display: block;
  border-radius: 12px;
}

/* ─────────────────────────────────────────
   07 — WIREFRAMES
───────────────────────────────────────── */
.wireframe-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.wireframe-photo { overflow: hidden; }
.wireframe-photo img { width: 100%; display: block; object-fit: cover; }

.wireframe-notes { display: flex; flex-direction: column; }

.wireframe-note {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.wireframe-note:first-child { padding-top: 0; }

.note-tag {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--text-red);
  border: 1px solid rgba(182,40,36,0.26);
  padding: 3px 8px;
  margin-bottom: 10px;
}

.wireframe-note p {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   08 — PROTOTYPE (alt)
───────────────────────────────────────── */
.proto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: end;
}

.proto-phone-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.proto-phone-img {
  width: 100%;
  display: block;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.40);
}

.proto-caption strong {
  display: block;
  font-family: 'Angela', serif;
  font-size: 22px;
  font-weight: 400;
  color: #FAEFE0;
  margin-bottom: 6px;
}
.proto-caption p {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(250,239,224,0.58);
}

.proto-food-col { overflow: hidden; align-self: stretch; }
.proto-food-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─────────────────────────────────────────
   09 — SOLUTION
───────────────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.solution-card { padding: 32px; }
.solution-card:nth-child(1) { background: #662C59; }
.solution-card:nth-child(2) { background: #4A7FA5; }
.solution-card:nth-child(3) { background: var(--bg-red); }
.solution-card:nth-child(4) { background: #2E6B4F; }

.sol-num {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  margin-bottom: 18px;
}

.solution-card h4 {
  font-family: 'AlternateGothic', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}

.solution-card p {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.58);
}

/* ─────────────────────────────────────────
   10 — REFLECTION (alt)
───────────────────────────────────────── */
.reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.reflection-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 30px 26px;
}

.reflection-label {
  display: block;
  font-family: 'Angela', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.reflection-card p {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   TOC SIDEBAR
───────────────────────────────────────── */
.toc-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  width: var(--px);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  background: rgba(230, 218, 202, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 1px solid rgba(42, 58, 42, 0.12);
}

.toc-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 16px;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: border-color 0.18s;
}

.toc-item:hover { border-left-color: rgba(42, 58, 42, 0.22); }
.toc-item.active { border-left-color: #b62824; }

.toc-num {
  font-family: 'EB Garamond', serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(42, 58, 42, 0.32);
  transition: color 0.18s;
  line-height: 1;
}

.toc-label {
  font-family: 'EB Garamond', serif;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(42, 58, 42, 0.46);
  transition: color 0.18s;
  line-height: 1.3;
}

.toc-item:hover .toc-num  { color: rgba(42, 58, 42, 0.55); }
.toc-item:hover .toc-label { color: rgba(42, 58, 42, 0.80); }
.toc-item.active .toc-num  { color: rgba(182, 40, 36, 0.65); }
.toc-item.active .toc-label { color: #b62824; }

/* hide on narrow viewports where the sidebar would crowd the layout */
@media (max-width: 900px) { .toc-sidebar { display: none; } }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.cs-footer {
  padding: 20px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.cs-footer .footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  color: var(--muted);
}

.cs-footer .footer-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.26;
}
