:root {
  --bg: #04070d;
  --bg-elevated: rgba(10, 18, 31, 0.84);
  --panel: rgba(11, 20, 34, 0.82);
  --panel-strong: rgba(14, 25, 42, 0.92);
  --line: rgba(152, 196, 255, 0.16);
  --line-strong: rgba(152, 196, 255, 0.28);
  --text: #eef4ff;
  --muted: #9bacc4;
  --accent: #8ef1b4;
  --accent-2: #77d7ff;
  --accent-3: #ffb76b;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(142, 241, 180, 0.14), transparent 32%),
    radial-gradient(circle at 82% 14%, rgba(119, 215, 255, 0.14), transparent 28%),
    radial-gradient(circle at 72% 86%, rgba(255, 183, 107, 0.08), transparent 28%),
    linear-gradient(180deg, #03060a 0%, #08111d 45%, #05080f 100%);
  padding: 1rem 1rem 2.4rem;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: 5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 200;
  padding: 0.75rem 1.2rem;
  background: var(--accent);
  color: #041008;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  overflow: visible;
}

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

.aurora,
.grid-lines,
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
}

.aurora {
  inset: -24%;
  background:
    radial-gradient(50vw 40vh at 20% 18%, rgba(142, 241, 180, 0.28), transparent 55%),
    radial-gradient(45vw 38vh at 82% 18%, rgba(119, 215, 255, 0.28), transparent 55%),
    radial-gradient(40vw 35vh at 56% 74%, rgba(255, 183, 107, 0.18), transparent 58%),
    radial-gradient(30vw 30vh at 50% 50%, rgba(142, 241, 180, 0.08), transparent 60%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}

.grid-lines {
  background-image:
    linear-gradient(rgba(130, 170, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 170, 230, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.noise {
  opacity: 0.1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

.hero-shell {
  position: relative;
  width: min(1400px, calc(100vw - 2rem));
  margin: 0 auto;
}

main,
footer {
  width: min(1400px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1400px, calc(100vw - 2rem));
  margin: 0 auto 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 12, 21, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #061009;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--text);
  background: rgba(152, 196, 255, 0.08);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
}

.hero-copy {
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-media-panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-caption {
  margin: 0.5rem 0 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4em;
  transition: opacity 0.4s ease;
}

.hero-slide-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.hero-slide-controls.single-slide {
  display: none;
}

.hero-highlights-bar {
  padding: 1.2rem 0 0;
}

.hero-highlights-bar .hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 1.5rem 0;
}

.hero-slide-prev,
.hero-slide-next,
.hero-slide-pause {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-slide-prev:hover,
.hero-slide-next:hover,
.hero-slide-pause:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-slide-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}

.hero-slide-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s, transform 0.2s;
}

.hero-slide-dot.active::before {
  background: var(--accent);
  transform: scale(1.3);
}

.hero-slide-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-copy,
.hero-art,
.panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(16, 28, 47, 0.72), rgba(10, 18, 30, 0.85)),
    rgba(10, 18, 30, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  border-color: rgba(142, 241, 180, 0.12);
  box-shadow: var(--shadow), 0 0 80px rgba(142, 241, 180, 0.04);
}

.hero-art {
  border-color: rgba(119, 215, 255, 0.12);
  box-shadow: var(--shadow), 0 0 60px rgba(119, 215, 255, 0.03);
}

.hero-copy,
.hero-art {
  border-radius: var(--radius-lg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.eyebrow,
.section-label,
.track-kicker,
.stat-kicker,
.article-type,
.work-type {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero-copy h1,
.section-head h2,
.mini-card h3,
.track-panel h3,
.article-card h3,
.work-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.h1-ai {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(142, 241, 180, 0.4), 0 0 120px rgba(142, 241, 180, 0.15);
}

.h1-auto {
  color: var(--accent-2);
  text-shadow: 0 0 60px rgba(119, 215, 255, 0.4), 0 0 120px rgba(119, 215, 255, 0.15);
}

.h1-agri {
  color: var(--accent-3);
  text-shadow: 0 0 60px rgba(255, 183, 107, 0.4), 0 0 120px rgba(255, 183, 107, 0.15);
}

.hero-lead {
  max-width: 32ch;
  margin: 1.35rem 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--text);
}

.hero-tagline {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-highlights {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  padding: 0;
  max-width: 42rem;
  list-style: none;
}

.hero-highlights li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(152, 196, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(8, 15, 27, 0.54);
  line-height: 1.55;
}

.hero-highlights li::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.38rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(119, 215, 255, 0.24);
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  margin-top: 1rem;
}

.hero-quick-links a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 180ms ease, transform 180ms ease;
}

.hero-quick-links a:hover,
.hero-quick-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.microcopy,
.section-head p,
.mini-card p,
.track-copy,
.article-card p,
.work-card p,
footer,
.nav-links a,
.track-list {
  color: var(--muted);
}

.microcopy {
  margin-top: 1rem;
  max-width: 32ch;
}

.cta-row,
.contact-actions,
.resume-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #041008;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 18px 30px rgba(142, 241, 180, 0.16);
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow: 0 20px 40px rgba(142, 241, 180, 0.28);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(11, 20, 34, 0.68);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(152, 196, 255, 0.45);
  background: rgba(13, 25, 40, 0.85);
}

.search-row {
  margin: 1.2rem 0;
}

.search-help {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.search-input {
  width: min(420px, 100%);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 12, 22, 0.9);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.search-input::placeholder {
  color: rgba(174, 191, 209, 0.7);
}

.search-empty {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: none;
}

.search-empty:not([hidden]) {
  display: block;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.command-palette[hidden] {
  display: none;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 14, 0.78);
}

.command-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 14, 24, 0.96);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.command-shell {
  position: relative;
}

.command-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 20, 32, 0.92);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.command-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  max-height: 42vh;
  overflow: auto;
}

.command-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  margin-bottom: 0.55rem;
  padding: 0.6rem 0.7rem;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
  font-size: 0.96rem;
  font-family: inherit;
}

