:root {
  --bg: #020202;
  --bg-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #fbfbfb;
  --muted: rgba(255, 255, 255, 0.62);
  --panel: rgba(7, 7, 7, 0.7);
  --panel-2: rgba(255, 255, 255, 0.04);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 28px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background: #000;
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 92%);
  pointer-events: none;
  z-index: -2;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.38;
  pointer-events: none;
  mix-blend-mode: screen;
}

#webglScene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateZ(-120px) scale(1.08);
}

/* Lively aurora + depth grid */
.aurora-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}

.aurora-blob--1 {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  left: -8%;
  top: 8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  animation: aurora-drift-a 18s ease-in-out infinite;
}

.aurora-blob--2 {
  width: min(48vw, 440px);
  height: min(48vw, 440px);
  right: -6%;
  top: 22%;
  background: radial-gradient(circle, rgba(200, 220, 255, 0.1), transparent 70%);
  animation: aurora-drift-b 22s ease-in-out infinite reverse;
}

.aurora-blob--3 {
  width: min(62vw, 580px);
  height: min(40vw, 380px);
  left: 28%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
  animation: aurora-drift-c 26s ease-in-out infinite;
}

.aurora-blob--4 {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  left: 42%;
  top: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 75%);
  animation: aurora-pulse 8s ease-in-out infinite;
}

.depth-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(72deg) scale(2.2);
  transform-origin: center 120%;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 80%, #000 10%, transparent 72%);
  opacity: 0.35;
  animation: grid-flow 24s linear infinite;
}

@keyframes aurora-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vh) scale(1.08); }
}

@keyframes aurora-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, 6vh) scale(1.12); }
}

@keyframes aurora-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -5vh) scale(1.06); }
}

@keyframes aurora-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes grid-flow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 64px, 64px 0; }
}

.electric-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.electric-orb {
  position: absolute;
  left: 51%;
  top: 50%;
  width: min(46vw, 700px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.72;
  filter:
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 58px rgba(255, 255, 255, 0.08));
  animation: orb-breathe 3.4s ease-in-out infinite;
  will-change: transform, filter, opacity;
}

.electric-orb::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.07) 38%, transparent 72%);
  animation: core-pulse 1.7s ease-in-out infinite;
  will-change: transform, opacity;
}

.orb-ring {
  position: absolute;
  inset: 7%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  will-change: transform, opacity;
}

.ring-one {
  transform: rotate(10deg) scaleY(0.58);
  animation: ring-spin-a 3.2s linear infinite;
}

.ring-two {
  inset: 13%;
  opacity: 0.78;
  transform: rotate(70deg) scaleY(0.48);
  animation: ring-spin-b 2.5s linear infinite reverse;
}

.ring-three {
  inset: 19%;
  opacity: 0.68;
  transform: rotate(132deg) scaleY(0.7);
  animation: ring-spin-c 4.4s linear infinite;
}

.ring-four {
  inset: 3%;
  opacity: 0.5;
  transform: rotate(210deg) scaleY(0.38);
  animation: ring-spin-d 5.1s linear infinite reverse;
}

.scene-katana {
  --katana-spin: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: min(78vh, 820px);
  transform: translate(-50%, -50%);
  animation: katana-hover 4s ease-in-out infinite;
  opacity: 0.9;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.24));
  will-change: transform, opacity;
}

.katana-blade {
  position: absolute;
  left: 42px;
  top: 0;
  width: 16px;
  height: 72%;
  border-radius: 70% 70% 18% 18%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.3));
  clip-path: polygon(50% 0, 88% 12%, 70% 100%, 30% 100%, 12% 12%);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.35),
    0 0 54px rgba(255, 255, 255, 0.18);
}

.katana-guard {
  position: absolute;
  left: 18px;
  top: 70%;
  width: 66px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.katana-handle {
  position: absolute;
  left: 32px;
  top: calc(70% + 18px);
  width: 38px;
  height: 26%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 8px, transparent 8px 17px),
    #050505;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.12);
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  z-index: 30;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  font-family: "Consolas", "Courier New", monospace;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__terminal {
  display: grid;
  justify-items: center;
  width: min(78vw, 330px);
}

.loader__title {
  margin: 0 0 1.5rem;
  font: 500 clamp(2.1rem, 5vw, 2.85rem)/1 "Consolas", "Courier New", monospace;
  letter-spacing: 0.02em;
}

.loader__title span {
  color: #ffffff;
}

.loader__title em {
  color: #ffffff;
  font-style: normal;
}

.loader__bar {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.loader__fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(63, 63, 63, 0.38);
  transition: width 0.18s linear;
}

.loader__status {
  min-height: 1.4em;
  margin: 1.25rem 0 0;
  color: #f5fff8;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 18px max(24px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28)),
    rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.is-scrolled .topbar {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.52)),
    rgba(0, 0, 0, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 55px rgba(255, 255, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.36);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand__coin {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #8d8d8d);
  color: #000;
  font-weight: 700;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.25);
}

.brand__name {
  display: block;
  font-size: 1.2rem;
}

.brand__sub,
.eyebrow,
.profile-card__username,
.profile-card__title,
.form-note {
  color: var(--muted);
}

.brand__sub,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
}

.nav a,
.status-pill {
  border-radius: 999px;
}

.nav a {
  padding: 0.9rem 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 19, 12, 0.45);
  color: #e8fff2;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7cffba;
  box-shadow: 0 0 18px #7cffba;
}

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

.hero,
.section,
.console {
  position: relative;
  z-index: 1;
}

