:root {
  --font-ui: "Manrope", sans-serif;
  --font-display: "Cormorant Garamond", serif;
  --bg: #08111f;
  --bg-deep: #050b14;
  --panel: rgba(10, 18, 30, 0.78);
  --panel-strong: rgba(12, 21, 35, 0.92);
  --panel-soft: rgba(16, 25, 41, 0.7);
  --line: rgba(160, 189, 226, 0.16);
  --line-strong: rgba(160, 189, 226, 0.3);
  --text: #edf3ff;
  --muted: #a4b5cd;
  --accent: #ff8452;
  --accent-strong: #ff6a3d;
  --accent-soft: rgba(255, 132, 82, 0.16);
  --blue: #6ab6ff;
  --shadow: 0 32px 80px rgba(3, 8, 18, 0.42);
  --radius: 28px;
  --shell: min(1180px, calc(100vw - 40px));
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at top, rgba(62, 112, 190, 0.18), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(255, 132, 82, 0.08), transparent 20%),
    linear-gradient(180deg, #091220 0%, #060d18 38%, #040913 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 92%);
  opacity: 0.28;
  pointer-events: none;
  z-index: -2;
}

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

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

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

.starfield,
.page-noise,
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.starfield {
  z-index: -4;
  width: 100%;
  height: 100%;
}

.page-noise {
  z-index: -3;
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0, transparent 22%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.12) 0, transparent 18%),
    radial-gradient(circle at 45% 78%, rgba(255, 255, 255, 0.14) 0, transparent 16%);
  background-size: 28rem 28rem, 22rem 22rem, 24rem 24rem;
  mix-blend-mode: screen;
}

.page-glow {
  z-index: -1;
  background:
    radial-gradient(circle at 70% 18%, rgba(106, 182, 255, 0.13), transparent 26%),
    radial-gradient(circle at 28% 14%, rgba(255, 132, 82, 0.1), transparent 18%);
}

.site-header {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 40;
  width: 170px;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  background: rgba(7, 13, 23, 0.74);
  border: 0;
  border-radius: 24px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 22px 54px rgba(2, 8, 19, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.site-nav a {
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  color: rgba(224, 231, 243, 0.66);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    text-shadow 180ms ease;
  border: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f2f6ff;
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(2px);
  box-shadow: 0 12px 26px rgba(5, 12, 22, 0.18);
}

.site-nav a.is-active {
  color: #fff5ed;
  background:
    radial-gradient(circle at left center, rgba(255, 176, 125, 0.16), transparent 64%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  text-shadow:
    0 0 18px rgba(255, 184, 132, 0.24),
    0 0 26px rgba(106, 182, 255, 0.14);
  box-shadow:
    0 14px 28px rgba(255, 176, 125, 0.12),
    inset 2px 0 0 rgba(255, 184, 132, 0.85);
}

.site-main {
  width: var(--shell);
  margin: 0 auto;
  padding: 44px 0 96px;
}

.hero {
  min-height: calc(100svh - 156px);
  padding: 36px 0 24px;
  display: grid;
  place-items: center;
}

.section-heading h2,
.detail-card h3,
.experience-card h3,
.honors-card h3,
.project-card h3,
.contact-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.eyebrow,
.detail-card__label,
.intro-card__label {
  color: #f6c2ad;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.prose-card p,
.experience-card__body,
.honors-card__meta,
.honors-card__body,
.project-card__content p,
.contact-copy,
.resume-card__lead,
.resume-card__meta,
.detail-card p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions,
.resume-card__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.project-card:hover,
.project-card:focus-visible,
.experience-card--link:hover,
.experience-card--link:focus-visible,
.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-3px);
}

.button--primary {
  color: #09111d;
  background: linear-gradient(135deg, #ffb07d 0%, var(--accent) 58%, var(--accent-strong) 100%);
  box-shadow: 0 18px 42px rgba(255, 132, 82, 0.22);
}

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

.hero-planet {
  position: relative;
  width: min(100%, 820px);
  min-height: 820px;
  perspective: 1600px;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--scene-rotate-x, 0deg))
    rotateY(var(--scene-rotate-y, 0deg));
  transition: transform 220ms ease-out;
  will-change: transform;
}

.hero-planet__core-glow {
  position: absolute;
  inset: 50%;
  width: 420px;
  height: 420px;
  transform:
    translate(-50%, -50%)
    translate3d(var(--core-shift-x, 0px), var(--core-shift-y, 0px), 0);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(106, 182, 255, 0.22) 0%, rgba(106, 182, 255, 0.1) 42%, transparent 72%);
  filter: blur(24px);
}

.hero-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.hero-traces path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1.25;
  mix-blend-mode: screen;
  vector-effect: non-scaling-stroke;
}

