:root {
  --bg: #050505;
  --bg-deep: #0d0c0a;
  --panel: rgba(15, 14, 12, 0.72);
  --panel-strong: rgba(22, 20, 17, 0.9);
  --text: #f5efe4;
  --muted: #c7bcad;
  --muted-soft: #968a7a;
  --line: rgba(212, 177, 118, 0.15);
  --line-strong: rgba(212, 177, 118, 0.3);
  --accent: #d8b27a;
  --accent-strong: #f0d3a1;
  --accent-faint: rgba(216, 178, 122, 0.08);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  --radius: 24px;
  --content-width: min(1180px, calc(100vw - 2rem));
  --scroll: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(68, 54, 30, 0.22), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(110, 92, 58, 0.12), transparent 24%),
    linear-gradient(180deg, #020202 0%, #070706 42%, #020202 100%);
  overflow-x: hidden;
  scroll-snap-type: y proximity;
}

body.is-booting {
  overflow: hidden;
}

body.boot-complete .boot-screen {
  opacity: 0;
  visibility: hidden;
}

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

.custom-cursor {
  display: none;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 178, 122, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(3, 3, 2, 0.98), rgba(8, 7, 5, 0.98));
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

.boot-shell {
  width: min(42rem, 100%);
  padding: 1.15rem;
  border: 1px solid rgba(216, 178, 122, 0.18);
  border-radius: 20px;
  background: rgba(8, 7, 5, 0.9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

.boot-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: "Azeret Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.boot-skip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.boot-skip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.boot-log {
  display: grid;
  gap: 0.55rem;
  min-height: 11rem;
  font-family: "Azeret Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.boot-log p {
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.boot-log p.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-log p::before {
  content: "> ";
  color: var(--accent);
}

.boot-progress {
  position: relative;
  margin-top: 1.2rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.boot-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 18px rgba(216, 178, 122, 0.38);
  transition: width 180ms ease;
}

.progress-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
  background: rgba(255, 255, 255, 0.03);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 24px rgba(216, 178, 122, 0.32);
  transition: width 120ms linear;
}

.space {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.space-stars {
  z-index: -4;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 18%, rgba(255, 244, 224, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 34% 74%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 61% 61%, rgba(255, 232, 198, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 88% 76%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 17% 63%, rgba(255, 240, 220, 0.82) 0 1px, transparent 1.6px);
  background-size: 18rem 18rem, 21rem 21rem, 16rem 16rem, 23rem 23rem, 19rem 19rem, 25rem 25rem;
  opacity: 0.8;
}

.space-twinkle {
  z-index: -3;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.22), transparent 8%),
    radial-gradient(circle at 72% 38%, rgba(216, 178, 122, 0.14), transparent 10%),
    radial-gradient(circle at 48% 72%, rgba(255, 255, 255, 0.16), transparent 11%);
  animation: twinkle 12s ease-in-out infinite alternate;
}

.space-nebula {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 20%, rgba(58, 45, 24, 0.2), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(83, 68, 39, 0.14), transparent 24%),
    radial-gradient(circle at 70% 74%, rgba(52, 43, 30, 0.14), transparent 26%),
    radial-gradient(circle at 38% 80%, rgba(216, 178, 122, 0.08), transparent 18%);
  filter: blur(18px);
  transform: translate3d(0, calc(var(--scroll) * -0.07px), 0) scale(1.05);
}

.space-vignette {
  z-index: -1;
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(3, 3, 2, 0.2), rgba(3, 3, 2, 0.78));
}

.space-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.space-object {
  position: absolute;
  opacity: 0.24;
  filter: drop-shadow(0 0 20px rgba(216, 178, 122, 0.08));
  transform-origin: center;
  user-select: none;
}

.astronaut {
  top: 18svh;
  right: 6vw;
  width: min(16rem, 28vw);
  transform: rotate(12deg) translate3d(0, calc(var(--scroll) * -0.05px), 0);
  animation: astronaut-drift 18s ease-in-out infinite alternate;
}

.ship {
  opacity: 0.18;
}

.ship-one {
  top: 10svh;
  left: -12rem;
  width: min(18rem, 30vw);
  animation: ship-cruise-one 26s linear infinite;
}

