:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040b14;
  --surface: rgba(13, 27, 45, 0.74);
  --surface-solid: #0d1b2d;
  --surface-raised: #12243a;
  --text: #f4f7fb;
  --muted: #9aabc0;
  --faint: #7e90a7;
  --line: rgba(157, 181, 207, 0.17);
  --line-strong: rgba(157, 181, 207, 0.32);
  --accent: #69e6c7;
  --accent-deep: #2eb99d;
  --accent-contrast: #04110e;
  --accent-soft: rgba(105, 230, 199, 0.11);
  --gold: #f4be5b;
  --gold-soft: rgba(244, 190, 91, 0.12);
  --nav: rgba(7, 17, 31, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1eb;
  --bg-deep: #e4e9e1;
  --surface: rgba(250, 252, 248, 0.78);
  --surface-solid: #f8faf6;
  --surface-raised: #ffffff;
  --text: #10231f;
  --muted: #526761;
  --faint: #4e625b;
  --line: rgba(16, 35, 31, 0.13);
  --line-strong: rgba(16, 35, 31, 0.25);
  --accent: #05705e;
  --accent-deep: #045f50;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(8, 124, 104, 0.09);
  --gold: #9a6500;
  --gold-soft: rgba(154, 101, 0, 0.1);
  --nav: rgba(238, 241, 235, 0.78);
  --shadow: 0 30px 80px rgba(29, 48, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(7, 45, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 45, 37, 0.035) 1px, transparent 1px);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

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

.shell {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

#algorithm-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.46;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: -14rem;
  right: -8rem;
  background: var(--accent);
}

.ambient-two {
  bottom: 10%;
  left: -20rem;
  background: #3375ff;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: var(--nav);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.wordmark-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-left: auto;
}

.nav-links a,
.footer-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.nav-links a::after,
.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 180ms ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.theme-toggle,
.nav-cv {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-toggle {
  padding: 0 0.9rem;
}

.theme-icon {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.nav-cv {
  padding: 0 1rem;
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-contrast);
}

.theme-toggle:hover,
.nav-cv:hover {
  transform: translateY(-2px);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.32fr) minmax(310px, 0.68fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: 9rem;
  padding-bottom: 6rem;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 0 22px var(--accent);
}

.hero h1 {
  max-width: 850px;
  margin: 1.35rem 0 1.7rem;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 7.7rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.91;
}

.hero h1 span {
  color: var(--muted);
  font-style: italic;
}

.hero-intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

.hero-intro strong {
  color: var(--text);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.3rem;
}

.button {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button span {
  font-size: 1rem;
  transition: transform 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover span {
  transform: translate(2px, 2px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 14px 35px rgba(105, 230, 199, 0.15);
}

.button-primary:hover {
  box-shadow: 0 18px 42px rgba(105, 230, 199, 0.24);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-raised);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-row a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  transition: color 160ms ease;
}

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

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: linear-gradient(155deg, var(--surface-raised), var(--surface));
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 2.8rem var(--accent-soft), 0 0 0 5.6rem rgba(105, 230, 199, 0.03);
}

.panel-topline,
.panel-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-topline {
  border-bottom: 1px solid var(--line);
}

.panel-footer {
  border-top: 1px solid var(--line);
}

.panel-pulse {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
}

.panel-pulse i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.achievement-stack {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.35rem 1.2rem;
  list-style: none;
}

.achievement-stack li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.achievement-stack li:last-child {
  border-bottom: 0;
}

.achievement-index {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.achievement-stack strong,
.achievement-stack small {
  display: block;
}

.achievement-stack strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.3;
}

.achievement-stack small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.achievement-symbol {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 3.5rem;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: var(--accent);
  animation: scan 2.4s ease-in-out infinite;
}

@keyframes scan {
  50%, 100% { transform: translateX(100%); }
}

.metric-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  min-height: 10rem;
  padding: 2.2rem 1.7rem;
  border-left: 1px solid var(--line);
}

.metric:last-child {
  border-right: 1px solid var(--line);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric span {
  max-width: 13rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.section {
  padding-block: clamp(6rem, 11vw, 10rem);
}

.section-ruled {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading h2 {
  margin: 1rem 0 1.3rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p:last-child,
.split-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 4rem;
}

.split-heading h2 {
  margin-bottom: 0;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 25rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.feature-card-wide {
  display: grid;
  min-height: 34rem;
  grid-column: 1 / -1;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.feature-meta {
  position: absolute;
  top: 1.3rem;
  right: 1.4rem;
  left: 1.4rem;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-content {
  position: relative;
  z-index: 2;
}

.feature-number {
  margin: 5rem 0 1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.feature-card > p:last-of-type,
.feature-content > p:last-child {
  max-width: 650px;
  margin: 1.3rem 0 0;
  color: var(--muted);
}

.feature-card:not(.feature-card-wide) h3 {
  max-width: 420px;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.feature-card-accent {
  background: linear-gradient(145deg, var(--gold-soft), var(--surface));
}

.text-link {
  position: absolute;
  bottom: 1.5rem;
  left: 1.4rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.medal-orbit {
  position: relative;
  width: min(27rem, 90%);
  aspect-ratio: 1;
  justify-self: center;
}

.orbit-ring,
.orbit-core,
.orbit-node {
  position: absolute;
  border-radius: 50%;
}

.orbit-ring {
  inset: 10%;
  border: 1px solid var(--line-strong);
}

.ring-two {
  inset: 26%;
  border-style: dashed;
  animation: spin 24s linear infinite;
}

.orbit-core {
  inset: 38%;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2.4rem;
  box-shadow: 0 0 70px var(--accent-soft);
}

.orbit-node {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--gold);
  box-shadow: 0 0 0 7px var(--gold-soft), 0 0 18px var(--gold);
}

.node-one { top: 8%; left: 48%; }
.node-two { right: 9%; bottom: 24%; }
.node-three { bottom: 18%; left: 13%; }

@keyframes spin { to { transform: rotate(360deg); } }

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3.95rem;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 7.7rem 1fr;
  gap: 2rem;
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding-top: 0.25rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.timeline-date i {
  display: block;
  width: 0.34rem;
  height: 0.34rem;
  margin: 0.28rem 0.1rem 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line-strong);
}

.date-separator {
  display: inline-flex;
}

.timeline-title {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.timeline-title p {
  margin: 0 0 0.15rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.timeline-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.timeline-title > span {
  color: var(--faint);
  font-size: 0.74rem;
  white-space: nowrap;
}

.timeline-body > p {
  max-width: 760px;
  margin: 1rem 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 34rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-raised);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.project-arrow {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  transition: transform 180ms ease, background 180ms ease;
}

.project-card:hover .project-arrow {
  transform: rotate(45deg);
  background: var(--accent-soft);
}

.project-visual {
  position: relative;
  display: flex;
  height: 15rem;
  align-items: center;
  justify-content: center;
  margin: 1.4rem 0 1.8rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--bg-deep);
}

.compiler-visual {
  gap: 0.7rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 1.7vw, 0.78rem);
}

.compiler-visual span {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background: var(--accent-soft);
}

.compiler-visual i {
  color: var(--faint);
  font-style: normal;
}

.voronoi-visual i {
  position: absolute;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  clip-path: polygon(50% 0%, 100% 30%, 86% 100%, 18% 88%, 0 28%);
}

.voronoi-visual i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.voronoi-visual i:nth-child(1) { top: -8%; left: -4%; width: 48%; height: 63%; }
.voronoi-visual i:nth-child(2) { top: -12%; left: 32%; width: 45%; height: 58%; }
.voronoi-visual i:nth-child(3) { top: 1%; right: -8%; width: 40%; height: 55%; }
.voronoi-visual i:nth-child(4) { bottom: -14%; left: -8%; width: 48%; height: 70%; }
.voronoi-visual i:nth-child(5) { bottom: -10%; left: 30%; width: 48%; height: 66%; }
.voronoi-visual i:nth-child(6) { right: -9%; bottom: -15%; width: 42%; height: 70%; }

.graph-visual i {
  position: absolute;
  z-index: 2;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-deep);
  box-shadow: 0 0 15px var(--accent-soft);
}

.graph-visual i:nth-child(1) { top: 20%; left: 20%; }
.graph-visual i:nth-child(2) { top: 18%; right: 22%; }
.graph-visual i:nth-child(3) { top: 48%; left: 45%; }
.graph-visual i:nth-child(4) { bottom: 18%; left: 24%; }
.graph-visual i:nth-child(5) { right: 20%; bottom: 20%; }

.graph-visual b {
  position: absolute;
  width: 40%;
  height: 1px;
  transform-origin: left;
  background: var(--line-strong);
}

.graph-visual b:nth-of-type(1) { top: 23%; left: 21%; transform: rotate(-2deg); }
.graph-visual b:nth-of-type(2) { top: 24%; left: 21%; width: 33%; transform: rotate(39deg); }
.graph-visual b:nth-of-type(3) { top: 50%; left: 46%; width: 34%; transform: rotate(41deg); }
.graph-visual b:nth-of-type(4) { top: 52%; left: 25%; width: 30%; transform: rotate(111deg); }

.network-visual {
  gap: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.network-visual span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 4.2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-solid);
}

.network-visual span:nth-of-type(2) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 30px var(--accent-soft);
}

.network-visual i {
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--accent));
}

.project-year {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.project-card > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-card {
  min-height: 24rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease;
}

.skill-card:hover {
  background: var(--surface);
}

.skill-card > span {
  display: inline-block;
  margin-bottom: 4rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.skill-card h3 {
  margin: 0 0 1.3rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.skill-card p {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.education-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.education-card,
.coursework-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.education-title {
  margin-top: 3.5rem;
}

.education-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.education-title span,
.education-card > p:nth-of-type(2) {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.gpa-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 3.5rem;
}

.gpa-line strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.gpa-line span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.education-card .cv-snapshot {
  margin-top: 1.5rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.coursework-card ul {
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
}

.coursework-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.coursework-card li:last-child {
  border-bottom: 0;
}

.coursework-card strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.awards-section {
  padding-bottom: 7rem;
}

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

.award-row {
  display: grid;
  grid-template-columns: 9rem 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 5.4rem;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background 180ms ease;
}

.award-row:hover {
  padding-inline: 1rem;
  background: var(--surface);
}

.award-row span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.award-row strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.award-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(7rem, 12vw, 11rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 50%, var(--accent-soft), transparent 34%),
    var(--bg-deep);
}

.contact-section::after {
  position: absolute;
  right: -8rem;
  bottom: -25rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 5rem rgba(105, 230, 199, 0.02), 0 0 0 10rem rgba(105, 230, 199, 0.015);
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-inner h2 {
  margin: 1.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.contact-inner > p:nth-of-type(2) {
  margin: 1.2rem 0 3rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  transition: color 160ms ease;
}

.contact-email:hover {
  color: var(--text);
}

.copy-email {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.copy-email:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-status {
  min-height: 1.4rem;
  margin-top: 1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.clipboard-helper {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

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

.footer-grid > div:first-child > p,
.footer-meta p {
  margin: 0.8rem 0 0;
  color: var(--faint);
  font-size: 0.7rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-content: start;
  gap: 0.8rem 2rem;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin-top: 0.25rem;
}

.js .reveal {
  transform: translateY(24px);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.21, 0.8, 0.31, 1), opacity 700ms ease;
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1020px) {
  .site-header {
    border-color: var(--line);
    background: var(--nav);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .nav { flex-wrap: wrap; gap: 0.45rem 1rem; padding: 0.65rem 0 0.5rem; }
  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    flex: 1 0 100%;
    gap: 1.5rem;
    margin-left: 0;
    padding: 0 0.1rem 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; align-content: center; }
  .hero-copy { padding-top: 1rem; }
  .hero-panel { width: min(100%, 640px); }
  .scroll-cue { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 1px solid var(--line); }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .feature-card-wide { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card { min-height: 19rem; }
  .skill-card > span { margin-bottom: 2.5rem; }
  .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 1180px); }
  .nav { min-height: 68px; }
  .site-header .wordmark-name { display: none; }
  .theme-label { display: none; }
  .theme-toggle { width: 2.45rem; padding: 0; }
  .hero { min-height: auto; padding-top: 9.5rem; padding-bottom: 5rem; gap: 3rem; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-panel { border-radius: 0.9rem; }
  .section { padding-block: 5.5rem; }
  .split-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .bento-grid, .project-grid { grid-template-columns: 1fr; }
  .feature-card-wide { min-height: 43rem; grid-template-columns: 1fr; }
  .medal-orbit { width: min(21rem, 90%); align-self: start; margin-top: 3rem; }
  .feature-card { min-height: 23rem; }
  .project-card { min-height: 31rem; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.8rem; }
  .timeline-date { min-height: 1.4rem; align-items: center; }
  .timeline-date i { width: 1.2rem; height: 1px; margin: 0; border-radius: 0; box-shadow: none; }
  .timeline-title { display: block; }
  .timeline-title > span { display: block; margin-top: 0.6rem; }
  .award-row { grid-template-columns: 6rem 1fr; gap: 0.4rem 1rem; padding-block: 1rem; }
  .award-row p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 520px) {
  .nav-cv { padding: 0 0.8rem; }
  .nav-links { gap: 0.85rem; }
  .nav-links a { font-size: 0.74rem; }
  .hero-copy .eyebrow { max-width: 17rem; }
  .hero-intro { font-size: 1rem; }
  .social-row { gap: 0.9rem 1.2rem; }
  .panel-topline, .panel-footer { padding-inline: 0.9rem; }
  .achievement-stack { padding-inline: 0.9rem; }
  .achievement-stack li { grid-template-columns: 1.5rem 1fr; }
  .achievement-symbol { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 8.5rem; padding: 1.4rem 1rem; }
  .metric strong { font-size: 2.35rem; }
  .metric span { font-size: 0.7rem; }
  .section-heading h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .feature-card-wide { min-height: 40rem; padding: 1.25rem; }
  .feature-meta { right: 1.1rem; left: 1.1rem; }
  .medal-orbit { width: 18rem; max-width: 92%; }
  .project-card { padding: 1.1rem; }
  .project-visual { height: 12rem; }
  .network-visual { gap: 0.4rem; }
  .network-visual span { width: 3.5rem; }
  .network-visual i { width: 1rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: auto; padding-block: 1.4rem; }
  .skill-card > span { margin-bottom: 1.8rem; }
  .education-title { margin-top: 2.5rem; }
  .gpa-line strong { font-size: 3.5rem; }
  .award-row { grid-template-columns: 5rem 1fr; }
  .contact-email { max-width: 100%; font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #algorithm-canvas { display: none; }
}

@media print {
  :root {
    --bg: #ffffff;
    --bg-deep: #ffffff;
    --surface: #ffffff;
    --surface-solid: #ffffff;
    --surface-raised: #ffffff;
    --text: #111111;
    --muted: #333333;
    --faint: #444444;
    --line: #cccccc;
    --line-strong: #999999;
    --accent: #005f4f;
    --accent-soft: #eef7f4;
  }
  .site-header, .scroll-progress, #algorithm-canvas, .ambient, .scroll-cue, .theme-toggle, .copy-email { display: none !important; }
  .js .reveal { transform: none !important; opacity: 1 !important; }
  .contact-section::after { display: none; }
  body { background: #fff; color: #111; }
  .hero { min-height: auto; padding-top: 2rem; }
  .section, .contact-section { padding-block: 2.5rem; break-inside: avoid; }
  .project-card, .feature-card, .education-card, .coursework-card { background: #fff; box-shadow: none; }
}
