/* ── Fonts (self-hosted, Latin subset only) ─────────────── */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/source-serif-4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('fonts/source-serif-4-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --bg:         #f8fafc;
  --surface:    #ffffff;
  --border:     rgba(0, 0, 0, 0.07);
  --text:       #0f172a;
  --muted:      #64748b;
  --accent:     #b87d20;
  --accent-rgb: 184, 125, 32;
}
.dark {
  --bg:         #0a0907;
  --surface:    #141210;
  --border:     rgba(255, 255, 255, 0.055);
  --text:       #f0ece4;
  --muted:      #7a7265;
  --accent:     #e8b85a;
  --accent-rgb: 232, 184, 90;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── Accessibility ─────────────────────────────────────── */
.skip-to-content {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10000;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  translate: 0 -300%;
  transition: translate 0.15s ease;
}
.skip-to-content:focus-visible {
  translate: 0 0;
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* ── Scroll Reveal - blur + scale ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(4px);
  transition: opacity   0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter    0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes heroReveal {
  from { opacity: 0; transform: scale(0.97) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── Hero Image ─────────────────────────────────────────── */
.hero-image {
  opacity: 0;
  animation: heroReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* ── Accent Line ────────────────────────────────────────── */
.accent-line {
  display: block;
  height: 2px;
  background-color: var(--accent);
  width: 0;
  margin-top: 1rem;
  margin-bottom: 2rem;
  animation: accentLine 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}
@keyframes accentLine {
  from { width: 0; opacity: 0; }
  to   { width: 5rem; opacity: 1; }
}


/* ── Header Nav Links ───────────────────────────────────── */
.nav-link {
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

/* ── Connect Button ─────────────────────────────────────── */
.btn-connect {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.38rem 1.1rem;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-connect:hover {
  background-color: var(--accent);
  color: var(--bg);
}

/* ── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
  color: var(--muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}
.theme-toggle:hover { color: var(--text); }

/* ── Mobile Menu ────────────────────────────────────────── */
#mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem 2rem;
  z-index: 49;
  animation: fadeInDown 0.2s ease forwards;
}
#mobile-menu.open { display: block; }

/* ── Stats ──────────────────────────────────────────────── */
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
}
.stat-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}


/* ── Footer Icons ───────────────────────────────────────── */
.footer-icon {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
}
.footer-icon:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Scroll To Top ──────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease;
  border-radius: 2px;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#scroll-top:hover {
  background-color: var(--accent);
  color: var(--bg);
}

/* ── Scroll Progress ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  z-index: 51;
  transition: width 0.05s linear;
}

/* ── Logo Mark ─────────────────────────────────────────── */
.logo-mark          { height: 28px; width: 28px; flex-shrink: 0; }
.logo-mark .lm-bg   { fill: transparent; }
.logo-mark .lm-arc  { fill: var(--text); }
.logo-mark .lm-gold { fill: var(--accent); }
.logo-mark .lm-oe   { fill: var(--text); font-family: Georgia, serif; font-style: italic; font-weight: bold; }

/* ── Hero Overline ──────────────────────────────────────── */
.hero-overline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Hamburger ──────────────────────────────────────────── */
.hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--muted);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Hero Grid Layout ───────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100svh;
  position: relative;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 55fr 45fr;
    align-items: stretch;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 3rem 6rem 4rem;
  position: relative;
  z-index: 2;
}
@media (min-width: 1280px) {
  .hero-text-col { padding: 9rem 5rem 6rem 8rem; }
}

.hero-image-col {
  position: relative;
  overflow: hidden;
  min-height: 70vw;
}
@media (min-width: 1024px) {
  .hero-image-col { min-height: unset; }
}

.hero-img-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  filter: grayscale(100%);
  transition: filter 0.7s ease;
  opacity: 0;
  animation: heroReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.hero-img-fill:hover { filter: grayscale(0%); }

.hero-image-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, transparent 40%);
}
@media (min-width: 1024px) {
  .hero-image-gradient {
    background: linear-gradient(to right,
      var(--bg) 0%,
      rgba(5, 5, 8, 0.55) 20%,
      transparent 48%
    );
  }
}

/* ── Hero Typography ────────────────────────────────────── */
.hero-h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  line-height: 0.97;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