.section-3d-canvas {
  position: absolute;
  inset: -90px max(-7vw, -90px);
  width: calc(100% + min(14vw, 180px));
  height: calc(100% + 180px);
  z-index: -1;
  opacity: 0.78;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translateZ(-90px);
}

.section-3d-canvas--middle {
  filter: drop-shadow(0 0 34px rgba(255,255,255,0.08));
}

.section-3d-canvas--lower {
  opacity: 0.68;
  filter: drop-shadow(0 0 42px rgba(255,255,255,0.06));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 540px);
  align-items: center;
  gap: 7rem;
  min-height: 100vh;
  padding: 5.6rem 0 4.4rem;
}

.hero h1,
.section-heading h2,
.console__panel h2 {
  margin: 0;
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 8.6rem;
  font-family: "Zen Dots", "Teko", sans-serif;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.08),
    0 18px 70px rgba(255, 255, 255, 0.08);
}

.hero__lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.22rem;
  line-height: 1.82;
  margin-top: 1.35rem;
}

.chip-row,
.hero__links,
.profile-card__stats,
.stack-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
}

.chip-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 2.8rem 0;
  max-width: 900px;
}

.chip,
.social-link,
.stack-item,
.stat-card,
.feature-card,
.console__screen,
.contact-form {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.52);
  box-shadow: var(--shadow);
}

.chip,
.stack-item {
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  text-align: center;
}

.hero__links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.15rem 1.15rem;
  border-radius: 24px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.social-link:hover,
.social-link:focus-visible,
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.social-link__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.social-link__icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(4) grayscale(1);
}

.social-link p {
  margin: 0.22rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, #000 0%, #020202 30%, #090909 58%, #030303 100%),
    #020202;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 28px rgba(255, 255, 255, 0.045),
    0 32px 90px rgba(0, 0, 0, 0.7);
  transform-style: preserve-3d;
  width: min(100%, 730px);
  min-height: 790px;
  justify-self: end;
  margin-top: -52px;
  animation: card-float 5.6s ease-in-out infinite;
  transition: transform 0.26s ease-out;
}

.profile-card.is-tilt-paused {
  transition: transform 0.42s ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.profile-card::after {
  content: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025));
  opacity: 0.35;
  pointer-events: none;
}

.profile-card__banner {
  position: relative;
  height: 250px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.42)),
    url("assets/profile/banner.png") center / cover no-repeat,
    linear-gradient(180deg, #000 0%, #020202 55%, #080808 100%);
  transform-style: preserve-3d;
  perspective: 900px;
}

.profile-card__banner--3d {
  overflow: visible;
}

.profile-card__banner-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(4deg);
  transition: transform 0.35s ease;
}

.profile-card:hover .profile-card__banner-stage {
  transform: rotateX(2deg) translateZ(12px);
}

.profile-card__banner-stage .mesh-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  border-radius: 0;
}

.profile-card__banner-gloss {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 38%,
    transparent 62%,
    rgba(255, 255, 255, 0.06) 100%
  );
  mix-blend-mode: overlay;
}

.profile-card__banner-depth {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -8px;
  height: 14px;
  z-index: 0;
  background: rgba(0, 0, 0, 0.85);
  filter: blur(10px);
  transform: translateZ(-20px) rotateX(75deg);
  opacity: 0.7;
}

.profile-card__banner-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-card__banner--3d.is-3d-fallback .profile-card__banner-source,
.no-three .profile-card__banner-source {
  position: static;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-card__banner--3d.is-3d-fallback .mesh-3d-canvas,
.no-three .profile-card__banner-stage .mesh-3d-canvas {
  display: none;
}

.profile-card__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.45)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 48%);
}

.profile-card__avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -88px;
  position: relative;
  z-index: 4;
  transform-style: preserve-3d;
  perspective: 700px;
}

.profile-card__avatar-3d {
  position: relative;
  width: 176px;
  height: 176px;
  transform-style: preserve-3d;
  border-radius: 50%;
  background:
    url("assets/profile/profile.png") center / cover no-repeat,
    radial-gradient(circle, rgba(255,255,255,0.24), rgba(0,0,0,0.7));
}

.profile-card__avatar-3d .mesh-3d-canvas--avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.profile-card__avatar-halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%);
  animation: avatar-halo 4s ease-in-out infinite;
  z-index: 0;
}

.profile-card__avatar-rim {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
  z-index: 3;
  pointer-events: none;
  transform: translateZ(24px);
}

@keyframes avatar-halo {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

.profile-card__avatar {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.88);
  object-fit: cover;
  object-position: center center;
  background: linear-gradient(180deg, #fff 0 55%, #adadad 100%);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.42);
}

.profile-card__avatar--fallback {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.profile-card__avatar-3d.is-3d-fallback .profile-card__avatar--fallback,
.no-three .profile-card__avatar--fallback {
  opacity: 1;
  position: relative;
}

.profile-card__avatar-3d.is-3d-fallback .mesh-3d-canvas--avatar,
.no-three .profile-card__avatar-3d .mesh-3d-canvas--avatar {
  display: none;
}

.profile-card__body {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2rem 1.35rem;
}

.profile-card__body h2 {
  margin: 0.4rem 0;
  font-size: 4.7rem;
  font-family: "Teko", sans-serif;
  line-height: 0.92;
  text-transform: uppercase;
}

.profile-card__username {
  font-size: 0.98rem;
}

.profile-card__title {
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 360px;
}

.profile-card__badge {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(78px, 6vw, 92px);
  height: clamp(78px, 6vw, 92px);
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: 800 clamp(1.7rem, 2.1vw, 2.05rem)/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  user-select: none;
}

.profile-card__badge span {
  display: block;
  line-height: 1;
}

.profile-card__stats {
  grid-template-columns: repeat(3, 1fr);
  padding: 0 2rem 2rem;
  gap: 0.9rem;
  align-items: stretch;
}

.stat-card,
.feature-card {
  border-radius: 22px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.68rem;
  min-width: 0;
  min-height: 108px;
  padding: 1rem 1.05rem;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  user-select: none;
}

.stat-card:hover,
.stat-card:focus-visible,
.profile-card__badge:hover,
.profile-card__badge:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.62);
}