.command-item:last-child {
  margin-bottom: 0;
}

.command-item:hover,
.command-item.command-item-active {
  background: rgba(129, 212, 255, 0.08);
  border-color: rgba(129, 212, 255, 0.28);
  color: #f9feff;
}

.command-empty {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-art {
  display: grid;
  gap: 1rem;
  align-content: center;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.pillars-strip {
  width: min(1400px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0.8rem 0;
}

.pillars-track {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: min(1400px, calc(100vw - 2rem));
  margin: 0 auto;
  perspective: 800px;
}

.pillar {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  transform-origin: left center;
  opacity: 0;
  transform: translateX(60px) rotateY(12deg);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 1s cubic-bezier(0.33, 1, 0.68, 1);
}

.pillar.slid {
  opacity: 1;
  transform: translateX(0) rotateY(0);
  clip-path: inset(0 0 0 0);
}

.pillar-1 {
  color: var(--accent);
  transition-delay: 0s;
  text-shadow: 0 0 40px rgba(142, 241, 180, 0.3);
}

.pillar-2 {
  color: var(--accent-2);
  transition-delay: 0.25s;
  text-shadow: 0 0 40px rgba(119, 215, 255, 0.3);
}

.pillar-3 {
  color: var(--accent-3);
  transition-delay: 0.5s;
  text-shadow: 0 0 40px rgba(255, 183, 107, 0.3);
}

.featured-card {
  position: relative;
  border: 1px solid rgba(142, 241, 180, 0.25);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(17, 30, 49, 0.9), rgba(10, 18, 30, 0.95));
  padding: 1.4rem;
  box-shadow: 0 0 30px rgba(142, 241, 180, 0.06), inset 0 1px 0 rgba(142, 241, 180, 0.1);
  backdrop-filter: blur(12px);
}

.featured-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.featured-card > p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 17, 28, 0.72);
  color: var(--accent-2);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.expand-toggle:hover,
.expand-toggle:focus-visible {
  border-color: rgba(119, 215, 255, 0.42);
  background: rgba(13, 25, 40, 0.95);
  color: var(--text);
}

.expand-label-less {
  display: none;
}

.expand-toggle[aria-expanded="true"] .expand-label-more {
  display: none;
}

.expand-toggle[aria-expanded="true"] .expand-label-less {
  display: inline;
}

.expand-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  margin-top: 0.8rem;
}

.expand-body:not([hidden]) {
  grid-template-rows: 1fr;
}

.expand-body > ul {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.expand-body ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  font-size: 0.9rem;
}

.expand-body li + li {
  margin-top: 0.35rem;
}