.hero-traces .trace-static {
  opacity: 0.34;
}

.hero-traces .trace-tail-glow {
  opacity: 0.28;
  stroke-width: 8;
}

.hero-traces .trace-tail {
  opacity: 0.8;
  stroke-width: 2.1;
}

.hero-traces .trace-dot {
  opacity: 0.98;
}

.intro-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(100%, 454px);
  min-height: 338px;
  padding: 30px 30px 26px;
  transform:
    translate(-50%, -50%)
    translate3d(var(--card-shift-x, 0px), var(--card-shift-y, 0px), 46px)
    rotateX(var(--card-rotate-x, 0deg))
    rotateY(var(--card-rotate-y, 0deg));
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
  text-align: left;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(228, 232, 238, 0.05));
  box-shadow:
    0 24px 72px rgba(4, 10, 22, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(34px) saturate(105%);
  -webkit-backdrop-filter: blur(34px) saturate(105%);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
  will-change: transform;
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  opacity: 1;
}

.intro-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 24%),
    linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.06) 46%, transparent 60%);
  pointer-events: none;
}

.intro-card > * {
  position: relative;
  z-index: 1;
}

.intro-card h1 {
  margin: 0;
  position: relative;
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(3rem, 5.15vw, 4.1rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: #b9d9eb;
  text-shadow: 0 1px 14px rgba(11, 22, 42, 0.14);
  transform: translateZ(36px);
}

.intro-card h1::before {
  content: none;
}

.intro-card__eyebrow {
  margin: 0;
  color: rgba(229, 237, 248, 0.7);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transform: translateZ(28px);
}

.intro-card__title {
  position: relative;
  width: 100%;
  padding-top: 8px;
  transform: translateZ(34px);
}

.intro-card__divider {
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.22) 12%,
      rgba(235, 242, 252, 0.78) 50%,
      rgba(255, 255, 255, 0.22) 88%,
      rgba(255, 255, 255, 0)
    );
  opacity: 0.82;
  transform: translateZ(22px);
}

.descriptor-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.descriptor-list--planet {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  justify-items: start;
  align-items: start;
  column-gap: 14px;
  row-gap: 12px;
  margin-top: 6px;
  transform: translateZ(30px);
}

.descriptor-list li {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(242, 247, 255, 0.88);
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: normal;
  text-shadow: none;
}

.descriptor-list--planet li:nth-child(1) {
  color: rgba(242, 247, 255, 0.88);
}

.descriptor-list--planet li:nth-child(2) {
  color: rgba(242, 247, 255, 0.88);
}

.descriptor-list--planet li:nth-child(3) {
  color: rgba(242, 247, 255, 0.88);
}

.descriptor-list--planet li:nth-child(4) {
  color: rgba(242, 247, 255, 0.72);
}

.descriptor-list--planet li:nth-child(1) {
  grid-column: 1;
  transform: none;
}

.descriptor-list--planet li:nth-child(2) {
  grid-column: 2;
  transform: none;
}

.descriptor-list--planet li:nth-child(3) {
  grid-column: 1;
  transform: none;
}

.descriptor-list--planet li:nth-child(4) {
  grid-column: 2;
  transform: none;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform:
    translate(-50%, -50%)
    translate3d(var(--orbit-x, 0px), var(--orbit-y, 0px), 0);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.orbit__spinner {
  position: relative;
  width: 0;
  height: 0;
}

.orbit-icon {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: var(--icon-size, 64px);
  height: var(--icon-size, 64px);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 24, 39, 0.94), rgba(10, 17, 29, 0.86));
  box-shadow: 0 18px 42px rgba(4, 10, 20, 0.28);
  pointer-events: auto;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  overflow: hidden;
  transform-style: preserve-3d;
}

.orbit-icon:hover,
.orbit-icon:focus-visible {
  border-color: rgba(255, 132, 82, 0.34);
  box-shadow: 0 18px 42px rgba(255, 132, 82, 0.14);
}

.orbit-icon img,
.orbit-icon svg {
  width: 54%;
  height: 54%;
  object-fit: contain;
}

.orbit-icon svg {
  fill: currentColor;
}

.orbit-icon--github {
  --icon-size: 80px;
  border-radius: 24px;
  padding: 0;
}

.orbit-icon--github img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit-icon--ucla {
  --icon-size: 72px;
  padding: 10px;
}

.orbit-icon--ucla img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.orbit-icon--linkedin {
  color: #0a66c2;
}

.orbit-icon--resume {
  color: #ffb48e;
}

.orbit-icon--fish {
  color: var(--blue);
}

.orbit-icon--linkedin svg,
.orbit-icon--email svg {
  width: 70%;
  height: 70%;
}