.stat-card:focus-visible,
.profile-card__badge:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.34);
  outline-offset: 4px;
}

.stat-card:active,
.profile-card__badge:active {
  transform: scale(0.96) translateY(2px);
}

.stat-card.is-pressed,
.profile-card__badge.is-pressed {
  animation: stat-pop 0.32s ease;
}

.stat-card p,
.feature-card p {
  margin: 0;
}

.stat-card__label {
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  letter-spacing: 0.23em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.stat-card__value {
  margin-top: 0;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.section {
  padding: 8rem 0 2rem;
}

.section-heading h2,
.console__panel h2 {
  font-size: clamp(3.8rem, 10.5vw, 7.2rem);
  margin-top: 0.8rem;
}

.stack-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 2.8rem;
  gap: 1.25rem;
}

.stack-item {
  min-height: 156px;
  display: grid;
  place-items: center;
  font-size: 1.28rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.6rem;
  gap: 1.35rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3rem 2.6rem 2.6rem;
  min-height: 430px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card__index,
.console-line__label {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.feature-card h3 {
  display: flex;
  align-items: center;
  min-height: 5.2rem;
  margin: 1.25rem 0 1.45rem;
  max-width: 100%;
  font-size: clamp(1.9rem, 2.45vw, 2.75rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
  font-size: 1.08rem;
  max-width: 34ch;
  margin-top: 0;
}

.console {
  padding: 6.2rem 0 0;
}

.console__panel {
  padding: clamp(2.1rem, 4vw, 3.8rem);
  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(6, 6, 6, 0.76);
  box-shadow: var(--shadow);
}

.console__screen {
  overflow: hidden;
  margin-top: 2.6rem;
  border-radius: 24px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.22);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.7);
  font-family: "Consolas", "Courier New", monospace;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 46px;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.terminal__bar strong {
  margin-left: 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.terminal__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.terminal__dot--red {
  background: #f4f4f4;
}

.terminal__dot--yellow {
  background: #a8a8a8;
}

.terminal__dot--green {
  background: #5f5f5f;
}

.terminal__body {
  min-height: 420px;
  height: auto;
  padding: 32px;
  color: #fff;
  font-size: 16px;
  line-height: 1.55;
  text-shadow: none;
}

.terminal__line {
  margin: 0 0 0.55rem;
  white-space: pre-wrap;
}

.terminal__line--output {
  padding-left: 2rem;
}

.terminal__line--motto .terminal__typed {
  color: #ff2244;
  font-weight: 700;
  animation: red-pulse 1.8s ease-in-out infinite;
  text-shadow:
    0 0 6px #ff2244,
    0 0 14px rgba(255, 34, 68, 0.85),
    0 0 30px rgba(255, 0, 40, 0.6),
    0 0 55px rgba(200, 0, 30, 0.35);
}

@keyframes red-pulse {
  0%, 100% {
    text-shadow:
      0 0 6px #ff2244,
      0 0 14px rgba(255, 34, 68, 0.85),
      0 0 30px rgba(255, 0, 40, 0.6),
      0 0 55px rgba(200, 0, 30, 0.35);
    color: #ff2244;
  }
  50% {
    text-shadow:
      0 0 10px #ff6677,
      0 0 25px rgba(255, 34, 68, 1),
      0 0 50px rgba(255, 0, 40, 0.8),
      0 0 90px rgba(200, 0, 30, 0.5);
    color: #ff4d63;
  }
}

.terminal__prompt,
.terminal__pipe {
  color: #fff;
  font-weight: 700;
}

.terminal__cursor {
  display: inline-block;
  width: 0.7em;
  height: 1em;
  margin-left: 0.14rem;
  vertical-align: -0.15em;
  background: #fff;
  animation: terminal-cursor 0.8s steps(1, end) infinite;
}

.console-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-line:last-child {
  border-bottom: 0;
}

.console-line__value {
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.8rem, 3.2vw, 2.6rem);
  border-radius: 38px;
  margin-top: 2.8rem;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.contact-form input,
.contact-form textarea {
  padding: 1.25rem 1.4rem;
}

.contact-form textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-form button {
  padding: 1.3rem 1.6rem;
  background: linear-gradient(90deg, #fff, #898989);
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  cursor: pointer;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes orb-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96) rotate(-2deg);
    opacity: 0.78;
    filter:
      drop-shadow(0 0 22px rgba(255, 255, 255, 0.24))
      drop-shadow(0 0 58px rgba(255, 255, 255, 0.1));
  }
  45% {
    transform: translate(-50%, -50%) scale(1.05) rotate(3deg);
    opacity: 1;
    filter:
      drop-shadow(0 0 38px rgba(255, 255, 255, 0.46))
      drop-shadow(0 0 110px rgba(255, 255, 255, 0.18));
  }
  58% {
    transform: translate(-50%, -50%) scale(1.01) rotate(-1deg);
    opacity: 0.9;
  }
}

@keyframes core-pulse {
  0%,
  100% {
    transform: scale(0.84);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.16);
    opacity: 0.92;
  }
}

@keyframes ring-spin-a {
  from {
    transform: rotate(10deg) scaleY(0.58);
  }
  to {
    transform: rotate(370deg) scaleY(0.58);
  }
}

@keyframes ring-spin-b {
  from {
    transform: rotate(70deg) scaleY(0.48);
  }
  to {
    transform: rotate(430deg) scaleY(0.48);
  }
}

@keyframes ring-spin-c {
  from {
    transform: rotate(132deg) scaleY(0.7);
  }
  to {
    transform: rotate(492deg) scaleY(0.7);
  }
}

@keyframes ring-spin-d {
  from {
    transform: rotate(210deg) scaleY(0.38);
  }
  to {
    transform: rotate(570deg) scaleY(0.38);
  }
}

@keyframes katana-hover {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--katana-spin) - 2deg)) scale(0.98);
    opacity: 0.72;
  }
  44% {
    transform: translate(-50%, calc(-50% - 16px)) rotate(calc(var(--katana-spin) + 2deg)) scale(1.02);
    opacity: 1;
  }
  60% {
    transform: translate(-50%, calc(-50% - 5px)) rotate(calc(var(--katana-spin) - 1deg)) scale(1);
    opacity: 0.86;
  }
}

