/* styles for Shiven's website */

:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #e9edf3;
  --border: #d5dce7;
  --text: #111d30;
  --text-2: #546072;
  --orange: #a8481a;
  --orange-2: #e0732f;
  --orange-bg: #fbe7da;
  --blue: #3e6896;
  --bar-bg: #e1e6ee;
  --purple: #6a43a6;
  --purple-bg: #efe8f8;
  --petal: #ffffff;
  --btn: #13243d;
  --btn-text: #ffffff;
  --btn-hover: #a8481a;
  --header: rgba(255, 255, 255, 0.92);
  --shadow: 0 10px 30px rgba(17, 29, 48, 0.08);
  --shadow-big: 0 22px 50px rgba(17, 29, 48, 0.16);

  --navy: #0c1525;
  --navy-2: #172b4b;
  --panel-1: #12233d;
  --panel-2: #1b3459;
  --scoreboard: #0b1628;
  --line-dark: rgba(255, 255, 255, 0.14);
  --court-line: rgba(255, 255, 255, 0.075);
  --glass: rgba(255, 255, 255, 0.06);
  --light: #f2f5f9;
  --light-2: rgba(229, 236, 245, 0.76);
  --peach: #f4a067;
  --peach-2: #f8bb8f;
  --peach-line: rgba(244, 160, 103, 0.5);
  --brown: #1a0f08;
  --glow-1: rgba(224, 115, 47, 0.3);
  --glow-2: rgba(62, 104, 150, 0.35);
  --frame-1: rgba(244, 160, 103, 0.38);
  --frame-2: rgba(255, 255, 255, 0.04);
  --frame-line: rgba(244, 160, 103, 0.22);
  --frame-shadow: rgba(0, 0, 0, 0.45);
  --shine: rgba(255, 255, 255, 0.07);
  --net-node: #cdd8e6;
  --net-spoke: rgba(244, 160, 103, 0.62);
  --net-link: rgba(229, 236, 245, 0.22);
  --net-halo: rgba(244, 160, 103, 0.22);

  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", "Segoe UI", Arial, sans-serif;
  --font-code: "IBM Plex Mono", Consolas, monospace;
  --font-math: "Cambria Math", Georgia, serif;

  --max: 1180px;
  --side: max(16px, 5vw);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111c;
    --surface: #0f1827;
    --surface-2: #0c1422;
    --border: #233149;
    --text: #e6ebf2;
    --text-2: #9eacbf;
    --orange: #f39a5f;
    --orange-2: #ec8344;
    --orange-bg: #2c1d14;
    --blue: #8db2e0;
    --bar-bg: #1c283a;
    --purple: #b294ea;
    --purple-bg: #241b36;
    --btn: #ec8344;
    --btn-text: #111a28;
    --btn-hover: #f6ab78;
    --header: rgba(12, 20, 33, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-big: 0 22px 50px rgba(0, 0, 0, 0.5);
    --panel-1: #13243f;
    --panel-2: #1c3358;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a111c;
  --surface: #0f1827;
  --surface-2: #0c1422;
  --border: #233149;
  --text: #e6ebf2;
  --text-2: #9eacbf;
  --orange: #f39a5f;
  --orange-2: #ec8344;
  --orange-bg: #2c1d14;
  --blue: #8db2e0;
  --bar-bg: #1c283a;
  --purple: #b294ea;
  --purple-bg: #241b36;
  --btn: #ec8344;
  --btn-text: #111a28;
  --btn-hover: #f6ab78;
  --header: rgba(12, 20, 33, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-big: 0 22px 50px rgba(0, 0, 0, 0.5);
  --panel-1: #13243f;
  --panel-2: #1c3358;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--font-title);
}

h1 {
  font-size: clamp(3.4rem, 2rem + 6vw, 6.6rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.2rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

code {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-code);
  font-size: 0.8rem;
}

.wrap {
  max-width: calc(var(--max) + 2 * var(--side));
  margin: 0 auto;
  padding-inline: var(--side);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--btn);
  color: var(--btn-text);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.kicker {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-code);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.lead {
  max-width: 64ch;
  font-size: 1.12rem;
  color: var(--text-2);
}

.prose {
  max-width: 62ch;
  margin-bottom: 22px;
  font-size: 1.08rem;
  color: var(--text-2);
}

.gene {
  font-family: var(--font-code);
  font-size: 0.92em;
  font-style: italic;
}

.text-link {
  font-weight: 700;
  color: var(--orange);
}

.text-link:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 10px var(--side);
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange-2);
  color: var(--brown);
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  margin-left: auto;
  font-weight: 600;
  color: var(--text-2);
}

.nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--orange-2);
}

.nav-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--btn-hover);
}