.ship-two {
  bottom: 18svh;
  right: -10rem;
  width: min(12rem, 22vw);
  animation: ship-cruise-two 32s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 0 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 9, 7, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.brand {
  padding-left: 1rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex-direction: column;
  width: 3rem;
  height: 3rem;
  margin-right: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.4rem;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 0.75rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted-soft);
  font-family: "Azeret Mono", monospace;
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

main {
  width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.panel {
  min-height: auto;
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  display: grid;
  align-content: start;
  gap: 1.6rem;
  scroll-snap-align: start;
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 1.2rem;
  min-height: auto;
  align-content: start;
}

/* Keep the first section content-sized instead of forcing a full viewport height. */
section#home.panel.hero {
  min-height: 0 !important;
  height: auto !important;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2rem 0 auto;
  height: min(72vh, 42rem);
  border-radius: 32px;
  background:
    radial-gradient(circle at 72% 28%, rgba(216, 178, 122, 0.1), transparent 26%),
    radial-gradient(circle at 36% 20%, rgba(145, 121, 81, 0.08), transparent 22%);
  z-index: -1;
  filter: blur(4px);
}

.hero-copy,
.section-heading {
  max-width: 760px;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.eyebrow {
  margin: 0;
  font-family: "Azeret Mono", monospace;
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(3rem, 8vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 10.5ch;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  max-width: 14ch;
}

.lead,
.card p,
.experience-card p,
.contact-card p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.84;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-meta span,
.hero-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: "Azeret Mono", monospace;
  font-size: 0.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.button-primary {
  background: linear-gradient(90deg, rgba(216, 178, 122, 0.18), rgba(240, 211, 161, 0.08));
}

.hero-panel,
.card,
.experience-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.hero-panel::before,
.card::before,
.experience-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 182, 107, 0.6), transparent 60%);
}

.hero-panel:hover,
.card:hover,
.experience-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

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

.hero-panel-head,
.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-soft);
  font-family: "Azeret Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.focus-list {
  display: grid;
  gap: 0.9rem;
}

.focus-list article {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 188, 129, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.focus-list h2,
.card h3,
.experience-card h3 {
  margin: 0 0 0.4rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
}

.focus-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.stat-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-strip article {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
}

.stat-strip strong {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--accent);
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.stat-strip span {
  color: var(--muted);
  line-height: 1.6;
}

.section-grid {
  gap: 2rem;
}

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

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

.card {
  padding: 1.45rem;
}

.detail-list,
.experience-card ul,
.interest-grid {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.78;
}

.stack-list {
  display: grid;
  gap: 1rem;
}

.stack-list span,
.lane-title,
.card-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-family: "Azeret Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-list p {
  margin: 0;
}

.experience-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 24rem);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.experience-track::-webkit-scrollbar {
  height: 9px;
}

.experience-track::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 107, 0.22);
  border-radius: 999px;
}

.experience-card {
  padding: 1.45rem;
  scroll-snap-align: start;
}

.experience-card ul {
  margin-bottom: 0;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(255, 124, 92, 0.08), rgba(255, 182, 107, 0.03)),
    var(--panel-strong);
}

.skill-lanes {
  display: grid;
  gap: 1rem;
}

