:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-soft: rgba(7, 12, 19, 0.82);
  --panel: rgba(12, 18, 28, 0.7);
  --panel-strong: rgba(16, 24, 36, 0.92);
  --panel-outline: rgba(156, 221, 255, 0.16);
  --text: #f4f0e8;
  --muted: rgba(238, 230, 217, 0.68);
  --accent: #89e0ff;
  --accent-strong: #4ab6da;
  --gold: #d2b47c;
  --danger: #f08b7d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --section-padding: clamp(6rem, 9vw, 9.5rem);
  --section-shell-width: min(1380px, 100%);
  --panel-hover-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --route-accent: rgba(137, 224, 255, 0.9);
  --route-gold: rgba(210, 180, 124, 0.84);
  --route-glow: rgba(137, 224, 255, 0.14);
  --route-orbit: rgba(137, 224, 255, 0.16);
  --route-panel-tint: rgba(137, 224, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top, rgba(24, 50, 71, 0.48), transparent 35%),
    radial-gradient(
      circle at 20% 25%,
      rgba(170, 118, 57, 0.16),
      transparent 28%
    ),
    var(--bg);
  scrollbar-color: rgba(137, 224, 255, 0.38) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: transparent;
}

body[data-route="about"] {
  --route-accent: rgba(156, 235, 255, 0.92);
  --route-gold: rgba(230, 204, 152, 0.84);
  --route-glow: rgba(156, 235, 255, 0.16);
  --route-orbit: rgba(156, 235, 255, 0.18);
  --route-panel-tint: rgba(156, 235, 255, 0.08);
}

body[data-route="skills"] {
  --route-accent: rgba(167, 255, 214, 0.92);
  --route-gold: rgba(187, 224, 166, 0.82);
  --route-glow: rgba(120, 255, 204, 0.14);
  --route-orbit: rgba(120, 255, 204, 0.18);
  --route-panel-tint: rgba(120, 255, 204, 0.07);
}

body[data-route="projects"] {
  --route-accent: rgba(255, 212, 158, 0.92);
  --route-gold: rgba(255, 195, 124, 0.84);
  --route-glow: rgba(255, 197, 132, 0.15);
  --route-orbit: rgba(255, 197, 132, 0.18);
  --route-panel-tint: rgba(255, 197, 132, 0.07);
}

body[data-route="timeline"] {
  --route-accent: rgba(194, 182, 255, 0.9);
  --route-gold: rgba(215, 186, 255, 0.82);
  --route-glow: rgba(194, 182, 255, 0.16);
  --route-orbit: rgba(194, 182, 255, 0.2);
  --route-panel-tint: rgba(194, 182, 255, 0.08);
}

body[data-route="contact"] {
  --route-accent: rgba(255, 221, 175, 0.9);
  --route-gold: rgba(255, 208, 144, 0.84);
  --route-glow: rgba(255, 221, 175, 0.14);
  --route-orbit: rgba(255, 221, 175, 0.18);
  --route-panel-tint: rgba(255, 221, 175, 0.07);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.012),
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.4;
  mix-blend-mode: soft-light;
  z-index: 1;
}

a,
button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid rgba(137, 224, 255, 0.82);
  outline-offset: 3px;
}

img,
canvas,
svg {
  display: block;
}

#root {
  min-height: 100vh;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 18;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(8, 14, 23, 0.96);
  border: 1px solid rgba(137, 224, 255, 0.28);
  color: #edf9ff;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

@media (hover: hover) and (pointer: fine) {
  body,
  button,
  a,
  input {
    cursor: none;
  }
}

.app-root {
  position: relative;
  overflow-x: clip;
}

.app-main {
  position: relative;
  z-index: 2;
}

.universe-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}

.app-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 3vw, 2rem);
  pointer-events: none;
}

.hud-brand,
.hud-nav,
.sound-toggle {
  pointer-events: auto;
}

.hud-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 1rem 0.72rem 0.82rem;
  border: 1px solid rgba(137, 224, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%),
    radial-gradient(
      circle at 18% 50%,
      rgba(137, 224, 255, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(210, 180, 124, 0.14),
      transparent 24%
    ),
    rgba(8, 12, 18, 0.62);
  backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 54px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.hud-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 28%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 16px,
      rgba(255, 255, 255, 0.012) 16px,
      rgba(255, 255, 255, 0.012) 17px
    );
  opacity: 0.72;
  pointer-events: none;
}

.hud-brand::after {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hud-index-shell,
.hud-copy,
.hud-brand-signal {
  position: relative;
  z-index: 1;
}

.hud-index-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.1rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.hud-index-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hud-index-orbit-alpha {
  border: 1px solid rgba(137, 224, 255, 0.24);
  box-shadow: 0 0 20px rgba(137, 224, 255, 0.16);
}

.hud-index-orbit-beta {
  inset: 0.22rem;
  border: 1px solid rgba(210, 180, 124, 0.24);
  opacity: 0.7;
}

.hud-index {
  display: grid;
  place-items: center;
  width: 2.36rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.4),
      transparent 40%
    ),
    linear-gradient(135deg, rgba(210, 180, 124, 0.7), rgba(91, 191, 214, 0.8));
  color: #091018;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 26px rgba(137, 224, 255, 0.24);
}

.hud-brand strong,
.hero-intro-heading,
.section-intro h2,
.overlay-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.hud-copy {
  display: grid;
  gap: 0.14rem;
}

.hud-kicker {
  color: rgba(137, 224, 255, 0.74);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.58rem;
}

.hud-brand strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.hud-brand p {
  margin: 0;
  color: rgba(238, 230, 217, 0.66);
  font-size: 0.73rem;
  line-height: 1.3;
}

.hud-brand-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  align-self: center;
  padding: 0.38rem 0.68rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 230, 217, 0.68);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hud-brand-signal-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #89e0ff 58%, transparent 74%);
  box-shadow: 0 0 16px rgba(137, 224, 255, 0.48);
}

.hud-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(137, 224, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(8, 12, 18, 0.44);
  backdrop-filter: blur(18px);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.hud-nav-link {
  display: inline-grid;
  gap: 0.08rem;
  justify-items: start;
  min-width: max-content;
  padding: 0.58rem 0.88rem 0.54rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(238, 230, 217, 0.7);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.hud-nav-link span {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(137, 224, 255, 0.68);
}

.hud-nav-link strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.hud-nav-link:hover,
.hud-nav-link.is-active {
  color: var(--text);
  border-color: rgba(137, 224, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.sound-toggle {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(137, 224, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 13, 20, 0.62);
  box-shadow: var(--shadow);
  color: var(--muted);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.sound-toggle.is-enabled {
  border-color: rgba(210, 180, 124, 0.42);
  color: var(--text);
  transform: translateY(-1px);
}

.energy-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  z-index: 24;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
  will-change: transform, opacity;
  filter: saturate(1.08);
  --energy-angle: 0rad;
  --energy-ring-scale: 1;
  --energy-core-scale: 1;
  --energy-trail-opacity: 0.42;
  --energy-trail-scale: 1;
  --energy-tail-scale-x: 1;
  --energy-tail-scale-y: 1;
  --energy-trail-offset-x: 0px;
  --energy-trail-offset-y: 0px;
  --energy-shell-opacity: 0.24;
  --energy-flare-opacity: 0.18;
  --energy-burst-opacity: 0;
  --energy-burst-scale: 1;
}

.energy-field.is-active {
  opacity: 1;
}

.energy-shell,
.energy-flare,
.energy-arc,
.energy-core,
.energy-ring,
.energy-trail,
.energy-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.energy-shell {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(170, 236, 255, 0.2);
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.08),
      rgba(137, 224, 255, 0.08) 42%,
      transparent 72%
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px rgba(109, 210, 237, 0.14);
  opacity: var(--energy-shell-opacity);
  transform: translate(-50%, -50%)
    scale(calc(1 + (var(--energy-ring-scale) - 1) * 0.72));
  animation: energyHaloPulse 4.8s ease-in-out infinite;
}

.energy-flare {
  width: 218px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(152, 230, 255, 0.28) 50%,
    rgba(255, 211, 145, 0.18) 72%,
    transparent 100%
  );
  filter: blur(14px);
  opacity: var(--energy-flare-opacity);
  transform: translate(-50%, -50%) rotate(var(--energy-angle))
    scaleX(var(--energy-tail-scale-x)) scaleY(var(--energy-tail-scale-y));
}

.energy-arc {
  width: 132px;
  height: 132px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 38deg,
    rgba(154, 231, 255, 0.78) 38deg 118deg,
    transparent 118deg 206deg,
    rgba(154, 231, 255, 0.22) 206deg 270deg,
    transparent 270deg 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.6px),
    #000 calc(100% - 1px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.6px),
    #000 calc(100% - 1px)
  );
  opacity: calc(0.18 + var(--energy-shell-opacity) * 0.85);
}

.energy-arc-alpha {
  transform: translate(-50%, -50%) rotate(var(--energy-angle));
  animation: energyArcPulse 6.4s ease-in-out infinite;
}

.energy-arc-beta {
  width: 96px;
  height: 96px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 54deg,
    rgba(255, 214, 160, 0.72) 54deg 126deg,
    transparent 126deg 214deg,
    rgba(255, 214, 160, 0.2) 214deg 282deg,
    transparent 282deg 360deg
  );
  opacity: calc(0.12 + var(--energy-flare-opacity) * 0.65);
  transform: translate(-50%, -50%)
    rotate(calc(var(--energy-angle) * -0.65));
  animation: energyArcPulse 5.2s ease-in-out infinite reverse;
}

.energy-core {
  width: 14px;
  height: 14px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1),
    rgba(182, 240, 255, 0.94) 42%,
    rgba(81, 192, 227, 0.58) 68%,
    transparent 82%
  );
  box-shadow:
    0 0 18px rgba(175, 235, 255, 0.82),
    0 0 42px rgba(95, 200, 230, 0.38);
  transform: translate(-50%, -50%) scale(var(--energy-core-scale));
}

.energy-ring {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(170, 236, 255, 0.24);
  background: radial-gradient(
    circle,
    rgba(137, 224, 255, 0.08),
    rgba(137, 224, 255, 0.02) 58%,
    transparent 74%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px rgba(70, 172, 205, 0.14);
  transform: translate(-50%, -50%) rotate(var(--energy-angle))
    scale(var(--energy-ring-scale));
}

.energy-trail {
  width: 188px;
  height: 188px;
  background:
    radial-gradient(
      circle at 52% 50%,
      rgba(150, 229, 255, 0.24),
      rgba(103, 205, 234, 0.14) 34%,
      transparent 74%
    ),
    radial-gradient(
      circle at 68% 50%,
      rgba(255, 214, 160, 0.12),
      transparent 46%
    );
  filter: blur(30px);
  opacity: var(--energy-trail-opacity);
  transform: translate(-50%, -50%)
    rotate(var(--energy-angle))
    translate(var(--energy-trail-offset-x), var(--energy-trail-offset-y))
    scale(var(--energy-trail-scale))
    scaleX(var(--energy-tail-scale-x))
    scaleY(var(--energy-tail-scale-y));
}

.energy-burst {
  width: 152px;
  height: 152px;
  border: 1px solid rgba(199, 237, 255, 0.28);
  box-shadow: 0 0 30px rgba(141, 224, 255, 0.12);
  opacity: var(--energy-burst-opacity);
  transform: translate(-50%, -50%) scale(var(--energy-burst-scale));
}

.energy-field.is-overlay-active .energy-core {
  box-shadow:
    0 0 20px rgba(255, 242, 210, 0.86),
    0 0 56px rgba(112, 215, 243, 0.48);
}

.energy-field.is-overlay-active .energy-ring {
  border-color: rgba(228, 205, 151, 0.34);
  background: radial-gradient(
    circle,
    rgba(255, 244, 216, 0.08),
    rgba(137, 224, 255, 0.03) 56%,
    transparent 76%
  );
}

.energy-field.is-overlay-active .energy-trail {
  filter: blur(24px);
}

.energy-field.is-overlay-active .energy-shell {
  border-color: rgba(233, 211, 163, 0.3);
}

.energy-field.is-overlay-active .energy-flare,
.energy-field.is-overlay-active .energy-arc-beta {
  opacity: calc(var(--energy-flare-opacity) + 0.08);
}

.preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(35, 65, 93, 0.18), transparent 34%),
    rgba(5, 7, 12, 0.98);
}