.resume-page .nav-cta {
  margin-left: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

.menu-icon {
  position: relative;
}

.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section-surface {
  --card-bg: var(--bg);
  background: var(--surface);
}

.section-alt {
  --card-bg: var(--surface);
  background: var(--surface-2);
}

.section-panel {
  padding-block: clamp(24px, 3vw, 40px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.card {
  padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg, var(--surface));
  color: var(--text-2);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--peach);
  color: var(--brown);
}

.btn-primary:hover {
  background: var(--peach-2);
}

.btn-ghost {
  border-color: var(--peach-line);
  color: var(--peach);
}

.btn-ghost:hover {
  border-color: var(--peach);
  background: var(--glass);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange-bg);
  color: var(--orange);
  font-family: var(--font-code);
  font-size: 0.74rem;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 112px);
  color: var(--light);
  background:
    radial-gradient(60rem 32rem at 88% -12%, var(--glow-1), transparent 62%),
    radial-gradient(44rem 30rem at -8% 112%, var(--glow-2), transparent 62%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
}

.hero-court {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  stroke: var(--court-line);
  stroke-width: 1.5px;
}

.hero-court * {
  vector-effect: non-scaling-stroke;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--light);
}

.hero h1 span {
  display: block;
}

.hero .eyebrow {
  color: var(--peach);
}

.hero-role {
  margin-bottom: 18px;
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--peach);
}

.hero-text {
  max-width: 58ch;
  font-size: 1.08rem;
  color: var(--light-2);
}

.player-photo {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.player-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}

.photo-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-code);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-2);
}

.photo-stat .stat-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--peach);
}

.net {
  width: 100%;
  height: auto;
}

.net-link {
  fill: none;
  stroke: var(--net-link);
  stroke-width: 1.2;
}

.net-spoke {
  stroke: var(--net-spoke);
  stroke-linecap: round;
}

.net-node {
  fill: var(--net-node);
}

.net-label {
  fill: var(--light-2);
  font-family: var(--font-code);
  font-size: 12px;
  font-style: italic;
}

.net-hub {
  fill: var(--peach);
}

.net-hub-label {
  fill: var(--brown);
  font-family: var(--font-code);
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
}

.net-halo {
  fill: var(--net-halo);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.22);
    opacity: 0.45;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-side {
  display: grid;
  gap: 16px;
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.facts div:last-child {
  padding-bottom: 0;
  border: 0;
}

.facts dt {
  font-size: 0.92rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.now-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.now-list .kicker {
  margin-bottom: 2px;
}

.panel {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4.5vw, 64px);
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--panel-1), var(--panel-2));
  box-shadow: var(--shadow-big);
  color: var(--light);
}

.panel h2, .panel h3 {
  color: var(--light);
}

.panel .eyebrow {
  color: var(--peach);
}

.panel .lead {
  color: var(--light-2);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.panel-item {
  padding: 22px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--light-2);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 4px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--light);
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
}

.scoreboard div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: var(--scoreboard);
}

.scoreboard dd {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--peach);
}

.scoreboard dt {
  text-align: center;
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-2);
}

.scoreboard-note {
  margin: 0 0 28px;
  font-family: var(--font-code);
  font-size: 0.76rem;
  color: var(--light-2);
}

.interests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(56px, 7vw, 88px);
}

.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.project-text {
  color: var(--text-2);
}

.project-title {
  margin-bottom: 14px;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.08;
}

.btn-dark {
  margin-top: 22px;
  background: var(--btn);
  color: var(--btn-text);
}

.btn-dark:hover {
  background: var(--btn-hover);
}

.net-card {
  margin: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: radial-gradient(120% 80% at 50% 0%, var(--shine), transparent 60%), var(--navy);
}

.net-card figcaption {
  margin-top: 6px;
  text-align: center;
  font-family: var(--font-code);
  font-size: 0.74rem;
  color: var(--light-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 clamp(56px, 7vw, 88px);
  padding: 0;
  list-style: none;
}

.step h3 {
  font-size: 1.08rem;
}

.step p:last-child {
  font-size: 0.98rem;
}

.findings {
  display: grid;
  gap: clamp(56px, 7vw, 88px);
}

.finding {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.finding-wide {
  grid-template-columns: minmax(0, 1fr);
}

.finding-wide .finding-text {
  max-width: 74ch;
}

.finding-text {
  color: var(--text-2);
}

.finding-text h3 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
}

.fig {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.fig figcaption {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-2);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-2);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.swatch-tf, .swatch-tcga {
  background: var(--orange-2);
}

.swatch-gene, .swatch-metabric {
  background: var(--blue);
}

.swatch-cut {
  width: 0;
  height: 14px;
  border-left: 2px dashed var(--text-2);
  border-radius: 0;
}

.research-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 7vw, 88px);
}