@keyframes stat-pop {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
  45% {
    transform: scale(0.94) translateY(3px);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 12px 34px rgba(0, 0, 0, 0.55);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
}

@keyframes terminal-cursor {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@media (max-width: 1080px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    padding-top: 5.8rem;
  }

  .hero h1 {
    font-size: 6.8rem;
  }

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

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

  .profile-card {
    min-height: auto;
    justify-self: stretch;
    width: 100%;
  }

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

  .feature-card h3 {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
  }
}

@media (max-width: 760px) {
  body::before {
    background-size: 38px 38px;
    opacity: 0.6;
  }

  #scene {
    opacity: 0.08;
  }

  .electric-orb {
    left: 50%;
    top: 46%;
    width: min(112vw, 520px);
    opacity: 0.34;
  }

  .scene-katana {
    width: 64px;
    height: min(58vh, 430px);
    opacity: 0.46;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
  }

  .katana-blade {
    left: 29px;
    width: 10px;
  }

  .katana-guard {
    left: 12px;
    width: 44px;
    height: 13px;
  }

  .katana-handle {
    left: 22px;
    width: 25px;
  }

  main {
    width: min(calc(100% - 28px), 1380px);
  }

  .topbar {
    gap: 0.75rem;
    padding: 12px 14px;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand__coin {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .brand__sub {
    font-size: 0.62rem;
    letter-spacing: 0.26em;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
  }

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

  .nav a {
    flex: 0 0 auto;
    padding: 0.72rem 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .status-pill {
    display: none;
  }

  .hero {
    gap: 2rem;
    min-height: auto;
    padding: 3rem 0 2.2rem;
  }

  .hero__copy {
    text-align: left;
  }

  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.24em;
  }

  .profile-card__body,
  .console-line {
    flex-direction: column;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.9rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.72;
  }

  .chip {
    padding: 1rem;
    letter-spacing: 0.18em;
  }

  .chip-row,
  .hero__links {
    grid-template-columns: 1fr;
  }

  .profile-card {
    border-radius: 28px;
    margin-top: 0;
    animation: card-float 6.2s ease-in-out infinite;
  }

  .profile-card__banner {
    height: 170px;
  }

  .profile-card__avatar-wrap {
    margin-top: -62px;
  }

  .profile-card__avatar {
    width: 124px;
    height: 124px;
    border-width: 4px;
    box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.42);
  }

  .profile-card__body {
    gap: 1.2rem;
    padding: 1.45rem 1.35rem 1rem;
  }

  .profile-card__body h2 {
    font-size: 3.35rem;
  }

  .profile-card__title {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .profile-card__badge {
    width: 74px;
    min-width: 74px;
    height: 74px;
    border-radius: 20px;
  }

  .profile-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 1.35rem 1.35rem;
    gap: 0.65rem;
  }

  .stat-card {
    min-height: 88px;
    padding: 0.82rem;
  }

  .stat-card__label {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .stat-card__value {
    font-size: 1.15rem;
  }

  .section {
    padding: 4.8rem 0 1rem;
  }

  .section-heading h2,
  .console__panel h2 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .stack-item {
    min-height: 106px;
    padding: 1rem;
    font-size: 0.96rem;
    letter-spacing: 0.16em;
  }

  .feature-card {
    min-height: 360px;
    padding: 2.2rem;
  }

  .feature-card h3 {
    min-height: auto;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .feature-card p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .console {
    padding-top: 4rem;
  }

  .console__panel {
    border-radius: 28px;
    padding: 1.2rem;
  }

  .console__screen {
    margin-top: 1.35rem;
    border-radius: 18px;
    overflow-x: auto;
  }

  .terminal__bar {
    min-width: 560px;
    min-height: 40px;
    padding: 0 1rem;
  }

  .terminal__body {
    min-width: 560px;
    min-height: 360px;
    padding: 20px;
    font-size: 13px;
    line-height: 1.5;
  }

  .terminal__line {
    margin-bottom: 0.48rem;
  }

  .terminal__line--output {
    padding-left: 1.2rem;
  }

  .contact-form {
    border-radius: 26px;
    margin-top: 1.8rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
  }
}

@media (max-width: 430px) {
  main {
    width: min(calc(100% - 20px), 1380px);
  }

  .hero {
    padding-top: 2.3rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 15vw, 3.6rem);
  }

  .hero__lead {
    font-size: 0.94rem;
  }

  .social-link {
    padding: 0.95rem;
  }

  .profile-card__body {
    padding-inline: 1rem;
  }

  .profile-card__stats {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }

  .stat-card {
    min-height: 76px;
  }

  .stat-card__value {
    font-size: 1.35rem;
  }

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

  .feature-card {
    min-height: 310px;
    padding: 1.6rem;
  }

  .terminal__bar,
  .terminal__body {
    min-width: 500px;
  }
}

/* ═══════════════════════════════════════════════
   LIBRARIES SECTION
   ═══════════════════════════════════════════════ */

.libraries {
  padding-top: 6rem;
}

/* ── Tabs ── */
.libraries-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.lib-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  font-family: var(--font-display, 'Teko', sans-serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-transform: uppercase;
}

.lib-tab:hover {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}

.lib-tab.active {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* ── Grid wrapper ── */
.libraries-grid {
  margin-top: 2.2rem;
}

/* ═══════════════════════════════════════════
   COVER GRID  (books / movies / anime)
   ═══════════════════════════════════════════ */

.lib-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.4rem;
}

.lib-cover-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s ease;
}

.lib-cover-card:not(.lib-cover-card--3d):hover {
  transform: translateY(-6px);
}

.lib-cover-grid--3d {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.lib-cover-card--3d {
  transform-style: preserve-3d;
}

.lib-cover-card__img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(255,255,255,0.05);
  transform-style: preserve-3d;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.54),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.lib-cover-card__img-wrap--3d {
  perspective: 600px;
}

.lib-cover-card__img-wrap .cover-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  border-radius: 8px;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.lib-cover-card__img-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: transform 0.38s ease, filter 0.38s ease;
}