/* ── Word-span stagger ──────────────────────────────────── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}
.word-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes wordReveal {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0%);   opacity: 1; }
}

/* ── Stats Band ─────────────────────────────────────────── */
.stats-band {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.stats-accent-line,
.stats-accent-line-bottom {
  position: absolute;
  left: 0;
  height: 1px;
  background: linear-gradient(to right,
    var(--accent) 0%,
    rgba(232, 184, 90, 0.15) 70%,
    transparent 100%
  );
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.stats-accent-line        { top: 0; }
.stats-accent-line-bottom { bottom: 0; transition-delay: 0.3s; }
#stats.line-drawn .stats-accent-line,
#stats.line-drawn .stats-accent-line-bottom { width: 100%; }

.stats-row {
  display: flex;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1 1 50%;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .stat-item            { flex: 1 1 25%; border-bottom: none; }
  .stat-item:nth-child(2) { border-bottom: none; }
}
.stat-huge {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
  font-size: clamp(3.5rem, 5.5vw, 5.5rem);
}

/* ── Editorial List (About) ─────────────────────────────── */
.editorial-list  { margin-top: 4rem; }
.editorial-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0 4rem;
  padding: 3.5rem 0;
  align-items: start;
}
@media (max-width: 767px) {
  .editorial-item { grid-template-columns: 1fr; gap: 1rem; padding: 2.5rem 0; }
}
.editorial-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(5rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.1;
  letter-spacing: -0.04em;
  text-align: right;
  user-select: none;
  transition: opacity 0.4s ease;
  padding-top: 0.3rem;
}
.editorial-item:hover .editorial-number { opacity: 0.22; }
.editorial-content  { padding-top: 0.4rem; }
.editorial-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.editorial-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 60ch;
}
.editorial-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Playbook List ──────────────────────────────────────── */
.playbook-list { margin-top: 4rem; border-top: 1px solid var(--border); }
.playbook-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 0 3rem;
  align-items: center;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
}
@media (max-width: 767px) {
  .playbook-list-item {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 1.5rem;
    padding: 2rem 0;
  }
  .pbl-badge { grid-column: 2; grid-row: 2; justify-self: start; }
}
.pbl-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.35;
  letter-spacing: 0.06em;
  align-self: start;
  padding-top: 0.3rem;
  transition: opacity 0.3s ease;
}
.playbook-list-item:hover .pbl-number { opacity: 0.9; }
.pbl-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  transition: color 0.25s ease;
}
.playbook-list-item:hover .pbl-title { color: var(--accent); }
.pbl-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 60ch;
}
.pbl-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  opacity: 0.55;
  white-space: nowrap;
  align-self: center;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.playbook-list-item:hover .pbl-badge {
  opacity: 1;
  border-color: rgba(var(--accent-rgb), 0.35);
}
.pbl-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--accent) 0%, rgba(232,184,90,0.25) 60%, transparent 100%);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.playbook-list-item:hover .pbl-underline { width: 100%; }

/* ── Methodology Toggle ─────────────────────────────────── */
.pbl-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.5;
  align-self: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
  line-height: 1;
  user-select: none;
}
.playbook-list-item:hover .pbl-toggle { opacity: 1; }
.pbl-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.playbook-list-item.open .pbl-expand { max-height: 300px; }
.pbl-expand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 60ch;
  padding-top: 0.75rem;
}

/* ── Projects List ──────────────────────────────────────── */
.project-list { margin-top: 4rem; border-top: 1px solid var(--border); }
.project-item {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 0 3rem;
  align-items: center;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  overflow: hidden;
}
@media (max-width: 767px) {
  .project-item {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 1.5rem;
    padding: 2rem 0;
  }
  .proj-link { grid-column: 2; grid-row: 2; justify-self: start; }
}
.proj-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.35;
  letter-spacing: 0.06em;
  align-self: start;
  padding-top: 0.3rem;
  transition: opacity 0.3s ease;
}
.project-item:hover .proj-number { opacity: 0.9; }
.proj-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.proj-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-style: italic;
  transition: color 0.25s ease;
}
.project-item:hover .proj-title { color: var(--accent); }
.proj-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 60ch;
}
.proj-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  align-self: center;
}
.proj-link:hover {
  background-color: var(--accent);
  color: var(--bg);
}
.proj-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--accent) 0%, rgba(232,184,90,0.25) 60%, transparent 100%);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.project-item:hover .proj-underline { width: 100%; }

