/* ─────────────────────────────────────────
   RESET + VARIABLES
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #0a0a0a;
  --bg2:    #0a0a0a;
  --text:   #edeae4;
  --muted:  rgba(237,234,228,0.72);
  --dim:    rgba(237,234,228,0.72);
  --faint:  rgba(237,234,228,0.14);
  --rule:   rgba(237,234,228,0.09);
  --accent: #d4b896;
  --serif:  'DM Serif Display', Georgia, serif;
  --mono:   'DM Mono', 'Courier New', monospace;
  --sans:   'Albert Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* GRAIN TEXTURE */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.wrap { position: relative; z-index: 1; overflow: hidden; }
.wrap::before, .wrap::after { display: none; }

.col { max-width: 780px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 640px) { .col { padding: 0 24px; } }

/* ─────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 101;
}
.progress-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.08s linear;
}

/* ─────────────────────────────────────────
   AMBIENT GLOW
───────────────────────────────────────── */
.glow-wrap {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.glow {
  position: absolute; border-radius: 50%;
  will-change: transform, opacity;
}
.glow-a {
  width: 80vw; height: 80vw;
  background: radial-gradient(ellipse at center,
    rgba(237,234,228,0.05) 0%, rgba(237,234,228,0.018) 30%,
    rgba(237,234,228,0.005) 55%, transparent 72%);
  filter: blur(90px);
  top: -10vh; left: -20vw;
  animation: rotateA 36s linear infinite;
}
.glow-b {
  width: 65vw; height: 65vw;
  background: radial-gradient(ellipse at center,
    rgba(237,234,228,0.038) 0%, rgba(237,234,228,0.012) 30%,
    rgba(237,234,228,0.003) 55%, transparent 72%);
  filter: blur(100px);
  bottom: -10vh; right: -15vw;
  animation: rotateB 48s linear infinite;
}
@keyframes rotateA {
  from { transform: rotate(0deg) translateX(10vw) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(10vw) rotate(-360deg); }
}
@keyframes rotateB {
  from { transform: rotate(0deg) translateX(-8vw) rotate(0deg); }
  to   { transform: rotate(-360deg) translateX(-8vw) rotate(360deg); }
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
@media (max-width: 640px) { nav { padding: 0 24px; } }

nav.nav-hidden { transform: translateY(-100%); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: opacity 0.25s;
}
.nav-logo:hover { opacity: 0.82; }

.nav-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 1px solid var(--faint); opacity: 0.75; flex-shrink: 0;
  transition: opacity 0.25s;
}
.nav-logo:hover .nav-avatar { opacity: 1; }

.site-signature {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400; font-size: 30px; line-height: 1;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.site-signature__base { color: #F2ECE4; }
.site-signature__accent {
  background: linear-gradient(90deg, #EFE7DD 0%, #E7D5C0 55%, #D3A978 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #E2C4A1;
}

@media (max-width: 768px) {
  .site-signature { font-size: 26px; letter-spacing: -0.015em; }
}
@media (max-width: 640px) {
  .site-signature { font-size: 22px; letter-spacing: -0.01em; }
}

.nav-links-desktop {
  display: flex; align-items: center; gap: 24px; margin-left: auto;
}

.nav-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px; font-weight: 500; line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(242, 236, 228, 0.82);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: #F2ECE4; }
.nav-link.active { color: var(--accent); font-weight: 600; }

/* NAV CONTROLS (hamburger + theme toggle grouped) */
.nav-controls {
  display: flex; align-items: center; gap: 10px; margin-left: 20px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px 6px;
}
.hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--dim);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s, background 0.2s;
}
.hamburger:hover span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--text); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--text); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed; top: 52px; left: 0; right: 0; z-index: 98;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  flex-direction: column; padding: 20px 24px 24px; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  color: var(--dim); text-decoration: none; letter-spacing: 0.03em;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); }