.preloader-content {
  width: min(880px, calc(100vw - 2rem));
  display: grid;
  gap: 2.5rem;
}

.preloader-status {
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.preloader-status p {
  margin: 0;
  opacity: 0.15;
  transform: translateX(-12px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.preloader-status p.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.preloader-center {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 30vh;
}

.preloader-particle-field {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1px;
  height: 1px;
}

.preloader-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(137, 224, 255, 0.42));
  box-shadow:
    0 0 16px rgba(137, 224, 255, 0.44),
    0 0 32px rgba(201, 154, 255, 0.16);
  transform: translate(var(--particle-x), var(--particle-y)) scale(0.3);
  opacity: 0;
  animation: preloaderParticleOrbit 2.4s ease-in-out infinite;
  animation-delay: var(--particle-delay);
}

.preloader-initials {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 12vw, 8rem);
  letter-spacing: 0.18em;
  color: rgba(244, 240, 232, 0.92);
}

.preloader-burst {
  position: absolute;
  width: clamp(10rem, 34vw, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1),
    rgba(137, 224, 255, 0.08) 35%,
    transparent 72%
  );
  opacity: 0;
  transform: scale(0.75);
  filter: blur(2px);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8rem 1.4rem 4rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  display: grid;
  gap: 1.45rem;
  text-align: center;
}

.hero-eyebrow,
.section-index,
.overlay-kicker {
  color: rgba(137, 224, 255, 0.76);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-greeting {
  justify-self: center;
  max-width: 100%;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(3.2rem, 9vw, 6.6rem) clamp(0.8rem, 3vw, 2rem);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 14% 16% 16%;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(137, 224, 255, 0.16),
    rgba(137, 224, 255, 0.04) 42%,
    transparent 72%
  );
  filter: blur(28px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.hero-stage.is-warping::before {
  opacity: 1;
  transform: scale(1.08);
}

.hero-stage-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(2.8rem, 6vw, 4.2rem) clamp(1rem, 4vw, 2.5rem)
    clamp(2.4rem, 5vw, 3.2rem);
  border-radius: clamp(2.8rem, 12vw, 999px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    radial-gradient(
      circle at center,
      rgba(12, 23, 34, 0.9),
      rgba(6, 10, 16, 0.52) 60%,
      rgba(6, 10, 16, 0.08) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 38px 140px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.hero-stage.is-warping .hero-stage-panel {
  transform: scale(0.97);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 150px rgba(28, 79, 104, 0.34);
}

.hero-stage-panel::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(210, 180, 124, 0.2) 12%,
    rgba(137, 224, 255, 0.88) 50%,
    rgba(210, 180, 124, 0.2) 88%,
    transparent
  );
  transform: translateY(-0.45rem);
  opacity: 0.82;
  z-index: 0;
}

.hero-stage-panel::after {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 248, 255, 0.2),
    rgba(137, 224, 255, 0.08) 34%,
    transparent 72%
  );
  filter: blur(16px);
  opacity: 0.9;
  z-index: 0;
}

.hero-stage-ring,
.hero-stage-glow {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-stage-ring {
  border-radius: 50%;
  opacity: 0.9;
}

.hero-stage-ring-alpha {
  width: min(94vw, 54rem);
  height: min(94vw, 54rem);
  background: conic-gradient(
    from 122deg,
    transparent 0deg 34deg,
    rgba(210, 180, 124, 0.84) 34deg 164deg,
    transparent 164deg 222deg,
    rgba(210, 180, 124, 0.28) 222deg 308deg,
    transparent 308deg 360deg
  );
  box-shadow: 0 0 68px rgba(210, 180, 124, 0.1);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 calc(100% - 1px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 calc(100% - 1px)
  );
  animation: heroOrbitAlpha 22s linear infinite;
}

.hero-stage-ring-beta {
  width: min(82vw, 40rem);
  height: min(82vw, 40rem);
  background: conic-gradient(
    from 280deg,
    transparent 0deg 56deg,
    rgba(137, 224, 255, 0.84) 56deg 178deg,
    transparent 178deg 236deg,
    rgba(137, 224, 255, 0.24) 236deg 298deg,
    transparent 298deg 360deg
  );
  box-shadow: 0 0 54px rgba(137, 224, 255, 0.12);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 calc(100% - 1px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 calc(100% - 1px)
  );
  animation: heroOrbitBeta 16s linear infinite reverse;
}

.hero-stage-glow {
  width: min(92vw, 48rem);
  height: min(92vw, 48rem);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(173, 228, 248, 0.26),
    rgba(137, 224, 255, 0.14) 28%,
    transparent 64%
  );
  filter: blur(30px);
  opacity: 1;
}

.hero-stage-core {
  position: absolute;
  left: 50%;
  top: 72%;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  width: clamp(9rem, 18vw, 13rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(137, 224, 255, 0.2);
  background:
    radial-gradient(
      circle,
      rgba(245, 247, 255, 0.18),
      rgba(137, 224, 255, 0.14) 38%,
      rgba(7, 12, 19, 0.92) 70%
    );
  box-shadow:
    0 0 40px rgba(137, 224, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.hero-stage-core:hover,
.hero-stage-core:focus-visible {
  transform: translate(-50%, -50%) scale(1.03);
  border-color: rgba(210, 180, 124, 0.38);
  box-shadow:
    0 0 56px rgba(137, 224, 255, 0.26),
    0 0 88px rgba(210, 180, 124, 0.12);
}

.hero-stage.is-warping .hero-stage-core {
  transform: translate(-50%, -50%) scale(0.82);
  box-shadow:
    0 0 80px rgba(137, 224, 255, 0.36),
    0 0 120px rgba(210, 180, 124, 0.18);
}

.hero-stage-core-orbit,
.hero-stage-core-ring {
  position: absolute;
  border-radius: 50%;
  inset: 0;
  pointer-events: none;
}

.hero-stage-core-orbit {
  border: 1px solid rgba(137, 224, 255, 0.26);
  animation: heroOrbitBeta 14s linear infinite;
}

.hero-stage-core-ring {
  inset: 0.55rem;
  border: 1px solid rgba(210, 180, 124, 0.24);
  animation: heroOrbitAlpha 12s linear infinite reverse;
}

.hero-stage-core-label {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.18rem;
  text-align: center;
}

.hero-stage-core-label strong {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.hero-stage-core-label em {
  font-style: normal;
  color: rgba(238, 230, 217, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-intro-heading {
  position: relative;
  justify-self: center;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(1.7rem, 6.3vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.025em;
  white-space: nowrap;
  text-shadow:
    0 0 24px rgba(137, 224, 255, 0.12),
    0 18px 60px rgba(0, 0, 0, 0.32);
}

.hero-intro-heading.reveal-text,
.hero-intro-heading.reveal-text.is-active {
  background: transparent;
  border-color: transparent;
  transform: none;
}

.hero-intro-heading.reveal-swap,
.hero-intro-heading.reveal-invert {
  min-height: 1.18em;
}

.hero-intro-heading .reveal-base,
.hero-intro-heading .reveal-enhanced {
  width: 100%;
  line-height: inherit;
  white-space: nowrap;
  text-align: center;
}

.hero-intro-heading .reveal-base {
  background: linear-gradient(180deg, #fffaf0 0%, #f2e9d7 40%, #d1c6b1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro-heading .reveal-enhanced {
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(1rem, 4.1vw, 4.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ecfbff;
  text-shadow: 0 0 28px rgba(137, 224, 255, 0.26);
}

.hero-intro-heading.reveal-swap.is-active .reveal-base,
.hero-intro-heading.reveal-invert.is-active .reveal-base {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
  line-height: 1.85;
  color: var(--muted);
}

.hero-atlas-shell {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hero-atlas-heading {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}

.hero-atlas-kicker {
  color: rgba(210, 180, 124, 0.88);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-atlas-heading p {
  margin: 0;
  max-width: 34rem;
  color: rgba(238, 230, 217, 0.72);
  line-height: 1.8;
}

.hero-atlas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-chapter-card {
  position: relative;
  grid-column: span 4;
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(
      circle at top right,
      rgba(137, 224, 255, 0.12),
      transparent 34%
    ),
    rgba(8, 13, 22, 0.82);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.hero-chapter-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(137, 224, 255, 0),
    rgba(137, 224, 255, 0.72),
    rgba(210, 180, 124, 0.24),
    rgba(137, 224, 255, 0)
  );
}

.hero-chapter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.04),
    transparent 28%
  );
  pointer-events: none;
}

.hero-chapter-card:nth-child(1) {
  grid-column: span 3;
}

.hero-chapter-card:nth-child(2) {
  grid-column: span 4;
}

.hero-chapter-card:nth-child(3) {
  grid-column: span 5;
}

.hero-chapter-card:nth-child(4) {
  grid-column: span 5;
}

.hero-chapter-card:nth-child(5) {
  grid-column: span 7;
}

.hero-chapter-card:hover,
.hero-chapter-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(137, 224, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(
      circle at top right,
      rgba(137, 224, 255, 0.16),
      transparent 34%
    ),
    rgba(14, 23, 35, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 46px rgba(17, 43, 55, 0.24),
    0 0 28px rgba(137, 224, 255, 0.08);
}

.hero-chapter-index,
.hero-chapter-eyebrow,
.hero-chapter-card strong,
.hero-chapter-card p,
.hero-chapter-link {
  position: relative;
  z-index: 1;
}

.hero-chapter-index {
  color: rgba(210, 180, 124, 0.92);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-chapter-eyebrow {
  color: rgba(137, 224, 255, 0.82);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.hero-chapter-card strong {
  font-size: 1.45rem;
  line-height: 1.15;
  font-family: "Cormorant Garamond", serif;
}

.hero-chapter-card p {
  margin: 0;
  color: rgba(238, 230, 217, 0.78);
  line-height: 1.72;
}

.hero-chapter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.1rem;
  color: rgba(236, 251, 255, 0.9);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-chapter-link::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(137, 224, 255, 0.1),
    rgba(137, 224, 255, 0.92)
  );
}

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

.hero-core-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: min(100%, 19rem);
  padding: 1.25rem 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 180, 124, 0.28);
  background:
    linear-gradient(135deg, rgba(18, 26, 38, 0.92), rgba(10, 17, 28, 0.78)),
    radial-gradient(circle at top, rgba(91, 191, 214, 0.22), transparent 62%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 54px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.hero-core-button::before {
  content: "";
  position: absolute;
  inset: 50% 1.1rem auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(210, 180, 124, 0.2) 18%,
    rgba(137, 224, 255, 0.9) 50%,
    rgba(210, 180, 124, 0.2) 82%,
    transparent
  );
  transform: translateY(-50%);
  opacity: 0.92;
}

.hero-core-button:hover,
.hero-core-button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(137, 224, 255, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 60px rgba(31, 76, 94, 0.36);
}

.hero-core-button-halo,
.hero-core-button-pulse {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-core-button-halo {
  width: calc(100% - 1rem);
  height: calc(100% - 0.6rem);
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.45;
}

.hero-core-button-pulse {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.24),
    rgba(137, 224, 255, 0.16) 36%,
    transparent 72%
  );
  filter: blur(10px);
  opacity: 0.9;
}

.hero-core-button-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.18rem;
  justify-items: center;
}

.hero-core-button-copy strong {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-core-button-copy em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 230, 217, 0.72);
}

.route-hero {
  position: relative;
  padding: 10.5rem clamp(1.15rem, 3.6vw, 2.6rem) 3rem;
}

.route-hero-shell {
  width: var(--section-shell-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.94fr) minmax(320px, 1.06fr);
  gap: 1.8rem;
  align-items: stretch;
}

.route-hero-shell-not-found {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.route-hero-copy,
.route-hero-visual,
.chapter-crossroads-shell {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-outline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%),
    radial-gradient(circle at top right, var(--route-panel-tint), transparent 36%),
    radial-gradient(circle at bottom left, rgba(210, 180, 124, 0.06), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.route-hero-copy::before,
.route-hero-visual::before,
.chapter-crossroads-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 28%),
    radial-gradient(circle at 18% 0%, var(--route-panel-tint), transparent 32%);
}

.route-hero-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 2.05rem;
}

.route-hero-index,
.route-hero-eyebrow,
.chapter-crossroads-head span {
  position: relative;
  z-index: 1;
  color: var(--route-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.route-hero-copy h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.1rem, 6.2vw, 5.9rem);
  line-height: 0.9;
}

.route-hero-lead,
.route-hero-summary,
.chapter-crossroads-head p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(238, 230, 217, 0.76);
  line-height: 1.78;
}

.route-hero-lead {
  color: color-mix(in srgb, var(--route-accent) 22%, #ffffff);
  font-size: 1.14rem;
}

.route-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.chapter-route-button {
  min-width: 16rem;
}

.chapter-route-home,
.chapter-route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.96rem 1.3rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--route-gold) 38%, transparent);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.chapter-route-home:hover,
.chapter-route-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--route-accent) 32%, transparent);
}