.community-head {
  margin: clamp(40px, 5vw, 64px) 0 20px;
}

.music-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.music-photo {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.music-photo img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
  object-fit: cover;
}

.music-photo figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-code);
  font-size: 0.74rem;
  color: var(--text-2);
}

.game-video {
  margin: clamp(32px, 4vw, 48px) 0 0;
}

.game-video video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.game-video figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-code);
  font-size: 0.74rem;
  color: var(--light-2);
}

.table-scroll {
  overflow-x: auto;
}

.overlap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.overlap-table th, .overlap-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.overlap-table thead th {
  padding-top: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: bottom;
  color: var(--text-2);
}

.overlap-table tbody th {
  width: 58%;
  font-weight: 600;
}

.overlap-table tr > :first-child {
  padding-left: 0;
}

.overlap-table tr > :last-child {
  padding-right: 0;
  text-align: right;
}

.overlap-table tbody tr:last-child > * {
  border-bottom: 0;
}

.vs {
  font-weight: 400;
  color: var(--text-2);
}

.meter {
  width: 100%;
  height: 8px;
  margin-top: 8px;
}

.meter-track, .bar-track {
  fill: var(--bar-bg);
}

.meter-fill, .bar-fill {
  fill: var(--blue);
}

.num {
  font-family: var(--font-code);
  white-space: nowrap;
}

.num .of {
  font-size: 0.85em;
  color: var(--text-2);
}

.num-big {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--orange);
}

.num-big.is-zero {
  color: var(--text-2);
}

.hubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}

.hub-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-list li {
  display: grid;
  grid-template-columns: 5.6em minmax(0, 1fr) 2.8em;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.is-tf .gene {
  font-weight: 600;
  color: var(--orange);
}

.is-tf .bar-fill {
  fill: var(--orange-2);
}

.hub-bar {
  width: 100%;
  height: 12px;
  overflow: visible;
}

.bar-cut {
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-dasharray: 3 2;
}

.hub-val {
  text-align: right;
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-2);
}

.forest-row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr) 6.8em;
  grid-template-areas: "name plot vals";
  align-items: center;
  column-gap: 16px;
}

.forest-name {
  grid-area: name;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.forest-name span {
  display: block;
  font-family: var(--font-code);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-2);
}

.forest-plot {
  grid-area: plot;
  width: 100%;
  height: 58px;
  overflow: visible;
}

.forest-vals {
  grid-area: vals;
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-code);
  font-size: 0.86rem;
  color: var(--text-2);
}

.forest-vals .is-tcga {
  font-weight: 600;
  color: var(--orange);
}

.forest-vals .is-metabric {
  font-weight: 600;
  color: var(--blue);
}

.forest-grid {
  stroke: var(--border);
}