.stat-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card,
.mini-card,
.article-card,
.work-card,
.track-panel,
.start-card {
  border: 1px solid rgba(152, 196, 255, 0.2);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(17, 30, 49, 0.88), rgba(10, 18, 30, 0.95));
  backdrop-filter: blur(8px);
}

.stat-card {
  padding: 1.4rem;
  border-color: rgba(119, 215, 255, 0.2);
  border-top: 3px solid var(--accent-2);
  box-shadow: 0 0 20px rgba(119, 215, 255, 0.04), inset 0 1px 0 rgba(119, 215, 255, 0.08);
}

.hero-cards .stat-card:nth-child(3) {
  border-top-color: var(--accent-3);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
  font-family: "Space Grotesk", sans-serif;
}

.stat-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

main {
  display: grid;
  gap: 2.4rem;
  margin-top: 0.6rem;
}

.panel {
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: var(--radius-md);
}

/* Break the monotony — some sections float on the background */
#about,
#writing {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#start-here {
  border: 1px solid rgba(119, 215, 255, 0.15);
  border-top: 3px solid var(--accent-2);
  background:
    linear-gradient(180deg, rgba(119, 215, 255, 0.03) 0%, transparent 40%),
    linear-gradient(180deg, rgba(16, 28, 47, 0.82), rgba(10, 18, 30, 0.92)),
    rgba(10, 18, 30, 0.9);
  box-shadow: 0 0 60px rgba(119, 215, 255, 0.04);
}

/* Resume section — warm accent to distinguish from About */
#resume {
  border: 1px solid rgba(255, 183, 107, 0.15);
  border-top: 3px solid var(--accent-3);
  background:
    linear-gradient(180deg, rgba(255, 183, 107, 0.03) 0%, transparent 40%),
    linear-gradient(180deg, rgba(16, 28, 47, 0.82), rgba(10, 18, 30, 0.92)),
    rgba(10, 18, 30, 0.9);
  box-shadow: 0 0 60px rgba(255, 183, 107, 0.04);
}

/* Section transition markers — subtle gradient dividers */
.panel + .panel::before {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border-radius: 1px;
  opacity: 0;
}

/* Visible only on transparent sections that need a visual anchor */
#about::before,
#writing::before {
  opacity: 1;
}

#contact {
  border: 1px solid rgba(142, 241, 180, 0.15);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(142, 241, 180, 0.1), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(119, 215, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 183, 107, 0.05), transparent 60%),
    linear-gradient(135deg, rgba(16, 28, 47, 0.7), rgba(10, 18, 30, 0.85));
  box-shadow: 0 0 80px rgba(142, 241, 180, 0.06), 0 0 40px rgba(119, 215, 255, 0.04);
  text-align: center;
}

#contact .contact-actions {
  justify-content: center;
}

#contact .section-head {
  margin-left: auto;
  margin-right: auto;
}

/* Capability cards — each has its own accent glow */
.capability-grid .mini-card {
  border-left: 3px solid var(--accent);
  border-color: rgba(142, 241, 180, 0.2);
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(142, 241, 180, 0.04), rgba(10, 18, 30, 0.92));
  box-shadow: 0 0 24px rgba(142, 241, 180, 0.04);
  transition: transform 180ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.capability-grid .mini-card:nth-child(2) {
  border-left-color: var(--accent-2);
  border-color: rgba(119, 215, 255, 0.2);
  border-left: 3px solid var(--accent-2);
  background: linear-gradient(135deg, rgba(119, 215, 255, 0.04), rgba(10, 18, 30, 0.92));
  box-shadow: 0 0 24px rgba(119, 215, 255, 0.04);
}

.capability-grid .mini-card:nth-child(3) {
  border-left-color: var(--accent-3);
  border-color: rgba(255, 183, 107, 0.2);
  border-left: 3px solid var(--accent-3);
  background: linear-gradient(135deg, rgba(255, 183, 107, 0.04), rgba(10, 18, 30, 0.92));
  box-shadow: 0 0 24px rgba(255, 183, 107, 0.04);
}

.capability-grid .mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(142, 241, 180, 0.12);
  border-color: rgba(142, 241, 180, 0.35);
}

.capability-grid .mini-card:nth-child(2):hover {
  box-shadow: 0 12px 32px rgba(119, 215, 255, 0.12);
  border-color: rgba(119, 215, 255, 0.35);
}