@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links-desktop { display: none !important; }
  .nav-controls { margin-left: 0; gap: 8px; }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 48px 100px;
  position: relative; overflow: hidden;
}
#hero::before { display: none; }
#hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 35% 55%,
    rgba(237,234,228,0.022) 0%, transparent 70%);
}
@media (max-width: 640px) { #hero { padding: 120px 24px 80px; min-height: 100svh; } }

.hero-inner { position: relative; max-width: 740px; }

.hero-kicker {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 52px;
  opacity: 0; animation: heroReveal 1.2s cubic-bezier(0.22,1,0.36,1) 0.10s forwards;
}
.hero-kicker-line { width: 24px; height: 1px; background: var(--faint); }
.hero-kicker-text {
  font-family: var(--mono); font-size: 0.63rem; font-weight: 300;
  color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase;
}

.hero-name {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 300;
  color: var(--dim); letter-spacing: 0.04em; margin-bottom: 20px;
  opacity: 0; animation: heroReveal 1.2s cubic-bezier(0.22,1,0.36,1) 0.22s forwards;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400; line-height: 1.08;
  color: var(--text); margin-bottom: 32px;
  opacity: 0; animation: heroReveal 1.2s cubic-bezier(0.22,1,0.36,1) 0.34s forwards;
}
.hero-headline em { font-style: italic; color: var(--accent); }

.hero-rule {
  width: 1px;
  background: linear-gradient(to bottom, var(--faint), transparent);
  margin: 40px 0 36px 2px;
  height: 0; opacity: 1;
  animation: ruleGrow 1s cubic-bezier(0.22,1,0.36,1) 0.46s forwards;
}

.hero-standard {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
  color: var(--dim); letter-spacing: 0; margin-bottom: 14px;
  opacity: 0; animation: heroReveal 1.2s cubic-bezier(0.22,1,0.36,1) 0.56s forwards;
}

.hero-creds {
  font-family: var(--mono); font-size: 0.69rem; font-weight: 300;
  color: rgba(237,234,228,0.16); letter-spacing: 0.05em;
  opacity: 0; animation: heroReveal 1.2s cubic-bezier(0.22,1,0.36,1) 0.66s forwards;
}

/* ─────────────────────────────────────────
   BRIDGE
───────────────────────────────────────── */
#bridge {
  padding: 72px 0 80px;
  position: relative;
}
#bridge::before {
  content: '';
  position: absolute; top: 0; left: 48px; right: 48px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(237,234,228,0.07) 30%, rgba(237,234,228,0.07) 70%, transparent);
}

.bridge-text {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 300;
  color: rgba(237,234,228,0.72); line-height: 1.9; letter-spacing: 0;
  max-width: 540px;
}

/* ─────────────────────────────────────────
   CHAPTER
───────────────────────────────────────── */
.chapter {
  padding: 140px 0 100px;
  position: relative;
}
.chapter::before {
  content: '';
  position: absolute; top: 0; left: 48px; right: 48px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(237,234,228,0.06) 25%, rgba(237,234,228,0.06) 75%, transparent);
}

.chapter-eyebrow {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 300;
  color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
}

.chapter-number {
  font-family: var(--serif);
  font-size: clamp(5.5rem, 15vw, 12rem);
  font-weight: 400; line-height: 1.05;
  color: var(--text); margin-bottom: 32px;
}
.chapter-number em { font-style: italic; color: var(--accent); }

.chapter-number-sub {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 300;
  color: rgba(237,234,228,0.45); letter-spacing: 0.07em;
  margin-top: 0; margin-bottom: 68px; display: block;
}

.chapter-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 400; line-height: 1.3;
  color: var(--text); margin-bottom: 40px; max-width: 620px;
}
.chapter-headline em { font-style: italic; color: var(--accent); }

/* ─────────────────────────────────────────
   PROSE
───────────────────────────────────────── */
.prose { display: grid; gap: 26px; max-width: 620px; }

.prose p {
  font-family: var(--sans);
  font-size: 1.2rem; line-height: 1.9;
  font-weight: 400; color: var(--muted);
}
.prose p em { font-style: italic; color: var(--text); }

.prose-pull {
  font-family: var(--serif);
  font-size: 1.5rem; font-style: italic;
  line-height: 1.55; color: var(--text);
  padding: 10px 0 10px 28px;
  border-left: 1px solid var(--accent);
  margin: 8px 0; opacity: 0.9;
}

.prose-voice {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 300;
  color: rgba(237,234,228,0.72); line-height: 1.85; letter-spacing: 0;
}

.prose-voice-em {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 300;
  color: rgba(237,234,228,0.72); line-height: 1.85; letter-spacing: 0;
  padding-top: 20px; border-top: 1px solid var(--rule);
}

.prose-voice--faint {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 300;
  color: var(--faint); line-height: 1.85; letter-spacing: 0;
}

/* ─────────────────────────────────────────
   TYPOGRAPHIC MOMENTS
───────────────────────────────────────── */
.type-moment {
  padding: 120px 48px;
  position: relative; overflow: hidden;
}
.type-moment-text {
  font-family: var(--serif);
  font-weight: 400; line-height: 1.02; letter-spacing: -0.01em;
  color: var(--text);
}
.type-moment-text em { font-style: italic; color: var(--accent); }