.forest-grid.is-one {
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

.ci {
  stroke-width: 2;
}

.ci.is-tcga {
  stroke: var(--orange-2);
}

.ci.is-metabric {
  stroke: var(--blue);
}

.dot {
  stroke: var(--surface);
  stroke-width: 2;
}

.dot.is-tcga {
  fill: var(--orange-2);
}

.dot.is-metabric {
  fill: var(--blue);
}

.forest-axis {
  grid-area: plot;
  width: 100%;
  height: 22px;
  margin-top: 4px;
  overflow: visible;
  fill: var(--text-2);
  font-family: var(--font-code);
  font-size: 12px;
}

.spark {
  margin: auto 0 0;
  padding-top: 18px;
}

.spark-svg {
  width: 100%;
  height: auto;
}

.spark-grid {
  stroke: var(--border);
}

.spark-area {
  fill: var(--orange-bg);
}

.spark-line {
  fill: none;
  stroke: var(--orange-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-dot {
  fill: var(--orange-2);
  stroke: var(--card-bg, var(--surface));
  stroke-width: 3;
}

.spark-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 10px;
  font-family: var(--font-code);
  font-size: 0.76rem;
  color: var(--text-2);
}

.spark-total {
  flex-basis: 100%;
  color: var(--text);
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: 16px;
}

.project-feature h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.punnett {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.punnett-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 12px 16px;
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.field select {
  min-width: 92px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-code);
  font-size: 1.05rem;
  font-style: italic;
  cursor: pointer;
}

.punnett-times {
  padding-bottom: 6px;
  font-size: 1.4rem;
  color: var(--text-2);
}

.punnett-grid {
  border-spacing: 6px;
  font-family: var(--font-code);
  font-style: italic;
}

.punnett-grid th {
  width: 44px;
  height: 40px;
  color: var(--orange);
}

.punnett-grid tbody td {
  width: 96px;
  height: 76px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 1.25rem;
}

.punnett-grid tbody td::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 6px;
  border-radius: 50%;
}

.punnett-grid td.is-purple {
  border-color: transparent;
  background: var(--purple-bg);
}

.punnett-grid td.is-purple::before {
  background: var(--purple);
}

.punnett-grid td.is-white::before {
  border: 2px solid var(--text-2);
  background: var(--petal);
}

.punnett-result {
  text-align: center;
}

.punnett-result p {
  margin: 0;
}

.punnett-result strong {
  margin-right: 10px;
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.alleles {
  font-family: var(--font-code);
  font-style: italic;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange-2);
  box-shadow: var(--shadow);
}

.spiral-wrap {
  margin-top: auto;
  padding-top: 18px;
}

.prime-spiral {
  margin: 0 auto;
  color: var(--orange-2);
  image-rendering: pixelated;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.talks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.talk {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr);
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.talk-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-family: var(--font-code);
  font-size: 0.86rem;
  color: var(--text-2);
}

.talk-type {
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.talk-type.is-upcoming {
  border-color: transparent;
  background: var(--orange-bg);
  color: var(--orange);
}

.talk-body {
  color: var(--text-2);
}

.talk-body h3 {
  margin-bottom: 4px;
}

.math-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.math-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.formula {
  margin: 4px 0 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  font-family: var(--font-math);
  font-size: 1.5rem;
  color: var(--text);
}

.calc {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.calc label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

.calc output {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--orange);
}

.calc input {
  width: 100%;
  accent-color: var(--orange-2);
  cursor: pointer;
}

.calc-result strong {
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

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

.contact-item p {
  margin: 0;
}

.contact-item .kicker {
  color: var(--text-2);
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.email-row a {
  font-size: 1.12rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.email-row a:hover {
  color: var(--orange);
}

.copy-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--orange-2);
}

.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.88rem;
  color: var(--text-2);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 40px;
}

.footer-note {
  max-width: 66ch;
}

.resume-wrap {
  padding-block: clamp(32px, 5vw, 64px);
}

.resume {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.resume-head {
  margin-bottom: 4px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--text);
}

.resume-head h1 {
  margin-bottom: 10px;
  font-size: clamp(2.6rem, 2rem + 3vw, 3.8rem);
}

.resume-sub {
  margin: 0;
  font-weight: 600;
  color: var(--text-2);
}

.resume-contact {
  margin: 4px 0 0;
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--orange);
}

.resume-section {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 8px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.resume-section:last-child {
  padding-bottom: 0;
  border: 0;
}

.resume-section h2 {
  margin: 2px 0 0;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.resume-body {
  color: var(--text-2);
}

.resume-body ul {
  margin: 0;
  padding-left: 1.1em;
}

.resume-body li + li {
  margin-top: 4px;
}

.resume-body li::marker {
  color: var(--orange-2);
}

.resume-body strong {
  color: var(--text);
}

.resume-body p {
  margin-bottom: 6px;
}

.resume-entry + .resume-entry {
  margin-top: 16px;
}

.resume-entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 16px;
}

.resume-entry-head h3 {
  margin: 0;
  font-size: 1.04rem;
}

.resume-date {
  margin: 0;
  font-family: var(--font-code);
  font-size: 0.8rem;
  white-space: nowrap;
}

.resume-role {
  margin: 2px 0 6px;
  font-style: italic;
}

@media (max-width: 1100px) {
  .nav {
    gap: 14px;
    font-size: 0.92rem;
  }
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px var(--side) 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 1.05rem;
  }

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

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a:hover {
    border-color: var(--border);
    color: var(--orange);
  }

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

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

  .panel-grid-3 > :last-child, .project-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .project-head, .finding, .project-feature, .math-grid, .music-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .music-photo {
    max-width: 420px;
  }

  .net-card {
    max-width: 440px;
  }

  .player-photo {
    margin: 0 auto;
  }

  .math-stack {
    grid-template-rows: none;
  }
}

@media (max-width: 760px) {
  .hubs, .research-notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    gap: 10px;
  }

  .nav-cta {
    padding: 8px 14px;
  }

  .menu-toggle {
    padding: 0 12px;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .button-row .btn {
    flex: 1 1 100%;
  }

  .steps, .interests, .panel-grid, .panel-grid-3, .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-grid-3 > :last-child, .project-grid > :last-child {
    grid-column: auto;
  }

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

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

  .talk-meta {
    flex-direction: row;
    align-items: center;
  }

  .forest-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name vals" "plot plot";
  }

  .forest-row + .forest-row {
    margin-top: 6px;
  }

  .resume-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .punnett-grid tbody td {
    width: 76px;
    height: 68px;
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .skip-link, .site-footer {
    display: none;
  }

  body, .resume {
    background: none;
  }

  .resume-wrap {
    padding: 0;
  }

  .resume {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