.skill-lane {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.chip-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip-row span {
  flex: 0 0 auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Azeret Mono", monospace;
  font-size: 0.82rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.chip-row span:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  list-style: none;
  padding: 0;
}

.interest-grid li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.contact-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.language-line {
  margin-top: 1rem;
  color: var(--accent);
  font-family: "Azeret Mono", monospace;
  font-size: 0.82rem;
}

.contact-links a {
  width: fit-content;
  padding-bottom: 0.2rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.contact-links a:hover {
  color: var(--text);
  border-color: currentColor;
  transform: translateX(4px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

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

@keyframes twinkle {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }

  100% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

@keyframes astronaut-drift {
  0% {
    transform: rotate(9deg) translate3d(0, calc(var(--scroll) * -0.05px), 0);
  }

  50% {
    transform: rotate(15deg) translate3d(-1rem, calc(var(--scroll) * -0.05px - 0.6rem), 0);
  }

  100% {
    transform: rotate(11deg) translate3d(0.8rem, calc(var(--scroll) * -0.05px + 0.9rem), 0);
  }
}

@keyframes ship-cruise-one {
  0% {
    transform: translate3d(0, 0, 0) rotate(3deg);
    opacity: 0;
  }

  10% {
    opacity: 0.16;
  }

  50% {
    opacity: 0.22;
  }

  90% {
    opacity: 0.16;
  }

  100% {
    transform: translate3d(calc(100vw + 28rem), 4rem, 0) rotate(3deg);
    opacity: 0;
  }
}

@keyframes ship-cruise-two {
  0% {
    transform: translate3d(0, 0, 0) rotate(188deg);
    opacity: 0;
  }

  12% {
    opacity: 0.12;
  }

  55% {
    opacity: 0.2;
  }

  88% {
    opacity: 0.12;
  }

  100% {
    transform: translate3d(calc(-100vw - 22rem), -6rem, 0) rotate(188deg);
    opacity: 0;
  }
}

@media (pointer: fine) {
  body,
  a,
  button,
  .button,
  .chip-row span,
  .experience-card,
  .card,
  .hero-panel,
  .site-nav a,
  .boot-skip {
    cursor: none;
  }

  .custom-cursor {
    display: block;
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 120;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 160ms ease;
  }

  .custom-cursor.is-visible {
    opacity: 1;
  }

  .cursor-ring,
  .cursor-core {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
  }

  .cursor-ring {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(216, 178, 122, 0.42);
    background: rgba(216, 178, 122, 0.05);
    box-shadow: 0 0 24px rgba(216, 178, 122, 0.14);
    transition:
      transform 180ms ease,
      width 180ms ease,
      height 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease;
  }

  .cursor-core {
    width: 0.42rem;
    height: 0.42rem;
    background: linear-gradient(180deg, var(--accent-strong), var(--accent));
    box-shadow: 0 0 16px rgba(240, 211, 161, 0.5);
    transition:
      transform 120ms ease,
      opacity 120ms ease;
  }

  .custom-cursor.is-hovering .cursor-ring {
    width: 3.2rem;
    height: 3.2rem;
    border-color: rgba(240, 211, 161, 0.65);
    background: rgba(216, 178, 122, 0.08);
    transform: translate3d(-50%, -50%, 0) scale(1.04);
  }

  .custom-cursor.is-hovering .cursor-core {
    transform: translate3d(-50%, -50%, 0) scale(1.25);
  }

  .custom-cursor.is-hidden {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .profile-layout,
  .publication-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-heading h2 {
    max-width: 100%;
  }

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

  .astronaut {
    width: min(12rem, 24vw);
    right: 2vw;
    opacity: 0.18;
  }
}

@media (max-width: 720px) {
  :root {
    --content-width: min(100vw - 1rem, 100%);
    --radius: 20px;
  }

  .boot-shell {
    padding: 1rem;
  }

  .boot-log {
    min-height: 12rem;
    font-size: 0.8rem;
  }

  .space-scene {
    opacity: 0.55;
  }

  .site-header {
    padding-top: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    padding: 0.95rem 0 0.95rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(0.44rem) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-0.44rem) rotate(-45deg);
  }

  .site-nav {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    padding: 0 0.45rem;
    margin-top: 0;
    transform: translateY(-0.35rem);
    transition:
      max-height 220ms ease,
      opacity 220ms ease,
      transform 220ms ease,
      margin-top 220ms ease,
      padding 220ms ease;
  }

  .site-header.is-open .site-nav {
    max-height: 24rem;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.15rem;
    padding: 0 0.45rem 0.5rem;
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
  }

  .panel {
    min-height: auto;
    padding: 3rem 0 1rem;
  }

  .hero h1,
  .section-heading h2 {
    font-size: clamp(2.2rem, 13vw, 4rem);
    line-height: 0.98;
  }

  .lead,
  .card p,
  .experience-card p,
  .contact-card p,
  .detail-list,
  .experience-card ul,
  .interest-grid {
    font-size: 0.96rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel,
  .card,
  .experience-card {
    padding: 1.15rem;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .experience-track {
    grid-auto-columns: 86%;
  }

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

  .ship-one,
  .ship-two {
    display: none;
  }

  .astronaut {
    top: 13svh;
    right: -2rem;
    width: 8.5rem;
    opacity: 0.14;
  }
}

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

  .boot-screen,
  .boot-log p,
  .boot-progress span,
  .progress-bar span,
  .button,
  .site-nav a,
  .card,
  .experience-card,
  .hero-panel,
  .chip-row span,
  .contact-links a,
  .reveal {
    transition: none;
  }

  .space-twinkle {
    animation: none;
  }

  .custom-cursor,
  .cursor-ring,
  .cursor-core {
    transition: none;
  }

  .nav-toggle span,
  .site-nav {
    transition: none;
  }

  .astronaut,
  .ship-one,
  .ship-two {
    animation: none;
  }

  .reveal,
  .boot-log p {
    opacity: 1;
    transform: none;
  }
}
