:root {
  --bg: #040812;
  --bg-deep: #02050b;
  --panel: rgba(8, 14, 24, 0.78);
  --panel-strong: rgba(8, 14, 24, 0.92);
  --line: rgba(220, 234, 255, 0.1);
  --line-strong: rgba(220, 234, 255, 0.18);
  --text: #f5efe2;
  --muted: #afbdd2;
  --accent-cyan: #78e8db;
  --accent-gold: #efb36b;
  --accent-sky: #80c4ff;
  --accent-rose: #ff9586;
  --accent-violet: #b9a6ff;
  --sun: #ffb547;
  --intro: #06111f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1320px;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(128, 196, 255, 0.14), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(255, 149, 134, 0.08), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(120, 232, 219, 0.07), transparent 30%),
    linear-gradient(180deg, #050913 0%, #03060d 40%, #020409 100%);
  overflow-x: hidden;
}

body.is-preloading {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.018), transparent 30%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.014), transparent 36%);
  pointer-events: none;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 95;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  gap: 1.2rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(117, 177, 255, 0.18), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(255, 223, 136, 0.1), transparent 10%),
    radial-gradient(circle at 18% 22%, rgba(120, 232, 219, 0.08), transparent 20%),
    radial-gradient(circle at 80% 18%, rgba(128, 196, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #071221 0%, #040914 55%, #02050b 100%);
  color: var(--text);
  transition:
    opacity 800ms ease,
    visibility 800ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-intro.is-complete {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
}

.site-intro__core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff5cf, #ffe08a 28%, #8abaff 64%, #2c5ea8 100%);
  box-shadow:
    0 0 0 20px rgba(138, 186, 255, 0.1),
    0 0 0 54px rgba(138, 186, 255, 0.04),
    0 0 46px rgba(126, 170, 255, 0.28);
  animation: introPulse 1.6s ease-in-out infinite;
}

.site-intro__status {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.82);
}

.site-intro__border {
  position: absolute;
  background: rgba(188, 220, 255, 0.42);
}

.site-intro__border--top {
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
}

.site-intro__border--left {
  top: 1.5rem;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
}

.site-intro__border--right {
  top: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
}

.hyperspeed {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.hyperspeed.is-active {
  opacity: 1;
}

.hyperspeed__streaks {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 24%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.0) 0,
      rgba(255, 255, 255, 0.0) 12px,
      rgba(255, 255, 255, 0.16) 12px,
      rgba(255, 255, 255, 0.16) 13px,
      rgba(255, 255, 255, 0.0) 13px,
      rgba(255, 255, 255, 0.0) 40px
    );
  transform: scaleX(0.6);
  filter: blur(3px);
}

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.page-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold), var(--accent-rose));
  box-shadow: 0 0 16px rgba(120, 232, 219, 0.45);
}

.site-shell {
  position: relative;
}

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

.starfield {
  opacity: 0.56;
}

.noise-layer {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 96%);
  opacity: 0.16;
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 50;
  width: min(calc(100% - 1.8rem), var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(6, 11, 18, 0.92), rgba(6, 11, 18, 0.62));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(128, 196, 255, 0.28), rgba(239, 179, 107, 0.18));
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.brand-copy strong {
  color: var(--text);
  font-size: 0.98rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.topnav a,
.section-rail a,
.planet-list__button {
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.topnav a::after,
.section-rail a::after,
.planet-list__button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.topnav a:hover,
.topnav a.is-active,
.section-rail a:hover,
.section-rail a.is-active,
.planet-list__button:hover,
.planet-list__button.is-active {
  color: var(--text);
  transform: translateY(-1px);
}

.topnav a:hover::after,
.topnav a.is-active::after,
.section-rail a:hover::after,
.section-rail a.is-active::after,
.planet-list__button:hover::after,
.planet-list__button.is-active::after {
  transform: scaleX(1);
}

.section-rail {
  position: fixed;
  top: 50%;
  right: 1.15rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform: translateY(-50%);
}

.section-rail a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 14, 26, 0.48);
  color: var(--muted);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
}

.hero-system,
.planet-section {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
}

.hero-system {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  min-height: calc(100vh - 100px);
  align-items: stretch;
  padding: 4.6rem 0 4rem;
}

.planet-section {
  position: relative;
  padding: 3.6rem 0 4rem;
  scroll-margin-top: 7rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.planet-section::before {
  content: "";
  position: absolute;
  inset: 1rem -4% auto;
  height: 240px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--section-accent, var(--accent-cyan)) 28%, transparent), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(12px);
}

.planet-section.is-current .section-heading::before {
  background: linear-gradient(90deg, var(--section-accent, rgba(255, 255, 255, 0.38)), rgba(255, 255, 255, 0));
}

.planet-section.is-current .section-card,
.planet-section.is-current .resume-frame {
  border-color: color-mix(in srgb, var(--section-accent, var(--accent-cyan)) 24%, rgba(255, 255, 255, 0.08));
}

