/* ===========================================================
   Collins W. Gichuki — Portfolio
   Mobile-first responsive rebuild
   Editorial executive aesthetic · deep navy + antique gold
   =========================================================== */

/* ============================================================
   0 · DESIGN TOKENS
   ============================================================ */
:root {
  --ink: #F1EEE5;
  --ink-soft: #d8d3c4;
  --navy: #144466;
  --bronze: #C69C4E;
  --bronze-soft: #dcb878;
  --purple: #1a557d;
  --magenta: #8D5A18;
  --parchment: #144466;
  --paper: #0E334B;
  --grey: #8fa4b5;
  --grey-soft: #5a7186;
  --rule: rgba(198, 156, 78, 0.22);
  --bg: var(--paper);
  --fg: var(--ink);
  --grad: linear-gradient(90deg, #C69C4E 0%, #dcb878 50%, #8D5A18 100%);

  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(56px, 10vw, 120px);
  --stack: clamp(24px, 5vw, 64px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --sidenav-w: 220px;
}

[data-theme="light"] {
  --bg: #f5efe1;
  --fg: #0a1c2c;
  --ink: #0a1c2c;
  --ink-soft: #1a3a52;
  --navy: #0d2538;
  --bronze: #b8923a;
  --bronze-soft: #8d6e26;
  --parchment: #ebe2cf;
  --paper: #f5efe1;
  --grey: #4a5868;
  --grey-soft: #7a8896;
  --rule: rgba(10, 28, 44, 0.15);
}

/* ============================================================
   1 · GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Söhne", "Inter", -apple-system, system-ui, sans-serif;
  font-size: clamp(16px, 2.4vw, 21px);
  line-height: 1.6;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--bronze); color: var(--paper); }

.serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 500;
}
@media (min-width: 768px) {
  .eyebrow { letter-spacing: 0.18em; }
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  z-index: 200;
}

[data-theme="light"] body { background: var(--paper); }

/* ============================================================
   2 · SHELL
   ============================================================ */
.shell {
  display: block;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

.main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  padding-top: calc(56px + var(--safe-top));
}

@media (min-width: 1024px) {
  .shell {
    display: grid;
    grid-template-columns: var(--sidenav-w) minmax(0, 1fr);
  }
  .main { padding-top: 0; }
}

/* ============================================================
   3 · SIDENAV
   ============================================================ */
.sidenav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: calc(56px + var(--safe-top));
  padding: var(--safe-top) clamp(16px, 4vw, 24px) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.sidenav .nav-list,
.sidenav .nav-meta {
  display: none;
}

@media (min-width: 1024px) {
  .sidenav {
    position: sticky;
    top: 0; left: auto; right: auto;
    align-self: start;
    width: var(--sidenav-w);
    height: 100vh;
    padding: 36px 28px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    border-right: 1px solid var(--rule);
    border-bottom: none;
  }
  .sidenav .nav-list, .sidenav .nav-meta { display: flex; }
  .sidenav::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--bronze) 30%, var(--purple) 70%, transparent 100%);
    opacity: 0.3;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand .mark {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 5vw, 26px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand .role {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(9px, 2vw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--grey);
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, padding 200ms ease;
  min-height: 44px;
}
.nav-list a .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  width: 24px;
  color: var(--grey-soft);
}
.nav-list a:hover { color: var(--ink); padding-left: 4px; }
.nav-list a.active { color: var(--ink); }
.nav-list a.active .num { color: var(--bronze); }
.nav-list a.active::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--bronze);
  margin-right: 4px;
}

.nav-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-soft);
}
.nav-meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #2bb673;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.15);
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  min-height: 40px;
  min-width: 64px;
  border-radius: 2px;
}
@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* ============================================================
   4 · SECTION SCAFFOLD
   ============================================================ */
section {
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--rule);
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
@media (min-width: 900px) {
  .section-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 40px;
  }
}
.section-head .eyebrow {
  white-space: nowrap;
  flex-shrink: 0;
}
.section-head .lede {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(28px, 6vw, 62px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 880px;
  text-wrap: balance;
  color: var(--ink);
}

/* ============================================================
   5 · HERO
   ============================================================ */
.hero {
  padding: clamp(32px, 8vw, 80px) var(--gutter) clamp(56px, 10vw, 100px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 60px);
  min-height: auto;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    min-height: 92vh;
  }
}

