:root {
  --bg: #f7f2ea;
  --bg-soft: rgba(247, 242, 234, 0.78);
  --surface: #fff9f3;
  --surface-muted: #f0e4d7;
  --surface-strong: #171411;
  --surface-strong-alt: #2b241f;
  --text: #171411;
  --text-soft: #5c4b40;
  --text-inverse: #fff6ee;
  --line: rgba(23, 20, 17, 0.09);
  --line-strong: rgba(92, 75, 64, 0.22);
  --accent: #c7652b;
  --accent-strong: #8d4421;
  --accent-soft: #dfa17b;
  --accent-warm: #6f361d;
  --accent-green: #b95d31;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 64px rgba(35, 27, 22, 0.1);
  --shadow-strong: 0 28px 90px rgba(23, 20, 17, 0.22);
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(223, 161, 123, 0.26), transparent 24%),
    radial-gradient(circle at top right, rgba(199, 101, 43, 0.14), transparent 22%),
    linear-gradient(180deg, #fcf7f1 0%, var(--bg) 46%, #ede2d3 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-inverse);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 36, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 36, 31, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 90%);
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.35;
}

.ambient-orb-one {
  top: 5rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(223, 161, 123, 0.28);
}

.ambient-orb-two {
  top: 24rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(141, 68, 33, 0.18);
}

