:root {
  --ink: #f7f4ec;
  --muted: #b8bdc7;
  --paper: #08090d;
  --panel: rgba(19, 22, 30, 0.68);
  --panel-strong: rgba(247, 244, 236, 0.1);
  --line: rgba(247, 244, 236, 0.16);
  --cyan: #70f1ff;
  --lime: #d2ff6f;
  --rose: #ff6d98;
  --amber: #ffbf5f;
  --violet: #9c7cff;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(118deg, rgba(112, 241, 255, 0.16) 0 12%, transparent 12% 48%, rgba(255, 109, 152, 0.12) 48% 55%, transparent 55%),
    linear-gradient(140deg, #08090d 0%, #131925 42%, #0b1013 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 116px 116px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
}

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

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

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.86;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(112, 241, 255, 0.16);
  background:
    linear-gradient(120deg, rgba(112, 241, 255, 0.18), rgba(210, 255, 111, 0.08), rgba(255, 109, 152, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  filter: blur(28px);
  opacity: 0.5;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 220ms ease;
  pointer-events: none;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), 1160px);
  min-height: 62px;
  padding: 10px 10px 10px 18px;
  border: 1px solid rgba(247, 244, 236, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 9, 13, var(--header-alpha, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand {
  display: grid;
  gap: 1px;
  min-width: 104px;
}

.brand span {
  font-size: 1rem;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(247, 244, 236, 0.1);
}

.site-nav .nav-pill {
  color: #071014;
  background: var(--lime);
}

.section-shell {
  width: min(calc(100% - 36px), 1160px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.76fr);
  gap: 42px;
  align-items: center;
  min-height: 100svh;
  padding-top: 130px;
  padding-bottom: 66px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-panel h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  display: grid;
  gap: 10px;
  max-width: 780px;
  font-size: 6.4rem;
  line-height: 0.92;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line:last-child {
  max-width: 9.6em;
  color: transparent;
  background: linear-gradient(95deg, var(--ink), var(--cyan) 44%, var(--amber) 76%, var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(247, 244, 236, 0.18);
  border-radius: var(--radius);
  font-weight: 800;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button::before,
.text-link::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  transition: transform 560ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.button:hover::before,
.button:focus-visible::before,
.text-link:hover::before,
.text-link:focus-visible::before {
  transform: translateX(120%);
}

.button.primary {
  border-color: transparent;
  color: #081014;
  background: var(--cyan);
}

.button.ghost {
  color: var(--ink);
  background: rgba(247, 244, 236, 0.08);
}

.hero-stage {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(247, 244, 236, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(247, 244, 236, 0.08), rgba(247, 244, 236, 0.02)),
    rgba(8, 9, 13, 0.54);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-stage::before,
.hero-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-stage::before {
  inset: 18px;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: var(--radius);
}

.hero-stage::after {
  inset: -45% 16% auto;
  height: 60%;
  background: conic-gradient(from 110deg, transparent, rgba(112, 241, 255, 0.32), rgba(255, 109, 152, 0.22), transparent);
  filter: blur(24px);
  animation: beamSpin 14s linear infinite;
}

.stage-grid {
  position: absolute;
  inset: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  transform: perspective(900px) rotateX(58deg) rotateZ(-18deg) translate3d(-8%, 15%, 0);
  transform-origin: center;
}

.stage-grid span {
  min-height: 96px;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(112, 241, 255, 0.11), transparent),
    rgba(255, 255, 255, 0.03);
  animation: tilePulse 3.6s ease-in-out infinite;
}

.stage-grid span:nth-child(3n) {
  animation-delay: 320ms;
}

.stage-grid span:nth-child(4n) {
  animation-delay: 720ms;
}

.kinetic-type {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 82px;
  display: grid;
  gap: 8px;
  font-size: 4.6rem;
  font-weight: 900;
  line-height: 0.92;
}

.kinetic-type span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 244, 236, 0.72);
  text-stroke: 1px rgba(247, 244, 236, 0.72);
  animation: typeDrift 5.4s ease-in-out infinite;
}

.kinetic-type span:nth-child(2) {
  color: var(--ink);
  -webkit-text-stroke: 0;
  text-stroke: 0;
  animation-delay: 240ms;
}

.kinetic-type span:nth-child(3) {
  animation-delay: 480ms;
}

.scanner {
  position: absolute;
  left: -20%;
  top: 0;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(210, 255, 111, 0.2), transparent);
  animation: scanMove 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  mix-blend-mode: screen;
}

.stage-panel {
  position: absolute;
  right: 28px;
  top: 28px;
  display: grid;
  gap: 8px;
  width: 164px;
  padding: 14px;
  border: 1px solid rgba(247, 244, 236, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 9, 13, 0.68);
  backdrop-filter: blur(18px);
}

.panel-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-panel strong {
  font-size: 2rem;
  line-height: 1;
}

.panel-line {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--rose));
  transform-origin: left;
  animation: lineGrow 2.4s ease-in-out infinite;
}

.ticker {
  border-block: 1px solid rgba(247, 244, 236, 0.14);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 18px 0;
  color: rgba(247, 244, 236, 0.72);
  font-size: 0.94rem;
  font-weight: 800;
  text-transform: uppercase;
  animation: ticker 24s linear infinite;
}

.ticker span {
  white-space: nowrap;
}

.work,
.lab,
.about,
.resume,
.research,
.contact {
  padding-block: 104px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading h2,
.about-copy h2,
.contact-panel h2 {
  max-width: 760px;
  font-size: 3.75rem;
  line-height: 1.05;
}

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

.project-card {
  position: relative;
  min-height: 468px;
  border: 1px solid rgba(247, 244, 236, 0.14);
  border-radius: var(--radius);
  background: rgba(14, 17, 24, 0.74);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: rgba(112, 241, 255, 0.36);
}

.project-media {
  position: relative;
  height: 280px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.12);
  overflow: hidden;
}

.project-media::before,
.project-media::after {
  position: absolute;
  content: "";
}

.project-media::before {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 28px);
  animation: gridSlide 7s linear infinite;
}