/* ── Publications List ──────────────────────────────────── */
.pub-list { margin-top: 4rem; border-top: 1px solid var(--border); }
.pub-item {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 0 3rem;
  align-items: center;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  overflow: hidden;
}
@media (max-width: 767px) {
  .pub-item {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 1.5rem;
    padding: 2rem 0;
  }
  .pub-link { grid-column: 2; grid-row: 2; justify-self: start; }
}
.pub-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.35;
  letter-spacing: 0.06em;
  align-self: start;
  padding-top: 0.3rem;
  transition: opacity 0.3s ease;
}
.pub-item:hover .pub-number { opacity: 0.9; }
.pub-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.65rem;
  transition: border-color 0.3s ease;
}
.pub-item:hover .pub-badge { border-color: rgba(var(--accent-rgb), 0.4); }
.pub-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.25;
  transition: color 0.25s ease;
}
.pub-item:hover .pub-title { color: var(--accent); }
.pub-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 58ch;
}
.pub-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  align-self: center;
}
.pub-link:hover {
  background-color: var(--accent);
  color: var(--bg);
}
.pub-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--accent) 0%, rgba(232,184,90,0.25) 60%, transparent 100%);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.pub-item:hover .pub-underline { width: 100%; }

/* ── Lab Modal ─────────────────────────────────────────── */
#lab-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 9, 7, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#lab-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#lab-modal {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--accent);
  padding: 3rem 3.5rem;
  max-width: 480px;
  width: 100%;
  transform: translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#lab-modal-overlay.open #lab-modal {
  transform: translateY(0);
}
.lab-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s ease;
}
.lab-modal-close:hover { color: var(--text); }
.lab-modal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.lab-modal-headline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.lab-modal-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.lab-modal-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  display: inline-block;
}

/* ── Structural Layout ──────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 4rem;
  background-color: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
@media (min-width: 1024px) {
  .header-inner { padding: 0 4rem; }
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-actions .btn-connect { display: none; }
@media (min-width: 768px) {
  .header-actions .btn-connect { display: inline-flex; align-items: center; }
}
#hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  #hamburger { display: none; }
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.mobile-menu-footer .btn-connect {
  display: inline-flex;
  align-items: center;
}
#hero { position: relative; overflow: hidden; }
.section-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .section-inner { padding-left: 2rem; padding-right: 2rem; }
}
.section-header { margin-bottom: 4rem; }
.section-h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
}
.section-intro { margin-top: 1.5rem; }
.stats-inner {
  width: 100%;
  padding: 0 2rem;
}
@media (min-width: 1024px) {
  .stats-inner { padding: 0 4rem; }
}
.footer-inner {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .footer-inner { padding: 0 4rem; }
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* ── Print Stylesheet ──────────────────────────────────── */
@media print {
  *, *::before, *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  /* Fixed-position elements repeat on every printed page — kill them */
  .skip-to-content,
  .site-header,
  #scroll-progress,
  #scroll-top,
  .mobile-menu,
  #lab-modal-overlay,
  .hero-image-col,
  .pbl-expand,
  .btn-connect {
    display: none !important;
    position: static !important;
  }

  /* Hero section fills 100svh on screen — collapse it for print */
  .hero-grid,
  #hero,
  section {
    min-height: 0 !important;
    height: auto !important;
  }

  /* Compact spacing */
  section         { padding: 1rem 0 !important; break-inside: avoid; }
  .section-header { margin-bottom: 1rem !important; }
  .hero-text-col  { padding: 1rem 0 !important; }

  /* About: shrink editorial grid and decorative numbers */
  .editorial-item {
    grid-template-columns: 2.5rem 1fr !important;
    gap: 0 1rem !important;
    padding: 0.75rem 0 !important;
  }
  .editorial-number {
    font-size: 1.25rem !important;
    opacity: 0.25 !important;
    padding-top: 0 !important;
  }

  /* Methodology items: compact */
  .playbook-list-item { padding: 0.75rem 0 !important; border-bottom: 1px solid #ccc; }
  .playbook-list-item .pbl-body { display: block !important; }
  .pbl-number { font-size: 0.7rem !important; }

  /* Stats: compact */
  .stat-item  { padding: 0.75rem !important; }

  /* Footer: collapse padding, prevent orphan page */
  footer { padding: 0.5rem 0 !important; break-before: avoid !important; }
  .footer-inner { padding: 0.25rem 0 !important; }
  .footer-social { display: none !important; }

  /* Reveal all hidden/animated elements */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  /* Show full URLs for external links — but not icon-only links */
  a[href^="http"]:not(.footer-icon)::after { content: " (" attr(href) ")"; font-size: 0.65rem; }
  a[href^="#"]::after,
  .proj-link::after,
  .pub-link::after { content: none; }
}