.site-header,
.hero-section,
.section,
.site-footer,
.resume-hero,
.resume-viewer-section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 249, 243, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(35, 27, 22, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.site-header.is-scrolled {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(35, 27, 22, 0.14);
  background: rgba(255, 249, 243, 0.94);
}

.site-header-leading {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: white;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-name {
  font-size: 0.96rem;
  font-weight: 700;
}

.brand-role,
.site-nav a,
.eyebrow,
.panel-label,
.project-index,
.contact-label {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
}

.brand-role {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.header-github {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.68rem 0.92rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 243, 0.8);
  color: var(--text-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.header-github:hover,
.header-github:focus-visible {
  transform: translateY(-1px);
  color: var(--surface-strong-alt);
  box-shadow: 0 10px 26px rgba(35, 27, 22, 0.08);
}

.header-github svg {
  width: 0.82rem;
  height: 0.82rem;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.site-main {
  padding-bottom: 3rem;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 1.5rem;
  align-items: start;
  padding: 4.5rem 0 3rem;
}

.hero-copy,
.hero-panel,
.section-intro,
.about-grid,
.project-stack,
.skills-grid,
.resume-card,
.contact-grid,
.resume-hero {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 8vw, 5.9rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.hero-headline {
  max-width: 38rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 600;
}

.hero-text,
.section-text,
.about-card p,
.project-copy p,
.contact-card span,
.resume-lead {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions,
.project-actions,
.resume-actions,
.resume-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.header-github:focus-visible,
.contact-card:focus-visible {
  outline: 3px solid rgba(199, 101, 43, 0.26);
  outline-offset: 3px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
  box-shadow: 0 18px 40px rgba(141, 68, 33, 0.24);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 249, 243, 0.82);
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--surface-strong-alt);
  background: rgba(255, 249, 243, 0.78);
}

.button-outline {
  border-color: var(--line);
  color: rgba(92, 75, 64, 0.72);
  background: rgba(255, 249, 243, 0.58);
  cursor: not-allowed;
}

.button[disabled] {
  transform: none;
  opacity: 0.76;
  cursor: not-allowed;
}

.hero-chips,
.tag-list,
.project-points {
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-chips li {
  display: flex;
}

.hero-chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(23, 20, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 249, 243, 0.74);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.hero-chip-link:hover,
.hero-chip-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(141, 68, 33, 0.2);
  background: rgba(255, 249, 243, 0.96);
  box-shadow: 0 12px 30px rgba(35, 27, 22, 0.08);
}

.hero-chip-link:focus-visible {
  outline: 3px solid rgba(199, 101, 43, 0.26);
  outline-offset: 3px;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-panel-card,
.about-card,
.skill-card,
.resume-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 243, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-panel-card {
  padding: 1.4rem;
}

.hero-panel-card-primary {
  padding: 1.9rem;
  background:
    linear-gradient(180deg, rgba(255, 249, 243, 0.94), rgba(255, 249, 243, 0.82)),
    radial-gradient(circle at top right, rgba(223, 161, 123, 0.28), transparent 32%);
}

.panel-label {
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.panel-title {
  margin-bottom: 0.9rem;
  font-size: 1.85rem;
  line-height: 1.14;
  font-weight: 700;
}

.panel-body,
.metric-copy {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

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

.section {
  padding: 2.4rem 0;
}

.section-intro {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.section-intro-inverse h2,
.section-intro-inverse .section-text,
.section-intro-inverse .eyebrow {
  color: var(--text-inverse);
}

.section-intro-inverse .section-text {
  color: rgba(255, 246, 238, 0.78);
}

.section-intro-inverse .eyebrow {
  color: rgba(223, 161, 123, 0.94);
}

.about-grid,
.skills-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

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

.about-card,
.skill-card {
  min-height: 100%;
  padding: 1.5rem;
}

.about-card-title,
.skill-card-title {
  margin-bottom: 0.75rem;
  font-size: 1.16rem;
  font-weight: 700;
}

.projects-section {
  width: min(calc(100% - 2rem), calc(var(--max-width) + 2rem));
  margin-inline: auto;
  padding: 2rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(199, 101, 43, 0.12), transparent 28%),
    linear-gradient(180deg, #efe2d3 0%, #e7d8c7 100%);
  border: 1px solid rgba(92, 75, 64, 0.14);
  box-shadow: 0 24px 70px rgba(43, 36, 31, 0.11);
}

.project-stack {
  display: grid;
  gap: 1.3rem;
}

.project-card {
  padding: 1.5rem;
  border: 1px solid rgba(92, 75, 64, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 249, 243, 0.96), rgba(247, 240, 232, 0.96));
  color: var(--text);
  box-shadow: 0 18px 46px rgba(43, 36, 31, 0.08);
}

.project-card-cuda {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 46px rgba(43, 36, 31, 0.08);
}

.project-card-ml {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 46px rgba(43, 36, 31, 0.08);
}

.project-card-systems {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 18px 46px rgba(43, 36, 31, 0.08);
}

.project-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.project-index {
  margin-bottom: 0.55rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.project-topbar h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.08;
}

.project-impact {
  max-width: 48rem;
  margin-bottom: 0.6rem;
  color: var(--surface-strong-alt);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 700;
}

.project-summary,
.project-copy p,
.project-points li,
.stat-label,
.media-placeholder-header,
.media-metrics span {
  color: var(--text-soft);
}

.projects-section .section-intro-inverse h2,
.projects-section .section-intro-inverse .section-text,
.projects-section .section-intro-inverse .eyebrow {
  color: var(--text);
}

.projects-section .section-intro-inverse .eyebrow {
  color: var(--accent-strong);
}

.project-summary {
  max-width: 52rem;
  font-size: 1rem;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.project-points {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 1.2rem;
}

.project-points li {
  position: relative;
  padding-left: 1rem;
}

.project-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-list li {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(92, 75, 64, 0.14);
  border-radius: 999px;
  background: rgba(255, 249, 243, 0.9);
  font-size: 0.84rem;
}

.tag-list-dark li {
  border-color: var(--line);
  background: var(--surface-muted);
}

.project-sidebar {
  display: grid;
  gap: 0.85rem;
}

.stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(92, 75, 64, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 248, 0.78);
}

.stat-value {
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-media {
  margin-top: 1.2rem;
}

.media-placeholder {
  display: grid;
  gap: 0.95rem;
  padding: 1.2rem;
  border: 1px solid rgba(92, 75, 64, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.8), rgba(244, 236, 227, 0.76));
  box-shadow: 0 14px 34px rgba(35, 27, 22, 0.05);
}

.media-placeholder-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.media-placeholder-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1rem;
  align-items: stretch;
}

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

.project-evidence-card {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  position: relative;
  isolation: isolate;
}

.project-evidence-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(92, 75, 64, 0.13);
  border-radius: var(--radius-md);
  background: rgba(239, 228, 215, 0.74);
  cursor: zoom-in;
  transform-origin: center top;
  will-change: transform;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease;
}

.project-evidence-frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-evidence-frame:focus-visible {
  outline: 3px solid rgba(199, 101, 43, 0.26);
  outline-offset: 3px;
}

.project-evidence-caption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(92, 75, 64, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 248, 0.78);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-evidence-card:hover,
.project-evidence-card:focus-within {
  z-index: 6;
}

.project-evidence-card:hover .project-evidence-frame,
.project-evidence-card:focus-within .project-evidence-frame {
  transform: translateY(-0.75rem) scale(2);
  border-color: rgba(141, 68, 33, 0.24);
  box-shadow:
    0 34px 90px rgba(35, 27, 22, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.project-evidence-card:hover .project-evidence-frame img,
.project-evidence-card:focus-within .project-evidence-frame img {
  transform: scale(1);
}

.project-evidence-card:hover .project-evidence-caption,
.project-evidence-card:focus-within .project-evidence-caption {
  transform: translateY(0.18rem);
  box-shadow: 0 12px 24px rgba(35, 27, 22, 0.05);
}

.project-evidence-caption strong {
  font-size: 0.96rem;
  line-height: 1.45;
}

.project-evidence-caption span:last-child {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-evidence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-evidence-badge-baseline {
  background: rgba(141, 68, 33, 0.12);
  color: var(--accent-strong);
}

.project-evidence-badge-optimized {
  background: rgba(64, 134, 98, 0.14);
  color: #2f6d50;
}

.project-evidence-badge-trace {
  background: rgba(141, 68, 33, 0.12);
  color: var(--accent-strong);
}

.project-evidence-badge-cpu {
  background: rgba(56, 83, 120, 0.14);
  color: #35506f;
}

.project-evidence-badge-gpu {
  background: rgba(64, 134, 98, 0.14);
  color: #2f6d50;
}

body.lightbox-open {
  overflow: hidden;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  background: rgba(18, 15, 13, 0.58);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.project-lightbox-dialog {
  position: relative;
  width: min(99vw, 2200px);
  max-height: calc(100vh - 1.3rem);
}

.project-lightbox-shell {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius-xl) + 0.25rem);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(245, 237, 228, 0.96));
  box-shadow: 0 38px 120px rgba(18, 15, 13, 0.34);
}

.project-lightbox-media {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0.3rem;
  border: 1px solid rgba(92, 75, 64, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(248, 243, 237, 0.96);
}

.project-lightbox-media img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: calc(100vh - 9rem);
  height: auto;
  border-radius: calc(var(--radius-md) - 0.15rem);
  box-shadow: 0 14px 34px rgba(35, 27, 22, 0.12);
  object-fit: contain;
}

.project-lightbox-caption {
  display: grid;
  gap: 0.2rem;
  padding: 0.1rem 0.2rem 0;
}

.project-lightbox-label {
  margin: 0;
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-lightbox-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}

.project-lightbox-body {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(92, 75, 64, 0.14);
  border-radius: 999px;
  background: rgba(255, 249, 243, 0.96);
  color: var(--surface-strong);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.project-lightbox-close:hover,
.project-lightbox-close:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(35, 27, 22, 0.12);
}

.media-block,
.media-chart,
.network-diagram {
  min-height: 12rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(92, 75, 64, 0.13);
  background: rgba(239, 228, 215, 0.74);
}

.media-block-fractal {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 40%, rgba(199, 101, 43, 0.4), transparent 14%),
    radial-gradient(circle at 54% 48%, rgba(141, 68, 33, 0.34), transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(223, 161, 123, 0.24), transparent 40%),
    #ecdfd1;
}

.media-block-fractal::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}

.media-chart {
  display: flex;
  align-items: end;
  justify-content: space-evenly;
  gap: 0.75rem;
  padding: 1rem;
}

.chart-bar {
  display: block;
  width: 18%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent-green), rgba(185, 93, 49, 0.24));
}

.chart-bar-short {
  height: 28%;
}

.chart-bar-medium {
  height: 46%;
}

.chart-bar-tall {
  height: 78%;
}

.chart-bar-mid {
  height: 58%;
}

.network-diagram {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: center;
  padding: 1rem;
}

.network-diagram span {
  display: grid;
  place-items: center;
  min-height: 8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(92, 75, 64, 0.13);
  background: rgba(255, 249, 243, 0.8);
  color: var(--text);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.5;
}

.media-metrics {
  display: grid;
  gap: 0.75rem;
}

.media-metrics span {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(92, 75, 64, 0.13);
  background: rgba(255, 249, 243, 0.8);
  font-size: 0.88rem;
}

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

.skill-card {
  padding: 1.35rem;
}

.resume-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

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

.contact-card {
  display: grid;
  gap: 0.6rem;
  min-height: 100%;
  padding: 1.4rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(60, 36, 26, 0.14);
}

.contact-card-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(92, 75, 64, 0.16);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.18rem;
  height: 1.18rem;
}

.contact-icon-github {
  background: rgba(23, 20, 17, 0.08);
  color: var(--surface-strong);
}

.contact-icon-linkedin {
  background: rgba(199, 101, 43, 0.14);
  color: var(--accent-strong);
}

.contact-icon-message {
  background: rgba(111, 54, 29, 0.14);
  color: var(--accent-warm);
}

.contact-card strong {
  font-size: 1.05rem;
  line-height: 1.45;
}

.contact-label {
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.site-footer {
  padding: 1rem 0 3rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

body.landing-page {
  --bg: #171411;
  --bg-soft: rgba(23, 20, 17, 0.78);
  --surface: #211a16;
  --surface-muted: #2a211c;
  --surface-strong: #171411;
  --surface-strong-alt: #fff7ed;
  --text: #fff7ed;
  --text-soft: #d8c7b6;
  --text-inverse: #fff7ed;
  --line: rgba(255, 247, 237, 0.14);
  --line-strong: rgba(255, 247, 237, 0.24);
  --accent: #d86f32;
  --accent-strong: #f0934d;
  --accent-soft: #55d6c2;
  --accent-warm: #ffbf75;
  --accent-green: #55d6c2;
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.26);
  --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.42);
  color: var(--text);
  background:
    linear-gradient(110deg, rgba(23, 20, 17, 0.98), rgba(36, 29, 24, 0.9) 44%, rgba(13, 27, 31, 0.96)),
    var(--bg);
}

body.landing-page .ambient-grid {
  background-image:
    linear-gradient(rgba(255, 247, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 237, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 92%);
}

body.landing-page .ambient-orb-one {
  background: rgba(216, 111, 50, 0.32);
}

body.landing-page .ambient-orb-two {
  background: rgba(85, 214, 194, 0.18);
}

body.landing-page .site-header {
  border-color: rgba(255, 247, 237, 0.14);
  background: rgba(23, 20, 17, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.landing-page .site-header.is-scrolled {
  background: rgba(23, 20, 17, 0.88);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
}

body.landing-page .brand-mark {
  background: linear-gradient(135deg, var(--accent), #ffb36f);
  color: #171411;
}

body.landing-page .brand-role,
body.landing-page .site-nav a,
body.landing-page .header-github,
body.landing-page .hero-text,
body.landing-page .section-text,
body.landing-page .about-card p,
body.landing-page .project-copy p,
body.landing-page .contact-card span,
body.landing-page .site-footer {
  color: var(--text-soft);
}

body.landing-page .eyebrow,
body.landing-page .panel-label,
body.landing-page .project-index,
body.landing-page .contact-label {
  color: var(--accent-strong);
}

body.landing-page .header-github,
body.landing-page .button-secondary,
body.landing-page .button-ghost,
body.landing-page .hero-chip-link,
body.landing-page .hero-panel-card,
body.landing-page .about-card,
body.landing-page .skill-card,
body.landing-page .resume-card,
body.landing-page .contact-card {
  border-color: rgba(255, 247, 237, 0.14);
  background: rgba(23, 20, 17, 0.68);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

body.landing-page .button-primary {
  background: linear-gradient(135deg, var(--accent), #ff9b52);
  color: #171411;
  box-shadow: 0 18px 40px rgba(216, 111, 50, 0.24);
}

body.landing-page .button-secondary:hover,
body.landing-page .button-ghost:hover,
body.landing-page .hero-chip-link:hover,
body.landing-page .contact-card:hover,
body.landing-page .header-github:hover {
  border-color: rgba(85, 214, 194, 0.34);
  background: rgba(23, 20, 17, 0.9);
  color: var(--text);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

body.landing-page .hero-panel-card-primary {
  background:
    radial-gradient(circle at top right, rgba(85, 214, 194, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(31, 26, 22, 0.96), rgba(18, 24, 24, 0.92));
}

body.landing-page .projects-section {
  position: relative;
  overflow: visible;
  border-color: rgba(255, 247, 237, 0.15);
  background:
    linear-gradient(rgba(85, 214, 194, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 214, 194, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 17% 14%, rgba(216, 111, 50, 0.22), transparent 26rem),
    radial-gradient(circle at 84% 28%, rgba(85, 214, 194, 0.17), transparent 24rem),
    linear-gradient(135deg, rgba(14, 22, 22, 0.98), rgba(29, 22, 18, 0.98));
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  box-shadow:
    inset 0 0 0 1px rgba(85, 214, 194, 0.06),
    var(--shadow-strong);
}

body.landing-page .projects-section::before,
body.landing-page .projects-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.landing-page .projects-section::before {
  inset: 1.1rem;
  border: 1px solid rgba(85, 214, 194, 0.12);
}

body.landing-page .projects-section::after {
  inset: auto 0 0;
  height: 12rem;
  background: linear-gradient(0deg, rgba(23, 20, 17, 0.82), transparent);
}

body.landing-page .projects-section .section-intro-inverse h2,
body.landing-page .projects-section .section-intro-inverse .section-text {
  color: var(--text);
}

body.landing-page .project-circuit-router {
  position: relative;
  z-index: 2;
  min-height: 28rem;
  margin: 2rem 0 2.4rem;
  border: 1px solid rgba(255, 247, 237, 0.14);
  background:
    radial-gradient(circle at 14% 50%, rgba(216, 111, 50, 0.16), transparent 13rem),
    linear-gradient(135deg, rgba(20, 31, 29, 0.74), rgba(20, 18, 16, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(85, 214, 194, 0.06),
    0 24px 62px rgba(0, 0, 0, 0.24);
}

body.landing-page .project-circuit-router::before {
  content: "";
  position: absolute;
  inset: 1rem;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 247, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 237, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}

body.landing-page .project-circuit-traces {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

body.landing-page .landing-trace {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.landing-page .landing-trace-base {
  stroke: rgba(255, 247, 237, 0.16);
  stroke-width: 11;
}

body.landing-page .landing-trace-flow {
  filter: url(#landingTraceGlow);
  stroke: #f0934d;
  stroke-dasharray: 24 18;
  stroke-width: 7;
  animation: landingRouteElectricity 1.9s linear infinite;
  opacity: 0.95;
  transition: opacity 180ms ease, stroke-width 180ms ease;
}

body.landing-page .landing-trace-flow-cuda {
  animation-delay: -0.55s;
}

body.landing-page .landing-trace-flow-pokemon {
  animation-delay: -0.35s;
}

body.landing-page .landing-trace-flow-multiplayer {
  animation-delay: -0.8s;
}

body.landing-page .project-circuit-router:has(.project-circuit-node:is(:hover, :focus-visible)) .landing-trace-flow {
  animation-play-state: paused;
  opacity: 0.14;
}

body.landing-page .project-circuit-router:has(.project-circuit-node-cuda:is(:hover, :focus-visible)) .landing-trace-flow-bus,
body.landing-page .project-circuit-router:has(.project-circuit-node-cuda:is(:hover, :focus-visible)) .landing-trace-flow-cuda,
body.landing-page .project-circuit-router:has(.project-circuit-node-pokemon:is(:hover, :focus-visible)) .landing-trace-flow-bus,
body.landing-page .project-circuit-router:has(.project-circuit-node-pokemon:is(:hover, :focus-visible)) .landing-trace-flow-pokemon,
body.landing-page .project-circuit-router:has(.project-circuit-node-multiplayer:is(:hover, :focus-visible)) .landing-trace-flow-bus,
body.landing-page .project-circuit-router:has(.project-circuit-node-multiplayer:is(:hover, :focus-visible)) .landing-trace-flow-multiplayer {
  animation-play-state: running;
  opacity: 1;
}

body.landing-page .project-router-chip {
  position: absolute;
  top: 50%;
  left: 2rem;
  z-index: 3;
  display: grid;
  gap: 0.35rem;
  width: 17rem;
  min-height: 11.25rem;
  padding: 1.4rem;
  place-content: center;
  border: 1px solid rgba(255, 247, 237, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.12), rgba(255, 247, 237, 0.04)),
    rgba(12, 15, 15, 0.92);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 0 28px rgba(85, 214, 194, 0.08);
  transform: translateY(-50%);
}

body.landing-page .project-router-chip span,
body.landing-page .project-circuit-node span {
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.landing-page .project-router-chip strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

body.landing-page .project-circuit-links {
  position: absolute;
  inset: 2rem 2rem 2rem auto;
  z-index: 3;
  display: grid;
  width: min(38rem, calc(100% - 28rem));
  gap: 1rem;
}

body.landing-page .project-circuit-node {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 0.38rem;
  min-height: 5.9rem;
  padding: 1rem 1.1rem 1rem 1.35rem;
  border: 1px solid rgba(255, 247, 237, 0.16);
  background: rgba(23, 20, 17, 0.76);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

body.landing-page .project-circuit-node::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 4px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(85, 214, 194, 0.92),
    rgba(240, 147, 77, 0.96),
    rgba(85, 214, 194, 0.78)
  );
  box-shadow:
    0 0 18px rgba(85, 214, 194, 0.35),
    0 0 26px rgba(240, 147, 77, 0.25);
}

body.landing-page .project-circuit-node > * {
  position: relative;
  z-index: 2;
}

body.landing-page .project-circuit-node strong {
  font-size: 1.12rem;
}

body.landing-page .project-circuit-node small {
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

body.landing-page .project-circuit-node:hover,
body.landing-page .project-circuit-node:focus-visible {
  transform: translateX(-4px);
  border-color: rgba(85, 214, 194, 0.78);
  background: rgba(23, 20, 17, 0.96);
  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(85, 214, 194, 0.15);
}

body.landing-page .project-circuit-node:focus-visible {
  outline: 2px solid rgba(85, 214, 194, 0.86);
  outline-offset: 4px;
}

body.landing-page .project-stack {
  z-index: 2;
  gap: 1.55rem;
}

body.landing-page .project-card {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 8rem;
  border-color: rgba(255, 247, 237, 0.15);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.08), rgba(255, 247, 237, 0.03)),
    rgba(18, 17, 15, 0.88);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(85, 214, 194, 0.04),
    0 28px 72px rgba(0, 0, 0, 0.28);
}

body.landing-page .project-card::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  height: 3px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(85, 214, 194, 0.18),
      rgba(85, 214, 194, 0.18) 32%,
      rgba(85, 214, 194, 0.95) 42%,
      rgba(240, 147, 77, 0.95) 48%,
      rgba(85, 214, 194, 0.18) 58%,
      rgba(85, 214, 194, 0.18)
    );
  background-size: 240px 100%;
  box-shadow: 0 0 22px rgba(85, 214, 194, 0.34);
  animation: landingCardPulse 2.2s linear infinite;
}

body.landing-page .project-card::after {
  content: "";
  position: absolute;
  top: 0.83rem;
  right: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  pointer-events: none;
  background: var(--accent);
  box-shadow:
    -1.5rem 0 0 rgba(85, 214, 194, 0.86),
    -3rem 0 0 rgba(255, 247, 237, 0.62),
    0 0 22px rgba(216, 111, 50, 0.62);
}

body.landing-page .project-card > * {
  position: relative;
  z-index: 1;
}

body.landing-page .project-card-ml::before {
  animation-delay: -0.7s;
}

body.landing-page .project-card-systems::before {
  animation-delay: -1.35s;
}

body.landing-page .project-impact {
  color: var(--text);
}

body.landing-page .project-summary,
body.landing-page .project-copy p,
body.landing-page .project-points li,
body.landing-page .stat-label,
body.landing-page .media-placeholder-header,
body.landing-page .media-metrics span,
body.landing-page .project-evidence-caption span:last-child {
  color: var(--text-soft);
}

body.landing-page .project-points li::before {
  background: var(--accent-soft);
  box-shadow: 0 0 16px rgba(85, 214, 194, 0.42);
}

body.landing-page .tag-list li,
body.landing-page .stat-card,
body.landing-page .media-placeholder,
body.landing-page .project-evidence-frame,
body.landing-page .project-evidence-caption,
body.landing-page .network-diagram span,
body.landing-page .media-metrics span {
  border-color: rgba(255, 247, 237, 0.14);
  background: rgba(23, 20, 17, 0.62);
  color: var(--text);
}

body.landing-page .tag-list li {
  box-shadow: inset 0 0 0 1px rgba(85, 214, 194, 0.03);
}

body.landing-page .stat-card {
  box-shadow:
    inset 0 0 26px rgba(85, 214, 194, 0.05),
    0 16px 32px rgba(0, 0, 0, 0.2);
}

body.landing-page .stat-value {
  color: var(--accent-soft);
  text-shadow: 0 0 18px rgba(85, 214, 194, 0.18);
}

body.landing-page .media-placeholder {
  background:
    linear-gradient(rgba(255, 247, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 237, 0.03) 1px, transparent 1px),
    rgba(15, 18, 17, 0.72);
  background-size: 30px 30px, 30px 30px, auto;
}

body.landing-page .project-evidence-frame {
  background: rgba(10, 12, 12, 0.84);
}

body.landing-page .project-evidence-card:hover .project-evidence-frame,
body.landing-page .project-evidence-card:focus-within .project-evidence-frame {
  border-color: rgba(85, 214, 194, 0.52);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    0 0 32px rgba(85, 214, 194, 0.16);
}

body.landing-page .project-evidence-badge-baseline,
body.landing-page .project-evidence-badge-trace,
body.landing-page .project-evidence-badge-cpu {
  background: rgba(216, 111, 50, 0.16);
  color: #ffbf75;
}

body.landing-page .project-evidence-badge-optimized,
body.landing-page .project-evidence-badge-gpu {
  background: rgba(85, 214, 194, 0.14);
  color: #7ee8d9;
}

body.landing-page .contact-icon {
  border-color: rgba(255, 247, 237, 0.16);
}

body.landing-page .contact-icon-github,
body.landing-page .contact-icon-linkedin,
body.landing-page .contact-icon-message {
  background: rgba(255, 247, 237, 0.08);
  color: var(--accent-soft);
}

body.landing-page .project-lightbox {
  background: rgba(8, 8, 7, 0.7);
}

body.landing-page .project-lightbox-shell,
body.landing-page .project-lightbox-media,
body.landing-page .project-lightbox-close {
  border-color: rgba(255, 247, 237, 0.16);
  background: rgba(23, 20, 17, 0.96);
  color: var(--text);
}

body.landing-page .project-lightbox-body {
  color: var(--text-soft);
}

@keyframes landingRouteElectricity {
  from {
    stroke-dashoffset: 42;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes landingCardPulse {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 240px 0;
  }
}

body.resume-page {
  --bg: #171411;
  --bg-soft: rgba(23, 20, 17, 0.78);
  --surface: #211a16;
  --surface-muted: #2a211c;
  --surface-strong: #171411;
  --surface-strong-alt: #fff7ed;
  --text: #fff7ed;
  --text-soft: #d8c7b6;
  --text-inverse: #fff7ed;
  --line: rgba(255, 247, 237, 0.14);
  --line-strong: rgba(255, 247, 237, 0.24);
  --accent: #d86f32;
  --accent-strong: #f0934d;
  --accent-soft: #55d6c2;
  --accent-warm: #ffbf75;
  --accent-green: #55d6c2;
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.26);
  --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.42);
  color: var(--text);
  background:
    linear-gradient(110deg, rgba(23, 20, 17, 0.98), rgba(36, 29, 24, 0.9) 44%, rgba(13, 27, 31, 0.96)),
    var(--bg);
}

body.resume-page .ambient-grid {
  background-image:
    linear-gradient(rgba(255, 247, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 237, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 92%);
}

body.resume-page .ambient-orb-one {
  background: rgba(216, 111, 50, 0.32);
}

body.resume-page .ambient-orb-two {
  background: rgba(85, 214, 194, 0.18);
}

body.resume-page .site-header {
  border-color: rgba(255, 247, 237, 0.14);
  background: rgba(23, 20, 17, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.resume-page .site-header.is-scrolled {
  background: rgba(23, 20, 17, 0.88);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
}

body.resume-page .brand-mark {
  background: linear-gradient(135deg, var(--accent), #ffb36f);
  color: #171411;
}

body.resume-page .brand-role,
body.resume-page .site-nav a,
body.resume-page .header-github,
body.resume-page .resume-lead,
body.resume-page .resume-viewer-copy,
body.resume-page .site-footer {
  color: var(--text-soft);
}

body.resume-page .eyebrow {
  color: var(--accent-strong);
}

body.resume-page .header-github,
body.resume-page .button-secondary {
  border-color: rgba(255, 247, 237, 0.14);
  background: rgba(23, 20, 17, 0.68);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

body.resume-page .button-primary {
  background: linear-gradient(135deg, var(--accent), #ff9b52);
  color: #171411;
  box-shadow: 0 18px 40px rgba(216, 111, 50, 0.24);
}

body.resume-page .button-secondary:hover,
body.resume-page .header-github:hover {
  border-color: rgba(85, 214, 194, 0.34);
  background: rgba(23, 20, 17, 0.9);
  color: var(--text);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

body.resume-page .resume-hero {
  padding-top: 4.8rem;
}

body.resume-page .resume-viewer-shell {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 247, 237, 0.15);
  background:
    linear-gradient(rgba(85, 214, 194, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 214, 194, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(216, 111, 50, 0.2), transparent 24rem),
    radial-gradient(circle at 84% 18%, rgba(85, 214, 194, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(14, 22, 22, 0.98), rgba(29, 22, 18, 0.98));
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  box-shadow:
    inset 0 0 0 1px rgba(85, 214, 194, 0.06),
    var(--shadow-strong);
}

body.resume-page .resume-viewer-shell::before {
  content: "";
  position: absolute;
  inset: 1rem;
  pointer-events: none;
  border: 1px solid rgba(85, 214, 194, 0.12);
}

body.resume-page .resume-viewer-shell > * {
  position: relative;
  z-index: 1;
}

body.resume-page .resume-viewer-header {
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 247, 237, 0.14);
  background: rgba(23, 20, 17, 0.68);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

body.resume-page .resume-viewer-frame {
  border-color: rgba(85, 214, 194, 0.26);
  background: #ffffff;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.resume-page .site-main {
  padding-bottom: 2rem;
}

.resume-hero {
  padding: 4.5rem 0 1.5rem;
}

.resume-viewer-section {
  padding-bottom: 2rem;
}

.resume-viewer-shell {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 1080px);
  margin-inline: auto;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 243, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.resume-viewer-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: end;
}

.resume-viewer-header h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.resume-viewer-copy {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.resume-viewer-frame {
  display: block;
  width: 100%;
  min-height: 96rem;
  margin-inline: auto;
  border: 1px solid rgba(23, 20, 17, 0.1);
  border-radius: var(--radius-md);
  background: white;
}

.resume-lead {
  max-width: 52rem;
  margin-bottom: 1.6rem;
}

@media (max-width: 1120px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-section,
  .project-grid,
  .resume-card,
  .resume-viewer-header,
  .media-placeholder-body {
    grid-template-columns: 1fr;
  }

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

  .project-topbar {
    flex-direction: column;
  }

  .project-evidence-grid {
    grid-template-columns: 1fr;
  }

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

  body.landing-page .project-circuit-router {
    display: grid;
    min-height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  body.landing-page .project-circuit-traces {
    display: none;
  }

  body.landing-page .project-router-chip,
  body.landing-page .project-circuit-links {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
  }

  body.landing-page .project-router-chip {
    min-height: auto;
  }

  body.landing-page .project-circuit-links {
    gap: 0.75rem;
  }

  body.landing-page .project-router-chip::after,
  body.landing-page .project-circuit-node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: auto;
    right: auto;
    z-index: 0;
    left: 1.25rem;
    bottom: -1rem;
    width: 3px;
    height: 1rem;
    background:
      linear-gradient(
        to bottom,
        rgba(85, 214, 194, 0.16),
        rgba(85, 214, 194, 0.96),
        rgba(240, 147, 77, 0.96),
        rgba(85, 214, 194, 0.16)
      );
    box-shadow: 0 0 18px rgba(85, 214, 194, 0.38);
    opacity: 1;
    transform: none;
    background-size: auto;
    animation: none;
    transition: none;
  }

  body.landing-page .project-circuit-node:last-child::after {
    content: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
  }

  .site-header-leading {
    justify-content: space-between;
  }

  .site-nav {
    justify-content: flex-start;
  }

  body.landing-page .project-card {
    scroll-margin-top: 2rem;
  }

  .hero-section,
  .resume-hero,
  .resume-viewer-section {
    padding-top: 2.2rem;
  }

  .resume-viewer-shell {
    padding: 1rem;
  }

  .resume-viewer-frame {
    min-height: 62rem;
  }

  .projects-section {
    width: min(calc(100% - 1rem), calc(var(--max-width) + 1rem));
    padding: 1rem;
    border-radius: 1.6rem;
  }

  body.landing-page .project-circuit-router {
    margin: 1rem 0;
  }

  .hero-panel-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .project-actions .button,
  .project-actions button,
  .resume-actions .button,
  .resume-actions button {
    width: 100%;
  }

  .hero-chips {
    display: grid;
  }

  .hero-chips li {
    width: 100%;
  }
}

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

  .header-github {
    padding: 0.62rem 0.8rem;
    font-size: 0.72rem;
  }

  .header-github svg {
    width: 0.72rem;
    height: 0.72rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