.route-hero-visual {
  min-height: 28rem;
  padding: 1.4rem;
  background:
    radial-gradient(circle at center, var(--route-glow), transparent 42%),
    linear-gradient(180deg, rgba(7, 13, 22, 0.82), rgba(6, 10, 16, 0.96));
}

.route-hero-visual-shell {
  position: relative;
  z-index: 1;
  min-height: 32rem;
  isolation: isolate;
  pointer-events: none;
}

.route-hero-system {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 34rem);
  aspect-ratio: 1;
  isolation: isolate;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.24));
}

.route-hero-system::before {
  content: "";
  position: absolute;
  inset: 10.5%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(
      circle,
      color-mix(in srgb, var(--route-accent) 18%, transparent),
      transparent 66%
    ),
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.022) 0deg 6deg,
      transparent 6deg 22deg
    );
  filter: blur(20px);
  opacity: 0.88;
}

.route-hero-system::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 22.5rem;
  height: 22.5rem;
  border-radius: 50%;
  background: conic-gradient(
    from 64deg,
    transparent 0deg 34deg,
    color-mix(in srgb, var(--route-accent) 72%, transparent) 34deg 122deg,
    transparent 122deg 190deg,
    color-mix(in srgb, var(--route-gold) 44%, transparent) 190deg 264deg,
    transparent 264deg 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 calc(100% - 1px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.5px),
    #000 calc(100% - 1px)
  );
  transform: translate(-50%, -50%);
  opacity: 0.46;
  animation: heroOrbitAlpha 18s linear infinite;
}

.route-hero-core,
.route-hero-orbit,
.route-hero-node {
  position: absolute;
}

.route-hero-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: 12.8rem;
  height: 12.8rem;
  padding: 1.3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(
      circle at 34% 32%,
      rgba(255, 255, 255, 0.28),
      transparent 36%
    ),
    radial-gradient(
      circle,
      color-mix(in srgb, var(--route-accent) 30%, transparent) 0%,
      rgba(8, 15, 24, 0.92) 68%
    ),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.01) 38%,
      rgba(5, 8, 13, 0.26)
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 18px 34px rgba(255, 255, 255, 0.03),
    0 0 70px color-mix(in srgb, var(--route-accent) 18%, transparent),
    0 26px 48px rgba(0, 0, 0, 0.24);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  animation: coreBreathe 8.5s ease-in-out infinite;
}

.route-hero-core::before,
.route-hero-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.route-hero-core::before {
  inset: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--route-gold) 24%, transparent);
  opacity: 0.72;
}

.route-hero-core::after {
  left: 50%;
  top: 50%;
  width: 4.4rem;
  height: 4.4rem;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.18),
    color-mix(in srgb, var(--route-accent) 18%, transparent) 56%,
    transparent 74%
  );
  transform: translate(-50%, -50%);
  filter: blur(6px);
  opacity: 0.92;
}

.route-hero-core span {
  position: relative;
  z-index: 1;
  color: var(--route-gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.route-hero-core strong {
  position: relative;
  z-index: 1;
  max-width: 7.6rem;
  font-size: 1.42rem;
  line-height: 1.22;
}

.route-hero-orbit {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0;
  pointer-events: none;
}

.route-hero-orbit-alpha {
  width: 19.5rem;
  height: 19.5rem;
  background: conic-gradient(
    from 112deg,
    transparent 0deg 26deg,
    color-mix(in srgb, var(--route-accent) 76%, transparent) 26deg 136deg,
    transparent 136deg 202deg,
    color-mix(in srgb, var(--route-accent) 22%, transparent) 202deg 286deg,
    transparent 286deg 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.6px),
    #000 calc(100% - 1px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.6px),
    #000 calc(100% - 1px)
  );
  box-shadow: 0 0 36px color-mix(in srgb, var(--route-accent) 10%, transparent);
  animation: heroOrbitAlpha 20s linear infinite;
}

.route-hero-orbit-beta {
  width: 30rem;
  height: 22rem;
  background: conic-gradient(
    from 284deg,
    transparent 0deg 58deg,
    color-mix(in srgb, var(--route-gold) 64%, transparent) 58deg 154deg,
    transparent 154deg 226deg,
    color-mix(in srgb, var(--route-gold) 18%, transparent) 226deg 312deg,
    transparent 312deg 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.6px),
    #000 calc(100% - 1px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1.6px),
    #000 calc(100% - 1px)
  );
  opacity: 0.84;
  box-shadow: 0 0 34px color-mix(in srgb, var(--route-gold) 10%, transparent);
  animation: heroOrbitBeta 16s linear infinite reverse;
}

.route-hero-node {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 8.8rem;
  min-height: 4.6rem;
  padding: 0.86rem 0.92rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%),
    rgba(8, 14, 23, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 24px rgba(0, 0, 0, 0.16),
    0 0 28px color-mix(in srgb, var(--route-accent) 8%, transparent);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.route-hero-node::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  top: 0.65rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--route-accent) 72%, transparent),
    transparent
  );
  opacity: 0.72;
}

.route-hero-node span {
  position: relative;
  z-index: 1;
  color: rgba(238, 230, 217, 0.84);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.route-hero-node-1 {
  left: calc(50% - 4.4rem);
  top: 7%;
  animation: orbitalDrift 10s ease-in-out infinite;
}

.route-hero-node-2 {
  right: 2.5%;
  top: 57%;
  animation: orbitalDrift 11.5s ease-in-out infinite reverse;
}

.route-hero-node-3 {
  left: 2.5%;
  top: 57%;
  animation: orbitalDrift 9.5s ease-in-out infinite;
}

.route-hero-about .route-hero-visual::after,
.route-hero-skills .route-hero-visual::after,
.route-hero-projects .route-hero-visual::after,
.route-hero-timeline .route-hero-visual::after,
.route-hero-contact .route-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.route-hero-about .route-hero-visual::after {
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(135deg, transparent 0 44%, rgba(255, 255, 255, 0.06) 44% 46%, transparent 46% 100%);
}

.route-hero-skills .route-hero-visual::after {
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(255, 255, 255, 0.04) 49.9%, transparent 50.2%),
    linear-gradient(180deg, transparent 0 49.7%, rgba(255, 255, 255, 0.035) 49.9%, transparent 50.2%);
  mask: radial-gradient(circle at center, black 24%, transparent 82%);
}

.route-hero-projects .route-hero-visual::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px) 0 0 / 5rem 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px) 0 0 / 100% 5rem;
  opacity: 0.28;
}

.route-hero-timeline .route-hero-visual::after {
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--route-accent) 30%, transparent) 26%,
    transparent 52%,
    color-mix(in srgb, var(--route-gold) 24%, transparent) 78%,
    transparent
  );
  mask: radial-gradient(circle at center, black 18%, transparent 84%);
}

.route-hero-contact .route-hero-visual::after {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08), transparent 14%),
    radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 0.08), transparent 14%),
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.05) 42% 43%, transparent 43% 100%);
}

.chapter-crossroads-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
}

.chapter-crossroads-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
}

.chapter-crossroads-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.chapter-crossroads-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.025);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.chapter-crossroads-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--route-accent) 26%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.chapter-crossroads-card-current {
  border-color: color-mix(in srgb, var(--route-gold) 28%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at top right, var(--route-panel-tint), transparent 42%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 30px rgba(0, 0, 0, 0.12);
}

.chapter-crossroads-card em {
  font-style: normal;
  color: var(--route-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.chapter-crossroads-card strong {
  font-size: 1.18rem;
  line-height: 1.3;
}

.chapter-crossroads-card p {
  margin: 0;
  color: rgba(238, 230, 217, 0.76);
  line-height: 1.7;
}

.project-detail-shell {
  width: var(--section-shell-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 1.4rem;
}

.project-detail-main,
.project-detail-side {
  display: grid;
  gap: 1.15rem;
}

.project-detail-card,
.project-detail-stack,
.project-detail-links {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-outline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%),
    radial-gradient(circle at top right, var(--route-panel-tint), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.project-detail-card,
.project-detail-stack,
.project-detail-links {
  padding: 1.55rem;
}

.project-detail-card span,
.project-detail-stack span,
.project-detail-links span {
  color: var(--route-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.project-detail-card strong,
.project-detail-stack strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.4rem;
  line-height: 1.18;
  font-family: "Cormorant Garamond", serif;
}

.project-detail-card p,
.project-detail-stack p {
  margin: 0.75rem 0 0;
  color: rgba(238, 230, 217, 0.78);
  line-height: 1.78;
}

.project-detail-card,
.project-detail-stack,
.project-detail-links {
  transition:
    transform 260ms ease,
    border-color 240ms ease,
    box-shadow 260ms ease;
}

.route-transition {
  position: fixed;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.route-transition.is-active {
  opacity: 1;
}

.route-transition-grid,
.route-transition-flare,
.route-transition-copy {
  position: absolute;
  inset: 0;
}

.route-transition-grid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 42px,
      rgba(255, 255, 255, 0.014) 42px,
      rgba(255, 255, 255, 0.014) 43px
    ),
    rgba(4, 7, 12, 0.56);
  backdrop-filter: blur(8px);
}

.route-transition-flare {
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--route-accent) 18%, transparent), transparent 36%),
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 42%,
      rgba(255, 255, 255, 0.16) 50%,
      rgba(255, 255, 255, 0.04) 58%,
      transparent 100%
    );
  transform: translateX(-100%);
  animation: routeSweep 820ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.route-transition-copy {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  text-align: center;
}

.route-transition-copy span,
.route-transition-copy strong {
  position: relative;
  z-index: 1;
}

.route-transition-copy span {
  color: rgba(238, 230, 217, 0.68);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.route-transition-copy strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  color: #f7f2e8;
  letter-spacing: 0.04em;
}

.hero-scanlines {
  position: absolute;
  inset: 12vh 10vw;
  border-radius: 32px;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.02),
      transparent 52%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 34px,
      rgba(255, 255, 255, 0.015) 34px,
      rgba(255, 255, 255, 0.015) 35px
    );
  opacity: 0.55;
  mask: radial-gradient(circle at center, black, transparent 74%);
  pointer-events: none;
}

@keyframes heroOrbitAlpha {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.03);
  }

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

@keyframes heroOrbitBeta {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.98);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.02);
  }

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