.lib-cover-card__img-wrap.is-3d-fallback .lib-cover-card__img-fallback,
.no-three .lib-cover-card__img-fallback {
  opacity: 1;
}

.lib-cover-card__img-wrap.is-3d-fallback .cover-3d-canvas,
.no-three .cover-3d-canvas {
  display: none;
}

.lib-cover-card__spine {
  position: absolute;
  left: -6px;
  top: 4%;
  bottom: 4%;
  width: 10px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #0a0a0a, #2a2a2a);
  transform: rotateY(78deg) translateZ(-8px);
  transform-origin: right center;
  z-index: 2;
  box-shadow: -4px 0 12px rgba(0,0,0,0.6);
  pointer-events: none;
}

.lib-cover-card__img-wrap.is-3d-fallback .lib-cover-card__spine,
.no-three .lib-cover-card__spine {
  display: none;
}

.lib-cover-card:hover .lib-cover-card__img-wrap.is-3d-fallback .lib-cover-card__img-fallback {
  transform: scale(1.04);
  filter: brightness(0.75);
}

.lib-cover-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.6rem;
  opacity: 0;
  z-index: 4;
  transition: opacity 0.28s ease;
}

.lib-cover-card:hover .lib-cover-card__overlay {
  opacity: 1;
}

.lib-cover-card__badge {
  background: #fff;
  color: #000;
  font-family: var(--font-display, 'Teko', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.lib-cover-card__info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-cover-card__info p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  margin-top: 0.15rem;
}

/* ═══════════════════════════════════════════
   SPOTIFY  ─  track-row layout
   ═══════════════════════════════════════════ */

.lib-spotify-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lib-spotify-row {
  display: grid;
  grid-template-columns: 2rem 44px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
  background: rgba(255,255,255,0.03);
}

.lib-spotify-row:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.lib-spotify-row__cover-wrap--3d {
  position: relative;
  width: 48px;
  height: 48px;
  transform-style: preserve-3d;
  perspective: 400px;
  flex-shrink: 0;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.28), transparent 22%),
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03) 48%, rgba(0,0,0,0.58));
  color: rgba(255,255,255,0.92);
  font-family: "Teko", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 6px 18px rgba(0,0,0,0.65);
  z-index: 1;
}

.cover-fallback--spotify {
  border-radius: 8px;
  font-size: 1.05rem;
}

.cover-fallback--poster {
  border-radius: 8px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.lib-spotify-row__cover-wrap:not(.is-cover-missing) .cover-fallback,
.lib-cover-card__img-wrap:not(.is-cover-missing) .cover-fallback {
  opacity: 0;
}

.lib-spotify-row__cover-wrap.is-cover-missing .lib-spotify-row__cover,
.lib-cover-card__img-wrap.is-cover-missing .lib-cover-card__img-fallback,
.lib-cover-card__img-wrap.is-cover-missing .cover-3d-canvas,
.lib-spotify-row__cover-wrap.is-cover-missing .cover-3d-canvas {
  opacity: 0 !important;
}

.lib-spotify-row__cover-wrap .cover-3d-canvas--vinyl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.lib-spotify-row__cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.lib-spotify-row__cover--fallback {
  opacity: 0;
  width: 48px;
  height: 48px;
}

.lib-spotify-row__cover-wrap.is-3d-fallback .lib-spotify-row__cover--fallback,
.no-three .lib-spotify-row__cover--fallback {
  opacity: 1;
}

.lib-spotify-row__cover-wrap.is-3d-fallback .cover-3d-canvas,
.no-three .lib-spotify-row__cover-wrap .cover-3d-canvas {
  display: none;
}

.lib-spotify-row__num {
  font-family: var(--font-display, 'Teko', sans-serif);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

.lib-spotify-row__info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.lib-spotify-row__info p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  margin-top: 0.1rem;
}

.lib-spotify-row__play {
  color: rgba(255,255,255,0.2);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.lib-spotify-row:hover .lib-spotify-row__play {
  color: #1db954;
  transform: scale(1.2);
}

/* Empty state */
.lib-spotify-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.3);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
  text-align: center;
}