.capability-grid .mini-card:nth-child(3):hover {
  box-shadow: 0 12px 32px rgba(255, 183, 107, 0.12);
  border-color: rgba(255, 183, 107, 0.35);
}

.start-grid,
.featured-writing-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.start-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.start-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 280ms ease;
}

.start-card:nth-child(1) {
  border-top: 3px solid var(--accent);
}

.start-card:nth-child(2) {
  border-top: 3px solid var(--accent-2);
}

.start-card:nth-child(3) {
  border-top: 3px solid var(--accent-3);
}

.start-card:hover {
  transform: translateY(-3px);
  border-color: rgba(152, 196, 255, 0.35);
  box-shadow: 0 12px 40px rgba(119, 215, 255, 0.08);
}

.start-card h3,
.field-notes-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.start-card p,
.field-notes-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.start-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.start-list li + li {
  margin-top: 0.35rem;
}

/* Tracks section — glowing accent border */
#tracks {
  border: 1px solid rgba(142, 241, 180, 0.15);
  border-top: 3px solid var(--accent);
  background:
    linear-gradient(180deg, rgba(142, 241, 180, 0.03) 0%, transparent 40%),
    linear-gradient(180deg, rgba(16, 28, 47, 0.82), rgba(10, 18, 30, 0.92)),
    rgba(10, 18, 30, 0.9);
  box-shadow: 0 0 60px rgba(142, 241, 180, 0.04);
}

/* Papers section — blue accent glow */
#papers-patches {
  border: 1px solid rgba(119, 215, 255, 0.15);
  border-top: 3px solid var(--accent-2);
  background:
    linear-gradient(180deg, rgba(119, 215, 255, 0.03) 0%, transparent 40%),
    linear-gradient(180deg, rgba(16, 28, 47, 0.82), rgba(10, 18, 30, 0.92)),
    rgba(10, 18, 30, 0.9);
  box-shadow: 0 0 60px rgba(119, 215, 255, 0.04);
}

.article-shell {
  margin-top: 1.2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}

.article-body p {
  line-height: 1.78;
  font-size: 1.05rem;
  margin: 1.4rem 0;
}

.article-body ul {
  margin: 1rem 0;
  padding-left: 1.4rem;
  line-height: 1.7;
}

.article-body ol {
  margin: 1rem 0;
  padding-left: 1.4rem;
  line-height: 1.7;
}

.article-body li + li {
  margin-top: 0.45rem;
}

/* ── Article headings — breathing room + hierarchy ─────────────────────── */
.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 3.5rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

/* ── Article section dividers ──────────────────────────────────────────── */
.article-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 3rem 0;
}

/* ── Article inline images — consistent treatment ──────────────────────── */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ── Article strong text ───────────────────────────────────────────────── */
.article-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Viral claim — social post screenshot style ───────────────────────────── */
.viral-claim {
  background: #16202c;
  border: 1px solid rgba(255 255 255 / 0.08);
  border-radius: 12px;
  padding: 0;
  margin: 2rem auto;
  max-width: 520px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0 0 0 / 0.4);
}

.viral-claim-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem 0;
}

.viral-claim-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  flex-shrink: 0;
}

.viral-claim-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.viral-claim-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #e1e8f0;
}

.viral-claim-handle {
  font-size: 0.72rem;
  color: #6b7a8d;
}

.viral-claim-label {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e05a00;
  background: rgba(224, 90, 0, 0.15);
  border: 1px solid rgba(224, 90, 0, 0.3);
  border-radius: 3px;
  padding: 0.15em 0.5em;
  margin-left: auto;
}

.viral-claim p {
  margin: 0;
  padding: 0.7rem 1rem 0.9rem;
  line-height: 1.55;
  color: #d1d9e3;
  font-size: 0.88rem;
}

.viral-claim-footer {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid rgba(255 255 255 / 0.06);
  color: #5b6a7d;
  font-size: 0.7rem;
}