@keyframes preloaderParticleOrbit {
  0% {
    opacity: 0;
    transform:
      translate(calc(var(--particle-x) * 1.18), calc(var(--particle-y) * 1.18))
      scale(0.2);
  }

  28% {
    opacity: 0.92;
    transform: translate(var(--particle-x), var(--particle-y)) scale(1);
  }

  60% {
    opacity: 0.86;
    transform:
      translate(calc(var(--particle-x) * 0.34), calc(var(--particle-y) * 0.34))
      scale(0.52);
  }

  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.16);
  }
}

@keyframes routeSweep {
  0% {
    transform: translateX(-100%);
    opacity: 0.2;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes orbitalDrift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.015);
  }
}

@keyframes beaconPulse {
  0%,
  100% {
    opacity: 0.72;
    box-shadow:
      0 0 18px rgba(137, 224, 255, 0.22),
      0 0 36px rgba(210, 180, 124, 0.08);
  }

  50% {
    opacity: 1;
    box-shadow:
      0 0 28px rgba(137, 224, 255, 0.36),
      0 0 52px rgba(210, 180, 124, 0.14);
  }
}

@keyframes coreBreathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes energyHaloPulse {
  0%,
  100% {
    opacity: calc(var(--energy-shell-opacity) * 0.82);
  }

  50% {
    opacity: calc(var(--energy-shell-opacity) + 0.12);
  }
}

@keyframes energyArcPulse {
  0%,
  100% {
    filter: brightness(0.9);
  }

  50% {
    filter: brightness(1.16);
  }
}

@keyframes terminalScan {
  0% {
    transform: translateY(-140%);
    opacity: 0;
  }

  18% {
    opacity: 0.22;
  }

  82% {
    opacity: 0.12;
  }

  100% {
    transform: translateY(320%);
    opacity: 0;
  }
}

.story-section {
  position: relative;
  padding: var(--section-padding) clamp(1.15rem, 3.6vw, 2.6rem);
}

.section-about::before,
.section-skills::before,
.section-projects::before,
.section-timeline::before,
.section-contact::before {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.52;
}

.section-about::before {
  inset: 8rem auto auto -6rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(
    circle,
    rgba(137, 224, 255, 0.16),
    transparent 72%
  );
}

.section-skills::before {
  inset: 10rem -4rem auto auto;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(
    circle,
    rgba(210, 180, 124, 0.16),
    transparent 72%
  );
}

.section-projects::before {
  inset: auto auto 6rem -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(
    circle,
    rgba(137, 224, 255, 0.14),
    transparent 72%
  );
}

.section-timeline::before {
  inset: 12rem auto auto 24%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(
    circle,
    rgba(137, 224, 255, 0.12),
    transparent 72%
  );
}

.section-contact::before {
  inset: auto -2rem 5rem auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(
    circle,
    rgba(210, 180, 124, 0.14),
    transparent 72%
  );
}

.section-shell {
  width: var(--section-shell-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(280px, 330px);
  gap: 2.5rem;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 7.9rem;
  display: grid;
  gap: 1.15rem;
  padding-left: 1rem;
  max-width: 15rem;
}

.section-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(137, 224, 255, 0),
    rgba(137, 224, 255, 0.72) 22%,
    rgba(210, 180, 124, 0.32) 74%,
    rgba(137, 224, 255, 0) 100%
  );
  opacity: 0.9;
}

.section-intro > div {
  display: grid;
  gap: 1.1rem;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(3rem, 5.9vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.section-intro p {
  margin: 0;
  line-height: 1.82;
  color: var(--muted);
  max-width: 13.4rem;
  font-size: 1rem;
}

.section-body,
.section-aside {
  min-width: 0;
}

.section-body {
  display: grid;
  gap: 1.55rem;
}

.section-aside {
  position: sticky;
  top: 7.8rem;
  display: grid;
  gap: 1.15rem;
}

.reveal-text {
  position: relative;
  display: block;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.reveal-text.is-active {
  background: rgba(92, 171, 193, 0.08);
  border-color: rgba(137, 224, 255, 0.18);
  transform: translateY(-1px);
}

.reveal-base,
.reveal-enhanced {
  display: block;
  line-height: 1.8;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    max-height 320ms ease,
    margin-top 220ms ease;
}

.reveal-enhanced {
  color: #d7f6ff;
}

.reveal-swap,
.reveal-invert {
  min-height: 3.9rem;
}

.reveal-swap .reveal-base,
.reveal-invert .reveal-base {
  position: relative;
  z-index: 1;
}

.reveal-swap .reveal-enhanced,
.reveal-invert .reveal-enhanced {
  position: absolute;
  inset: 1rem 1.15rem;
  opacity: 0;
  transform: translateY(10px);
}

.reveal-swap.is-active .reveal-base,
.reveal-invert.is-active .reveal-base {
  opacity: 0.08;
  transform: translateY(-6px);
}

.reveal-swap.is-active .reveal-enhanced,
.reveal-invert.is-active .reveal-enhanced {
  opacity: 1;
  transform: translateY(0);
}

.reveal-invert.is-active {
  background: rgba(244, 240, 232, 0.92);
  color: #08111a;
}

.reveal-invert.is-active .reveal-enhanced {
  color: #08111a;
}

.reveal-expand .reveal-enhanced {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
}

.reveal-expand.is-active .reveal-enhanced {
  max-height: 12rem;
  margin-top: 0.85rem;
  opacity: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 1.7rem;
}

body[data-route="about"] .section-about .section-shell,
body[data-route="skills"] .section-skills .section-shell,
body[data-route="timeline"] .section-timeline .section-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
}

body[data-route="about"] .section-about .section-intro,
body[data-route="skills"] .section-skills .section-intro,
body[data-route="timeline"] .section-timeline .section-intro {
  position: relative;
  top: unset;
  max-width: 64rem;
}

body[data-route="about"] .section-about .section-intro h2,
body[data-route="skills"] .section-skills .section-intro h2,
body[data-route="timeline"] .section-timeline .section-intro h2 {
  font-size: clamp(3.4rem, 7vw, 6rem);
}

body[data-route="about"] .section-about .section-intro p,
body[data-route="skills"] .section-skills .section-intro p,
body[data-route="timeline"] .section-timeline .section-intro p {
  max-width: 38rem;
  font-size: 1.04rem;
}

.about-visual,
.about-copy,
.skills-orbits,
.projects-list,
.timeline-shell,
.terminal-shell,
.skills-aside-card,
.projects-aside,
.contact-command-list {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-outline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%),
    radial-gradient(
      circle at top right,
      rgba(137, 224, 255, 0.08),
      transparent 36%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(210, 180, 124, 0.06),
      transparent 34%
    ),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
}

.about-visual::before,
.about-copy::before,
.skills-orbits::before,
.projects-list::before,
.timeline-shell::before,
.terminal-shell::before,
.skills-aside-card::before,
.projects-aside::before,
.contact-command-list::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 28%),
    radial-gradient(
      circle at 18% 0%,
      rgba(137, 224, 255, 0.08),
      transparent 32%
    );
}

.about-visual:hover,
.about-copy:hover,
.skills-orbits:hover,
.projects-list:hover,
.timeline-shell:hover,
.terminal-shell:hover,
.projects-aside:hover,
.contact-command-list:hover,
.project-detail-card:hover,
.project-detail-stack:hover,
.project-detail-links:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--route-accent) 22%, rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    var(--panel-hover-shadow);
}

.about-visual {
  padding: 1.45rem;
  min-height: 40rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
}

body[data-route="about"] .about-grid {
  grid-template-columns: minmax(420px, 1.02fr) minmax(0, 0.98fr);
  gap: 1.7rem;
}

body[data-route="about"] .about-visual {
  min-height: 44rem;
  padding: 1.5rem;
}

.about-visual::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 4.8rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(137, 224, 255, 0),
    rgba(137, 224, 255, 0.58),
    rgba(210, 180, 124, 0.24),
    rgba(137, 224, 255, 0)
  );
  opacity: 0.82;
}

.about-visual-head,
.about-visual-foot,
.about-copy-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
}