.type-moment-short .type-moment-text { font-size: clamp(3.5rem, 9vw, 8.5rem); }
.type-moment-full  .type-moment-text { font-size: clamp(2.8rem, 7vw, 7rem); }

@media (max-width: 640px) {
  .type-moment { padding: 80px 24px; }
  .type-moment-short .type-moment-text { font-size: clamp(2.6rem, 10vw, 4rem); }
  .type-moment-full  .type-moment-text { font-size: clamp(2rem, 8vw, 3.2rem); }
}

/* ─────────────────────────────────────────
   BELIEF
───────────────────────────────────────── */
#belief {
  padding: 140px 48px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative;
}
#belief::before {
  content: '';
  position: absolute; top: 0; left: 48px; right: 48px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(237,234,228,0.06) 25%, rgba(237,234,228,0.06) 75%, transparent);
}

.belief-text {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 400; line-height: 1.22; color: var(--text);
  max-width: 820px; margin-bottom: 52px;
}
.belief-text em { font-style: italic; color: var(--accent); }

.belief-attr {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 300;
  color: var(--dim); letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  #belief { padding: 100px 24px; }
  .belief-text { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contact {
  position: relative;
  padding: 100px 0 120px;
}
#contact::before {
  content: '';
  position: absolute; top: 0; left: 48px; right: 48px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(237,234,228,0.06) 25%, rgba(237,234,228,0.06) 75%, transparent);
}

.contact-wrap {
  display: flex; align-items: flex-start;
}
.contact-lhs { display: flex; align-items: flex-start; gap: 20px; flex: 1; }

.contact-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 1px solid var(--faint); opacity: 0.88; flex-shrink: 0;
}

.contact-hed {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 400; line-height: 1.28;
  color: var(--text); margin-bottom: 10px;
}
.contact-hed em { font-style: italic; color: var(--accent); }

.contact-sub {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
  color: var(--dim); letter-spacing: 0; line-height: 1.6;
}

.contact-btns {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: 12px; margin-top: 24px;
}
.btn-long { }
.btn-short { display: none; }

.contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bg); background: var(--text);
  text-decoration: none;
  padding: 13px 28px; border-radius: 980px;
  white-space: nowrap; flex-shrink: 0;
  transition: opacity 0.2s;
}
.contact-btn:hover { opacity: 0.82; }

.contact-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dim); background: transparent;
  text-decoration: none;
  padding: 13px 28px; border-radius: 980px;
  white-space: nowrap; border: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}
.contact-btn-secondary:hover { color: var(--text); border-color: var(--faint); }

@media (max-width: 640px) {
  .contact-wrap { flex-direction: column; align-items: flex-start; gap: 36px; }
  #contact { padding: 72px 0 80px; }
  .btn-long { display: none; }
  .btn-short { display: inline; }
}

/* ─────────────────────────────────────────
   STATS / REC (shared cell styles)
───────────────────────────────────────── */
.stat-n {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400; line-height: 1;
  color: var(--text); margin-bottom: 12px;
}
.stat-l {
  font-family: var(--mono); font-size: 0.57rem; font-weight: 300;
  color: var(--dim); line-height: 1.7; letter-spacing: 0.04em;
}

.rec-n {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1;
  color: var(--text); margin-bottom: 10px;
}
.rec-l {
  font-family: var(--mono); font-size: 0.57rem; font-weight: 300;
  color: var(--dim); line-height: 1.65; letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 24px 48px;
  background: var(--bg);
}
@media (max-width: 640px) { footer { padding: 20px 24px; } }

.footer-mono {
  font-family: var(--mono); font-size: 0.69rem; font-weight: 300;
  color: rgba(237,234,228,0.22); letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ruleGrow {
  from { height: 0; opacity: 0; }
  to   { height: 56px; opacity: 1; }
}
@keyframes numberArrive {
  from { opacity: 0; transform: scale(0.97) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes borderPulse {
  0%   { border-top-color: rgba(237,234,228,0.08); }
  40%  { border-top-color: rgba(237,234,228,0.18); }
  100% { border-top-color: rgba(237,234,228,0.08); }
}

.chapter-number[data-reveal].visible {
  animation: numberArrive 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  transform: none;
}
.chapter.pulsed, #bridge.pulsed {
  animation: borderPulse 0.9s ease forwards;
}

/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.1s cubic-bezier(0.22,1,0.36,1),
              transform 1.1s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].visible { opacity: 1; transform: none; }

[data-stagger] > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity 1s cubic-bezier(0.22,1,0.36,1),
              transform 1s cubic-bezier(0.22,1,0.36,1);
}
[data-stagger].visible > *:nth-child(1) { opacity:1;transform:none;transition-delay:0.05s; }
[data-stagger].visible > *:nth-child(2) { opacity:1;transform:none;transition-delay:0.18s; }
[data-stagger].visible > *:nth-child(3) { opacity:1;transform:none;transition-delay:0.30s; }
[data-stagger].visible > *:nth-child(4) { opacity:1;transform:none;transition-delay:0.40s; }
[data-stagger].visible > *:nth-child(5) { opacity:1;transform:none;transition-delay:0.49s; }
[data-stagger].visible > *:nth-child(6) { opacity:1;transform:none;transition-delay:0.57s; }
[data-stagger].visible > *:nth-child(7) { opacity:1;transform:none;transition-delay:0.64s; }
[data-stagger].visible > *:nth-child(8) { opacity:1;transform:none;transition-delay:0.70s; }