.lib-spotify-empty code {
  background: rgba(255,255,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .lib-cover-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .lib-spotify-row {
    grid-template-columns: 1.5rem 36px 1fr auto;
    gap: 0.7rem;
  }

  .lib-spotify-row__cover {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 430px) {
  .lib-cover-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════
   MUSIC PLAYER BUTTON
   ═══════════════════════════════════════════════ */

.music-btn {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 999;
  width: auto;
  min-width: 218px;
  height: 64px;
  padding: 0.55rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.035) 38%, rgba(0,0,0,0.74)),
    rgba(0,0,0,0.74);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  color: #fff;
  cursor: pointer;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 0.68rem;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow:
    0 16px 45px rgba(0,0,0,0.62),
    inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
  transform-style: preserve-3d;
}

.music-btn::before {
  content: "";
  position: absolute;
  inset: 8px 48px 8px 74px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.34) 0 2px, transparent 2px 9px);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0;
  transform: translateX(-20%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

body.music-is-playing .music-btn::before {
  opacity: 0.38;
  animation: musicSignalSweep 1.4s linear infinite;
}

@keyframes musicSignalSweep {
  to { transform: translateX(20%); }
}

body.music-is-playing .page-shell::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  width: min(52vw, 680px);
  height: min(46vh, 520px);
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 28%, rgba(255,255,255,0.08), transparent 72%),
    repeating-linear-gradient(92deg, transparent 0 16px, rgba(255,255,255,0.045) 16px 18px, transparent 18px 34px);
  transform: perspective(900px) rotateX(62deg) rotateZ(-8deg) translate3d(12%, 8%, -140px);
  transform-origin: 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: musicFloorFlow 4.8s linear infinite;
}

@keyframes musicFloorFlow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 180px 0, 90px 0; }
}

.music-btn:hover {
  border-color: rgba(255,255,255,0.55);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.055) 42%, rgba(0,0,0,0.82)),
    rgba(0,0,0,0.86);
  transform: translateY(-3px) translateZ(18px);
  box-shadow:
    0 24px 65px rgba(0,0,0,0.7),
    0 0 34px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.music-btn:active {
  transform: translateY(0) scale(0.98);
}

.music-btn__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,0.22) 0 1px, rgba(0,0,0,0.15) 1px 5px),
    radial-gradient(circle, #f4f4f4 0 12%, #111 13% 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2),
    0 10px 24px rgba(0,0,0,0.52);
}

.music-btn__disc span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.5);
}

.music-btn.is-playing .music-btn__disc {
  animation: musicDiscSpin 2.4s linear infinite;
}

@keyframes musicDiscSpin {
  to { transform: rotate(360deg); }
}

.music-btn__text {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.music-btn__text strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.music-btn__text small {
  color: rgba(255,255,255,0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* icons */
.music-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: opacity 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.music-btn__icon--stop { display: none; }

/* animated bars (visible when playing) */
.music-btn__bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  position: absolute;
  left: 28px;
  bottom: 10px;
}

.music-btn__bars span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #fff;
  animation: barBounce 0.9s ease-in-out infinite alternate;
}

.music-btn__bars span:nth-child(1) { height: 6px;  animation-delay: 0s;    }
.music-btn__bars span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.music-btn__bars span:nth-child(3) { height: 10px; animation-delay: 0.3s;  }
.music-btn__bars span:nth-child(4) { height: 16px; animation-delay: 0.1s;  }

@keyframes barBounce {
  from { transform: scaleY(0.35); }
  to   { transform: scaleY(1);    }
}

/* playing state */
.music-btn.is-playing .music-btn__icon--play { display: none; }
.music-btn.is-playing .music-btn__icon--stop { display: flex; }
.music-btn.is-playing .music-btn__bars { display: flex; }

/* ── tooltip label ── */
.music-btn::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.music-btn:hover::after {
  opacity: 1;
}

/* mobile: slightly smaller, keep away from edge */
@media (max-width: 600px) {
  .music-btn {
    bottom: 1.2rem;
    right: 1.2rem;
    min-width: 58px;
    width: 58px;
    height: 58px;
    grid-template-columns: 1fr;
    padding: 0;
    place-items: center;
  }

  .music-btn__text,
  .music-btn__bars {
    display: none !important;
  }

  .music-btn__disc {
    width: 38px;
    height: 38px;
  }

  .music-btn__icon {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
  }

  .music-btn__icon svg {
    width: 14px;
    height: 14px;
  }
}

/* ═══════════════════════════════════════
   MOBILE PERFORMANCE — reduce heavy effects
   ═══════════════════════════════════════ */
@media (max-width: 767px) {
  /* Kill expensive animations */
  .aurora-layer { opacity: 0.25; }
  .depth-grid { display: none; }
  #scene { opacity: 0.2; }
  .orb-ring { animation: none !important; }
  .electric-scene { display: none !important; }
  .scene-katana { display: none !important; }

  /* Reduce blur/shadow costs */
  .terminal__line--motto .terminal__typed {
    animation: none !important;
    text-shadow: 0 0 8px #ff2244;
  }

  /* Simpler hero layout */
  .hero { min-height: 100svh; }

  /* Faster reveal — no heavy transform */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal.is-visible { opacity: 1 !important; }

  /* Reduce font rendering cost */
  * { -webkit-font-smoothing: auto; }

  /* Profile card — no tilt on mobile */
  #tiltCard { transform: none !important; }

  /* Lighter shadows site-wide */
  .feature-card, .social-link, .stat-card {
    box-shadow: none !important;
  }

  /* Nav on mobile — hide admin btn text, show icon only */
  .admin-nav-btn span { display: none; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   3D IMMERSIVE UPGRADE — Full depth across all sections
   ═══════════════════════════════════════════════════════════ */

/* Global 3D perspective on the whole page */
.page-shell {
  perspective: 2400px;
  perspective-origin: 50% 35%;
}

main {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  perspective: 1800px;
  perspective-origin: 50% 20%;
}

main > section {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
}

/* ── HERO 3D ── */
.hero {
  transform-style: preserve-3d;
}

.hero__copy {
  transform-style: preserve-3d;
  transform: translateZ(30px);
  transition: transform 0.4s ease;
  position: relative;
  padding-left: clamp(0.75rem, 1.5vw, 1.35rem);
}

.hero__sigil {
  position: absolute;
  right: min(-8vw, -70px);
  top: -9rem;
  z-index: -1;
  display: grid;
  gap: 0.4rem;
  width: min(34vw, 440px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.16), transparent 35%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.16) 0 2deg, transparent 2deg 11deg);
  color: rgba(255,255,255,0.16);
  text-transform: uppercase;
  transform: translateZ(-120px) rotateX(58deg) rotateZ(-18deg);
  box-shadow:
    0 0 60px rgba(255,255,255,0.07),
    inset 0 0 70px rgba(255,255,255,0.05);
  animation: hero-sigil-spin 18s linear infinite;
  pointer-events: none;
}

.hero__sigil span {
  font-family: "Zen Dots", "Teko", sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 2.6rem);
  letter-spacing: 0;
}