.hero-copy,
.hero-cosmos,
.section-card,
.repo-card,
.resume-frame,
.contact-link {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.hero-copy,
.section-card {
  padding: 2rem;
}

.depth-card::before,
.repo-card::before,
.contact-link::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.16), transparent 30%);
  opacity: 0.5;
  pointer-events: none;
}

.eyebrow,
.hero-title,
.planet-panel__eyebrow,
.repo-category,
.timeline-period,
.card-label {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow,
.hero-title {
  color: var(--accent-cyan);
}

.hero-title {
  color: var(--accent-gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.92;
  max-width: 8ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  max-width: 12ch;
}

.planet-panel__title {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.section-heading {
  position: relative;
  margin-bottom: 2rem;
  padding-top: 1.2rem;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 40vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
}

.section-summary {
  margin-top: 0.85rem;
}

.lede,
.system-intro,
.planet-panel__summary,
.section-card p,
.repo-description,
.resume-point {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-name__word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.18em;
}

.hero-name__word span {
  display: inline-block;
  transform: translateY(108%);
  animation: liftIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--word-index, 0) * 120ms + 360ms);
}

.system-intro {
  margin-top: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.35rem 0 1.45rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.hero-meta span,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.9rem;
}

.hero-meta span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.quick-fact {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(5, 10, 17, 0.82);
}

.quick-fact span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-gold);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.quick-fact strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.hero-tip,
.section-summary {
  margin: 0;
  max-width: 62ch;
  color: color-mix(in srgb, var(--muted) 88%, white 12%);
  line-height: 1.7;
}

.hero-tip {
  font-size: 0.92rem;
}

.planet-panel {
  margin-top: 0.2rem;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(6, 11, 19, 0.86);
}

.planet-panel__eyebrow {
  color: var(--accent-gold);
}

.planet-panel__summary {
  margin: 0.9rem 0 1.2rem;
}

.planet-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.button.primary {
  background: linear-gradient(135deg, rgba(120, 232, 219, 0.2), rgba(128, 196, 255, 0.16));
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.button:focus-visible,
.planet-list__button:focus-visible,
.topnav a:focus-visible,
.section-rail a:focus-visible,
.repo-link:focus-visible,
.contact-link:focus-visible,
.scene-canvas:focus-visible {
  outline: 2px solid rgba(120, 232, 219, 0.9);
  outline-offset: 3px;
}

.planet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.planet-list__button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 0.82rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.planet-list__button strong {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
}

.planet-list__copy {
  flex: 1;
}

.planet-list__copy span:last-child {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.planet-list__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
}

.planet-list__button.is-active {
  border-color: color-mix(in srgb, var(--planet-accent, var(--accent-cyan)) 55%, rgba(255, 255, 255, 0.16));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--planet-accent, var(--accent-cyan)) 14%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.05);
}

.hero-cosmos {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background:
    radial-gradient(circle at center, rgba(255, 194, 81, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--panel-strong);
}

.hero-cosmos__hud,
.hero-cosmos__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.3rem 0.25rem 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-cosmos__footer {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-start;
}

.hero-cosmos__footer strong {
  max-width: 20ch;
  color: var(--text);
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: normal;
  text-transform: none;
}

.scene-shell {
  position: relative;
  min-height: 640px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 193, 80, 0.04), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(3, 7, 13, 0.92);
}

.scene-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 50%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 70px);
  opacity: 0.22;
  pointer-events: none;
}