.hero-text, .hero-portrait { min-width: 0; }

.hero-text {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 36px);
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-tag .rule {
  width: 36px; height: 2px;
  background: var(--grad);
  flex-shrink: 0;
}

.hero-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 11vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .hero-title { line-height: 0.92; }
}
.hero-title .accent, .hero-title .pop {
  font-style: italic;
  color: var(--bronze);
  -webkit-text-fill-color: var(--bronze);
}

.hero-sub {
  font-size: clamp(17px, 3vw, 24px);
  line-height: 1.55;
  max-width: 600px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cred-line {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(12px, 2vw, 14px);
  letter-spacing: 0.04em;
  color: var(--grey);
  line-height: 1.7;
  max-width: 600px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.cred-line strong { color: var(--ink); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(12px, 1.8vw, 14px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 200ms ease;
  font-weight: 500;
  min-height: 48px;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .btn { padding: 18px 28px; letter-spacing: 0.14em; }
}
.btn-primary {
  background: var(--bronze);
  color: var(--paper);
  transition: background 300ms ease, transform 200ms ease;
}
.btn-primary:hover {
  background: var(--bronze-soft);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid var(--bronze);
}
.btn-secondary:hover { color: var(--bronze); }
.btn .arrow { font-family: serif; font-size: 14px; }

/* ============================================================
   6 · HERO PORTRAIT
   ============================================================ */
.hero-portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero-portrait {
    align-self: stretch;
    justify-content: flex-end;
  }
}
.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  background: var(--parchment);
  overflow: hidden;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.02) saturate(0.85);
}
[data-theme="dark"] .portrait-frame img {
  filter: contrast(1.05) saturate(0.7) brightness(0.92);
}
.portrait-meta {
  position: absolute;
  bottom: 0; left: 0;
  padding: 12px 16px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  gap: 14px;
}
.portrait-meta .v { color: var(--ink); }

.portrait-corner { display: none; }
@media (min-width: 1024px) {
  .portrait-corner {
    display: block;
    position: absolute;
    top: -28px;
    right: 0;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 180px;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0.45;
    font-style: italic;
    pointer-events: none;
    user-select: none;
  }
}

.hero::after {
  content: "";
  position: absolute;
  top: 20%; right: 0;
  width: min(60vw, 600px);
  height: min(60vw, 600px);
  background: radial-gradient(circle, rgba(214, 51, 132, 0.18) 0%, rgba(123, 47, 247, 0.10) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  transform: translateX(20%);
}
.hero > * { position: relative; z-index: 1; }

/* ============================================================
   7 · AUTHORITY MARQUEE
   ============================================================ */
.authority {
  padding: clamp(20px, 4vw, 28px) 0;
  background: var(--bronze);
  color: var(--paper);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.authority-track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 56px);
  width: max-content;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .authority-track { animation-duration: 180s; }
}

