:root {
  color-scheme: dark;
  --bg: #070707;
  --text: #f7f7f4;
  --muted: rgba(247, 247, 244, 0.66);
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(8, 8, 8, 0.48);
  --glass-strong: rgba(8, 8, 8, 0.7);
  --accent: #49d4d8;
  --accent-2: #ff7a55;
  --accent-3: #8bcc6e;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  min-height: 100vh;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

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

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #090909;
}

.background__image,
.background__video {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.04);
}

.background__image.is-active,
.background__video.is-active {
  display: block;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.background__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.34) 36%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.56));
  backdrop-filter: blur(4px);
}

.effects-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.74);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(16px);
  transition:
    opacity 500ms ease,
    visibility 500ms ease;
}

.enter-screen span {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

body.is-entered .enter-screen {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.snap-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px 16px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.profile-card {
  position: relative;
  width: min(640px, 100%);
  overflow: hidden;
  padding: 34px 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(73, 212, 216, 0.13), transparent 32%),
    linear-gradient(315deg, rgba(255, 122, 85, 0.12), transparent 34%),
    var(--glass);
  box-shadow: var(--shadow);
  text-align: center;
  transform-style: preserve-3d;
  backdrop-filter: blur(20px);
}

.profile-card::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 220ms ease,
    transform 900ms ease;
}

.profile-card:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.profile-card__shine {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.14), transparent 30%),
    radial-gradient(circle at 82% 90%, rgba(73, 212, 216, 0.13), transparent 34%);
  pointer-events: none;
}

.avatar-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  margin: 0 auto 16px;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.45);
}

.presence-dot {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  width: 19px;
  height: 19px;
  border: 3px solid #111;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 22px rgba(139, 204, 110, 0.8);
}

.handle {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

h1 {
  position: relative;
  margin: 0;
  font-size: 4.25rem;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.bio {
  width: min(460px, 100%);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.bio.is-hidden {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 20px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 16px rgba(139, 204, 110, 0.85);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
}

.effect-switcher {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 18px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.effect-button {
  min-width: 46px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.effect-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.effect-button.is-active {
  background: rgba(73, 212, 216, 0.16);
  color: var(--text);
  box-shadow: 0 0 18px rgba(73, 212, 216, 0.14);
}

.social-link {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
  transform 180ms ease;
}

.social-link svg {
  width: 21px;
  height: 21px;
}

.social-link:hover {
  border-color: var(--link-accent, var(--accent));
  background: color-mix(in srgb, var(--link-accent, var(--accent)) 22%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--link-accent, var(--accent)) 32%, transparent);
  transform: translateY(-3px);
}

.stats {
  display: grid;
  width: min(360px, 100%);
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 auto 16px;
}

.stats div {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.stats span {
  display: block;
  margin-bottom: 4px;
  font-size: 1.22rem;
  font-weight: 950;
}

.stats small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.music {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--glass-strong);
}

.music.is-hidden {
  display: none;
}

.music__buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.music__button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
}

.music__skip {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
}

.music__skip span {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
}

.music__skip span::before,
.music__skip span::after {
  position: absolute;
  top: 1px;
  content: "";
}

.music__skip span::before {
  left: 1px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.music__skip span::after {
  left: 4px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 8px solid currentColor;
  border-bottom: 6px solid transparent;
}

.music__skip--next span {
  transform: rotate(180deg);
}

.music__play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.music.is-playing .music__play-icon {
  width: 14px;
  height: 16px;
  margin-left: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.music__meta {
  min-width: 0;
  text-align: left;
}

.music__title,
.music__artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music__title {
  margin-bottom: 2px;
  font-size: 0.96rem;
  font-weight: 900;
}

.music__artist {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.music__seek,
.music__volume {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.music__seek {
  margin-top: 8px;
}

.music__volume {
  min-width: 0;
}

.scroll-cue,
.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.scroll-cue:hover,
.back-top:hover {
  border-color: rgba(73, 212, 216, 0.72);
  background: rgba(73, 212, 216, 0.12);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  min-height: 42px;
  padding: 0 16px;
  transform: translateX(-50%);
  animation: cueFloat 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(-2px);
}

.scroll-cue__arrow,
.back-top__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.scroll-cue__arrow {
  transform: rotate(45deg) translateY(-2px);
}

.back-top__arrow {
  transform: rotate(225deg) translateY(-2px);
}

.works-stage {
  align-items: center;
}

.works-panel {
  position: relative;
  width: min(920px, 100%);
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(139, 204, 110, 0.12), transparent 30%),
    linear-gradient(315deg, rgba(73, 212, 216, 0.14), transparent 34%),
    var(--glass);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  backdrop-filter: blur(20px);
}

.works-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(circle at 82% 88%, rgba(255, 122, 85, 0.1), transparent 28%);
  pointer-events: none;
}

.section-kicker {
  position: relative;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  position: relative;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.works-intro {
  position: relative;
  width: min(620px, 100%);
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.works-intro a {
  color: var(--accent);
  font-weight: 900;
}

.works-intro a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.works-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-card {
  position: relative;
  display: grid;
  min-height: 238px;
  align-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--work-accent, var(--accent)) 16%, transparent), transparent 36%),
    rgba(0, 0, 0, 0.32);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.work-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--work-accent, var(--accent)), transparent);
}

.work-card::after {
  position: absolute;
  right: -32px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--work-accent, var(--accent)) 32%, transparent);
  border-radius: 50%;
  opacity: 0.42;
  pointer-events: none;
}

.work-card:hover {
  border-color: var(--work-accent, var(--accent));
  background: color-mix(in srgb, var(--work-accent, var(--accent)) 10%, rgba(0, 0, 0, 0.34));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

.work-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.work-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--work-accent, var(--accent)) 18%, transparent);
  color: var(--work-accent, var(--accent));
}

.work-card__icon svg {
  width: 24px;
  height: 24px;
}

.work-card__tag {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.work-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.work-card__link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--work-accent, var(--accent));
  font-size: 0.9rem;
  font-weight: 900;
}

.work-card__link::after {
  width: 8px;
  height: 8px;
  content: "";
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.back-top {
  position: relative;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 15px;
}

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes cueFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

@media (max-width: 700px) {
  html {
    scroll-snap-type: y proximity;
  }

  .stage {
    padding: 18px 12px;
  }

  .profile-card {
    padding: 28px 18px 20px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .avatar-wrap {
    width: 110px;
    height: 110px;
  }

  .works-panel {
    padding: 22px 18px 18px;
  }

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

  .work-card {
    min-height: 0;
    gap: 12px;
    padding: 16px;
  }

  .works-intro {
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .work-card h3 {
    font-size: 1.18rem;
  }

  .work-card p {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .effect-switcher {
    display: grid;
    width: min(100%, 300px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .effect-button {
    min-width: 0;
    padding: 0 6px;
    font-size: 0.66rem;
  }
}

@media (max-width: 460px) {
  .stage {
    align-items: center;
  }

  h1 {
    font-size: 2.7rem;
  }

  .bio {
    font-size: 0.96rem;
  }

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

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

  .music__volume {
    grid-column: 1 / -1;
  }

  .music__buttons {
    justify-content: center;
  }
}

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

  .effects-canvas {
    display: block;
  }
}
