:root {
  color-scheme: dark;
  --night: #000;
  --night-raised: #0b0b0b;
  --ink: #f2f2f2;
  --muted: #a3a3a8;
  --line: rgb(220 220 225 / 15%);
  --moon-gray: #c9cbd1;
  --starlight: #f0f0ed;
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "Manrope", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 280px;
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ENTER OVERLAY WITH TRANSPARENT/BLURRED BACKGROUND FOR VISIBLE STARS */
#enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 5, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#enter-overlay p {
  margin: 0;
  color: #f0f0ed;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* HARDWARE ACCELERATED FALLING STARFIELD & SHOOTING STARS */
.starfield {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  contain: strict;
}

.starfield::before,
.starfield::after {
  position: absolute;
  width: 260px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 95%), #fff, transparent);
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.85);
  content: "";
  opacity: 0;
  will-change: transform, opacity;
  transform: rotate(-34deg) translate3d(0, 0, 0) scaleX(0);
  animation: shooting-star 11s ease-in-out infinite;
}

.starfield::before {
  top: 22%;
  left: -16%;
}

.starfield::after {
  top: 62%;
  left: -20%;
  width: 180px;
  animation-delay: 5.5s;
  animation-duration: 13s;
}

@keyframes shooting-star {
  0%, 66% {
    opacity: 0;
    transform: rotate(-34deg) translate3d(0, 0, 0) scaleX(0);
  }

  69% {
    opacity: 0.95;
    transform: rotate(-34deg) translate3d(14vw, 0, 0) scaleX(1);
  }

  75%, 100% {
    opacity: 0;
    transform: rotate(-34deg) translate3d(85vw, 38vh, 0) scaleX(0.35);
  }
}

.star-layer {
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  background-repeat: repeat;
  will-change: transform;
  animation: stars-falling 20s linear infinite;
}