.authority-item {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 3.5vw, 26px);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  font-style: italic;
  opacity: 0.98;
  color: #fff;
  padding-left: clamp(28px, 5vw, 56px);
}
.authority-item::after {
  content: "✦";
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   8 · NUMBERS
   ============================================================ */
.numbers {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.numbers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 600px) {
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .numbers-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.num-cell {
  padding: 28px 0 24px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
@media (min-width: 600px) {
  .num-cell {
    padding: 32px 24px 28px 0;
    border-right: 1px solid var(--rule);
  }
  .num-cell:nth-child(2n) { border-right: none; padding-right: 0; }
}
@media (min-width: 1200px) {
  .num-cell:nth-child(2n) { border-right: 1px solid var(--rule); padding-right: 24px; }
  .num-cell:nth-child(5n) { border-right: none; padding-right: 0; }
}

.num-cell .num-mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--grey-soft);
  letter-spacing: 0.16em;
}
.num-cell .num-value {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 9vw, 88px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.num-cell .num-value .unit {
  font-size: 0.45em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.num-cell .num-label {
  font-size: clamp(14px, 2.2vw, 15px);
  color: var(--grey);
  line-height: 1.5;
  margin-top: auto;
  max-width: 260px;
}

/* ============================================================
   9 · EXPERTISE / PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pillar {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  cursor: pointer;
  transition: background 200ms ease;
  min-width: 0;
}
@media (min-width: 900px) {
  .pillar {
    padding: 40px 32px 40px 0;
    border-right: 1px solid var(--rule);
  }
  .pillar:nth-child(2n) {
    border-right: none;
    padding-left: 32px;
    padding-right: 0;
  }
}

.pillar:hover { background: linear-gradient(135deg, rgba(255,122,24,0.04), rgba(123,47,247,0.04)); }
[data-theme="light"] .pillar:hover { background: linear-gradient(135deg, rgba(255,122,24,0.06), rgba(123,47,247,0.06)); }

.pillar-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.pillar-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 480px;
  overflow-wrap: break-word;
}
.pillar-desc {
  color: var(--ink-soft);
  font-size: clamp(16px, 2.4vw, 20px);
  max-width: 500px;
  line-height: 1.6;
}
.pillar-proofs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px dashed var(--rule);
  padding-top: 16px;
}
.pillar-proof {
  display: flex;
  gap: 10px;
  font-size: clamp(14px, 2.2vw, 16px);
  color: var(--grey);
  line-height: 1.5;
  overflow-wrap: break-word;
  min-width: 0;
}
.pillar-proof::before {
  content: "→";
  color: var(--bronze);
  flex-shrink: 0;
}
.pillar-cta {
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: gap 200ms ease;
  max-width: 100%;
  white-space: normal;
}
.pillar:hover .pillar-cta { gap: 14px; }

/* ============================================================
   10 · CASES
   ============================================================ */
.cases { display: flex; flex-direction: column; }
.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 250ms ease;
  min-width: 0;
}
@media (min-width: 900px) {
  .case {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    padding: 56px 0;
  }
  .case:hover { padding-left: 12px; }
}
.case:last-child { border-bottom: none; }

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.05em;
}
.case-meta .case-num {
  font-size: 15px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.case-meta .case-tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  width: max-content;
  max-width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  overflow-wrap: break-word;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.case-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 5vw, 52px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.018em;
  max-width: 880px;
  overflow-wrap: break-word;
}
.case-summary {
  color: var(--ink-soft);
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.55;
  max-width: 800px;
  text-wrap: pretty;
}
.case-stats {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.case-stat .v {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--ink);
  display: block;
  line-height: 1;
}
.case-stat .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 8px;
  display: block;
}

/* ============================================================
   11 · CASE DRAWER
   ============================================================ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(700px, 100%);
  max-width: 100%;
  background: var(--paper);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.65, 0, 0.35, 1);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 56px 24px 80px;
  padding-bottom: calc(80px + var(--safe-bottom));
  border-left: 1px solid var(--rule);
}
.drawer.open { transform: translateX(0); }
@media (min-width: 768px) {
  .drawer { padding: 56px 56px 80px; }
}

.drawer-close {
  position: absolute;
  top: 24px; right: 20px;
  background: none;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  min-height: 36px;
}
.drawer-close:hover { background: var(--ink); color: var(--paper); }

.drawer-section {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.drawer-section h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
  font-weight: 500;
}
.drawer-section p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 10px;
  font-size: clamp(15px, 2.2vw, 17px);
}
.drawer-section ul { list-style: none; }
.drawer-section li {
  padding: 8px 0 8px 20px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule);
  line-height: 1.5;
  font-size: clamp(14px, 2vw, 16px);
}
.drawer-section li::before {
  content: "→";
  color: var(--bronze);
  position: absolute;
  left: 0;
}

/* ============================================================
   12 · ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 48px);
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.7fr 1.3fr;
    gap: clamp(48px, 6vw, 80px);
  }
}

.about-portrait {
  aspect-ratio: 4/5;
  background: var(--parchment);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .about-portrait {
    position: sticky;
    top: 80px;
    margin: 0;
  }
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.05);
}
.about-portrait .caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
  justify-content: space-between;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  min-width: 0;
}
.about-copy p {
  font-size: clamp(16px, 2.4vw, 21px);
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.about-copy p.lead {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.about-copy p.lead em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
}

.beliefs {
  margin-top: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.belief {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  min-width: 0;
}
.belief .n {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--bronze);
  letter-spacing: 0.12em;
  padding-top: 4px;
}
.belief .t {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2.8vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ============================================================
   13 · CREDIBILITY
   ============================================================ */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
}
@media (min-width: 700px) {
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cred-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cred-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  min-width: 0;
}
.cred-block h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cred-block .cred-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  line-height: 1.4;
  align-items: baseline;
  min-width: 0;
}
.cred-block .cred-list li .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(10px, 1.6vw, 11px);
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: right;
}
.cred-block .cred-list li > span:first-child {
  overflow-wrap: break-word;
}