.hero__sigil strong {
  font-family: "Teko", sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.75;
  letter-spacing: 0;
}

@keyframes hero-sigil-spin {
  to { transform: translateZ(-120px) rotateX(58deg) rotateZ(342deg); }
}

.hero__copy h1 {
  transform: translateZ(20px);
  text-shadow:
    1px 1px 0 rgba(255,255,255,0.08),
    2px 2px 0 rgba(150,150,150,0.08),
    3px 3px 0 rgba(70,70,70,0.1),
    0 2px 0 rgba(255,255,255,0.08),
    0 4px 8px rgba(0,0,0,0.6),
    0 0 60px rgba(255,255,255,0.12);
  display: inline-block;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  border: 1px solid rgba(255,255,255,0.08);
  transform: translateZ(-45px) rotateX(8deg) rotateY(-10deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 42%),
    rgba(0,0,0,0.18);
  box-shadow: 0 34px 90px rgba(0,0,0,0.55);
  pointer-events: none;
}

.hero__lead {
  transform: translateZ(10px);
}

/* ── PROFILE CARD FULL 3D ── */
.profile-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  box-shadow:
    28px 40px 0 rgba(255,255,255,0.025),
    0 20px 60px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.profile-card:hover {
  box-shadow:
    38px 54px 0 rgba(255,255,255,0.035),
    0 40px 100px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 18px -22px -28px 28px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.055);
  background: rgba(255,255,255,0.018);
  transform: translateZ(-70px);
  z-index: -1;
  pointer-events: none;
}

.profile-card__banner {
  transform: translateZ(24px);
}

.profile-card__banner-stage {
  transform: translateZ(8px) rotateX(4deg);
}

.profile-card__avatar-wrap {
  transform: translateZ(48px);
  filter: drop-shadow(0 14px 35px rgba(0,0,0,0.75));
}

.profile-card__avatar-3d {
  transform: translateZ(12px);
}

.profile-card__body {
  transform: translateZ(15px);
}

.profile-card__stats {
  transform: translateZ(10px);
}

/* ── STAT CARDS 3D ── */
.stat-card {
  transform-style: preserve-3d;
  transform: translateZ(0) scale(1);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateZ(12px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
}

.stat-card:hover::before { opacity: 1; }

/* ── CHIPS 3D ── */
.chip {
  transform: translateZ(0) scale(1);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.chip::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.4s ease;
}

.chip:hover {
  transform: translateZ(8px) scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.chip:hover::after { left: 150%; }

/* ── STACK GRID 3D ── */
.stack-grid {
  transform-style: preserve-3d;
  perspective: 1200px;
}

.stack-item {
  transform: translateZ(0) rotateX(0deg);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

.stack-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stack-item:hover {
  transform: translateZ(42px) rotateX(-9deg) rotateY(5deg) scale(1.06);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
}

.stack-item:hover::before { opacity: 1; }

/* ── FEATURE CARDS FULL 3D ── */
.feature-card {
  transform-style: preserve-3d;
  transform: translateZ(0) rotateY(0deg);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.4s;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  background: linear-gradient(160deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.01) 50%,
    rgba(255,255,255,0.03) 100%);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateZ(62px) rotateY(-7deg) rotateX(5deg) scale(1.035);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    -8px 0 30px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.feature-card:hover::after { opacity: 1; }

.feature-card__index {
  transform: translateZ(10px);
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SOCIAL LINKS 3D ── */
.social-link {
  transform: translateZ(0) translateX(0);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateZ(15px) translateX(6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), -4px 0 20px rgba(255,255,255,0.05);
}

.social-link:hover::before { transform: scaleY(1); }

/* ── LIBRARY CARDS 3D ── */
.lib-cover-card {
  transform: translateZ(0) scale(1) rotateY(0);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
}

.lib-cover-card--3d:hover {
  transform: translateZ(72px) scale(1.075) rotateY(-14deg) rotateX(4deg);
  box-shadow:
    0 32px 70px rgba(0,0,0,0.75),
    12px 0 28px rgba(255,255,255,0.04);
}

.lib-cover-card__img-wrap--3d:hover {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.65));
}

.lib-spotify-row {
  transform: translateZ(0) translateX(0);
  transition: transform 0.2s ease, box-shadow 0.2s, background 0.2s;
}

.lib-spotify-row:hover {
  transform: translateZ(10px) translateX(8px);
  box-shadow: -4px 0 20px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.06) !important;
}

/* ── TERMINAL 3D ── */
.console__screen {
  transform: perspective(1100px) rotateX(6deg) translateZ(20px);
  transform-origin: top center;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 0 40px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.4s ease;
}

.console__screen:hover {
  transform: perspective(1100px) rotateX(1deg) translateZ(42px);
}

/* ── NAV 3D ── */
.nav a {
  transform: translateZ(0) translateY(0);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), color 0.2s;
  display: inline-block;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.6);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav a:hover {
  transform: translateZ(10px) translateY(-2px);
  text-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.nav a:hover::after { transform: scaleX(1); }

/* ── TOPBAR 3D glass ── */
.topbar {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06),
    0 4px 30px rgba(0,0,0,0.4);
  transform: translateZ(50px);
}