.orbit-icon--email img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.orbit-icon--resume svg {
  width: 74%;
  height: 74%;
}

.section-shell {
  margin-top: 30px;
  padding: 34px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 18, 31, 0.88), rgba(8, 14, 24, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.45rem, 4.2vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-linkmap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 180ms ease;
}

.about-layout.is-linked .about-linkmap {
  opacity: 1;
}

.about-linkmap__glow,
.about-linkmap__path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-linkmap__glow {
  stroke: rgba(246, 194, 173, 0.18);
  stroke-width: 9;
  filter: blur(5px);
}

.about-linkmap__path {
  stroke: rgba(246, 194, 173, 0.82);
  stroke-width: 1.45;
  stroke-dasharray: 8 7;
}

.about-linkmap__node {
  fill: #f6c2ad;
  opacity: 0;
  transition: opacity 180ms ease;
}

.about-layout.is-linked .about-linkmap__node {
  opacity: 1;
}

.about-profile {
  display: grid;
  gap: 28px;
  align-content: start;
  position: relative;
  z-index: 1;
}

.about-profile__identity {
  display: grid;
  gap: 8px;
}

.about-profile__school {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}

.about-profile__line {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: nowrap;
}

.about-focus {
  display: grid;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-focus__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.about-focus__button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.2vw, 1.78rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: rgba(220, 231, 246, 0.86);
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms ease,
    text-shadow 180ms ease;
}

.about-focus__button:hover,
.about-focus__button:focus-visible,
.about-focus__button.is-active {
  color: #f5f8ff;
  transform: translateX(8px);
  text-shadow: 0 0 22px rgba(246, 194, 173, 0.09);
}

.about-focus__button:focus-visible {
  outline: none;
}

.about-narrative {
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
  z-index: 1;
}

.about-sequence {
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  list-style: none;
  counter-reset: about-sequence;
}

.about-sequence li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  counter-increment: about-sequence;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.about-sequence li::before {
  content: "0" counter(about-sequence);
  font-family: var(--font-display);
  font-size: 1.46rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(246, 194, 173, 0.88);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.about-sequence p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.72;
  transition: color 180ms ease;
}

.about-sequence li.is-active {
  border-top-color: rgba(246, 194, 173, 0.18);
  transform: translateX(4px);
}

.about-sequence li.is-active::before {
  color: #f6c2ad;
  transform: translateX(4px);
}

.about-sequence li.is-active p {
  color: #e7eef9;
}

.prose-card,
.detail-card,
.experience-card,
.honors-card,
.project-card,
.resume-card,
.contact-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.prose-card {
  padding: 28px;
}

.prose-card p + p {
  margin-top: 18px;
}

.detail-stack {
  display: grid;
  gap: 16px;
}

.detail-card {
  padding: 22px;
}

.detail-card--accent {
  background:
    linear-gradient(135deg, rgba(255, 132, 82, 0.14), rgba(12, 21, 35, 0.84));
  border-color: rgba(255, 132, 82, 0.22);
}

.detail-card h3,
.experience-card h3,
.contact-card h3 {
  margin: 8px 0 8px;
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: 0;
}

.experience-grid,
.honors-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

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

.experience-card {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.experience-card--link {
  cursor: pointer;
}

.experience-card:hover,
.experience-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(2, 8, 19, 0.36);
}

.honors-card {
  padding: 24px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.honors-card--accent {
  background:
    linear-gradient(135deg, rgba(255, 132, 82, 0.09), rgba(10, 18, 31, 0.88));
  border-color: rgba(255, 132, 82, 0.16);
}

.honors-card__top {
  display: grid;
  gap: 8px;
}

.honors-card__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.honors-card__brand .detail-card__label {
  margin: 0;
}

.honors-card__logo {
  display: block;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 1;
  filter: brightness(1.14) contrast(1.12) saturate(1.05)
    drop-shadow(0 8px 18px rgba(4, 10, 20, 0.16));
}

.honors-card__logo--nus {
  height: 52px;
}

.honors-card__top h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.honors-card__meta,
.honors-card__body {
  margin: 0;
}

.honors-card__meta {
  font-size: 0.95rem;
}

.metric-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.metric-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8e4f7;
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(255, 132, 82, 0.24);
  box-shadow: 0 26px 66px rgba(2, 8, 19, 0.36);
}

.project-card__media {
  min-height: 220px;
  background: var(--panel-strong);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__media--abstract {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 132, 82, 0.34), transparent 34%),
    radial-gradient(circle at 70% 72%, rgba(106, 182, 255, 0.24), transparent 30%),
    linear-gradient(160deg, #14253d 0%, #08111d 100%);
}

.project-card__media--abstract::before,
.project-card__media--abstract::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-card__media--abstract::before {
  width: 180px;
  height: 180px;
}