.project-media::after {
  inset: 22%;
  border: 1px solid rgba(247, 244, 236, 0.24);
  border-radius: var(--radius);
  transform: rotate(12deg);
  animation: frameFloat 5.6s ease-in-out infinite;
}

.project-media span {
  position: absolute;
  inset: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(247, 244, 236, 0.18), rgba(247, 244, 236, 0.03));
  clip-path: polygon(0 18%, 76% 0, 100% 58%, 22% 100%);
  animation: shardShift 4.6s ease-in-out infinite;
}

.media-one {
  background: linear-gradient(135deg, rgba(112, 241, 255, 0.24), rgba(8, 9, 13, 0.4));
}

.media-two {
  background: linear-gradient(135deg, rgba(255, 109, 152, 0.22), rgba(11, 16, 19, 0.42));
}

.media-three {
  background: linear-gradient(135deg, rgba(210, 255, 111, 0.24), rgba(8, 9, 13, 0.42));
}

.project-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.project-body p {
  margin: 0;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 0;
  font-size: 1.42rem;
}

.project-body span {
  color: var(--muted);
  line-height: 1.7;
}

.lab-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  min-height: 420px;
  padding: 34px;
  border: 1px solid rgba(247, 244, 236, 0.14);
  border-radius: var(--radius);
  background: rgba(14, 17, 24, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lab-board::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(112, 241, 255, 0.08), transparent),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px);
  transform: translateX(-38%);
  animation: panelSweep 6.2s ease-in-out infinite;
}

.lab-orbit {
  position: relative;
  aspect-ratio: 1;
  min-height: 260px;
  border: 1px solid rgba(247, 244, 236, 0.18);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: orbitLean 9s ease-in-out infinite;
}