.about-visual-head span,
.about-visual-foot span,
.about-copy-head span {
  color: rgba(210, 180, 124, 0.84);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.about-visual-head strong,
.about-copy-head strong {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.08;
}

.about-visual-foot {
  padding: 0.2rem 0.25rem 0;
}

.about-visual-foot p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-avatar-scene {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(
      circle at 50% 44%,
      rgba(137, 224, 255, 0.12),
      transparent 20%
    ),
    radial-gradient(circle at top, rgba(137, 224, 255, 0.14), transparent 38%),
    radial-gradient(
      circle at 82% 78%,
      rgba(184, 157, 255, 0.1),
      transparent 24%
    ),
    radial-gradient(
      circle at bottom,
      rgba(210, 180, 124, 0.08),
      transparent 38%
    ),
    linear-gradient(180deg, rgba(10, 17, 28, 0.96), rgba(6, 10, 17, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -40px 100px rgba(0, 0, 0, 0.22);
}

.about-copy {
  padding: 1.8rem;
  display: grid;
  gap: 1.35rem;
  align-content: start;
}

body[data-route="about"] .about-copy {
  padding: 1.9rem;
  gap: 1.3rem;
}

.about-copy-head {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-lead {
  font-size: 1.08rem;
}

body[data-route="about"] .about-lead {
  font-size: 1.18rem;
}

.about-story-list,
.about-meta {
  display: grid;
  gap: 1rem;
}

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

.about-meta-card {
  position: relative;
  padding: 1.2rem 1.05rem 1.05rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  min-height: 9rem;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

body[data-route="about"] .about-meta-card {
  padding: 1.2rem 1.1rem 1.05rem;
}

.about-meta-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -38% auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(137, 224, 255, 0.12),
    transparent 72%
  );
}

.about-meta-card span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-meta-card strong {
  position: relative;
  z-index: 1;
  line-height: 1.65;
  font-size: 1rem;
}

.about-meta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(137, 224, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 44px rgba(12, 28, 42, 0.2);
}

.skills-orbits {
  position: relative;
  min-height: 56rem;
  padding: 1.6rem;
  overflow: hidden;
}

body[data-route="skills"] .skills-orbits {
  min-height: 58rem;
  padding: 1.6rem;
}

.skills-map {
  position: relative;
  min-height: 52rem;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    radial-gradient(
      circle at 50% 54%,
      rgba(137, 224, 255, 0.14),
      transparent 22%
    ),
    radial-gradient(
      circle at 82% 20%,
      rgba(210, 180, 124, 0.08),
      transparent 20%
    ),
    linear-gradient(180deg, rgba(8, 16, 28, 0.74), rgba(7, 13, 22, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 34px 90px rgba(0, 0, 0, 0.22);
}

.skills-map.is-dragging {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 38px 100px rgba(33, 82, 91, 0.2);
}

body[data-route="skills"] .skills-map {
  min-height: 58rem;
}

.skills-map::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: calc(var(--radius-xl) - 16px);
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.skills-map-header {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 1.35rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
}

.skills-map-copy {
  display: grid;
  gap: 0.42rem;
  max-width: 31rem;
}

.skills-map-copy span {
  color: rgba(210, 180, 124, 0.84);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.skills-map-copy strong {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(1.3rem, 2.7vw, 1.85rem);
  line-height: 1.08;
}

.skills-map-readouts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.skills-map-readouts span {
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(238, 230, 217, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.skills-map-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      transparent 0 49.85%,
      rgba(255, 255, 255, 0.03) 49.9%,
      transparent 50.2%
    ),
    linear-gradient(
      180deg,
      transparent 0 49.85%,
      rgba(255, 255, 255, 0.02) 49.9%,
      transparent 50.2%
    );
  mask: radial-gradient(circle at center, black 30%, transparent 90%);
  opacity: 0.58;
  pointer-events: none;
}

.skills-rotation-layer {
  position: absolute;
  inset: 5.6rem 1.4rem 2.4rem;
  transform: rotate(var(--skills-rotation));
  transform-origin: center;
  transition: transform 180ms ease-out;
}

.skills-center-layer {
  position: absolute;
  inset: 5.6rem 1.4rem 2.4rem;
  z-index: 1;
  pointer-events: none;
}

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

.skills-link-graph line {
  stroke: rgba(137, 224, 255, 0.34);
  stroke-width: 0.18;
  stroke-linecap: round;
  stroke-dasharray: 1.4 0.9;
  filter: drop-shadow(0 0 6px rgba(137, 224, 255, 0.24));
}

.skills-signal,
.skills-orbit-lane,
.skills-core-hub {
  position: absolute;
  pointer-events: none;
}

.skills-signal {
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.72;
}

.skills-signal-alpha {
  width: 14rem;
  height: 14rem;
  left: 6%;
  top: 22%;
  background: radial-gradient(
    circle,
    rgba(137, 224, 255, 0.2),
    transparent 68%
  );
  animation: orbitalDrift 11s ease-in-out infinite;
}

.skills-signal-beta {
  width: 18rem;
  height: 18rem;
  right: 10%;
  bottom: 6%;
  background: radial-gradient(
    circle,
    rgba(210, 180, 124, 0.12),
    transparent 70%
  );
  animation: orbitalDrift 13s ease-in-out infinite reverse;
}

.skills-orbit-lane {
  inset: 55% auto auto 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  border-radius: 50%;
  border: 1px solid rgba(137, 224, 255, 0.11);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 34px rgba(70, 172, 205, 0.08);
}

.orbit-lane-core {
  width: 17.5rem;
  height: 13.2rem;
}

.orbit-lane-domain {
  width: 29.5rem;
  height: 22.8rem;
}

.orbit-lane-tool {
  width: 42.5rem;
  height: 32rem;
}

.skills-core-hub {
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 9.8rem;
  height: 9.8rem;
  border-radius: 50%;
  border: 1px solid rgba(137, 224, 255, 0.18);
  background: radial-gradient(
    circle,
    rgba(155, 231, 255, 0.22),
    rgba(8, 16, 28, 0.82) 62%,
    rgba(8, 16, 28, 0.2) 100%
  );
  box-shadow:
    0 0 42px rgba(137, 224, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-align: center;
  z-index: 2;
  animation: coreBreathe 9s ease-in-out infinite;
}

.skills-core-hub span {
  color: rgba(137, 224, 255, 0.78);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.skills-core-hub strong {
  max-width: 6rem;
  font-size: 0.96rem;
  line-height: 1.35;
}

.skills-node-cluster {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.skill-node-card {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  width: var(--node-width);
  transform: translate(-50%, -50%) rotate(calc(var(--skills-rotation) * -1));
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  min-height: 6rem;
  padding: 0.92rem 0.96rem 0.98rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    rgba(8, 14, 23, 0.84);
  color: var(--muted);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 30px rgba(0, 0, 0, 0.18);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease,
    color 240ms ease;
  will-change: transform;
}

.skill-node-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(255, 255, 255, 0.06),
    transparent 36%
  );
  opacity: 0.72;
  pointer-events: none;
}

.skill-node-card-layer {
  position: relative;
  z-index: 1;
  color: rgba(210, 180, 124, 0.8);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.skill-node-card strong {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.25;
}

.skill-node-card small {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  color: rgba(238, 230, 217, 0.58);
}

.skill-node-card:hover,
.skill-node-card:focus-visible,
.skill-node-card.is-focused {
  color: var(--text);
  border-color: rgba(137, 224, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 36%),
    rgba(18, 31, 43, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 42px rgba(17, 43, 55, 0.24),
    0 0 30px rgba(137, 224, 255, 0.1);
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--skills-rotation) * -1))
    translateY(-4px);
}

.skill-node-card.orbit-core {
  border-color: rgba(137, 224, 255, 0.2);
}

.skill-node-card.orbit-core .skill-node-card-layer {
  color: rgba(137, 224, 255, 0.82);
}

.skill-node-card.orbit-domain {
  border-color: rgba(190, 220, 160, 0.16);
}

.skill-node-card.orbit-domain .skill-node-card-layer {
  color: rgba(180, 223, 187, 0.8);
}

.skill-node-card.orbit-tool {
  border-color: rgba(210, 180, 124, 0.16);
}

.skills-map-legend {
  position: absolute;
  left: 1.3rem;
  bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skills-map-legend span {
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 230, 217, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.skills-aside-card,
.projects-aside,
.contact-command-list {
  padding: 1.4rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-height: 19.5rem;
}

.skills-aside-detail {
  color: rgba(238, 230, 217, 0.82);
  line-height: 1.7;
}

.skills-command {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
}

.skills-command-copy,
.skills-command-detail {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.skills-command-copy {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.3rem;
}

.skills-command-copy span {
  color: rgba(210, 180, 124, 0.84);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.skills-command-copy strong {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  font-family: "Cormorant Garamond", serif;
}

.skills-command-copy p,
.skills-command-detail p {
  margin: 0;
  color: rgba(238, 230, 217, 0.78);
  line-height: 1.78;
}

.skills-command-detail {
  display: grid;
  gap: 0.9rem;
  padding: 1.3rem;
}

.skills-aside-card span,
.projects-aside span {
  color: rgba(210, 180, 124, 0.84);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.skills-aside-card strong,
.projects-aside strong {
  font-size: 1.32rem;
  line-height: 1.18;
}

.skills-aside-card p,
.projects-aside p,
.contact-command-list p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.projects-layout {
  display: grid;
}

.projects-list {
  display: grid;
  gap: 1.45rem;
  padding: 1.6rem;
}

.projects-board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.projects-board-header span {
  color: rgba(210, 180, 124, 0.84);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.projects-board-header p {
  margin: 0;
  max-width: 20rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: right;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.35rem;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease,
    box-shadow 260ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  left: 76px;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(137, 224, 255, 0),
    rgba(137, 224, 255, 0.68),
    rgba(210, 180, 124, 0.18),
    rgba(137, 224, 255, 0)
  );
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(137, 224, 255, 0.08),
    transparent 36%
  );
  opacity: 0.82;
  pointer-events: none;
}

.project-card.is-active,
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(137, 224, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 52px rgba(10, 28, 40, 0.24);
}

.project-card-rail,
.project-card-body {
  position: relative;
  z-index: 1;
}

.project-card-rail {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding-right: 0.95rem;
}

.project-card-rail span {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 3rem;
  line-height: 0.82;
  color: rgba(210, 180, 124, 0.82);
}

.project-card-rail em {
  font-style: normal;
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(238, 230, 217, 0.6);
}

.project-card-body {
  display: grid;
  gap: 1rem;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-card-meta span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 230, 217, 0.68);
  font-size: 0.72rem;
}

.project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.project-card-head h3 {
  margin: 0;
  font-size: 1.58rem;
  font-family: "Cormorant Garamond", serif;
}

.project-card-head button,
.project-card-head a,
.overlay-close,
.modal-links a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 180, 124, 0.24);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 200ms ease,
    transform 200ms ease;
}

.project-card-head button:hover,
.project-card-head a:hover,
.overlay-close:hover,
.modal-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(137, 224, 255, 0.3);
}

.project-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-tag-preview .tag {
  margin-top: 0;
  padding: 0.42rem 0.72rem;
  font-size: 0.74rem;
}

.project-reveal {
  display: grid;
  gap: 0.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 320ms ease,
    opacity 220ms ease,
    margin-top 220ms ease;
}

.project-card.is-active .project-reveal,
.project-card:hover .project-reveal,
.project-card:focus-within .project-reveal {
  max-height: 30rem;
  opacity: 1;
  margin-top: 1rem;
}

.project-reveal p {
  display: grid;
  gap: 0.22rem;
  margin: 0;
}

.project-reveal strong {
  color: rgba(210, 180, 124, 0.86);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.project-reveal span {
  color: #d7eef6;
  line-height: 1.75;
}

.timeline-shell {
  position: relative;
  padding: 2rem 1.7rem 1.75rem;
  overflow: hidden;
}

body[data-route="timeline"] .timeline-shell {
  padding: 2rem 1.8rem 1.8rem;
}

.timeline-shell::after {
  content: "";
  position: absolute;
  inset: auto 18% 1.8rem 18%;
  height: 10rem;
  background: radial-gradient(
    circle,
    rgba(137, 224, 255, 0.12),
    transparent 72%
  );
  filter: blur(54px);
  pointer-events: none;
}

.timeline-shell-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  padding: 0 0.2rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-shell-head span {
  flex: 0 0 auto;
  color: rgba(210, 180, 124, 0.84);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.timeline-shell-head p {
  margin: 0;
  min-width: 0;
  flex: 1 1 36rem;
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.78;
  text-align: right;
  white-space: nowrap;
}

.timeline-manifest {
  position: relative;
  z-index: 1;
}

.timeline-manifest-copy strong {
  font-size: clamp(1.18rem, 1.65vw, 1.5rem);
  line-height: 1.34;
}

.timeline-manifest p {
  margin-top: 0;
  align-self: center;
  font-size: 0.97rem;
  line-height: 1.86;
}

.timeline-ledger {
  position: relative;
  z-index: 1;
  gap: 1.15rem;
  margin-bottom: 1.55rem;
}

.timeline-ledger-card {
  min-height: 6.5rem;
  padding: 1.28rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    radial-gradient(circle at top right, rgba(122, 224, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.03);
}

.timeline-ledger-card strong {
  font-size: 1.12rem;
  line-height: 1.38;
}

.timeline-spotlight {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(21rem, 0.86fr);
  gap: 1.45rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.timeline-spotlight-copy,
.timeline-spotlight-outcome,
.timeline-outcome {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.025);
}

.timeline-spotlight-copy,
.timeline-spotlight-outcome {
  padding: 1.45rem 1.45rem 1.35rem;
}

.timeline-spotlight-copy span,
.timeline-spotlight-outcome span,
.timeline-outcome span {
  color: rgba(210, 180, 124, 0.86);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.timeline-spotlight-copy strong {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
  font-family: "Cormorant Garamond", serif;
}

.timeline-spotlight-outcome {
  display: grid;
  align-content: center;
  min-height: 100%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 42%),
    radial-gradient(circle at top left, rgba(210, 180, 124, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.03);
}

.timeline-spotlight-copy p,
.timeline-spotlight-outcome p,
.timeline-description,
.timeline-outcome p {
  margin: 0.65rem 0 0;
  color: rgba(238, 230, 217, 0.78);
  line-height: 1.76;
}

.timeline-path {
  position: relative;
  width: 100%;
  height: 328px;
  margin-top: 0.95rem;
  overflow: visible;
}

.timeline-path-aura {
  fill: none;
  stroke: rgba(122, 224, 255, 0.14);
  stroke-width: 11;
  stroke-linecap: round;
  filter: blur(1px) drop-shadow(0 0 26px rgba(122, 224, 255, 0.28));
}

.timeline-path-line {
  fill: none;
  stroke: rgba(160, 234, 255, 0.72);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 18px rgba(137, 224, 255, 0.24));
}

.timeline-beacon {
  position: absolute;
  z-index: 0;
  width: 7.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(199, 246, 255, 0.26), rgba(122, 224, 255, 0.08) 40%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  animation: timelineBeaconFloat 7.8s ease-in-out infinite;
}

.timeline-beacon-alpha {
  top: 12.5rem;
  left: 12%;
}

.timeline-beacon-beta {
  top: 7rem;
  right: 10%;
  animation-delay: -3.2s;
}

.timeline-nodes {
  display: grid;
  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(0, 1.08fr)
    minmax(0, 1fr)
    minmax(0, 0.98fr);
  gap: 1.35rem;
  margin-top: -5.6rem;
  position: relative;
  z-index: 1;
  align-items: end;
}

.timeline-node {
  --node-shift-y: 0px;
  --node-rotate: 0deg;
  position: relative;
  display: grid;
  align-content: start;
  min-height: 18rem;
  padding: 3.45rem 1.22rem 1.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), transparent 26%),
    radial-gradient(circle at top right, rgba(122, 224, 255, 0.12), transparent 36%),
    radial-gradient(circle at bottom left, rgba(210, 180, 124, 0.12), transparent 42%),
    rgba(7, 17, 28, 0.68);
  border: 1px solid rgba(156, 232, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 44px rgba(4, 10, 18, 0.22);
  overflow: hidden;
  transform: translate3d(0, var(--node-shift-y), 0) rotate(var(--node-rotate));
  transition:
    transform 260ms ease,
    border-color 240ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.timeline-node::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%, transparent 72%, rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.1), transparent 20%);
  pointer-events: none;
}

.timeline-node::before {
  content: "";
  position: absolute;
  top: 1.02rem;
  left: 1rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #9fe9ff 58%, rgba(159, 233, 255, 0.18) 70%, transparent 76%);
  box-shadow:
    0 0 24px rgba(137, 224, 255, 0.66),
    0 0 42px rgba(137, 224, 255, 0.34);
  animation: beaconPulse 3.8s ease-in-out infinite;
}

.timeline-node-1 {
  --node-shift-y: -0.7rem;
  --node-rotate: -1deg;
}

.timeline-node-2 {
  --node-shift-y: 1rem;
  --node-rotate: 0.85deg;
}

.timeline-node-3 {
  --node-shift-y: -1.15rem;
  --node-rotate: -0.75deg;
}

.timeline-node-4 {
  --node-shift-y: 1.35rem;
  --node-rotate: 1deg;
}

.timeline-node.is-current {
  border-color: rgba(210, 180, 124, 0.24);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.11), transparent 24%),
    radial-gradient(circle at top right, rgba(210, 180, 124, 0.18), transparent 38%),
    radial-gradient(circle at bottom left, rgba(122, 224, 255, 0.13), transparent 46%),
    rgba(8, 18, 30, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 56px rgba(4, 10, 18, 0.28);
}

.timeline-node-index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(238, 230, 217, 0.48);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.timeline-year {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.95rem;
  padding: 0.42rem 0.88rem;
  color: rgba(245, 227, 187, 0.94);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.76rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 180, 124, 0.2);
  background: rgba(210, 180, 124, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.timeline-title {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(1.46rem, 2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.timeline-description {
  margin-top: 0;
  font-size: 0.95rem;
}

.timeline-outcome {
  margin-top: auto;
  padding: 1rem 1rem 0.96rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(8px);
}

.timeline-node:hover {
  border-color: rgba(137, 224, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 52px rgba(6, 18, 30, 0.28);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.11), transparent 24%),
    radial-gradient(circle at top right, rgba(122, 224, 255, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(210, 180, 124, 0.14), transparent 40%),
    rgba(11, 23, 36, 0.8);
  transform: translate3d(0, calc(var(--node-shift-y) - 0.42rem), 0)
    rotate(var(--node-rotate));
}

@keyframes timelineBeaconFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.96);
    opacity: 0.6;
  }

  50% {
    transform: translate3d(0, -0.65rem, 0) scale(1.08);
    opacity: 1;
  }
}

.terminal-shell {
  padding: 1.45rem;
  display: grid;
  gap: 1rem;
  min-height: 31.5rem;
}

.terminal-shell::after {
  content: "";
  position: absolute;
  inset: 3.75rem 1rem 4.45rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.terminal-header p {
  margin: 0 auto 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.terminal-status {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(137, 224, 255, 0.16);
  background: rgba(137, 224, 255, 0.08);
  color: rgba(215, 246, 255, 0.88);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: beaconPulse 3.4s ease-in-out infinite;
}

.terminal-history {
  position: relative;
  min-height: 20rem;
  padding: 1.15rem 1.1rem 1.25rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%),
    rgba(4, 10, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.terminal-history::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38%;
  background: linear-gradient(
    180deg,
    rgba(137, 224, 255, 0),
    rgba(137, 224, 255, 0.14) 48%,
    rgba(210, 180, 124, 0.08) 74%,
    rgba(137, 224, 255, 0)
  );
  pointer-events: none;
  animation: terminalScan 7s linear infinite;
}

.terminal-history p {
  margin: 0;
  font-family:
    ui-monospace, SFMono-Regular, SFMono-Regular, Consolas, "Liberation Mono",
    Menlo, monospace;
  color: #c8f4ff;
  line-height: 1.72;
}

.terminal-footnote {
  color: rgba(238, 230, 217, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.terminal-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.terminal-shortcuts button {
  min-height: 2.7rem;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.03);
  color: rgba(236, 251, 255, 0.88);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.terminal-shortcuts button:hover,
.terminal-shortcuts button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(137, 224, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    rgba(255, 255, 255, 0.06);
}

.terminal-input-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.terminal-input-row span {
  color: rgba(137, 224, 255, 0.8);
}

.terminal-input-row input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

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

.contact-command-list > div {
  position: relative;
  padding: 1.05rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 3.2rem;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 240ms ease;
  backdrop-filter: blur(10px);
}

.contact-command-list > div:hover {
  transform: translateY(-3px);
  border-color: rgba(137, 224, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 36px rgba(9, 24, 36, 0.18);
}

.contact-command-index {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: rgba(210, 180, 124, 0.84);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.contact-command-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.overlay-panel {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(10px);
}

.overlay-card {
  position: relative;
  z-index: 1;
  width: min(740px, calc(100vw - 2rem));
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(137, 224, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(
      circle at top right,
      rgba(137, 224, 255, 0.08),
      transparent 36%
    ),
    var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.overlay-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 24%),
    radial-gradient(
      circle at 88% 12%,
      rgba(210, 180, 124, 0.08),
      transparent 24%
    );
  pointer-events: none;
}

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

.overlay-card-project {
  width: min(980px, calc(100vw - 2rem));
}

.overlay-card-chapter {
  width: min(1120px, calc(100vw - 2rem));
  padding: 1.5rem;
}

.chapter-modal-topline,
.chapter-modal-controls {
  display: flex;
  align-items: center;
}

.chapter-modal-topline {
  justify-content: space-between;
  gap: 1rem;
}

.chapter-modal-controls {
  gap: 0.6rem;
}

.chapter-nav-button,
.chapter-ghost-button {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 180, 124, 0.24);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 200ms ease,
    transform 200ms ease;
}

.chapter-nav-button:hover,
.chapter-ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(137, 224, 255, 0.3);
}

.chapter-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.chapter-modal-copy {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.chapter-modal-eyebrow {
  color: rgba(210, 180, 124, 0.86);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.chapter-modal-copy h3 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.94;
  font-family: "Cormorant Garamond", serif;
}

.chapter-modal-lead {
  margin: 0;
  color: #edf9ff;
  font-size: 1.08rem;
  line-height: 1.7;
}

.chapter-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.chapter-enter-button {
  min-width: 16rem;
}

.chapter-modal-visual,
.chapter-modal-outline {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.chapter-modal-visual {
  min-height: 23rem;
  padding: 1rem;
}

.chapter-modal-outline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem;
}

.chapter-outline-kicker {
  grid-column: 1 / -1;
  color: rgba(137, 224, 255, 0.82);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.chapter-outline-card {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chapter-outline-card em {
  font-style: normal;
  color: rgba(210, 180, 124, 0.84);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.chapter-outline-card strong {
  font-size: 1rem;
  line-height: 1.35;
}

.chapter-planet-orbit {
  position: relative;
  min-height: 21rem;
  border-radius: calc(var(--radius-lg) - 6px);
  background:
    radial-gradient(
      circle at center,
      rgba(137, 224, 255, 0.1),
      transparent 28%
    ),
    linear-gradient(180deg, rgba(8, 16, 28, 0.72), rgba(7, 13, 22, 0.92));
  overflow: hidden;
}

.chapter-planet-orbit::before,
.chapter-planet-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(137, 224, 255, 0.16);
}

.chapter-planet-orbit::before {
  width: 16rem;
  height: 16rem;
}

.chapter-planet-orbit::after {
  width: 24rem;
  height: 18rem;
  border-color: rgba(210, 180, 124, 0.18);
}

.chapter-planet-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 10rem;
  height: 10rem;
  padding: 1rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.22),
    rgba(137, 224, 255, 0.12) 40%,
    rgba(9, 16, 26, 0.86) 72%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 44px rgba(137, 224, 255, 0.12);
  text-align: center;
}

.chapter-planet-core span {
  color: rgba(210, 180, 124, 0.88);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.chapter-planet-core strong {
  max-width: 5.8rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.chapter-orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 23, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 24px rgba(0, 0, 0, 0.16);
}

.chapter-orbit-node span {
  color: rgba(238, 230, 217, 0.84);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.chapter-orbit-node-1 {
  left: 14%;
  top: 22%;
}

.chapter-orbit-node-2 {
  right: 9%;
  top: 34%;
}

.chapter-orbit-node-3 {
  left: 24%;
  bottom: 14%;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overlay-header h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
}

.overlay-summary {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.8;
}

.overlay-detail-block {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overlay-detail-block span {
  color: rgba(210, 180, 124, 0.86);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.project-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
}

.project-spotlight-stage,
.project-spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.project-spotlight-stage {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.25rem;
  min-height: 100%;
  background:
    radial-gradient(
      circle at 80% 18%,
      rgba(137, 224, 255, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 18% 82%,
      rgba(210, 180, 124, 0.08),
      transparent 26%
    ),
    linear-gradient(180deg, rgba(10, 18, 30, 0.92), rgba(7, 11, 18, 0.96));
}

.project-spotlight-stage span,
.project-spotlight-card span {
  color: rgba(210, 180, 124, 0.86);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.project-spotlight-stage strong,
.project-spotlight-card strong {
  font-size: 1.3rem;
  line-height: 1.25;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
}

.project-spotlight-stage p,
.project-spotlight-card p {
  margin: 0;
  color: rgba(238, 230, 217, 0.8);
  line-height: 1.78;
}

.project-spotlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.project-spotlight-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(137, 224, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-spotlight-link:hover,
.project-spotlight-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(210, 180, 124, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.project-spotlight-link.is-secondary {
  border-color: rgba(210, 180, 124, 0.22);
}

.project-spotlight-content {
  display: grid;
  gap: 0.9rem;
}

.project-spotlight-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem;
}

.project-spotlight-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(238, 230, 217, 0.8);
  line-height: 1.78;
}

.project-spotlight-list li + li {
  margin-top: 0.4rem;
}

.overlay-detail-block p {
  margin: 0;
  color: #d6edf6;
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
}

.project-modal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.project-modal-visual {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, rgba(137, 224, 255, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.03);
}

.project-modal-visual-kicker {
  color: rgba(210, 180, 124, 0.84);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.project-modal-visual-title {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.project-modal-visual-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.project-visual-grid {
  display: grid;
  gap: 0.75rem;
}

.project-visual-grid span {
  display: grid;
  place-items: center;
  min-height: 6rem;
  border-radius: 14px;
  border: 1px dashed rgba(137, 224, 255, 0.24);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.project-modal-copy {
  display: grid;
  gap: 1rem;
}

.project-modal-copy p {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.project-modal-copy strong {
  color: rgba(210, 180, 124, 0.86);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.project-modal-copy span {
  line-height: 1.75;
  color: #d6edf6;
}

.modal-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

@media (max-width: 1100px) {
  .app-hud {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hud-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .route-hero-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-detail-shell,
  .skills-command,
  .timeline-spotlight {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-intro,
  .section-aside {
    position: relative;
    top: unset;
    max-width: none;
  }

  .about-grid,
  .project-modal-grid,
  .chapter-modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero-chapter-card,
  .hero-chapter-card:nth-child(1),
  .hero-chapter-card:nth-child(2),
  .hero-chapter-card:nth-child(3),
  .hero-chapter-card:nth-child(4),
  .hero-chapter-card:nth-child(5) {
    grid-column: span 1;
  }

  .chapter-modal-outline {
    grid-template-columns: minmax(0, 1fr);
  }

  .chapter-crossroads-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .timeline-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.85rem;
  }

  body[data-route="timeline"] .timeline-nodes {
    gap: 1rem;
    margin-top: 0.85rem;
  }

  .timeline-path {
    height: 220px;
  }

  .timeline-shell-head,
  .projects-board-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-shell-head p,
  .projects-board-header p {
    max-width: none;
    text-align: left;
    white-space: normal;
  }

  .timeline-spotlight {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .timeline-node {
    --node-shift-y: 0px;
    --node-rotate: 0deg;
    min-height: 16.8rem;
  }

  body[data-route="timeline"] .timeline-node {
    min-height: 16.8rem;
    padding: 3.32rem 1.08rem 1.08rem;
  }

  .timeline-beacon-alpha {
    top: 13.5rem;
    left: 4%;
  }

  .timeline-beacon-beta {
    top: 5.5rem;
    right: 2%;
  }

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

@media (max-width: 768px) {
  body::before {
    opacity: 0.2;
  }

  .app-hud {
    padding-top: 0.8rem;
  }

  .hud-brand {
    gap: 0.8rem;
    padding: 0.64rem 0.82rem 0.64rem 0.7rem;
  }

  .hud-brand-signal {
    display: none;
  }

  .hud-nav {
    padding: 0.45rem;
  }

  .hud-nav-link {
    padding: 0.52rem 0.78rem 0.48rem;
  }

  .hud-index-shell {
    width: 2.8rem;
  }

  .hud-index {
    width: 2.12rem;
    font-size: 0.9rem;
  }

  .sound-toggle {
    padding: 0.75rem 0.85rem;
  }

  .hero-section {
    align-items: end;
    padding-top: 6rem;
  }

  .hero-stage {
    padding-inline: 0;
  }

  .hero-stage-panel {
    gap: 1.1rem;
    padding: 1.9rem 0.95rem 1.7rem;
  }

  .hero-stage-panel::before {
    left: 4%;
    right: 4%;
  }

  .hero-intro-heading {
    font-size: clamp(1.2rem, 5.2vw, 3.7rem);
  }

  .hero-intro-heading.reveal-swap,
  .hero-intro-heading.reveal-invert {
    min-height: 1.18em;
  }

  .hero-intro-heading .reveal-enhanced {
    font-size: clamp(0.86rem, 3.15vw, 2.2rem);
    letter-spacing: 0.03em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-atlas {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-chapter-card,
  .hero-chapter-card:nth-child(1),
  .hero-chapter-card:nth-child(2),
  .hero-chapter-card:nth-child(3),
  .hero-chapter-card:nth-child(4),
  .hero-chapter-card:nth-child(5) {
    grid-column: span 1;
  }

  .hero-chapter-card strong {
    font-size: 1.3rem;
  }

  .chapter-modal-topline,
  .chapter-modal-controls,
  .chapter-modal-actions {
    flex-wrap: wrap;
  }

  .chapter-modal-visual {
    min-height: 20rem;
  }

  .chapter-planet-orbit::before {
    width: 12rem;
    height: 12rem;
  }

  .chapter-planet-orbit::after {
    width: 17rem;
    height: 13rem;
  }

  .hero-core-button {
    width: 100%;
  }

  .route-hero {
    padding-top: 7rem;
  }

  .route-hero-copy,
  .route-hero-visual,
  .chapter-crossroads-shell {
    padding: 1rem;
  }

  .route-hero-copy h1 {
    font-size: clamp(2.3rem, 9vw, 4rem);
  }

  .route-hero-actions {
    width: 100%;
  }

  .chapter-route-button,
  .chapter-route-home,
  .chapter-route-link {
    width: 100%;
  }

  .route-hero-visual {
    min-height: 22rem;
  }

  .route-hero-core {
    width: 9rem;
    height: 9rem;
  }

  .route-hero-orbit-alpha {
    width: 12rem;
    height: 12rem;
  }

  .route-hero-orbit-beta {
    width: 18rem;
    height: 14rem;
  }

  .route-hero-node {
    width: 6.8rem;
    min-width: 6.8rem;
    padding: 0.65rem 0.72rem;
  }

  .route-hero-node span {
    font-size: 0.78rem;
  }

  .route-hero-node-1 {
    left: calc(50% - 3.4rem);
    top: 8%;
  }

  .route-hero-node-2 {
    right: 1%;
    top: 60%;
  }

  .route-hero-node-3 {
    left: 1%;
    top: 60%;
  }

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

  .timeline-spotlight {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .story-section {
    padding-inline: 0.9rem;
  }

  .section-intro {
    max-width: none;
  }

  .section-intro p {
    max-width: none;
  }

  .about-visual {
    min-height: 33rem;
  }

  .about-visual-head strong,
  .about-copy-head strong {
    font-size: 1.45rem;
  }

  .skills-orbits {
    min-height: auto;
    padding: 1rem;
  }

  .skills-map {
    min-height: auto;
    padding: 1rem;
  }

  .skills-map::before {
    inset: 0.7rem;
  }

  .skills-map-header {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-bottom: 1rem;
    flex-direction: column;
  }

  .skills-map-readouts {
    justify-content: flex-start;
  }

  .skills-signal,
  .skills-orbit-lane {
    display: none;
  }

  .skills-core-hub {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 1rem;
    margin-bottom: 0.9rem;
    border-radius: 1.5rem;
  }

  .skills-center-layer {
    position: relative;
    inset: auto;
    z-index: auto;
    margin-bottom: 0.9rem;
  }

  .skills-core-hub strong {
    max-width: none;
  }

  .skills-node-cluster {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .skill-node-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
  }

  .skill-node-card:hover,
  .skill-node-card:focus-visible,
  .skill-node-card.is-focused {
    transform: translateY(-2px);
  }

  .skills-map-legend {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: flex-start;
    margin-top: 0.9rem;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .project-card::before {
    left: 1rem;
    right: 1rem;
    top: 4.7rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .project-card-rail {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.85rem;
    padding-right: 0;
    padding-bottom: 0.75rem;
  }

  .project-card-rail span {
    font-size: 2.5rem;
  }

  .timeline-shell-head {
    padding-bottom: 0.85rem;
  }

  .timeline-path {
    height: 168px;
    margin-top: 0.55rem;
  }

  .timeline-spotlight-copy,
  .timeline-spotlight-outcome {
    padding: 1.15rem 1rem 1.08rem;
  }

  .terminal-history {
    padding: 0.9rem;
  }

  .timeline-nodes {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0.5rem;
  }

  body[data-route="timeline"] .timeline-nodes {
    margin-top: 0.5rem;
  }

  .timeline-node,
  body[data-route="timeline"] .timeline-node {
    min-height: auto;
    padding: 3.08rem 1rem 1rem;
  }

  .timeline-beacon {
    width: 5.5rem;
    filter: blur(10px);
  }
}

@media (max-width: 560px) {
  .skills-node-cluster,
  .chapter-modal-outline {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card-head,
  .overlay-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-links {
    flex-direction: column;
  }
}

body[data-route="project"] {
  --route-accent: rgba(255, 212, 158, 0.92);
  --route-gold: rgba(255, 195, 124, 0.84);
  --route-glow: rgba(255, 197, 132, 0.15);
  --route-orbit: rgba(255, 197, 132, 0.18);
  --route-panel-tint: rgba(255, 197, 132, 0.07);
}

.route-transition {
  opacity: 0;
  overflow: hidden;
}

.route-transition.is-active {
  opacity: 1;
}

.route-transition-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at center, var(--route-panel-tint), transparent 42%),
    linear-gradient(135deg, rgba(4, 8, 14, 0.96), rgba(8, 14, 22, 0.98));
  backdrop-filter: blur(14px);
  transition: transform 520ms cubic-bezier(0.76, 0, 0.24, 1);
}

.route-transition-door::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 36px,
      rgba(255, 255, 255, 0.015) 36px,
      rgba(255, 255, 255, 0.015) 37px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
  opacity: 0.72;
}

.route-transition-door-left {
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-104%);
}

.route-transition-door-right {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(104%);
}

.route-transition.is-out .route-transition-door-left,
.route-transition.is-out .route-transition-door-right {
  transform: translateX(0);
}

.route-transition.is-in .route-transition-door-left {
  transform: translateX(-104%);
}

.route-transition.is-in .route-transition-door-right {
  transform: translateX(104%);
}

.route-transition-grid,
.route-transition-flare,
.route-transition-ring,
.route-transition-copy {
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.route-transition-grid {
  opacity: 0;
  transform: scale(1.06);
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--route-accent) 14%, transparent), transparent 34%),
    rgba(4, 7, 12, 0.36);
  backdrop-filter: blur(8px);
}

.route-transition-flare {
  opacity: 0;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--route-gold) 18%, transparent), transparent 26%),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 38%,
      rgba(255, 255, 255, 0.24) 50%,
      rgba(255, 255, 255, 0.04) 62%,
      transparent 100%
    );
  transform: scaleX(0.15);
}

.route-transition-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(58vw, 42rem);
  height: min(58vw, 42rem);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--route-accent) 28%, transparent);
  box-shadow:
    0 0 48px color-mix(in srgb, var(--route-accent) 18%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
}

.route-transition-copy {
  gap: 0.5rem;
  opacity: 0;
  transform: scale(0.92);
}

.route-transition-copy span {
  letter-spacing: 0.3em;
  font-size: 0.74rem;
}

.route-transition-copy strong {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  text-shadow:
    0 0 24px color-mix(in srgb, var(--route-accent) 18%, transparent),
    0 24px 70px rgba(0, 0, 0, 0.34);
}

.route-transition.is-out .route-transition-grid,
.route-transition.is-out .route-transition-flare,
.route-transition.is-out .route-transition-ring,
.route-transition.is-out .route-transition-copy {
  opacity: 1;
}

.route-transition.is-out .route-transition-grid {
  transform: scale(1);
}

.route-transition.is-out .route-transition-flare {
  transform: scaleX(1);
}

.route-transition.is-out .route-transition-ring {
  transform: translate(-50%, -50%) scale(1);
}

.route-transition.is-out .route-transition-copy {
  transform: scale(1);
}

.route-transition.is-in .route-transition-grid {
  opacity: 0.86;
  transform: scale(1.02);
}

.route-transition.is-in .route-transition-flare {
  opacity: 0;
  transform: scaleX(1.08);
}

.route-transition.is-in .route-transition-ring {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.12);
}

.route-transition.is-in .route-transition-copy {
  opacity: 0;
  transform: scale(1.04);
}

.route-hero-copy {
  gap: 1rem;
}

.route-hero-visual {
  min-height: 36rem;
}

.route-hero-grid,
.route-hero-beam {
  position: absolute;
  z-index: 0;
}

.route-hero-stage-card,
.route-hero-ribbon {
  z-index: 2;
}

.route-hero-grid {
  inset: 1rem;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(
      90deg,
      transparent 0 49.8%,
      rgba(255, 255, 255, 0.03) 49.9%,
      transparent 50.1%
    ),
    linear-gradient(
      180deg,
      transparent 0 49.8%,
      rgba(255, 255, 255, 0.02) 49.9%,
      transparent 50.1%
    );
  opacity: 0.4;
  pointer-events: none;
}

.route-hero-beam {
  left: 50%;
  top: 50%;
  width: 56%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--route-accent) 18%, transparent) 18%,
    color-mix(in srgb, var(--route-gold) 24%, transparent) 36%,
    color-mix(in srgb, var(--route-accent) 100%, transparent) 50%,
    color-mix(in srgb, var(--route-gold) 24%, transparent) 64%,
    color-mix(in srgb, var(--route-accent) 18%, transparent) 82%,
    transparent
  );
  box-shadow:
    0 0 18px color-mix(in srgb, var(--route-accent) 18%, transparent),
    0 0 40px color-mix(in srgb, var(--route-accent) 8%, transparent);
  transform: translate(-50%, -50%);
  opacity: 0.62;
}

.route-hero-stage-card {
  position: absolute;
  left: clamp(0.95rem, 2vw, 1.55rem);
  top: clamp(0.95rem, 2vw, 1.4rem);
  width: min(13.8rem, calc(30% - 0.9rem));
  max-height: calc(100% - 3.1rem);
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 0.74rem;
  border-radius: 1.18rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    rgba(7, 13, 21, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 260ms ease;
}

.route-hero-stage-card:hover,
.route-hero-stage-card:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--route-accent) 24%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 54px rgba(0, 0, 0, 0.24);
}

.route-hero-stage-card.is-expanded {
  width: min(16rem, calc(34% - 0.8rem));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    rgba(7, 13, 21, 0.9);
}

.route-hero-stage-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  padding: 0;
  text-align: left;
}

.route-hero-stage-toggle-dot {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--route-accent) 60%, transparent 78%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--route-accent) 34%, transparent);
}

.route-hero-stage-toggle-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.route-hero-stage-toggle-copy em,
.route-hero-stage-body span,
.route-hero-ribbon span,
.route-hero-ledger-card span,
.project-detail-signal-card span,
.about-visual-signal span,
.about-presence-card span,
.about-principle-card span,
.skills-reading-card span,
.timeline-manifest-copy span,
.timeline-ledger-card span {
  color: var(--route-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.route-hero-stage-toggle-copy em {
  font-style: normal;
}

.route-hero-stage-toggle-copy strong {
  display: block;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(0.92rem, 1.08vw, 1.04rem);
  line-height: 1.12;
}

.route-hero-stage-toggle-copy small {
  font-size: 0.68rem;
  color: rgba(238, 230, 217, 0.58);
  line-height: 1.35;
}

.route-hero-stage-toggle-icon {
  width: 0.84rem;
  height: 0.84rem;
  border-right: 1.5px solid rgba(238, 230, 217, 0.72);
  border-bottom: 1.5px solid rgba(238, 230, 217, 0.72);
  transform: translateY(-0.12rem) rotate(45deg);
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.route-hero-stage-card.is-expanded .route-hero-stage-toggle-icon {
  transform: translateY(0.16rem) rotate(-135deg);
  border-color: color-mix(in srgb, var(--route-accent) 80%, #ffffff);
}

.route-hero-stage-body {
  display: grid;
  gap: 0.58rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-0.45rem);
  transition:
    max-height 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 260ms ease;
}

.route-hero-stage-card.is-expanded .route-hero-stage-body {
  max-height: 15rem;
  opacity: 1;
  transform: translateY(0);
  overflow-y: auto;
}

.route-hero-stage-body strong {
  display: block;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.08;
}

.route-hero-stage-body p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(238, 230, 217, 0.78);
  line-height: 1.62;
}

.route-hero-ribbon {
  position: absolute;
  left: 50%;
  bottom: 1.05rem;
  width: min(23rem, 72%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  transform: translateX(-50%);
  justify-items: stretch;
  pointer-events: none;
}

.route-hero-ribbon span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%),
    rgba(7, 13, 21, 0.8);
  color: rgba(238, 230, 217, 0.86);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.route-hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.2rem;
}

.route-hero-ledger-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
  padding: 1.08rem 1.05rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.025);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 240ms ease;
}

.route-hero-ledger-card:hover {
  transform: translateY(-4px);
  border-color: rgba(137, 224, 255, 0.18);
  box-shadow: 0 20px 36px rgba(10, 28, 40, 0.18);
}

.route-hero-ledger-card strong,
.project-detail-signal-card strong,
.about-visual-signal strong,
.about-presence-card strong,
.about-principle-card strong,
.skills-reading-card strong,
.timeline-manifest-copy strong,
.timeline-ledger-card strong {
  font-size: 1rem;
  line-height: 1.45;
}

body[data-route="about"] .route-hero-about .route-hero-visual {
  background:
    radial-gradient(circle at 18% 22%, rgba(156, 235, 255, 0.14), transparent 22%),
    linear-gradient(145deg, rgba(10, 18, 28, 0.92), rgba(5, 10, 17, 0.98));
}

body[data-route="about"] .route-hero-about .route-hero-grid {
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.04) 46% 48%, transparent 48% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 32%);
}

body[data-route="skills"] .route-hero-skills .route-hero-visual {
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 255, 204, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(6, 15, 18, 0.94), rgba(5, 10, 16, 0.98));
}

body[data-route="skills"] .route-hero-skills .route-hero-beam,
body[data-route="project"] .route-hero-projects .route-hero-beam,
body[data-route="projects"] .route-hero-projects .route-hero-beam {
  transform: translate(-50%, -50%) rotate(0deg);
}

body[data-route="projects"] .route-hero-projects .route-hero-visual,
body[data-route="project"] .route-hero-projects .route-hero-visual {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 197, 132, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(18, 13, 10, 0.9), rgba(8, 11, 15, 0.98));
}

body[data-route="projects"] .route-hero-projects .route-hero-grid,
body[data-route="project"] .route-hero-projects .route-hero-grid {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px) 0 0 / 4.8rem 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px) 0 0 / 100% 4.8rem;
  opacity: 0.24;
}

body[data-route="timeline"] .route-hero-timeline .route-hero-visual {
  background:
    radial-gradient(circle at 52% 24%, rgba(194, 182, 255, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(15, 10, 24, 0.92), rgba(6, 9, 16, 0.98));
}

body[data-route="timeline"] .route-hero-timeline .route-hero-beam {
  width: 1px;
  height: 76%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--route-accent) 100%, transparent) 26%,
    color-mix(in srgb, var(--route-gold) 28%, transparent) 72%,
    transparent
  );
}