/* ── CONTACT FORM 3D ── */
.contact-form {
  transform-style: preserve-3d;
  perspective: 800px;
}

.contact-form input,
.contact-form textarea {
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

.contact-form input:focus,
.contact-form textarea:focus {
  transform: translateZ(8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

.contact-form button {
  transform: translateZ(0) scale(1);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.contact-form button:hover {
  transform: translateZ(12px) scale(1.03);
  box-shadow: 0 12px 40px rgba(255,255,255,0.2);
}

/* ── SECTION HEADINGS 3D ── */
.section-heading h2 {
  transform: translateZ(15px);
  display: inline-block;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.eyebrow {
  transform: translateZ(8px);
  display: inline-block;
}

/* ── ORBS UPGRADE — deeper 3D sphere feel ── */
.electric-orb {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.orb-ring {
  box-shadow:
    0 0 30px rgba(255,255,255,0.15),
    inset 0 0 20px rgba(255,255,255,0.05);
}

/* ── LOADER 3D ── */
.loader__terminal {
  transform: perspective(600px) rotateX(4deg);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.06);
}

/* ── BRAND COIN 3D ── */
.brand__coin {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.brand:hover .brand__coin {
  transform: rotateY(180deg) translateZ(4px);
}

/* ── SMOOTH 3D SCROLL PARALLAX ── */
@supports (animation-timeline: scroll()) {
  .hero__copy {
    animation: heroParallax linear both;
    animation-timeline: scroll();
    animation-range: 0 40vh;
  }

  @keyframes heroParallax {
    from { transform: translateZ(30px) translateY(0); }
    to   { transform: translateZ(0px) translateY(-40px); }
  }

  .profile-card {
    animation: cardParallax linear both;
    animation-timeline: scroll();
    animation-range: 0 50vh;
  }

  @keyframes cardParallax {
    from { transform: translateZ(0) translateY(0); }
    to   { transform: translateZ(-20px) translateY(-30px); }
  }
}

/* ── MOBILE: keep 3D but lighter ── */
@media (max-width: 767px) {
  .page-shell { perspective: none; }
  .hero__copy { transform: none; }
  .feature-card:hover { transform: translateZ(10px) scale(1.02); }
  .profile-card { transform: none !important; }
  .console__screen { transform: none; }
  .topbar { transform: none; }
}

/* Final 4ever experience layer */
.music-btn__progress {
  position: absolute;
  left: 76px;
  right: 58px;
  bottom: 8px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.music-btn__progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.7);
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.detail-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.detail-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.detail-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 1.4rem;
  width: min(760px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.025) 42%, rgba(0,0,0,0.88)),
    #050505;
  box-shadow:
    0 36px 100px rgba(0,0,0,0.78),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transform: perspective(1000px) rotateX(7deg) translateY(24px);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}

.detail-modal.is-open .detail-modal__panel {
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}

.detail-modal__close {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(0,0,0,0.56);
  color: #fff;
  cursor: pointer;
}

.detail-modal__art {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.detail-modal__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-modal__copy {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: 1.2rem 1rem 1.2rem 0;
}

.detail-modal__kicker {
  margin: 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.detail-modal__copy h3 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-modal__copy p {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 0;
}

body.secret-mode::before {
  opacity: 0.9;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
}

body.secret-mode .hero h1,
body.secret-mode .brand__name {
  text-shadow:
    0 0 24px rgba(255,255,255,0.42),
    0 0 80px rgba(255,255,255,0.2);
}

body.secret-mode .hero__sigil {
  color: rgba(255,255,255,0.32);
  animation-duration: 3.2s;
}

@media (max-width: 900px) {
  .chip-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__sigil {
    right: -18vw;
    top: -5rem;
    width: min(60vw, 340px);
  }
}

@media (max-width: 620px) {
  .detail-modal__panel {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 2rem);
    overflow: auto;
  }

  .detail-modal__art {
    max-height: 42svh;
  }

  .detail-modal__copy {
    padding: 0.2rem 0.2rem 0.5rem;
  }

  .music-btn__progress {
    display: none;
  }
}