.lab-orbit::before,
.lab-orbit::after,
.lab-orbit span {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(112, 241, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.lab-orbit::before {
  transform: rotateX(68deg);
}

.lab-orbit::after {
  transform: rotateY(68deg);
  border-color: rgba(255, 109, 152, 0.3);
}

.lab-orbit span:nth-child(1) {
  transform: rotate(34deg) rotateX(72deg);
  border-color: rgba(210, 255, 111, 0.26);
}

.lab-orbit span:nth-child(2) {
  inset: 34%;
  background: rgba(247, 244, 236, 0.12);
  animation: corePulse 2.8s ease-in-out infinite;
}

.lab-orbit span:nth-child(3) {
  inset: 6%;
  border-style: dashed;
  animation: orbitSpin 12s linear infinite;
}

.lab-copy,
.metrics {
  position: relative;
}

.lab-copy h3 {
  max-width: 640px;
  margin: 0 0 16px;
  font-size: 2.5rem;
  line-height: 1.15;
}

.lab-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metrics div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(247, 244, 236, 0.13);
  border-radius: var(--radius);
  background: rgba(247, 244, 236, 0.07);
}

.metrics strong {
  display: block;
  font-size: 2.35rem;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics small {
  display: block;
  margin-top: 8px;
  color: rgba(247, 244, 236, 0.58);
  font-size: 0.82rem;
  line-height: 1.5;
}

.resume-grid,
.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.resume-panel,
.research-list {
  min-height: 420px;
  padding: 26px;
  border: 1px solid rgba(247, 244, 236, 0.14);
  border-radius: var(--radius);
  background: rgba(14, 17, 24, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.resume-panel h3,
.research-list h3 {
  margin: 0 0 22px;
  font-size: 1.38rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline.compact {
  gap: 12px;
}

.timeline-item {
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 18px rgba(112, 241, 255, 0.45);
}

.timeline-item p {
  margin: 0 0 6px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-item h4 {
  margin: 0;
  font-size: 1.08rem;
}

.timeline-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-item ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.skills-title {
  margin-top: 34px !important;
}

.skill-matrix {
  display: grid;
  gap: 10px;
}

.skill-block {
  padding: 14px;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: var(--radius);
  background: rgba(247, 244, 236, 0.06);
}

.skill-block strong,
.research-item h4 {
  display: block;
  margin: 0;
}

.skill-block span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.research-list {
  display: grid;
  align-content: start;
  gap: 14px;
}

.research-item {
  padding: 16px;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: var(--radius);
  background: rgba(247, 244, 236, 0.06);
}

.research-item p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.research-item span {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(210, 255, 111, 0.22);
  border-radius: var(--radius);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 46px;
  align-items: start;
  border-top: 1px solid rgba(247, 244, 236, 0.12);
}

.about-text p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.text-link {
  background: rgba(247, 244, 236, 0.08);
}

.contact {
  padding-top: 48px;
}

.contact-panel {
  padding: 56px;
  border: 1px solid rgba(247, 244, 236, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(112, 241, 255, 0.12), transparent 32%),
    linear-gradient(250deg, rgba(255, 109, 152, 0.11), transparent 30%),
    rgba(14, 17, 24, 0.78);
  box-shadow: var(--shadow);
}

.contact-panel .button {
  margin-top: 28px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 36px), 1160px);
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(247, 244, 236, 0.12);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

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

@keyframes beamSpin {
  from {
    transform: rotate(0deg) scale(1.1);
  }
  to {
    transform: rotate(360deg) scale(1.1);
  }
}

@keyframes tilePulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateZ(0);
  }
  50% {
    opacity: 0.95;
    transform: translateZ(26px);
  }
}

@keyframes typeDrift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(18px);
  }
}

@keyframes scanMove {
  0% {
    transform: translateX(0) skewX(-12deg);
  }
  58%,
  100% {
    transform: translateX(360%) skewX(-12deg);
  }
}

@keyframes lineGrow {
  0%,
  100% {
    transform: scaleX(0.42);
  }
  50% {
    transform: scaleX(1);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes gridSlide {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 56px 0, 0 56px;
  }
}

@keyframes frameFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }
  50% {
    transform: translate3d(14px, -10px, 0) rotate(2deg);
  }
}

@keyframes shardShift {
  0%,
  100% {
    clip-path: polygon(0 18%, 76% 0, 100% 58%, 22% 100%);
    transform: translate3d(0, 0, 0);
  }
  50% {
    clip-path: polygon(16% 0, 100% 18%, 82% 100%, 0 68%);
    transform: translate3d(8px, -8px, 0);
  }
}

@keyframes panelSweep {
  0%,
  100% {
    transform: translateX(-38%);
  }
  50% {
    transform: translateX(38%);
  }
}

@keyframes orbitLean {
  0%,
  100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(12deg) rotateY(-18deg);
  }
}

@keyframes corePulse {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

@media (max-width: 920px) {
  .site-header {
    align-items: start;
    min-height: auto;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: end;
  }

  .site-nav a {
    min-height: 36px;
    padding: 9px 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 150px;
  }

  .hero h1 {
    font-size: 4.8rem;
    line-height: 0.96;
  }

  .kinetic-type {
    font-size: 3.6rem;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-panel h2 {
    font-size: 2.85rem;
  }

  .lab-copy h3 {
    font-size: 2rem;
  }

  .hero-stage {
    min-height: 420px;
  }

  .project-grid,
  .about,
  .lab-board,
  .resume-grid,
  .research-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .cursor-glow {
    display: none;
  }

  .section-shell,
  .site-footer {
    width: min(calc(100% - 28px), 1160px);
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), 1160px);
    padding: 10px;
  }

  .brand {
    min-width: 78px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: 2.95rem;
    line-height: 1.04;
  }

  .kinetic-type {
    font-size: 2.45rem;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-panel h2 {
    font-size: 2.12rem;
  }

  .lab-copy h3 {
    font-size: 1.5rem;
  }

  .hero-stage {
    min-height: 360px;
  }

  .stage-grid {
    inset: 22px;
    gap: 7px;
  }

  .stage-grid span {
    min-height: 74px;
  }

  .stage-panel {
    right: 18px;
    top: 18px;
    width: 138px;
  }

  .project-card {
    min-height: 420px;
  }

  .project-media {
    height: 240px;
  }

  .work,
  .lab,
  .about,
  .resume,
  .research,
  .contact {
    padding-block: 70px;
  }

  .lab-board,
  .contact-panel {
    padding: 22px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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