.star-layer-back {
  opacity: 0.85;
  background-image:
    radial-gradient(2px 2px at 25px 35px, #fff 100%, transparent),
    radial-gradient(2px 2px at 120px 80px, #e3e3e8 100%, transparent),
    radial-gradient(2.5px 2.5px at 220px 160px, #fff 100%, transparent),
    radial-gradient(2px 2px at 85px 220px, #f0f0f0 100%, transparent);
  background-size: 300px 300px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

.star-layer-middle,
.star-layer-front,
.falling-particles {
  display: none;
}

@keyframes stars-falling {
  from {
    transform: translate3d(0, -300px, 0);
  }
  to {
    transform: translate3d(0, 300px, 0);
  }
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 96px));
  height: 94px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  contain: layout style;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.wordmark-name:focus-visible {
  outline: 2px solid var(--moon-gray);
  outline-offset: 4px;
}

.wordmark-name {
  color: var(--ink);
}

.scroll-link,
.footer-back,
.footer-year {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.header-link {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--starlight);
  font-family: var(--sans);
  font-size: 17px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-link:hover {
  border-color: rgb(235 235 239 / 45%);
  background: rgb(235 235 239 / 8%);
  transform: translate(2px, -2px);
}

main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 96px));
  margin: 0 auto;
}

.intro {
  display: grid;
  min-height: 530px;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 60px;
  padding: 68px 0 74px;
}

.intro-copy {
  padding: 6px 0 0 4px;
}

h1 {
  margin: 22px 0 19px;
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.085em;
  line-height: 0.99;
}

h1 span {
  color: var(--moon-gray);
}

.intro-description {
  max-width: 380px;
  margin: 0;
  color: #bdbdc2;
  font-size: 15px;
  line-height: 1.85;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 34px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 500;
}

.scroll-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgb(215 215 222 / 40%);
  border-radius: 50%;
  color: var(--starlight);
  font-family: var(--sans);
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.scroll-link:hover .scroll-icon {
  background: var(--moon-gray);
  color: var(--night);
  transform: translateY(2px);
}

.profile-column {
  display: grid;
  width: min(100%, 440px);
  justify-self: end;
  gap: 11px;
}

.profile-stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 0.83;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  contain: layout paint style;
}

/* REMOVED PROFILE RINGS */
.profile-orbit {
  display: none !important;
}

.profile-photo-frame {
  position: relative;
  width: 52%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.profile-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgb(235 235 239 / 12%), transparent 48%),
    linear-gradient(145deg, #171717, #080808 75%);
  color: var(--starlight);
  transition: transform 220ms ease, opacity 220ms ease;
}

.profile-photo-placeholder[hidden] {
  display: none;
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: opacity 220ms ease, transform 220ms ease;
}

.profile-photo[hidden] {
  display: none;
}

.profile-photo-placeholder::before {
  display: none;
}

.profile-photo-placeholder span {
  font-family: var(--mono);
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.22em;
  line-height: 1.8;
  text-align: center;
}

.profile-stage:hover .profile-photo-placeholder,
.profile-stage:hover .profile-photo {
  transform: scale(1.03);
}

.profile-star {
  position: absolute;
  color: var(--starlight);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.profile-star-one {
  top: 19%;
  right: 20%;
  font-size: 20px;
}

.profile-star-two {
  bottom: 21%;
  left: 17%;
  color: var(--moon-gray);
  font-size: 24px;
}

.profile-star-three {
  right: 13%;
  bottom: 39%;
  font-size: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.social-section {
  padding: 51px 0 83px;
  border-top: 1px solid var(--line);
}

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

h2 {
  margin: 10px 0 0;
  font-size: clamp(33px, 4.5vw, 47px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1.1;
}

h2 span {
  color: var(--starlight);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  contain: layout style;
}

.social-card {
  position: relative;
  display: flex;
  min-height: 124px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  overflow: visible;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  text-align: center;
  isolation: isolate;
  backface-visibility: hidden;
  transition: transform 220ms ease;
}

.social-card:hover {
  transform: translateY(-5px);
}

.social-card:focus-visible {
  outline: none;
}

.social-card:hover,
.social-card:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.social-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  background: transparent;
  color: var(--moon-gray);
  transition: color 220ms ease, transform 220ms ease;
}

.social-icon::before {
  position: absolute;
  z-index: 0;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(235 235 239 / 17%) 0%,
    rgb(190 190 198 / 8%) 36%,
    transparent 72%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.social-icon svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  overflow: visible;
  fill: currentColor;
  will-change: transform;
  animation: icon-float 4s ease-in-out infinite;
}

.social-card:nth-child(2n) .social-icon svg {
  animation-delay: -1.3s;
}

.social-card:nth-child(3n) .social-icon svg {
  animation-delay: -2.6s;
}

@keyframes icon-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.social-icon svg rect,
.social-icon svg circle:not(.instagram-dot) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon svg .instagram-dot {
  fill: currentColor;
}

/* GITHUB LOGO FILL FIX */
.github .social-icon svg path {
  fill: currentColor;
  stroke: none;
}

.social-card:hover .social-icon,
.social-card:focus-visible .social-icon {
  color: var(--starlight);
  transform: scale(1.13);
}

.social-card:hover .social-icon::before,
.social-card:focus-visible .social-icon::before {
  opacity: 1;
}

.social-card:focus-visible .social-icon {
  outline: 1px solid rgb(235 235 239 / 58%);
  outline-offset: 2px;
  border-radius: 50%;
}

.spotify .social-icon svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.spotify .social-icon svg .spotify-wave {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.social-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 220ms ease;
}

.social-card:hover .social-name,
.social-card:focus-visible .social-name {
  opacity: 0.85;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 96px));
  min-height: 76px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  contain: layout style;
}

.track-scene {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 96px));
  margin: 10px auto 26px;
  contain: layout style;
}

.mini-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(360px, 100%);
  margin: 0 auto;
}

.track-full-link {
  align-self: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.player-actions {
  display: flex;
  align-items: center;
}

.track-full-link:hover,
.track-full-link:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.track-main {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.track-name,
.track-artist {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.track-name {
  color: var(--ink);
}

.track-artist {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 400;
}

.track-name:hover,
.track-name:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.track-progress {
  display: grid;
  flex: 1;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.track-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.progress-bar {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  --progress: 0%;
}

.progress-bar:disabled {
  cursor: default;
}

.progress-bar::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--ink) 0,
    var(--ink) var(--progress, 0%),
    rgb(255 255 255 / 35%) var(--progress, 0%),
    rgb(255 255 255 / 35%) 100%
  );
}

.progress-bar::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: rgb(255 255 255 / 35%);
}

.progress-bar::-moz-range-progress {
  height: 3px;
  border-radius: 99px;
  background: var(--ink);
}

.progress-bar::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-top: -3px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.progress-bar::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.progress-bar:focus-visible {
  outline: 1px solid var(--moon-gray);
  outline-offset: 4px;
}

.control-play {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease;
}

.control-play:hover:not(:disabled),
.control-play:focus-visible {
  color: var(--moon-gray);
  transform: scale(1.08);
}

