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

@font-face { font-family: 'PP NeueBit'; src: url('fonts/PPNeueBit-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'PP Mondwest'; src: url('fonts/PPMondwest-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PolySans Trial'; src: url('fonts/PolySansTrial-Slim.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FEF4E0;
  color: #1B1714;
  -webkit-font-smoothing: antialiased;
}

a { transition: color .25s ease; }

.img-slot {
  display: block;
  background: rgba(137,127,112,0.08);
  border: 1px dashed #cdc3ac;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.img-slot.r6 { border-radius: 6px; }

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.img-slot .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #736A5B;
  pointer-events: none;
}

.img-slot.has-image .placeholder-label { display: none; }

/* Photo grid: natural aspect ratio, no crop */
.img-slot.photo-natural { border: none; background: none; overflow: visible; }
.img-slot.photo-natural img { width: 100%; height: auto; object-fit: unset; border-radius: 4px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.nav-icon:hover { color: #1B1714 !important; }
.nav-icon.active { color: #1B1714 !important; }

.footer-link:hover { color: #736A5B !important; }
.work-link:hover { color: #736A5B !important; }
.prose-link:hover { color: #736A5B !important; }

.status-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(137,127,112,0.06);
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  -webkit-appearance: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(27,23,20,0.03);
}
.status-btn:hover {
  background: rgba(137,127,112,0.14);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(27,23,20,0.08);
}
.status-btn .arrow { transition: transform .35s ease; }
.status-btn:hover .arrow { transform: rotate(180deg); }

.tab-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  -webkit-appearance: none;
  transition: color .2s, background .2s;
}
.tab-btn.active { color: #1B1714; background: #E5DCC6; }
.tab-btn.inactive { color: #736A5B; background: none; }
.tab-btn.inactive:hover { color: #1B1714; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1B1714;
  color: #F1ECE2 !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(27,23,20,0.08);
}
.link-cta:hover {
  background: #3a332c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27,23,20,0.18);
}
.link-cta .arrow { display:inline-block; transition: transform .25s ease; }
.link-cta:hover .arrow { transform: translateX(3px); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,17,14,0.92);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #f5f1e8;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(111,156,106,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(111,156,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,156,106,0); }
}
@keyframes waveWiggle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-20deg); }
  30% { transform: rotate(16deg); }
  45% { transform: rotate(-16deg); }
  60% { transform: rotate(14deg); }
  75% { transform: rotate(-8deg); }
  90% { transform: rotate(4deg); }
}
@keyframes popIn {
  0% { transform: scale(0.3); opacity: 0.5; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes cameraPop {
  0%   { transform: scale(0.5) rotate(-6deg); }
  15%  { transform: scale(1.25) rotate(3deg); }
  24%  { transform: scale(0.95) rotate(-2deg); }
  34%  { transform: scale(1.05) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes laptopOpen {
  0%   { transform: scaleY(0.15); }
  40%  { transform: scaleY(1.18); }
  65%  { transform: scaleY(0.94); }
  100% { transform: scaleY(1); }
}
@keyframes basketballBounce {
  0%   { transform: translateY(0) scale(1,1); }
  15%  { transform: translateY(-26px) scale(1,1); }
  30%  { transform: translateY(0) scale(1.15,0.85); }
  45%  { transform: translateY(-14px) scale(1,1); }
  60%  { transform: translateY(0) scale(1.08,0.92); }
  72%  { transform: translateY(-6px) scale(1,1); }
  84%  { transform: translateY(0) scale(1.04,0.96); }
  100% { transform: translateY(0) scale(1,1); }
}
@keyframes ballHit {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10%  { transform: scale(1); opacity: 1; }
  32%  { transform: scale(1.35); }
  40%  { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(480px, -90px) rotate(720deg) scale(0.7); opacity: 0; }
}
@keyframes frisbeeFly {
  0%   { transform: translate(0, 0) scaleY(0.55); opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(300px, -42px) scaleY(0.55); opacity: 0; }
}
@keyframes trainDash {
  0%   { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-380px); opacity: 0; }
}
@keyframes flashPulse {
  0%, 16%  { opacity: 0; }
  22%      { opacity: 0.95; }
  32%, 100% { opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pingPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Home hero — animated subway map */
.hero-section { background: #FEF4E0; }
.hero { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; }
.city-toggle-input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

.hero-map-wrap { position: absolute; inset: 0; }
.k-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.k-line { cursor: pointer; }
.k-track { transition: stroke-width .25s ease; stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.k-train { pointer-events: none; opacity: 0; }
.k-stopgrp { opacity: 0; transition: opacity .3s ease; pointer-events: none; }

.station-chip-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }

#k-torMap, #k-torStops { display: none; }
#k-city:checked ~ .hero-map-wrap #k-nycMap,
#k-city:checked ~ .hero-map-wrap #k-nycStops { display: none; }
#k-city:checked ~ .hero-map-wrap #k-torMap,
#k-city:checked ~ .hero-map-wrap #k-torStops { display: block; }

.k-map:has(#k1-7:hover) #ks-7,
.k-map:has(#k1-L:hover) #ks-L,
.k-map:has(#k1-6:hover) #ks-6,
.k-map:has(#k1-E:hover) #ks-E,
.k-map:has(#k1-Q:hover) #ks-Q,
.k-map:has(#k1-M:hover) #ks-M,
.k-map:has(#kt-1:hover) #kts-1,
.k-map:has(#kt-2:hover) #kts-2,
.k-map:has(#kt-5:hover) #kts-5,
.k-map:has(#kt-4:hover) #kts-4,
.k-map:has(#kt-sc:hover) #kts-sc { opacity: 1; }

.k-map:has(#k1-7:hover) #k-7,
.k-map:has(#k1-L:hover) #k-L,
.k-map:has(#k1-6:hover) #k-6,
.k-map:has(#k1-E:hover) #k-E,
.k-map:has(#k1-Q:hover) #k-Q,
.k-map:has(#k1-M:hover) #k-M,
.k-map:has(#kt-1:hover) #ktr-1,
.k-map:has(#kt-2:hover) #ktr-2,
.k-map:has(#kt-5:hover) #ktr-5,
.k-map:has(#kt-4:hover) #ktr-4 { stroke-width: 6; }

.hero-topbar { position: absolute; top: 34px; left: 0; right: 0; max-width: 1200px; margin: 0 auto; padding: 0 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 14px; z-index: 3; pointer-events: none; }
.hero-topbar-spacer { grid-column: 3; justify-self: end; pointer-events: auto; }

.hero-nav { grid-column: 2; display: flex; justify-content: center; gap: 30px; pointer-events: auto; }
.hero-city-toggle { pointer-events: auto; vertical-align: middle; margin-left: 16px; transform: translateY(-6px); }
.hero-menu-btn { display: none; }
.hero-mobile-menu { display: none; }
.hero-menu-backdrop { display: none; }

.hero-content { position: relative; max-width: 1200px; margin: 0 auto; height: 100%; z-index: 2; pointer-events: none; }
.hero-intro { position: absolute; left: 0; bottom: 46px; padding: 0 44px; max-width: 600px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .6s ease, transform .6s ease; }
.hero-intro.visible { opacity: 1; transform: none; }
.hero-intro h1 { font-family: 'Crimson Text', serif; font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; margin: 0; color: #1B1714; }
.hero-intro p { font-family: 'Crimson Text', serif; font-size: 15px; line-height: 1.5; color: #6a635a; margin: 10px 0 12px; max-width: 420px; }
.hero-hint { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.04em; color: #736A5B; margin: 0; pointer-events: auto; }

.city-toggle { display: inline-flex; align-items: center; gap: 8px; background: #FEF4E0; border: 1px solid rgba(27,23,20,0.14); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; box-shadow: 0 1px 4px rgba(27,23,20,0.1); pointer-events: auto; }
.toggle-divider { width: 1px; height: 11px; background: rgba(137,127,112,0.35); }
.lbl-nyc { color: #1B1714; font-weight: 700; }
.lbl-tor { color: #736A5B; font-weight: 700; }
#k-city:checked ~ * .lbl-nyc { color: #736A5B; }
#k-city:checked ~ * .lbl-tor { color: #1B1714; }

.station-chip { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 6; width: max-content; max-width: 220px; text-align: center; background: #FEF4E0; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 9px 16px; box-shadow: 0 2px 10px rgba(27,23,20,0.15); }
.station-chip.visible { opacity: 1; }
.station-chip .chip-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #1B1714; }
.station-chip .chip-desc { display: block; font-family: 'Crimson Text', serif; font-style: italic; font-size: 13px; color: #4f4942; margin-top: 2px; }

.hero-scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3; color: #736A5B; text-decoration: none; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: auto; }
.hero-scroll-cue:hover { color: #1B1714; }
.hero-scroll-cue svg { animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(5px); opacity: 1; }
}

@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; }
  .hero-map-wrap { position: relative; flex: 0 0 66vh; flex: 0 0 66dvh; }
  .hero-map-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(to bottom, rgba(254,244,224,0), #FEF4E0); pointer-events: none; }

  .hero-topbar { top: 16px; padding: 0 16px; column-gap: 10px; grid-template-columns: auto auto; justify-content: space-between; }
  .hero-topbar-spacer { grid-column: 2; justify-self: end; }
  .hero-nav { display: none; }
  .hero-city-toggle { margin-left: 10px; padding: 6px 10px; font-size: 10px; gap: 6px; transform: translateY(-4px); }

  .hero-menu-btn { grid-column: 2; justify-self: end; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: #FEF4E0; border: 1px solid rgba(27,23,20,0.14); box-shadow: 0 1px 4px rgba(27,23,20,0.1); color: #1B1714; cursor: pointer; pointer-events: auto; }

  #hero-menu-toggle:checked ~ .hero-menu-backdrop { display: block; }
  #hero-menu-toggle:checked ~ .hero-mobile-menu { display: flex; }
  .hero-menu-backdrop { position: fixed; inset: 0; background: rgba(27,23,20,0.35); z-index: 19; }
  .hero-mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 68vw; max-width: 270px; flex-direction: column; gap: 2px; background: #FEF4E0; z-index: 20; padding: 84px 28px 28px; box-shadow: -10px 0 30px rgba(27,23,20,0.16); }
  .hero-mobile-menu a { font-family: 'Crimson Text', serif; font-size: 21px; color: #1B1714; text-decoration: none; padding: 13px 0; border-bottom: 1px solid rgba(27,23,20,0.08); }

  .hero-content { max-width: none; height: auto; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 16px; }
  .hero-intro { position: static; padding: 0 20px 0; max-width: none; pointer-events: auto; }
  .hero-intro h1 { font-size: 28px; }
  .hero-intro p { margin: 8px 0 10px; }
  .hero-scroll-cue { position: static; align-self: center; transform: none; margin-top: 14px; }

  .ttl-lead { font-size: 36px; }
  .ttl-emph { font-size: 50px; }
}

.photo-grid-item { cursor: zoom-in; }
.photo-grid-item:hover .img-slot { opacity: 0.88; }

.work-card:hover { opacity: 0.85; }

@media (max-width: 700px) {
  .home-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .work-grid-2 { grid-template-columns: 1fr !important; }
  .work-grid-3 { grid-template-columns: 1fr !important; }
  .about-grid { grid-template-columns: 1fr !important; }
  .video-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .featured-grid { grid-template-columns: 1fr !important; }
  .photo-grid { grid-template-columns: repeat(2, 1fr) !important; }
  nav { padding: 20px 20px 6px !important; }
  header { padding-left: 20px !important; padding-right: 20px !important; }
  section:not(.hero-section) { padding-left: 20px !important; padding-right: 20px !important; }
  footer { padding-left: 20px !important; padding-right: 20px !important; }
  h1 { font-size: 38px !important; }
}

/* ============================================================
   MOBILE TAB BAR — thumb-reachable bottom nav on small screens,
   replaces the old hamburger/drawer pattern.
   ============================================================ */
.mobile-tabbar { display: none; }
@media (max-width: 700px) {
  .desktop-nav { display: none !important; }
  .hero-menu-btn, .hero-mobile-menu, .hero-menu-backdrop { display: none !important; }
  body { padding-bottom: 76px; }
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    justify-content: space-around; align-items: center; height: 66px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #FEF4E0; border-top: 1px solid #E2DBCC;
  }
  .mobile-tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: #736A5B; text-decoration: none;
    font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase;
  }
  .mobile-tabbar a.active { color: #1B1714; }
  .mobile-tabbar svg { width: 21px; height: 21px; }
}

/* ============================================================
   THEME TOGGLE — floating sun/moon button, all pages.
   ============================================================ */
.theme-toggle { position: fixed; left: 44px; top: 34px; z-index: 60; width: 40px; height: 40px; border-radius: 999px; background: #FEF4E0; border: 1px solid rgba(27,23,20,0.14); box-shadow: 0 2px 8px rgba(27,23,20,0.14); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1B1714; padding: 0; }
.theme-toggle .icon-moon { display: none; }
@media (max-width: 700px) { .theme-toggle { left: 20px; top: 16px; } }

/* ============================================================
   DARK MODE — deep forest green. Applies via [data-theme="dark"]
   on <html>. Most of this site's colors are set with inline
   styles, so overrides target those literal inline color strings.
   ============================================================ */
:root[data-theme="dark"] body { background: #0F1E17; color: #B9C4B0; }
:root[data-theme="dark"] .theme-toggle { background: #17281F; border-color: rgba(180,200,180,0.16); color: #F0EBDD; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] [style*="color:#1B1714"],
:root[data-theme="dark"] [style*="color: #1B1714"] { color: #F0EBDD !important; }
:root[data-theme="dark"] [style*="color:#1a1714"],
:root[data-theme="dark"] [style*="color: #1a1714"] { color: #F0EBDD !important; }
:root[data-theme="dark"] [style*="color:#6a635a"],
:root[data-theme="dark"] [style*="color: #6a635a"] { color: #B9C4B0 !important; }
:root[data-theme="dark"] [style*="color:#5a544c"],
:root[data-theme="dark"] [style*="color: #5a544c"] { color: #B9C4B0 !important; }
:root[data-theme="dark"] [style*="color:#4f4942"],
:root[data-theme="dark"] [style*="color: #4f4942"] { color: #B9C4B0 !important; }
:root[data-theme="dark"] [style*="color:#3e3a33"],
:root[data-theme="dark"] [style*="color: #3e3a33"] { color: #B9C4B0 !important; }
:root[data-theme="dark"] [style*="color:#897F70"],
:root[data-theme="dark"] [style*="color: #897F70"] { color: #8DA192 !important; }
:root[data-theme="dark"] [style*="color:#aaa089"],
:root[data-theme="dark"] [style*="color: #aaa089"] { color: #8DA192 !important; }
:root[data-theme="dark"] [style*="color:#9a917f"],
:root[data-theme="dark"] [style*="color: #9a917f"] { color: #8DA192 !important; }
:root[data-theme="dark"] [style*="color:#b3a997"],
:root[data-theme="dark"] [style*="color: #b3a997"] { color: #8DA192 !important; }
:root[data-theme="dark"] [style*="color:#b0a488"],
:root[data-theme="dark"] [style*="color: #b0a488"] { color: #8DA192 !important; }
:root[data-theme="dark"] [style*="color:#b0a288"],
:root[data-theme="dark"] [style*="color: #b0a288"] { color: #8DA192 !important; }
:root[data-theme="dark"] [style*="color:#cabf9f"],
:root[data-theme="dark"] [style*="color: #cabf9f"] { color: #8DA192 !important; }
:root[data-theme="dark"] [style*="color:#c3b99e"],
:root[data-theme="dark"] [style*="color: #c3b99e"] { color: #8DA192 !important; }
:root[data-theme="dark"] [style*="background:#FEF4E0"],
:root[data-theme="dark"] [style*="background: #FEF4E0"] { background: #0F1E17 !important; }
:root[data-theme="dark"] [style*="background:#F1ECE2"],
:root[data-theme="dark"] [style*="background: #F1ECE2"] { background: #0F1E17 !important; }
:root[data-theme="dark"] [style*="background:#E5DCC6"],
:root[data-theme="dark"] [style*="background: #E5DCC6"] { background: #17281F !important; }
:root[data-theme="dark"] [style*="background:#1B1714"],
:root[data-theme="dark"] [style*="background: #1B1714"] { background: #F0EBDD !important; }
:root[data-theme="dark"] [style*="background:#1a1714"],
:root[data-theme="dark"] [style*="background: #1a1714"] { background: #F0EBDD !important; }
:root[data-theme="dark"] [style*="border-top:1px solid #E2DBCC"],
:root[data-theme="dark"] [style*="border-bottom:1px solid #E2DBCC"] { border-color: rgba(180,200,180,0.18) !important; }

/* Hero component — class-based, direct overrides */
:root[data-theme="dark"] .hero-section { background: #0F1E17; }
:root[data-theme="dark"] .hero-map-wrap::after { background: linear-gradient(to bottom, rgba(15,30,23,0), #0F1E17); }
:root[data-theme="dark"] .station-chip, :root[data-theme="dark"] .city-toggle, :root[data-theme="dark"] .hero-menu-btn, :root[data-theme="dark"] .hero-mobile-menu { background: #17281F; border-color: rgba(180,200,180,0.16); box-shadow: 0 2px 10px rgba(0,0,0,0.35); }
:root[data-theme="dark"] .station-chip .chip-label { color: #F0EBDD; }
:root[data-theme="dark"] .station-chip .chip-desc { color: #B9C4B0; }
:root[data-theme="dark"] h1 { color: #F0EBDD !important; }
:root[data-theme="dark"] h2 { color: #F0EBDD !important; }
:root[data-theme="dark"] h3 { color: #F0EBDD !important; }
:root[data-theme="dark"] .project-prose { color: #B9C4B0 !important; }
:root[data-theme="dark"] .hero-intro h1 { color: #F0EBDD; }
:root[data-theme="dark"] .hero-intro p { color: #B9C4B0; }
:root[data-theme="dark"] .hero-hint { color: #8DA192; }
:root[data-theme="dark"] .lbl-nyc { color: #F0EBDD; }
:root[data-theme="dark"] .lbl-tor { color: #8DA192; }
:root[data-theme="dark"] #k-city:checked ~ * .lbl-nyc { color: #8DA192; }
:root[data-theme="dark"] #k-city:checked ~ * .lbl-tor { color: #F0EBDD; }
:root[data-theme="dark"] .hero-scroll-cue { color: #8DA192; }
:root[data-theme="dark"] .hero-scroll-cue:hover { color: #F0EBDD; }
:root[data-theme="dark"] .hero-mobile-menu a { color: #F0EBDD; border-color: rgba(180,200,180,0.16); }
:root[data-theme="dark"] .nav-icon { color: #8DA192 !important; }
:root[data-theme="dark"] .nav-icon:hover, :root[data-theme="dark"] .nav-icon.active { color: #F0EBDD !important; }
:root[data-theme="dark"] .mobile-tabbar { background: #17281F; border-color: rgba(180,200,180,0.16); }
:root[data-theme="dark"] .mobile-tabbar a { color: #8DA192; }
:root[data-theme="dark"] .mobile-tabbar a.active { color: #F0EBDD; }

/* Site type system — PP Mondwest for lead-in/label copy, PP NeueBit for emphasis/titles, PolySans Trial (slim) for body */
.ttl-lead { font-family: 'PP Mondwest', serif !important; font-weight: 400; letter-spacing: -0.03em; font-size: 50px; }
.ttl-emph { font-family: 'PP NeueBit', 'Pixelify Sans', monospace !important; font-weight: 700; letter-spacing: -0.05em; font-size: 70px; }
header h1 { font-family: 'PP NeueBit', 'Pixelify Sans', monospace !important; font-weight: 700 !important; letter-spacing: -0.01em !important; text-transform: lowercase; font-size: 64px !important; line-height: 1.02 !important; }
.hero-intro p, .hero-hint, header p { font-family: 'PolySans Trial', 'Space Grotesk', sans-serif !important; font-weight: 300; letter-spacing: -0.04em !important; text-transform: lowercase; }
header p { font-size: 16px !important; line-height: 1.45 !important; max-width: 620px !important; margin-top: 10px !important; }
header > div { font-family: 'PP Mondwest', serif !important; text-transform: lowercase !important; letter-spacing: 0 !important; font-size: 20px !important; margin-bottom: 8px !important; }
.tab-btn { font-family: 'PolySans Trial', 'Space Grotesk', sans-serif !important; text-transform: lowercase; letter-spacing: 0; font-size: 16px; }
header ~ div .tab-btn, div:has(> .tab-btn) { gap: 12px !important; }
.tab-btn.inactive { border: 1px solid rgba(27,23,20,0.18); }
.tab-btn.inactive:hover { background: rgba(27,23,20,0.06); border-color: rgba(27,23,20,0.3); }
:root[data-theme="dark"] .tab-btn.inactive { border-color: rgba(180,200,180,0.25); }
:root[data-theme="dark"] .tab-btn.inactive:hover { background: rgba(180,200,180,0.1); border-color: rgba(180,200,180,0.4); }

[style*="Hanken Grotesk"] { font-family: 'PolySans Trial', 'Space Grotesk', sans-serif !important; }
h1[style*="Newsreader"], h3[style*="Newsreader"] { font-family: 'PP NeueBit', 'Pixelify Sans', monospace !important; font-weight: 700 !important; letter-spacing: -0.01em !important; text-transform: lowercase !important; }
h3[style*="Newsreader"] { font-size: 32px !important; line-height: 1.15 !important; }
p[style*="Newsreader"], div[style*="Newsreader"] { font-family: 'PolySans Trial', 'Space Grotesk', sans-serif !important; font-weight: 300 !important; letter-spacing: -0.04em !important; text-transform: lowercase !important; }
div[style*="JetBrains Mono"]:not(.work-link):not(.footer-link):not(.tab-btn):not(header *),
span[style*="JetBrains Mono"]:not(.work-link):not(.footer-link):not(.tab-btn):not(header *) { font-family: 'PP Mondwest', serif !important; letter-spacing: 0 !important; text-transform: lowercase !important; font-size: 15px !important; }
a[style*="JetBrains Mono"], .work-link, .footer-link { font-family: 'PolySans Trial', 'Space Grotesk', sans-serif !important; letter-spacing: -0.02em !important; text-transform: lowercase !important; }
.city-toggle, .hero-scroll-cue, .station-chip .chip-label, .mobile-tabbar a { font-family: 'PP Mondwest', serif !important; letter-spacing: 0 !important; text-transform: lowercase !important; }
.station-chip .chip-desc { font-family: 'PolySans Trial', 'Space Grotesk', sans-serif !important; letter-spacing: -0.02em !important; text-transform: lowercase !important; }
:root[data-theme="dark"] .img-slot { background: rgba(185,196,176,0.08); border-color: rgba(185,196,176,0.25); }
:root[data-theme="dark"] .link-cta { background: #F0EBDD; color: #0F1E17 !important; }
:root[data-theme="dark"] .link-cta:hover { background: #ffffff; }
:root[data-theme="dark"] .tab-btn.active { color: #F0EBDD; background: #17281F; }
:root[data-theme="dark"] .tab-btn.inactive { color: #8DA192; }
:root[data-theme="dark"] .tab-btn.inactive:hover { color: #F0EBDD; }
:root[data-theme="dark"] #k-fade stop { stop-color: #0F1E17 !important; }

/* ============================================================
   CONTRAST: keep every text role readable (WCAG AA) in both themes.
   Browsers normalize colors set via element.style.cssText to rgb(), so
   each inline color is matched in hex and rgb() form.
   ============================================================ */
:root:not([data-theme="dark"]) :is(
  [style*="color:#aaa089"],
  [style*="color: #aaa089"],
  [style*="color: rgb(170, 160, 137)"],
  [style*="color:#b0a288"],
  [style*="color: #b0a288"],
  [style*="color: rgb(176, 162, 136)"],
  [style*="color:#b0a488"],
  [style*="color: #b0a488"],
  [style*="color: rgb(176, 164, 136)"],
  [style*="color:#cabf9f"],
  [style*="color: #cabf9f"],
  [style*="color: rgb(202, 191, 159)"],
  [style*="color:#9a917f"],
  [style*="color: #9a917f"],
  [style*="color: rgb(154, 145, 127)"],
  [style*="color:#b3a997"],
  [style*="color: #b3a997"],
  [style*="color: rgb(179, 169, 151)"],
  [style*="color:#897F70"],
  [style*="color: #897F70"],
  [style*="color: rgb(137, 127, 112)"],
  [style*="color:#c3b99e"],
  [style*="color: #c3b99e"],
  [style*="color: rgb(195, 185, 158)"]
):not(.nav-icon) { color: #736A5B !important; }

/* dark inks that would vanish on the dark background (rgb() forms of JS-set colors) */
:root[data-theme="dark"] :is([style*="color: rgb(27, 23, 20)"], [style*="color: rgb(26, 23, 20)"]) { color: #F0EBDD !important; }
:root[data-theme="dark"] :is([style*="color: rgb(62, 58, 51)"], [style*="color: rgb(79, 73, 66)"], [style*="color: rgb(90, 84, 76)"], [style*="color: rgb(106, 99, 90)"]) { color: #B9C4B0 !important; }
:root[data-theme="dark"] :is([style*="color: rgb(137, 127, 112)"], [style*="color: rgb(170, 160, 137)"], [style*="color: rgb(154, 145, 127)"], [style*="color: rgb(179, 169, 151)"]) { color: #8DA192 !important; }

/* Project page long-form body: headings, lists, dividers */
.project-prose h2 { font-family: 'PP NeueBit', 'Pixelify Sans', monospace; font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; text-transform: lowercase; color: #1B1714; margin: 52px 0 16px; }
.project-prose > h2:first-child { margin-top: 0; }
.project-prose ul { margin: 0 0 22px; padding-left: 22px; }
.project-prose li { margin: 0 0 12px; }
.project-prose strong { font-weight: 700 !important; }
.project-prose hr { border: none; border-top: 1px solid #E2DBCC; margin: 36px 0; }
:root[data-theme="dark"] .project-prose hr { border-top-color: rgba(180,200,180,0.18); }