body[data-route="contact"] .route-hero-contact .route-hero-visual {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 221, 175, 0.14), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(255, 221, 175, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.9), rgba(5, 9, 15, 0.98));
}

body[data-route="about"] .about-grid {
  grid-template-columns: minmax(500px, 1fr) minmax(0, 1.06fr);
  gap: 2.4rem;
}

body[data-route="about"] .about-visual {
  min-height: 50rem;
  padding: 1.85rem;
}

body[data-route="about"] .about-copy {
  padding: 2.35rem;
  gap: 1.6rem;
}

.about-visual-signals,
.about-presence-grid,
.about-principles,
.skills-reading-deck,
.timeline-ledger,
.project-detail-signal-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-visual-signals {
  position: relative;
  z-index: 1;
}

.about-visual-signal,
.about-presence-card,
.about-principle-card,
.skills-reading-card,
.timeline-manifest,
.timeline-ledger-card,
.project-detail-signal-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.about-visual-signal,
.about-presence-card,
.about-principle-card,
.skills-reading-card,
.timeline-ledger-card,
.project-detail-signal-card {
  padding: 1.12rem 1.1rem;
}

.about-visual-signal:hover,
.about-presence-card:hover,
.about-principle-card:hover,
.skills-reading-card:hover,
.timeline-manifest:hover,
.timeline-ledger-card:hover,
.project-detail-signal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(137, 224, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 40px rgba(10, 28, 40, 0.18);
}