.scene-shell::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.scene-fallback-map {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-fallback-map span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.scene-fallback-orbit {
  border-radius: 50%;
  border: 1px solid rgba(214, 229, 255, 0.08);
}

.orbit-1 { width: 74px; height: 74px; }
.orbit-2 { width: 108px; height: 108px; }
.orbit-3 { width: 142px; height: 142px; }
.orbit-4 { width: 188px; height: 188px; }
.orbit-5 { width: 252px; height: 252px; }
.orbit-6 { width: 318px; height: 318px; }
.orbit-7 { width: 384px; height: 384px; }
.orbit-8 { width: 446px; height: 446px; }

.scene-fallback-sun {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0bf, #ffdb7d 35%, #ffb24f 78%, #d47d1d 100%);
  box-shadow:
    0 0 0 14px rgba(255, 198, 104, 0.08),
    0 0 34px rgba(255, 190, 88, 0.32);
}

.scene-fallback-planet {
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.mercury-planet {
  width: 7px;
  height: 7px;
  background: #a7a39e;
  margin-left: 37px;
  margin-top: -6px;
}

.venus-planet {
  width: 11px;
  height: 11px;
  background: #d8b06e;
  margin-left: -49px;
  margin-top: 18px;
}

.earth-planet {
  width: 12px;
  height: 12px;
  background: #4f8fd7;
  margin-left: 69px;
  margin-top: 19px;
}

.mars-planet {
  width: 8px;
  height: 8px;
  background: #c96b4d;
  margin-left: -90px;
  margin-top: -34px;
}

.jupiter-planet {
  width: 21px;
  height: 21px;
  background: #c7a27a;
  margin-left: 124px;
  margin-top: -52px;
}

.saturn-planet {
  width: 19px;
  height: 19px;
  background: #d8c28a;
  margin-left: -157px;
  margin-top: 76px;
}

.saturn-planet::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(216, 194, 138, 0.46);
  transform: rotate(-18deg) scale(1.45, 0.48);
}

.uranus-planet {
  width: 14px;
  height: 14px;
  background: #8cdceb;
  margin-left: -198px;
  margin-top: -116px;
}

.neptune-planet {
  width: 14px;
  height: 14px;
  background: #4166e4;
  margin-left: 221px;
  margin-top: 102px;
}

body.scene-ready .scene-fallback-map {
  opacity: 0;
}

.scene-canvas,
.planet-labels {
  position: absolute;
  inset: 0;
}

.scene-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

body.scene-fallback .scene-canvas {
  opacity: 0;
}

body.scene-fallback .scene-shell::before {
  opacity: 0.34;
}

.planet-labels {
  pointer-events: none;
}

.planet-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0.12rem;
  min-width: max-content;
  padding: 0.35rem 0.55rem;
  border-radius: 14px;
  background: rgba(7, 13, 23, 0.72);
  border: 1px solid color-mix(in srgb, var(--planet-label-accent, white) 30%, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.planet-label.is-visible {
  opacity: 1;
}

.planet-label.is-active {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.planet-label strong {
  font-size: 0.9rem;
  color: var(--text);
}

.planet-label span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-grid {
  display: grid;
  gap: 1.5rem;
}

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

.resume-grid {
  grid-template-columns: 0.92fr 1.08fr;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bullet-list,
.timeline-list,
.resume-points {
  display: grid;
  gap: 0.9rem;
}

.bullet-item,
.resume-point,
.timeline-item {
  position: relative;
  padding-left: 1.2rem;
}

.bullet-item::before,
.resume-point::before,
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.timeline-item {
  padding-top: 0;
  border: 0;
}

.timeline-item h3 {
  margin-bottom: 0.28rem;
  font-size: 1.12rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-period,
.repo-category,
.card-label {
  color: var(--accent-gold);
}

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

.repo-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.45rem;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.repo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.repo-card:focus-within {
  border-color: rgba(120, 232, 219, 0.34);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.repo-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 15%;
  height: 180px;
  background: radial-gradient(circle, var(--repo-accent, rgba(255, 255, 255, 0.16)), transparent 65%);
  opacity: 0.34;
  pointer-events: none;
}

.repo-frame {
  min-height: 120px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(5, 11, 20, 0.78);
  overflow: hidden;
}

.repo-frame__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.repo-index {
  font-size: 2rem;
  line-height: 1;
  color: rgba(245, 239, 226, 0.28);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.repo-lines {
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.repo-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 85%);
}

.repo-lines span:nth-child(1) {
  width: 84%;
}

.repo-lines span:nth-child(2) {
  width: 64%;
}

.repo-lines span:nth-child(3) {
  width: 76%;
}

.repo-card h3 {
  font-size: 1.56rem;
}

.repo-highlights,
.repo-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.repo-highlights span,
.repo-tech span {
  padding: 0.44rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.repo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.repo-year {
  font-size: 0.8rem;
  color: rgba(245, 239, 226, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-cyan);
}

.repo-link::after {
  content: "↗";
  transition: transform 180ms ease;
}

.repo-link:hover::after {
  transform: translateX(3px) translateY(-1px);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.6rem;
}

.resume-frame {
  min-height: 780px;
  padding: 0.65rem;
}

.resume-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 760px;
  border: 0;
  border-radius: calc(var(--radius-xl) - 8px);
  background: white;
}

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

.contact-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 160px;
  padding: 1.4rem;
}

.contact-link:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 232, 219, 0.4);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
}

.contact-link span {
  display: block;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.contact-link strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.contact-link::after {
  content: "↗";
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(245, 239, 226, 0.55);
}

.reveal,
.reveal-inline {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 800ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes liftIn {
  to {
    transform: translateY(0%);
  }
}

@keyframes introPulse {
  0%,
  100% {
    transform: scale(0.96);
  }

  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 1180px) {
  .hero-system,
  .resume-grid,
  .two-up,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-stage,
  .contact-links,
  .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    top: 0.7rem;
    width: min(calc(100% - 1rem), var(--max-width));
    flex-wrap: wrap;
    padding: 0.95rem 1rem;
    border-radius: 28px;
  }

  .topnav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .hero-system,
  .planet-section {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .hero-system {
    padding: 4rem 0 2.4rem;
  }

  .planet-section {
    padding: 3rem 0 3.4rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.7rem);
  }

  h2,
  .planet-panel__title {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .hero-copy,
  .hero-cosmos,
  .section-card,
  .repo-card,
  .resume-frame,
  .contact-link {
    border-radius: 24px;
  }

  .planet-list,
  .project-stage,
  .contact-links,
  .stat-grid,
  .quick-facts {
    grid-template-columns: 1fr;
  }

  .scene-shell {
    min-height: 460px;
  }

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

  .hero-cosmos__footer strong {
    text-align: left;
  }

  .resume-frame,
  .resume-frame iframe {
    min-height: 540px;
  }

}

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

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