:root {
  --bg: #f3f4f7;
  --bg-soft: rgba(255, 255, 255, 0.75);
  --ink: #0b0f18;
  --muted: #5b6472;
  --line: rgba(11, 15, 24, 0.14);
  --accent: #2f6fed;
  --accent-soft: rgba(47, 111, 237, 0.14);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(10, 16, 30, 0.08);
  --glow: 0 0 0 1px rgba(47, 111, 237, 0.2), 0 20px 60px rgba(47, 111, 237, 0.2);
  --glass: rgba(255, 255, 255, 0.55);
}

body[data-theme="dark"] {
  --bg: #0c0f17;
  --bg-soft: rgba(17, 21, 30, 0.82);
  --ink: #f1f5f9;
  --muted: #9aa3b2;
  --line: rgba(241, 245, 249, 0.14);
  --accent: #6aa2ff;
  --accent-soft: rgba(106, 162, 255, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glass: rgba(15, 19, 28, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, rgba(47, 111, 237, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(11, 15, 24, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
}



body.page-enter {
  opacity: 0;
  transform: translateY(12px);
}

body.page-ready {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.page-leave {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.page-enter,
  body.page-ready,
  body.page-leave {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes drift {
  0% {
    background-position: 0% 0%, 100% 0%, 0 0;
  }
  100% {
    background-position: 100% 20%, 0% 20%, 0 0;
  }
}

body {
  background-size: 160% 160%, 160% 160%, auto;
  animation: drift 22s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(0, 0, 0, 0.04) 0%,
      transparent 45%,
      rgba(0, 0, 0, 0.03) 60%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='rgba(0,0,0,0.06)'/%3E%3C/svg%3E");
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.ai-canvas.ambient {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.page,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

body[data-theme="dark"]::before {
  opacity: 0.15;
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  gap: 18px;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  box-shadow: 0 10px 22px rgba(15, 17, 21, 0.08);
  align-items: center;
}

.nav-links a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 28px;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.nav-links a.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle-line {
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-line:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.nav-open .nav-toggle-line:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.theme-toggle-dot {
  width: 24px;
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  display: inline-block;
}

.theme-toggle-dot::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.25s ease;
}

body[data-theme="dark"] .theme-toggle-dot::after {
  transform: translateX(12px);
}

.hero {
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 64px;
  min-height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
  --glow-x: 50%;
  --glow-y: 30%;
}


.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

body.landing .hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
}

body.landing .hero-content {
  text-align: center;
  margin: 0 auto;
}

body.landing .hero-content p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

body.landing .hero-content h2 {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 18px;
}

body.landing .hero-intro {
  margin-bottom: 56px;
}

body.landing .hero-intro h1 {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

body.landing .intro-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 6px;
}

body.landing .intro-email {
  font-size: 0.9rem;
}

body.landing .intro-email a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

body.landing .lead {
  margin-left: auto;
  margin-right: auto;
}

body.landing .hero-rule {
  margin: 0 auto 28px;
  max-width: 320px;
}

body.landing .cta-row,
body.landing .meta-links {
  justify-content: center;
}


.ai-canvas {
  position: absolute;
  inset: -10% 0 auto 0;
  left: 50%;
  width: 100vw;
  height: 70%;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(47, 111, 237, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.hero:hover::after {
  opacity: 0.8;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.2;
  animation: heroSweep 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroSweep {
  0% {
    transform: translateX(-40%);
  }
  100% {
    transform: translateX(40%);
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

.hero-content h1,
.hero-content .lead {
  animation: heroReveal 0.9s ease both;
}

.hero-content .lead {
  animation-delay: 0.08s;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {

  body.nav-open {
    overflow: hidden;
  }
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--btn-x, 50%) var(--btn-y, 50%), rgba(255, 255, 255, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover::after {
  opacity: 0.8;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 28px;
  opacity: 0.6;
}

.hero-focus {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-content h1 {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(2.9rem, 4.2vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 560px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(211, 95, 42, 0.3);
}

.btn.ghost {
  background: var(--bg-soft);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 17, 21, 0.12);
}

.meta-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.dot {
  color: var(--line);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  background: var(--bg-soft);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  gap: 40px;
}

.editorial-block {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.editorial-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: var(--muted);
}

.editorial-quote {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.4;
}

.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.timeline-chip {
  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(15, 17, 21, 0.08);
}

.chip-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--muted);
}

.page-hero {
  display: grid;
  gap: 16px;
  max-width: 980px;
  animation: sectionReveal 0.7s ease both;
}

.page-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 32px;
}

.page-hero-text {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.page-hero-text .lead {
  white-space: nowrap;
}

.forecast-visual {
  position: relative;
  width: 100%;
  height: clamp(180px, 24vh, 220px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  mix-blend-mode: lighten;
  justify-self: center;
  transform: translateX(64);
}

#forecast-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.page-hero h1 {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
}

.page-section {
  display: grid;
  gap: 18px;
  color: var(--muted);
  animation: sectionReveal 0.7s ease both;
}

.page-section:nth-of-type(1) {
  animation-delay: 0.05s;
}

.page-section:nth-of-type(2) {
  animation-delay: 0.12s;
}

.page-section:nth-of-type(3) {
  animation-delay: 0.18s;
}

.page-section:nth-of-type(4) {
  animation-delay: 0.24s;
}

.page-section.full-width .page-copy {
  max-width: 100%;
}

.page-copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.page-copy p {
  color: var(--ink);
}

.resume-download {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.resume-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.page-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 10px 22px rgba(10, 16, 30, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.page-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 4px;
}

.card-title {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--ink);
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
}

.project-status {
  width: 100%;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
}

.status-text {
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38b36b;
  box-shadow: 0 0 0 4px rgba(56, 179, 107, 0.18);
}

.status-dot.pulse {
  animation: statusPulse 1.8s ease-in-out infinite;
}

.status-note {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 179, 107, 0.4);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(56, 179, 107, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 179, 107, 0);
  }
}

.construction-banner {
  position: relative;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(47, 111, 237, 0.12), rgba(47, 111, 237, 0.03));
  color: var(--ink);
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.construction-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.4) 45%, transparent 70%);
  transform: translateX(-60%);
  animation: bannerSweep 4s ease-in-out infinite;
  pointer-events: none;
}

.construction-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-weight: 600;
}

@keyframes bannerSweep {
  0% {
    transform: translateX(-60%);
    opacity: 0;
  }
  30% {
    opacity: 0.8;
  }
  60% {
    opacity: 0;
  }
  100% {
    transform: translateX(60%);
    opacity: 0;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal.is-closing {
  opacity: 0;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.35);
  transition: opacity 0.25s ease;
}

.modal-open .page,
.modal-open .site-header,
.modal-open .site-footer {
  filter: blur(14px) saturate(90%);
  transition: filter 0.25s ease;
}

.page,
.site-header,
.site-footer {
  transition: filter 0.25s ease;
}


.modal-card {
  position: relative;
  max-width: 720px;
  width: min(90vw, 720px);
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 16px;
  color: var(--ink);
  z-index: 1;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal.is-closing .modal-card {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.modal-card h3 {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: 1.6rem;
}

.modal-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}

.modal-title-link:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 50%, transparent);
}


.modal-card p {
  color: var(--ink);
}

.modal-section {
  display: grid;
  gap: 8px;
}

.modal-section h4 {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent);
}

.modal-open {
  overflow: hidden;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 18px;
  padding-left: 0;
  position: relative;
}

.updates-feed {
  position: relative;
  max-width: 720px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 16px 16px 18px;
  box-shadow: 0 12px 28px rgba(10, 16, 30, 0.08);
  max-height: 132px;
  overflow: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.updates-feed::before,
.updates-feed::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  height: 18px;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.updates-feed::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg-soft), transparent);
}

.updates-feed::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg-soft), transparent);
}

.updates-feed::-webkit-scrollbar {
  display: none;
}

.updates-feed .timeline {
  gap: 14px;
}

.updates-feed .timeline-item {
  scroll-snap-align: start;
  min-height: 92px;
  opacity: 0.45;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.updates-feed .timeline-item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}

.timeline-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.timeline-item p {
  color: var(--ink);
}

@keyframes sectionReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero,
  .page-section {
    animation: none;
  }
}

.page-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-left: 0;
  color: var(--muted);
}