/* ─────────────────────────────────────────
   THEME TOGGLE
───────────────────────────────────────── */
.theme-toggle {
  position: relative;
  display: flex; align-items: center;
  background: var(--faint);
  border: none; border-radius: 980px; padding: 3px;
  cursor: pointer; flex-shrink: 0;
  width: 60px; height: 28px;
  transition: background 0.3s;
}
.theme-toggle-track {
  position: absolute; inset: 3px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; pointer-events: none;
}
.theme-icon {
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 1; transition: color 0.3s;
}
.theme-icon-dark  { color: var(--dim); }
.theme-icon-light { color: var(--dim); }
.theme-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--text);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s;
  pointer-events: none;
}
[data-theme="dark"]  .theme-toggle-thumb { transform: translateX(0); }
[data-theme="light"] .theme-toggle-thumb { transform: translateX(32px); background: #1a1714; }
[data-theme="dark"]  .theme-icon-dark  { color: var(--bg); }
[data-theme="dark"]  .theme-icon-light { color: var(--dim); }
[data-theme="light"] .theme-icon-dark  { color: var(--dim); }
[data-theme="light"] .theme-icon-light { color: #f5f2ed; }
[data-theme="light"] .theme-toggle     { background: rgba(26,23,20,0.15); }

/* ─────────────────────────────────────────
   LIGHT MODE OVERRIDES
───────────────────────────────────────── */
[data-theme="light"] {
  --bg:     #f5f2ed;
  --bg2:    #f5f2ed;
  --text:   #1a1714;
  --muted:  rgba(26,23,20,0.82);
  --dim:    rgba(26,23,20,0.65);
  --faint:  rgba(26,23,20,0.18);
  --rule:   rgba(26,23,20,0.10);
  --accent: #a87840;
  color-scheme: light;
}
[data-theme="light"] body    { background: #f5f2ed; color: #1a1714; }
[data-theme="light"] body::before { opacity: 0.04; }

[data-theme="light"] nav {
  background: rgba(245,242,237,0.94);
  border-bottom-color: rgba(26,23,20,0.10);
}
[data-theme="light"] .site-signature__base { color: #2a2118; }
[data-theme="light"] .site-signature__accent {
  background: linear-gradient(90deg, #4a2e14 0%, #7a4820 55%, #a87840 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .nav-link { color: rgba(26, 23, 20, 0.68); }
[data-theme="light"] .nav-link:hover { color: #1a1714; }
[data-theme="light"] .nav-link.active { color: var(--accent); font-weight: 600; }
[data-theme="light"] .mobile-menu {
  background: rgba(245,242,237,0.98);
  border-bottom-color: rgba(26,23,20,0.10);
}
[data-theme="light"] .mobile-menu a { border-bottom-color: rgba(26,23,20,0.08); }

[data-theme="light"] .progress-fill { background: #a87840; }

[data-theme="light"] .glow-a {
  background: radial-gradient(ellipse at center,
    rgba(26,23,20,0.04) 0%, rgba(26,23,20,0.015) 30%, transparent 65%);
}
[data-theme="light"] .glow-b {
  background: radial-gradient(ellipse at center,
    rgba(26,23,20,0.03) 0%, rgba(26,23,20,0.01) 30%, transparent 65%);
}

[data-theme="light"] .hero-rule {
  background: linear-gradient(to bottom, rgba(26,23,20,0.2), transparent);
}
[data-theme="light"] footer {
  background: #f5f2ed;
  border-top-color: rgba(26,23,20,0.10);
}
[data-theme="light"] .chapter::before,
[data-theme="light"] #bridge::before,
[data-theme="light"] #contact::before,
[data-theme="light"] #resume-body::before,
[data-theme="light"] #stats-section::before {
  background: linear-gradient(to right, transparent, rgba(26,23,20,0.08) 30%, rgba(26,23,20,0.08) 70%, transparent);
}

[data-theme="light"] .stat-l,
[data-theme="light"] .rec-l   { color: rgba(26,23,20,0.65); }
[data-theme="light"] .hero-creds { color: rgba(26,23,20,0.42); }

[data-theme="light"] .prose-voice     { color: rgba(26,23,20,0.60); }
[data-theme="light"] .prose-voice-em  { color: rgba(26,23,20,0.60); }
[data-theme="light"] .prose-voice--faint { color: rgba(26,23,20,0.35); }
[data-theme="light"] .bridge-text     { color: rgba(26,23,20,0.62); }
[data-theme="light"] .prose-pull      { border-left-color: #a87840; }

[data-theme="light"] #belief          { border-top-color: rgba(26,23,20,0.08); }
[data-theme="light"] .contact-avatar  { border-color: rgba(26,23,20,0.18); }
[data-theme="light"] .nav-avatar      { border-color: rgba(26,23,20,0.18); }

[data-theme="light"] .rec-named       { border-top-color: rgba(26,23,20,0.08); color: rgba(26,23,20,0.55); }
[data-theme="light"] .rec-named em    { color: rgba(26,23,20,0.35); }

[data-theme="light"] .patent-item          { color: rgba(26,23,20,0.55); }
[data-theme="light"] .patent-item span,
[data-theme="light"] .company-award-item span { color: rgba(26,23,20,0.75); }
[data-theme="light"] .company-award-item   { color: rgba(26,23,20,0.55); }

[data-theme="light"] .footer-mono     { color: rgba(26,23,20,0.38); }
[data-theme="light"] .download-note   { color: rgba(26,23,20,0.35); }

/* Resume-specific light overrides */
[data-theme="light"] .r-bullet-marker { color: #a87840; }
[data-theme="light"] .r-role-meta span { color: rgba(26,23,20,0.28); }
[data-theme="light"] .r-earlier-dates { color: rgba(26,23,20,0.42); }
[data-theme="light"] .r-patent-meta   { color: rgba(26,23,20,0.42); }
[data-theme="light"] .r-skill-label   { color: rgba(26,23,20,0.42); }
[data-theme="light"] .r-summary-pull  { border-left-color: #a87840; }

/* Work-specific light overrides */
[data-theme="light"] .case-card {
  background: rgba(26,23,20,0.03);
  box-shadow: 0 0 0 1px rgba(26,23,20,0.08) inset;
}
[data-theme="light"] .case-card:hover {
  background: rgba(26,23,20,0.05);
  box-shadow: 0 0 0 1px rgba(168,120,64,0.15) inset, 0 8px 40px rgba(0,0,0,0.06);
}
[data-theme="light"] .case-pill {
  background: rgba(26,23,20,0.05);
  border-color: rgba(26,23,20,0.12);
  color: rgba(26,23,20,0.65);
}
[data-theme="light"] .modal {
  background: #ede9e2;
  border-color: rgba(26,23,20,0.15);
}
[data-theme="light"] .access-input {
  background: rgba(26,23,20,0.04);
  border-color: rgba(26,23,20,0.15);
  color: #1a1714;
}
[data-theme="light"] .access-input:focus {
  border-color: rgba(26,23,20,0.35);
  background: rgba(26,23,20,0.07);
}
[data-theme="light"] .access-btn {
  background: #1a1714;
  color: #f5f2ed;
}

/* ─────────────────────────────────────────
   MOBILE FONT BUMPS (shared)
───────────────────────────────────────── */
@media (max-width: 640px) {
  .chapter          { padding: 100px 0 72px; }
  .chapter-number   { font-size: clamp(4rem, 18vw, 7rem); }
  .chapter-headline { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-headline    { font-size: clamp(3rem, 11vw, 5rem); }
  #hero             { padding: 100px 24px 72px; }

  .prose p          { font-size: 1.25rem; line-height: 1.85; }
  .prose-pull       { font-size: 1.4rem; }

  .bridge-text,
  .prose-voice,
  .prose-voice-em,
  .contact-sub      { font-size: 1rem; }

  .chapter-eyebrow,
  .hero-kicker-text,
  .hero-standard,
  .hero-creds,
  .stat-l,
  .rec-l            { font-size: 0.875rem; }

  .footer-mono      { font-size: 0.75rem; }
}