.project-card__media--abstract::after {
  width: 250px;
  height: 250px;
  border-style: dashed;
}

.project-card__media--abstract span {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__media--abstract span:nth-child(1) {
  top: 28px;
  left: 24px;
}

.project-card__media--abstract span:nth-child(2) {
  bottom: 34px;
  right: 22px;
}

.project-card__media--abstract span:nth-child(3) {
  bottom: 88px;
  left: 42px;
}

.project-card__content {
  padding: 24px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.project-card__content h3 {
  margin-bottom: 0;
  font-size: 1.46rem;
  letter-spacing: 0;
}

.resume-card {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.resume-card__lead {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.resume-card__meta {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.contact-copy {
  max-width: 42rem;
  margin-bottom: 20px;
  font-size: 1.06rem;
}

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

.contact-card {
  padding: 24px;
  display: grid;
  gap: 10px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: rgba(106, 182, 255, 0.3);
  box-shadow: 0 20px 52px rgba(2, 8, 19, 0.3);
}

.contact-card h3 {
  margin: 6px 0 0;
  font-size: 1.48rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.contact-card--resume {
  background:
    linear-gradient(135deg, rgba(255, 132, 82, 0.18), rgba(12, 21, 35, 0.88));
  border-color: rgba(255, 132, 82, 0.24);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 640ms ease, transform 640ms ease;
}

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

@keyframes slow-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(var(--orbit-start));
  }

  to {
    transform: rotate(calc(var(--orbit-start) + 360deg));
  }
}

@keyframes orbit-counter-spin {
  from {
    transform: translate(-50%, -50%) rotate(calc(var(--orbit-start) * -1));
  }

  to {
    transform: translate(-50%, -50%) rotate(calc((var(--orbit-start) + 360deg) * -1));
  }
}

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

  .orbit-icon,
  .reveal {
    transition: none;
  }

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

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
  }

  .hero-planet {
    width: min(100%, 760px);
    min-height: 760px;
  }

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

  .resume-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    transform: none;
    flex-direction: row;
    align-items: center;
    width: min(calc(100vw - 24px), 100%);
    margin: 12px auto 0;
    padding: 14px;
    gap: 14px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 6px;
    justify-content: flex-start;
  }

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

  .site-main {
    width: min(calc(100vw - 24px), 100%);
    padding-top: 28px;
    margin: 0 auto;
  }

  .hero-planet {
    width: min(100%, 680px);
    margin: 0 auto;
    min-height: 680px;
  }

  .intro-card {
    width: min(100%, 382px);
    min-height: 374px;
    padding: 28px 24px 22px;
  }

  .about-layout,
  .experience-grid,
  .honors-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 28px;
  }

  .about-linkmap {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 18px;
  }

  .hero-planet {
    min-height: 590px;
  }

  .intro-card {
    width: min(100%, 364px);
    min-height: 296px;
    padding: 24px 20px 20px;
  }

  .orbit-icon {
    width: var(--icon-size, 56px);
    height: var(--icon-size, 56px);
    border-radius: 18px;
  }

  .orbit-icon--github {
    --icon-size: 64px;
    border-radius: 20px;
  }

  .intro-card__eyebrow {
    font-size: 0.84rem;
  }

  .intro-card h1 {
    font-size: clamp(2.38rem, 7.4vw, 3rem);
  }

  .descriptor-list li {
    font-size: 0.84rem;
  }

  .descriptor-list--planet {
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 8px;
  }

  .section-shell {
    padding: 24px;
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  .hero-actions,
  .resume-card__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-planet {
    min-height: 510px;
  }

  .intro-card {
    width: min(100%, 308px);
    min-height: 252px;
    padding: 18px 16px 16px;
    gap: 10px;
  }

  .orbit-icon {
    width: var(--icon-size, 48px);
    height: var(--icon-size, 48px);
    border-radius: 16px;
  }

  .orbit-icon--github {
    --icon-size: 56px;
    border-radius: 18px;
  }

  .project-card__media {
    min-height: 190px;
  }

  .intro-card__eyebrow {
    font-size: 0.74rem;
  }

  .intro-card h1 {
    font-size: clamp(1.92rem, 10.2vw, 2.28rem);
  }

  .descriptor-list li {
    font-size: 0.74rem;
  }

  .descriptor-list--planet {
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 7px;
  }

  .about-sequence li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .about-sequence li::before {
    font-size: 1.22rem;
  }

  .about-focus__button {
    font-size: 1.24rem;
  }

  .about-profile__line {
    white-space: normal;
  }

  .honors-card__brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .honors-card__logo--nus {
    height: 40px;
  }

  .intro-card__title {
    padding-top: 6px;
  }
}