.page-list li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.two-col-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 10px 22px rgba(10, 16, 30, 0.08);
  display: grid;
  gap: 12px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.featured-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 10px 22px rgba(10, 16, 30, 0.08);
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.featured-card h3 {
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.featured-card .pub-meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pub-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pub-title-row > h3,
.pub-title-row .pub-item-title {
  flex: 1 1 320px;
  min-width: 0;
}

.pub-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pub-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 160px;
}

.pub-button.resource {
  background: transparent;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.pub-authors {
  color: var(--muted);
  font-size: 0.85rem;
}

.pub-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pub-year {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.eq-note {
  font-size: 0.75rem;
  color: var(--muted);
}

.eq-footnote {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

.topic-groups {
  display: grid;
  gap: 28px;
}

.topic-group {
  display: grid;
  gap: 12px;
}

.topic-group h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.pub-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

.pub-item {
  display: grid;
  gap: 4px;
}

.pub-item-title {
  color: var(--ink);
  font-weight: 600;
}

.pub-links {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pub-links a {
  color: var(--accent);
  font-weight: 600;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.contact-card-alt {
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.contact-list {
  align-content: start;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 20px 24px 28px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 110px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
  }

  .nav-links a {
    justify-content: center;
    height: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .two-col-section {
    grid-template-columns: 1fr;
  }

  .page-hero-text .lead {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 80px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-toggle {
    font-size: 0.65rem;
  }
}