/* ============================================================
   14 · CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d0a3e 50%, #1a0830 100%);
  color: #f5efe8;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -10%; left: -5%;
  width: min(70vw, 700px);
  height: min(70vw, 700px);
  background: radial-gradient(circle, rgba(255, 122, 24, 0.25) 0%, rgba(214, 51, 132, 0.15) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}
.contact > * { position: relative; z-index: 1; }
.contact .eyebrow { color: var(--bronze-soft); }
.contact .lede {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 80px);
  margin-top: clamp(28px, 4vw, 48px);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.contact-routes {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.route {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(244, 242, 236, 0.15);
  cursor: pointer;
  transition: padding 200ms ease;
  min-height: 56px;
}
.route:hover { padding-left: 8px; }
.route:last-child { border-bottom: 1px solid rgba(244, 242, 236, 0.15); }

.route-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--bronze-soft);
  letter-spacing: 0.14em;
}
.route-label {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3.5vw, 32px);
  letter-spacing: -0.01em;
  min-width: 0;
  overflow-wrap: break-word;
}
.route-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(10px, 1.6vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  text-align: right;
  max-width: 140px;
}
@media (min-width: 500px) {
  .route-meta { max-width: none; white-space: nowrap; }
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.contact-portrait {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--navy);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 460px;
}
.contact-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: contrast(1.05) saturate(0.7) brightness(0.92);
  mix-blend-mode: luminosity;
  opacity: 0.95;
}
.contact-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 31, 48, 0) 55%, rgba(10, 31, 48, 0.85) 100%),
    linear-gradient(180deg, rgba(201, 150, 29, 0.12), rgba(141, 90, 24, 0.18));
  pointer-events: none;
  z-index: 1;
}
.contact-portrait-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 2;
  gap: 8px;
  flex-wrap: wrap;
}
.contact-portrait-meta span:last-child { color: var(--bronze); }
[data-theme="light"] .contact-portrait img {
  mix-blend-mode: normal;
  filter: contrast(1.02) saturate(0.85);
  opacity: 1;
}
[data-theme="light"] .contact-portrait::before {
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(10, 31, 48, 0.55) 100%);
}

.contact-direct {
  border: 1px solid rgba(244, 242, 236, 0.2);
  padding: clamp(20px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.contact-direct h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  font-weight: 500;
}
.contact-direct .line {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact-direct .line a:hover { color: var(--bronze-soft); }
.contact-direct .small {
  font-size: clamp(13px, 2vw, 15px);
  color: var(--bronze-soft);
  line-height: 1.5;
}

/* ============================================================
   15 · FOOTER
   ============================================================ */
.footer {
  padding: clamp(28px, 4vw, 40px) var(--gutter);
  padding-bottom: calc(clamp(28px, 4vw, 40px) + var(--safe-bottom));
  background: var(--bg);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(11px, 1.8vw, 12px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  gap: 16px;
}
@media (min-width: 600px) {
  .footer { flex-direction: row; align-items: center; }
}
.footer .col {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { min-height: 36px; display: inline-flex; align-items: center; }
.footer a:hover { color: var(--bronze); }

/* ============================================================
   16 · UTILITIES
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   17 · MOBILE-NAV OVERLAY
   ============================================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 199;
  padding: calc(72px + var(--safe-top)) var(--gutter) calc(40px + var(--safe-bottom));
  overflow-y: auto;
}
.mobile-overlay .nav-list { margin-top: 0; display: flex; }
.mobile-overlay .nav-list a {
  font-size: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-transform: capitalize;
  color: var(--ink);
}
.mobile-overlay .nav-list a .num { color: var(--bronze); }

/* ============================================================
   18 · FINAL DEFENSE
   ============================================================ */
section, .shell, .main, .hero, .authority, .numbers, .cases, .contact, .footer {
  max-width: 100%;
}