.about-visual-signal strong,
.about-presence-card strong {
  display: block;
  margin-top: 0.5rem;
}

.about-principle-card p,
.skills-reading-card p,
.timeline-manifest p {
  margin: 0.7rem 0 0;
  color: rgba(238, 230, 217, 0.76);
  line-height: 1.72;
}

.about-principles {
  margin-top: 0.15rem;
}

.about-principle-card strong {
  display: block;
  margin-top: 0.55rem;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.3rem;
  line-height: 1.12;
}

.skills-command {
  gap: 1.45rem;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
}

.skills-command-copy,
.skills-command-detail {
  padding: 1.7rem;
}

.skills-command-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(238, 230, 217, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.skills-command-note::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(120, 255, 204, 0.72));
}

.skills-reading-deck {
  margin-top: 1rem;
}

.skills-reading-card strong {
  display: block;
  margin-top: 0.5rem;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.32rem;
  line-height: 1.12;
}

body[data-route="skills"] .skills-map {
  min-height: 58rem;
}

body[data-route="skills"] .skills-core-hub {
  width: 11.6rem;
  height: 11.6rem;
}

body[data-route="skills"] .skill-node-card {
  min-height: 6rem;
}

.projects-aside {
  gap: 1rem;
}

.projects-aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.projects-aside-actions {
  display: grid;
  gap: 0.75rem;
}