.viral-claim-footer span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Article hero image ───────────────────────────────────────────────────── */
.article-hero {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 2rem 0 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Article action buttons ───────────────────────────────────────────────── */
.article-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.fact-check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.fact-check-list li {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.98rem;
}

.fact-check-list li:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.fact-check-list li:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.fc-true  { color: #3fbf6f; font-weight: 700; margin-right: 0.45rem; font-size: 1.05em; }
.fc-false { color: #e05a00; font-weight: 700; margin-right: 0.45rem; font-size: 1.05em; }
.fc-mixed { color: #e0b800; font-weight: 700; margin-right: 0.45rem; font-size: 1.05em; }

.article-meta {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

/* Article title in the header */
.article-shell .section-head h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label above article title */
.article-shell .section-label {
  margin-bottom: 0.6rem;
}

.article-related {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.article-related ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.article-related li + li {
  margin-top: 0.4rem;
}

.article-related a {
  color: var(--accent-2);
  text-decoration: none;
}

.article-related a:hover,
.article-related a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.article-actions {
  margin-top: 1.1rem;
}

.section-head {
  max-width: 72ch;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-head p {
  margin: 0.95rem 0 0;
  line-height: 1.7;
}

.capability-grid,
.article-grid,
.work-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.article-card,
.work-card,
.resume-card {
  padding: 1.1rem;
}

.article-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

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

.article-card:hover {
  border-color: rgba(119, 215, 255, 0.35);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(21, 38, 64, 0.85), rgba(13, 24, 42, 0.9));
  box-shadow: 0 12px 40px rgba(119, 215, 255, 0.1);
}

/* Colored top accents on paper/article cards */
.work-grid .article-card {
  border-top: 3px solid var(--accent);
}

.work-grid .article-card:nth-child(2) {
  border-top-color: var(--accent-2);
}

.work-grid .article-card:nth-child(3) {
  border-top-color: var(--accent-3);
}

.work-grid .article-card:hover {
  box-shadow: 0 12px 40px rgba(142, 241, 180, 0.08);
}

.work-grid .article-card:nth-child(2):hover {
  box-shadow: 0 12px 40px rgba(119, 215, 255, 0.08);
}

.work-grid .article-card:nth-child(3):hover {
  box-shadow: 0 12px 40px rgba(255, 183, 107, 0.08);
}

.article-card p {
  margin-top: 0.8rem;
  line-height: 1.65;
}

.article-card.draft {
  border-left: 3px dashed var(--accent-3);
  opacity: 0.75;
}

.content-empty {
  margin: 0;
  color: var(--muted);
}

.card-index {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--accent-3);
  font-family: "Space Grotesk", sans-serif;
}

.mini-card h3,
.article-card h3,
.work-card h3,
.resume-card h3 {
  font-size: 1.15rem;
}

.mini-card p,
.article-card p,
.work-card p,
.resume-card p {
  margin: 0.8rem 0 0;
  line-height: 1.65;
}

.track-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.track-tab {
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 17, 28, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 280ms ease;
}

.track-tab:hover,
.track-tab:focus-visible {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(152, 196, 255, 0.35);
  background: rgba(13, 25, 40, 0.95);
}

.track-tab.active {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--accent);
  background: rgba(142, 241, 180, 0.08);
  box-shadow: 0 0 16px rgba(142, 241, 180, 0.1);
}

.track-console {
  margin-top: 1rem;
}

.track-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 1.1rem;
  padding: 1.4rem;
}

.track-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.track-panel[hidden] {
  display: none;
}

.track-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.8;
}

.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-writing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-writing-card {
  border-top: 3px solid var(--accent);
}

.featured-writing-card:nth-child(2) {
  border-top-color: var(--accent-2);
}

.featured-writing-card:nth-child(3) {
  border-top-color: var(--accent-3);
}

.field-notes-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  align-items: end;
  margin-top: 1.7rem;
}

.field-notes-head .section-label {
  margin-bottom: 0.45rem;
}

.field-notes-head p {
  max-width: 32rem;
  font-size: 0.95rem;
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#contact .section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

footer {
  margin-top: 2.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: #061009;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 180ms ease;
}

.footer-social a:hover {
  color: var(--accent-2);
}

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(152, 196, 255, 0.08);
  color: rgba(155, 172, 196, 0.5);
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.show {
  animation: revealIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-1.2%, -1.2%, 0);
  }
  to {
    transform: translate3d(1.2%, 1.4%, 0);
  }
}

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-media-panel {
    min-height: 280px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero {
    min-height: auto;
  }

  .hero-slide-controls {
    bottom: 0.8rem;
  }

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

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

  .capability-grid,
  .work-grid,
  .article-grid,
  .stat-stack,
  .track-panel,
  .start-grid,
  .featured-writing-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  body {
    padding-inline: 0.75rem;
  }

  .hero-shell,
  main,
  footer {
    width: min(1400px, calc(100vw - 1.5rem));
  }

  .site-nav {
    border-radius: 22px;
    align-items: flex-start;
    padding: 0.9rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    border-top: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    border-bottom: none;
    transition: background 180ms ease, color 180ms ease;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links a.active {
    background: rgba(142, 241, 180, 0.06);
    border-bottom-color: transparent;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-links,
  .footer-social {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .hero {
    border-radius: 18px;
  }

  .hero-copy,
  .hero-art,
  .panel {
    border-radius: 18px;
  }

  .section-head h2 {
    line-height: 1.18;
  }

  .track-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.4rem;
    margin-inline: -0.4rem;
    padding-inline: 0.4rem;
    mask-image: linear-gradient(90deg, transparent, #000 0.4rem, #000 calc(100% - 2rem), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 0.4rem, #000 calc(100% - 2rem), transparent);
  }

  .track-tabs::-webkit-scrollbar {
    display: none;
  }

  .track-tab {
    flex-shrink: 0;
    min-height: 44px;
  }

  .cta-row,
  .contact-actions,
  .resume-cta {
    flex-direction: column;
  }

  .hero-highlights li {
    padding: 0.75rem 0.85rem;
  }

  .hero-quick-links {
    gap: 0.75rem 0.95rem;
  }

  .cta-row .button,
  .contact-actions .button,
  .resume-cta .button {
    width: 100%;
    text-align: center;
  }

  /* Article mobile polish */
  .article-shell {
    padding: 0 0.75rem;
  }

  .article-body h2 {
    margin-top: 2.5rem;
  }

  .article-body h3 {
    margin-top: 1.8rem;
  }

  .article-body hr {
    margin: 2rem 0;
  }

  .article-hero {
    border-radius: var(--radius-sm);
    margin: 1.5rem 0 2rem;
  }

  .fact-check-list li {
    padding: 0.75rem 0.8rem;
    font-size: 0.92rem;
  }

  .article-actions {
    flex-direction: column;
  }

  .article-actions .button {
    width: 100%;
    text-align: center;
  }

  .field-notes-head {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .aurora,
  .pillar,
  .show,
  .button,
  .track-tab {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .pillar {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

@media print {
  * {
    text-shadow: none !important;
    box-shadow: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body {
    font-family: "Arial", "Helvetica", sans-serif;
  }

  .aurora,
  .grid-lines,
  .noise,
  .track-tabs,
  .cta-row,
  .contact-actions,
  .resume-cta,
  .expand-toggle,
  .command-palette,
  .command-shell,
  .command-list,
  .nav-toggle {
    display: none !important;
  }

  .site-nav,
  footer {
    border: none !important;
    background: transparent !important;
  }

  main,
  footer {
    width: 100% !important;
  }

  .hero-copy,
  .hero-art,
  .panel,
  .featured-card,
  .stat-card,
  .mini-card,
  .article-card,
  .work-card,
  .track-panel,
  .resume-card {
    border: 1px solid #bbb !important;
    background: #fff !important;
    color: #111 !important;
  }

  .mini-card p,
  .article-card p,
  .work-card p,
  .resume-card p,
  .section-head p,
  .track-copy,
  .track-list,
  .expand-body ul {
    color: #111 !important;
  }

  .section-label,
  .track-kicker,
  .stat-kicker,
  .article-type,
  .work-type,
  .card-index {
    color: #444 !important;
  }

  .track-panel,
  .track-panel h3,
  .track-list li {
    color: #111 !important;
  }

  .track-panel[hidden] {
    display: grid !important;
  }

  .track-list,
  .track-list li {
    margin-left: 1.2rem;
  }

  .hero-copy h1,
  .h1-ai,
  .h1-auto,
  .h1-agri,
  .section-head h2,
  #contact .section-head h2,
  .mini-card h3,
  .track-panel h3,
  .article-card h3,
  .work-card h3,
  footer {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-shadow: none !important;
  }

  a::after {
    content: " (" attr(href) ")"!important;
    font-size: 0.85em;
    color: #444 !important;
  }
}