.control-play svg {
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.control-play .icon-play {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.control-play .icon-pause {
  opacity: 0;
  transform: scale(0.7) rotate(-35deg);
}

.control-play.is-playing .icon-play {
  opacity: 0;
  transform: scale(0.7) rotate(35deg);
}

.control-play.is-playing .icon-pause {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.control-play.is-playing::before {
  position: absolute;
  inset: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  animation: playback-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes playback-pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

.control-play:disabled {
  color: var(--muted);
  cursor: wait;
}

.control-play:focus-visible {
  outline: 1px solid var(--moon-gray);
  outline-offset: 4px;
}

.volume-control {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.volume-control svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.volume-slider {
  width: 18px;
  height: 82px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  direction: rtl;
  --volume: 5%;
  writing-mode: vertical-lr;
}

.volume-slider::-webkit-slider-runnable-track {
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(
    to top,
    var(--ink) 0,
    var(--ink) var(--volume, 70%),
    rgb(255 255 255 / 35%) var(--volume, 70%),
    rgb(255 255 255 / 35%) 100%
  );
}

.volume-slider::-moz-range-track {
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(
    to top,
    var(--ink) 0,
    var(--ink) var(--volume, 70%),
    rgb(255 255 255 / 35%) var(--volume, 70%),
    rgb(255 255 255 / 35%) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-left: -3px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.volume-slider::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.volume-slider:focus-visible {
  outline: 1px solid var(--moon-gray);
  outline-offset: 4px;
}

.footer-back,
.site-footer p,
.footer-year {
  margin: 0;
  font-size: 8px;
}

@media (max-width: 1024px) {
  .social-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  main,
  .track-scene {
    width: calc(100% - 48px);
  }

  .site-header {
    height: 76px;
  }

  .intro {
    min-height: 0;
    grid-template-columns: 1fr 0.82fr;
    gap: 16px;
    padding: 61px 0 59px;
  }

  .profile-stage {
    width: 100%;
  }

  .intro-description {
    max-width: 320px;
    font-size: 13px;
  }

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

  .social-card {
    min-height: 112px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  main,
  .track-scene {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 69px;
  }

  .wordmark {
    gap: 8px;
    font-size: 10px;
  }

  .header-link {
    gap: 5px;
    font-size: 8px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 49px 0 47px;
  }

  .intro-copy {
    padding-left: 0;
  }

  h1 {
    margin-top: 19px;
    font-size: clamp(59px, 16vw, 76px);
  }

  .intro-description {
    max-width: 340px;
  }

  .scroll-link {
    margin-top: 24px;
  }

  .profile-stage {
    width: min(100%, 360px);
    justify-self: center;
  }

  .social-section {
    padding: 39px 0 55px;
  }

  .section-heading {
    align-items: start;
    gap: 10px;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .social-card {
    min-height: 104px;
    gap: 7px;
    padding: 10px 6px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .social-icon svg {
    width: 40px;
    height: 40px;
  }

  .social-name {
    font-size: 11px;
  }

  .site-footer {
    min-height: 68px;
  }

  .mini-player {
    gap: 10px;
  }

  .player-actions {
    gap: 0;
  }

  .volume-control {
    gap: 4px;
  }

  .volume-slider {
    height: 70px;
  }

  .track-name,
  .track-artist {
    font-size: 12px;
  }

  .footer-back,
  .footer-year {
    font-size: 8px;
  }
}

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

  .star-layer,
  .starfield::before,
  .starfield::after,
  .profile-photo-placeholder::before,
  .profile-star,
  .social-icon svg,
  .control-play::before,
  .control-play svg {
    animation: none !important;
  }
}

.not-found-main {
  display: grid;
  min-height: calc(100svh - 171px);
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-top: 48px;
  padding-bottom: 60px;
}

.error-copy {
  position: relative;
  z-index: 1;
  padding: 4px 0 0 4px;
  animation: error-arrive 700ms ease both;
}

.error-eyebrow,
.error-footnote,
.error-image-label,
.error-image-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.error-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
}

.error-live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--moon-gray);
  box-shadow: 0 0 12px rgb(220 220 225 / 70%);
}

.error-code {
  margin: 0 0 18px -8px;
  color: var(--starlight);
  font-family: var(--sans);
  font-size: clamp(112px, 16vw, 194px);
  font-weight: 800;
  letter-spacing: -0.12em;
  line-height: 0.72;
  text-shadow: 0 0 60px rgb(205 205 215 / 15%);
}

.error-title {
  max-width: 510px;
  margin: 30px 0 17px;
  font-size: clamp(39px, 5vw, 61px);
  letter-spacing: -0.075em;
  line-height: 1.02;
}

.error-title span {
  color: var(--moon-gray);
}

.error-description {
  max-width: 365px;
  margin: 0;
  color: #bdbdc2;
  font-size: 14px;
  line-height: 1.85;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 29px;
}

.error-home-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  background: var(--starlight);
  color: var(--night);
  font-size: 11px;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.error-home-button:hover {
  background: white;
  transform: translateY(-2px);
}

.error-home-button span {
  font-size: 17px;
  font-weight: 400;
}

.error-orbit-link {
  color: #d0d0d4;
  font-family: var(--mono);
  font-size: 10px;
  transition: color 160ms ease;
}

.error-orbit-link:hover {
  color: white;
}

.error-orbit-link span {
  margin-left: 5px;
}

.error-footnote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 51px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.error-visual {
  position: relative;
  display: grid;
  width: min(100%, 510px);
  aspect-ratio: 1;
  justify-self: end;
  place-items: center;
  margin: 0;
  animation: error-arrive 950ms 100ms ease both;
}

.error-image-wrap {
  position: absolute;
  inset: 12%;
  overflow: hidden;
  border: 1px solid rgb(235 235 239 / 39%);
  border-radius: 50%;
  background: #09090a;
  box-shadow: 0 0 70px rgb(190 190 198 / 12%), inset 0 0 30px rgb(0 0 0 / 50%);
}

.error-image-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgb(3 3 3 / 12%), transparent 48%, rgb(3 3 3 / 32%));
  content: "";
}

.error-moon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.72) brightness(0.76) contrast(1.08);
  animation: moon-reveal 1.2s ease both;
}

.error-orbit {
  position: absolute;
  width: 88%;
  height: 36%;
  border: 1px solid rgb(220 220 225 / 24%);
  border-radius: 50%;
}

.error-orbit-one {
  transform: rotate(-34deg);
}

.error-orbit-two {
  width: 77%;
  height: 55%;
  border-color: rgb(220 220 225 / 17%);
  transform: rotate(53deg);
}

.error-star {
  position: absolute;
  z-index: 1;
  color: var(--starlight);
  text-shadow: 0 0 12px rgb(235 235 239 / 70%);
  animation: star-twinkle 3s ease-in-out infinite alternate;
}

.error-star-one {
  top: 13%;
  right: 25%;
  font-size: 20px;
}

.error-star-two {
  bottom: 20%;
  left: 11%;
  font-size: 25px;
  animation-delay: 0.8s;
}

.error-star-three {
  top: 44%;
  right: 4%;
  font-size: 34px;
}

.error-image-label,
.error-image-index {
  position: absolute;
  z-index: 1;
  font-size: 8px;
}

.error-image-label {
  bottom: 9%;
  left: 3%;
  color: var(--starlight);
}

.error-image-label span {
  color: var(--muted);
}

.error-image-index {
  top: 8%;
  right: 4%;
}

@keyframes error-arrive {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moon-reveal {
  from {
    opacity: 0.35;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .not-found-main {
    min-height: 0;
    grid-template-columns: 1fr 0.8fr;
    gap: 20px;
    padding-top: 48px;
    padding-bottom: 50px;
  }

  .error-code {
    font-size: clamp(100px, 17vw, 145px);
  }

  .error-title {
    font-size: clamp(37px, 6vw, 50px);
  }

  .error-actions {
    gap: 15px;
  }

  .error-footnote {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .not-found-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 42px;
  }

  .error-copy {
    padding-left: 0;
  }

  .error-eyebrow {
    margin-bottom: 27px;
    font-size: 8px;
  }

  .error-code {
    margin-left: -5px;
    font-size: clamp(112px, 32vw, 160px);
  }

  .error-title {
    max-width: 390px;
    margin-top: 25px;
    font-size: clamp(39px, 11vw, 52px);
  }

  .error-description {
    max-width: 350px;
    font-size: 13px;
  }

  .error-actions {
    gap: 18px;
    margin-top: 24px;
  }

  .error-footnote {
    flex-direction: row;
    margin-top: 31px;
    font-size: 7px;
  }

  .error-visual {
    width: min(100%, 390px);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-copy,
  .error-visual,
  .error-moon-image,
  .error-star {
    animation: none !important;
  }
}