.projects-aside-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.88rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 195, 124, 0.24);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.projects-aside-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 212, 158, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.project-detail-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.project-detail-list p {
  margin: 0;
  padding-left: 1rem;
  position: relative;
}

.project-detail-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(137, 224, 255, 0.72);
  box-shadow: 0 0 10px rgba(137, 224, 255, 0.26);
}

.timeline-manifest {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.45rem;
  padding: 1.6rem 1.55rem;
  margin: 1.5rem 0 1.35rem;
}

.timeline-manifest-copy {
  display: grid;
  gap: 0.4rem;
}

.timeline-manifest-copy strong,
.timeline-ledger-card strong {
  display: block;
  margin-top: 0.4rem;
}

.timeline-manifest-copy strong {
  font-size: clamp(1.18rem, 1.65vw, 1.5rem);
  line-height: 1.34;
}

.timeline-manifest p {
  margin-top: 0;
  align-self: center;
  font-size: 0.97rem;
  line-height: 1.86;
}

.timeline-ledger {
  gap: 1.15rem;
  margin-bottom: 1.55rem;
}

.timeline-ledger-card {
  min-height: 6.5rem;
  padding: 1.28rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    radial-gradient(circle at top right, rgba(122, 224, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.03);
}

.timeline-ledger-card strong {
  font-size: 1.12rem;
  line-height: 1.38;
}

body[data-route="timeline"] .timeline-shell {
  padding: 2.65rem 2.35rem 2.2rem;
}

body[data-route="timeline"] .timeline-spotlight {
  margin-bottom: 1.95rem;
}

body[data-route="timeline"] .timeline-nodes {
  gap: 1.35rem;
  margin-top: -5.2rem;
}

body[data-route="timeline"] .timeline-node {
  min-height: 18.35rem;
  padding: 3.55rem 1.22rem 1.22rem;
}

.project-detail-signal-bar {
  width: var(--section-shell-width);
  margin: 0 auto 1.5rem;
}

.project-detail-signal-card strong {
  display: block;
  margin-top: 0.42rem;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.32rem;
  line-height: 1.1;
}

.route-hero-core-project strong {
  max-width: 9.2rem;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .project-spotlight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-hero-visual-shell {
    display: grid;
    gap: 1rem;
    min-height: auto;
  }

  .route-hero-stage-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
  }

  .route-hero-system {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 31rem);
    aspect-ratio: 1;
    margin: 0 auto;
    transform: none;
  }

  .route-hero-stage-card.is-expanded {
    width: 100%;
  }

  .route-hero-ribbon {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    transform: none;
  }

  .route-hero-ledger,
  .about-visual-signals,
  .about-presence-grid,
  .about-principles,
  .skills-reading-deck,
  .timeline-ledger,
  .project-detail-signal-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-manifest {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .route-transition-copy strong {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .route-hero-visual {
    min-height: 24rem;
  }

  .route-hero-visual-shell {
    gap: 0.9rem;
  }

  .route-hero-system {
    width: min(100%, 23rem);
    aspect-ratio: 1;
  }

  .route-hero-stage-card {
    padding: 0.85rem;
  }

  .route-hero-ribbon {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-hero-ledger,
  .about-visual-signals,
  .about-presence-grid,
  .about-principles,
  .skills-reading-deck,
  .timeline-ledger,
  .project-detail-signal-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-hero-ledger-card,
  .project-detail-signal-card {
    padding: 0.9rem 0.95rem;
  }

  .project-card-actions,
  .project-spotlight-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .about-visual,
  body[data-route="about"] .about-visual {
    min-height: 36rem;
  }

  .timeline-manifest {
    padding: 1rem;
  }
}

@media (max-width: 560px) {
  .route-transition-door {
    width: 52%;
  }
}

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

  .energy-field,
  .hero-scanlines {
    display: none;
  }
}
