:root {
  --bg: #050505;
  --bg-soft: #111111;
  --fg: #f6f1e9;
  --muted: rgba(246, 241, 233, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.06);
  --accent: #b8bcc4;
  --accent-2: #7a8fa8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --hero-progress: 0;
  --hero-play: 0;
  --hero-drift: 0;

  /* ── Hero stage proportional composition ── */
  --char-w: clamp(520px, 46vw, 760px);
  --char-right: -2vw;
  --char-bottom: -2vh;

  /* Ball position calculated to contact the extended toe */
  --ball-w: calc(var(--char-w) * 0.23);
  --ball-right: calc(var(--char-right) + var(--char-w) * 0.85);
  --ball-bottom: calc(var(--char-bottom) + var(--char-w) * 0.54);
  --burst-size: calc(var(--char-w) * 0.56);
}

@media (min-width: 1441px) {
  :root {
    --char-w: clamp(580px, 44vw, 780px);
    --char-right: 0vw;
    --char-bottom: -2vh;
  }
}

@media (max-width: 1200px) {
  :root {
    --char-w: clamp(460px, 48vw, 600px);
    --char-right: -3vw;
    --char-bottom: -1vh;
  }
}

@media (max-width: 1024px) {
  :root {
    --char-w: clamp(400px, 50vw, 500px);
    --char-right: -4vw;
    --char-bottom: 0vh;
  }
}

@media (max-width: 800px) {
  :root {
    --char-w: clamp(320px, 85vw, 440px);
    --char-right: -10vw;
    --char-bottom: 3vh;
  }
}

@media (max-width: 480px) {
  :root {
    --char-w: clamp(280px, 92vw, 360px);
    --char-right: -12vw;
    --char-bottom: 2vh;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(184, 188, 196, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(122, 143, 168, 0.1), transparent 35%),
    linear-gradient(180deg, #040404, #0b0b0d 52%, #050505 100%);
  color: var(--fg);
  font-family: "Manrope", system-ui, sans-serif;
}

body.sub-body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

::selection {
  background: transparent;
}

/* ── Page container ── */
.page {
  width: 100%;
  will-change: transform;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* ── Sections ── */
.slide {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
}

/* Scrollable sections on mobile */
.slide.slide-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  justify-content: flex-start;
  padding-top: 76px;
  padding-bottom: 60px;
  -webkit-overflow-scrolling: touch;
}

/* ── Hero ── */
.hero {
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 27%, rgba(255, 255, 255, 0.2), transparent 9%),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.09), transparent 19%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateY(calc(var(--hero-progress) * -120px));
  backface-visibility: hidden;
}

.ball-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  transform: translateY(-120vh);
  opacity: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ball-wrap.animate {
  animation: ballDrop 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

.char-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  transform: translateX(120vw);
  opacity: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.char-wrap.animate {
  animation: charEnter 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

.ball,
.character {
  position: absolute;
  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ball {
  z-index: 3;
  width: var(--ball-w);
  height: auto;
  aspect-ratio: 378 / 384;
  right: var(--ball-right);
  bottom: var(--ball-bottom);
  left: auto;
  top: auto;
  opacity: var(--hero-play);
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.22));
  transform:
    translate3d(
      calc((var(--hero-progress) * -2vw) + (var(--hero-drift) * 6px)),
      calc((var(--hero-progress) * -3vh) + (var(--hero-drift) * -5px)),
      0
    )
    scale(calc(0.94 + (var(--hero-play) * 0.06) + (var(--hero-drift) * 0.008)))
    rotate(calc(-15deg + (var(--hero-play) * 20deg) + (var(--hero-progress) * 15deg) + (var(--hero-drift) * 4deg)));
}

.character {
  z-index: 2;
  width: var(--char-w);
  height: auto;
  aspect-ratio: 1058 / 992;
  right: var(--char-right);
  bottom: var(--char-bottom);
  left: auto;
  top: auto;
  opacity: calc(var(--hero-play) * 0.98);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  transform:
    translate3d(
      calc((var(--hero-progress) * -2vw) + (var(--hero-drift) * 5px)),
      calc((var(--hero-progress) * -3vh) + (var(--hero-drift) * -4px)),
      0
    )
    scale(calc(0.96 + (var(--hero-play) * 0.04) + (var(--hero-drift) * 0.004)))
    rotate(calc(3deg - (var(--hero-play) * 2deg) - (var(--hero-progress) * 2deg) - (var(--hero-drift) * 1deg)));
}

.impact-burst {
  position: absolute;
  z-index: 1;
  right: calc(var(--ball-right) + var(--ball-w) * 0.5 - var(--burst-size) * 0.5);
  bottom: calc(var(--ball-bottom) + var(--ball-w) * 0.5 - var(--burst-size) * 0.5);
  left: auto;
  top: auto;
  width: var(--burst-size);
  height: var(--burst-size);
  will-change: transform, opacity;
  backface-visibility: hidden;
  opacity: calc(0.04 + (var(--hero-play) * 0.22));
  transform:
    rotate(-13deg)
    scale(calc(0.55 + (var(--hero-play) * 0.35) + (var(--hero-drift) * 0.015)));
  background:
    repeating-conic-gradient(
      from -18deg,
      rgba(255, 255, 255, 0.85) 0deg 1.4deg,
      transparent 1.4deg 5.8deg
    );
  mask-image: radial-gradient(circle, transparent 0 8%, black 10% 55%, transparent 74%);
  filter: blur(0.2px);
  pointer-events: none;
}

.speed-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(246, 241, 233, 0.88), transparent);
  filter: blur(0.4px);
  will-change: transform, opacity;
  backface-visibility: hidden;
  opacity: calc(0.02 + (var(--hero-play) * 0.3));
  transform: translateX(calc((var(--hero-play) + var(--hero-progress)) * -60px + (var(--hero-drift) * -12px))) rotate(-14deg);
}

.speed-line-1 { width: 34vw; right: calc(var(--ball-right) + 4vw); bottom: calc(var(--ball-bottom) + 14vh); left: auto; top: auto; }
.speed-line-2 { width: 38vw; right: calc(var(--ball-right) - 4vw); bottom: calc(var(--ball-bottom) + 5vh); left: auto; top: auto; }
.speed-line-3 { width: 42vw; right: calc(var(--ball-right) + 6vw); bottom: calc(var(--ball-bottom) - 6vh); left: auto; top: auto; }
.speed-line-4 { width: 28vw; right: calc(var(--ball-right) - 8vw); bottom: calc(var(--ball-bottom) - 14vh); left: auto; top: auto; }
.speed-line-5 { width: 32vw; right: calc(var(--ball-right) + 2vw); bottom: calc(var(--ball-bottom) - 22vh); left: auto; top: auto; }

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(540px, calc(100% - 32px));
  margin-left: max(5vw, calc((100% - 1340px) / 2));
  margin-right: auto;
  margin-top: clamp(24vh, 28vh, 32vh);
  text-align: left;
  padding: 0;
  text-shadow:
    0 3px 0 #000,
    0 -3px 0 #000,
    3px 0 0 #000,
    -3px 0 0 #000,
    0 16px 34px rgba(0, 0, 0, 0.62);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  color: var(--accent);
}

.hero-copy h1,
.section-card h2 {
  margin: 0;
  font-family: "Unbounded", system-ui, sans-serif;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: 4.35rem;
  text-wrap: balance;
  text-transform: uppercase;
  display: inline;
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) translate3d(0,0,0);
}

.hero-copy.animate-text .word-reveal {
  animation: wordRevealIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-copy.animate-text .word-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-copy.animate-text .word-reveal:nth-child(2) { animation-delay: 0.22s; }
.hero-copy.animate-text .word-reveal:nth-child(3) { animation-delay: 0.34s; }
.hero-copy.animate-text .word-reveal:nth-child(4) { animation-delay: 0.46s; }

@keyframes wordRevealIn {
  0%   { opacity: 0; transform: translateY(40px) translate3d(0,0,0); filter: blur(4px); }
  50%  { opacity: 0.8; filter: blur(1px); }
  70%  { opacity: 1; transform: translateY(-4px) translate3d(0,0,0); filter: blur(0); }
  85%  { transform: translateY(2px) translate3d(0,0,0); }
  100% { opacity: 1; transform: translateY(0) translate3d(0,0,0); filter: blur(0); }
}

/* Silver background plate behind text */
.hero-copy-bg {
  position: absolute;
  inset: -16px -24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(184, 188, 196, 0.18), rgba(184, 188, 196, 0.06));
  border: 1px solid rgba(184, 188, 196, 0.3);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(184, 188, 196, 0.12), inset 0 1px 0 rgba(184, 188, 196, 0.15);
  opacity: 0;
  transform: translate3d(0,0,0) scaleX(0.3);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-copy.animate-text .hero-copy-bg {
  animation: bgPlateReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0s;
}

@keyframes bgPlateReveal {
  0%   { opacity: 0; transform: translate3d(0,0,0) scaleX(0.3); }
  40%  { opacity: 0.7; }
  100% { opacity: 1; transform: translate3d(0,0,0) scaleX(1); }
}
/* ── Cursor trail canvas ── */
#cursorTrailCanvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.lead,
.section-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.lead {
  max-width: 56ch;
  margin: 18px auto 0;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: hintFloat 1.8s ease-in-out infinite;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 0 24px;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
  cursor: pointer;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
  cursor: pointer;
}

.nav-link__icon {
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 200ms ease, transform 200ms ease, color 200ms ease;
}

.nav-link:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover .nav-link__icon {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.1);
}

.nav-link.is-active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link.is-active .nav-link__icon {
  opacity: 1;
  color: var(--accent);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--fg);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.section-more {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #050505;
  background: var(--accent);
  text-decoration: none;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0) rotateX(var(--mag-rx, 0deg)) rotateY(var(--mag-ry, 0deg));
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.section-more:hover {
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px), 0) rotateX(var(--mag-rx, 0deg)) rotateY(var(--mag-ry, 0deg));
  box-shadow: 0 8px 28px rgba(184, 188, 196, 0.35);
}

/* ── Section cards ── */
.section-card {
  width: min(920px, calc(100% - 28px));
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.section-card h2 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 3.6rem;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ── About section ── */
.about-section {
  align-items: center;
  gap: 32px;
  background:
    radial-gradient(circle at 20% 40%, rgba(184, 188, 196, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.03));
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: min(920px, calc(100% - 28px));
}

.about-orbit {
  position: relative;
  width: min(960px, calc(100% - 28px));
  height: clamp(370px, 48vh, 540px);
  margin-inline: auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  isolation: isolate;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.about-orbit.is-dragging {
  cursor: grabbing;
}

.about-orbit::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(184, 188, 196, 0.22), transparent 62%),
    conic-gradient(from 90deg, transparent, rgba(184, 188, 196, 0.2), transparent 40%, rgba(122, 143, 168, 0.18), transparent);
  filter: blur(30px);
  opacity: 0.72;
  animation: aboutAuraSpin 12s linear infinite;
  pointer-events: none;
}

/* Orbit Navigation Buttons (Prev / Next) */
.orbit-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 16, 0.76);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--fg);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.orbit-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(184, 188, 196, 0.85);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 22px rgba(184, 188, 196, 0.38);
}

.orbit-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.orbit-nav-btn--prev {
  left: -8px;
}

.orbit-nav-btn--next {
  right: -8px;
}

/* Orbit Pagination Pills */
.orbit-pagination {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.68);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.orbit-page-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 241, 233, 0.5);
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 220ms ease;
}

.orbit-page-dot:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.orbit-page-dot.is-active {
  background: rgba(184, 188, 196, 0.22);
  border-color: rgba(184, 188, 196, 0.8);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(184, 188, 196, 0.35);
  transform: scale(1.05);
}

.orbit-page-dot__num {
  font-size: 0.68rem;
  opacity: 0.7;
}

.orbit-page-dot__title {
  font-size: 0.72rem;
}

.about-orbit-hint {
  position: absolute;
  left: 50%;
  bottom: -30px;
  z-index: 30;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(246, 241, 233, 0.42);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.about-photo-card {
  --orbit-x: 0px;
  --orbit-y: 0px;
  --orbit-z: 0px;
  --orbit-scale: 0.8;
  --orbit-opacity: 0.8;
  --orbit-blur: 4px;
  --orbit-rotate-y: 0deg;
  --orbit-rotate-z: 0deg;
  --hover-scale: 0;
  --hover-z: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(210px, 24vw, 310px);
  aspect-ratio: 1;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  color: var(--fg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(10, 10, 12, 0.66);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  opacity: var(--orbit-opacity);
  filter: blur(var(--orbit-blur)) saturate(0.68) brightness(0.66);
  transform:
    translate(-50%, -50%)
    translate3d(calc(var(--orbit-x) + var(--mag-x, 0px)), calc(var(--orbit-y) + var(--mag-y, 0px)), calc(var(--orbit-z) + var(--hover-z)))
    rotateX(var(--mag-rx, 0deg))
    rotateY(var(--orbit-rotate-y))
    rotateY(var(--mag-ry, 0deg))
    rotateZ(var(--orbit-rotate-z))
    scale(calc(var(--orbit-scale) + var(--hover-scale)));
  transform-style: preserve-3d;
  transition:
    filter 320ms ease,
    opacity 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease;
  will-change: transform, filter, opacity;
}

.about-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.04), rgba(5, 5, 5, 0.34) 54%, rgba(5, 5, 5, 0.88)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 42%);
  pointer-events: none;
}

.about-photo-card::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 3;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.22) 48%, transparent 62%);
  transform: translateX(-42%) rotate(10deg);
  opacity: 0;
  pointer-events: none;
}

.about-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1), filter 520ms ease;
}

.about-photo-card__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  padding: 22px;
  transform: translateY(14px);
  opacity: 0.52;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms ease;
}

.about-photo-card__body span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: rgba(246, 241, 233, 0.65);
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 0.72rem;
}

.card-badge-icon {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.about-photo-card__body h3 {
  margin: 0;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.about-photo-card__body p {
  margin: 10px 0 0;
  color: rgba(246, 241, 233, 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Active card state (front center focused) */
.about-photo-card.is-active-card {
  border-color: rgba(184, 188, 196, 0.68);
  box-shadow:
    0 32px 85px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(184, 188, 196, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.about-photo-card.is-active-card .about-photo-card__body {
  transform: translateY(0);
  opacity: 1;
}

.about-photo-card.is-hovered,
.about-photo-card:hover,
.about-photo-card:focus-visible {
  --hover-scale: 0.18;
  --hover-z: 160px;
  z-index: 200 !important;
  border-color: rgba(184, 188, 196, 0.85);
  opacity: 1;
  filter: blur(0) saturate(1.08) brightness(1.05);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.6),
    0 0 38px rgba(184, 188, 196, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.about-photo-card.is-hovered::after,
.about-photo-card:hover::after,
.about-photo-card:focus-visible::after {
  animation: aboutCardShine 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-photo-card.is-hovered img,
.about-photo-card:hover img,
.about-photo-card:focus-visible img {
  transform: scale(1.04);
}

.about-photo-card.is-hovered .about-photo-card__body,
.about-photo-card:hover .about-photo-card__body,
.about-photo-card:focus-visible .about-photo-card__body {
  transform: translateY(0);
  opacity: 1;
}

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

@keyframes aboutCardShine {
  0% { opacity: 0; transform: translateX(-42%) rotate(10deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(42%) rotate(10deg); }
}

.about-orbit.is-assembling .about-photo-card {
  animation: aboutCardAssemble 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index, 0) * 75ms);
}

@keyframes aboutCardAssemble {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(0.35) brightness(0.38);
    transform:
      translate(-50%, -50%)
      translate3d(0, 0, -420px)
      rotateY(-42deg)
      rotateZ(-10deg)
      scale(0.18);
  }
  100% {
    opacity: var(--orbit-opacity);
    filter: blur(var(--orbit-blur)) saturate(0.68) brightness(0.66);
    transform:
      translate(-50%, -50%)
      translate3d(calc(var(--orbit-x) + var(--mag-x, 0px)), calc(var(--orbit-y) + var(--mag-y, 0px)), calc(var(--orbit-z) + var(--hover-z)))
      rotateX(var(--mag-rx, 0deg))
      rotateY(var(--orbit-rotate-y))
      rotateY(var(--mag-ry, 0deg))
      rotateZ(var(--orbit-rotate-z))
      scale(calc(var(--orbit-scale) + var(--hover-scale)));
  }
}

/* ── Sub pages ── */
.sub-page {
  width: min(1100px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 104px 0 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease;
}

.back-link:hover {
  color: var(--fg);
  transform: translateX(-4px);
}

.page-header {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.page-header h1 {
  margin: 0;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.page-header p {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-content {
  margin-top: 24px;
}

.about-orbit--page {
  height: clamp(420px, 58vh, 640px);
}

.sub-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.sub-card h2 {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.sub-card p, .sub-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sub-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.sub-card li::before {
  content: "›";
  color: var(--accent);
  font-weight: 800;
  margin-right: 8px;
}

/* ── Links section ── */
.links-section {
  align-items: center;
  gap: 32px;
  background:
    radial-gradient(circle at 80% 30%, rgba(135, 216, 255, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.03));
}

.links-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  width: min(920px, calc(100% - 28px));
}

.link-full-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  padding: 22px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--fg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    rgba(14, 14, 18, 0.65);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0) rotateX(var(--mag-rx, 0deg)) rotateY(var(--mag-ry, 0deg));
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

.link-full-panel::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 188, 196, 0.18), transparent 68%);
  pointer-events: none;
  transition: opacity 300ms ease;
}

.link-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.link-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.link-action-arrow {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transition: transform 260ms ease, color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.link-full-panel:hover {
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 5px), 0) rotateX(var(--mag-rx, 0deg)) rotateY(var(--mag-ry, 0deg)) scale(1.02);
  border-color: rgba(184, 188, 196, 0.65);
  background:
    linear-gradient(135deg, rgba(184,188,196,0.18), rgba(255,255,255,0.05)),
    rgba(18, 18, 24, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 25px rgba(184, 188, 196, 0.18);
}

.link-full-panel:hover .link-icon-box {
  transform: scale(1.12) rotate(-3deg);
  border-color: rgba(184, 188, 196, 0.7);
  box-shadow: 0 0 22px rgba(184, 188, 196, 0.4);
}

.link-full-panel:hover .link-action-arrow {
  transform: translate(3px, -3px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Platform specific icon colors & glow */
.link-icon-box--github { color: #f0f6fc; }
.link-full-panel:hover .link-icon-box--github { box-shadow: 0 0 24px rgba(240, 246, 252, 0.35); }

.link-icon-box--telegram { color: #2AABEE; }
.link-full-panel:hover .link-icon-box--telegram { box-shadow: 0 0 24px rgba(42, 171, 238, 0.45); }

.link-icon-box--steam { color: #66c0f4; }
.link-full-panel:hover .link-icon-box--steam { box-shadow: 0 0 24px rgba(102, 192, 244, 0.45); }

.link-icon-box--roblox { color: #ffffff; }
.link-full-panel:hover .link-icon-box--roblox { box-shadow: 0 0 24px rgba(255, 255, 255, 0.4); }

.link-icon-box--services { color: #00e676; }
.link-full-panel:hover .link-icon-box--services { box-shadow: 0 0 24px rgba(0, 230, 118, 0.45); }

.link-icon-box--channel { color: #b388ff; }
.link-full-panel:hover .link-icon-box--channel { box-shadow: 0 0 24px rgba(179, 136, 255, 0.45); }

.link-info {
  display: flex;
  flex-direction: column;
}

.link-full-panel .link-title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.link-full-panel .link-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
  line-height: 1.4;
}

.link-full-panel .link-url {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace, system-ui;
  opacity: 0.85;
}

/* ── Projects section ── */
.projects-section {
  align-items: center;
  gap: 32px;
  background:
    radial-gradient(circle at 50% 60%, rgba(184, 188, 196, 0.05), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.03));
}

.launcher-list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.launcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.launcher-item.running {
  border-color: rgba(35, 165, 89, 0.45);
  background: rgba(35, 165, 89, 0.08);
}

.launcher-item.offline {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.55;
}

.launcher-item.skip { opacity: 0.4; }

.launcher-name {
  font-weight: 800;
}

.launcher-meta {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.status-badge {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-online {
  color: #23a559;
}

.status-offline {
  color: #80848e;
}

.status-skipped {
  color: #f0b232;
}

.uptime-label {
  font-size: 0.72rem;
  color: rgba(246, 241, 233, 0.45);
  white-space: nowrap;
}

/* ── Scroll reveal animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(40px) translate3d(0,0,0);
  will-change: transform, opacity;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) translate3d(0,0,0);
}

/* ── Status dock (без page-dots) ── */
.status-dock {
  position: fixed;
  z-index: 19;
  left: 22px;
  bottom: 22px;
  width: min(340px, calc(100vw - 108px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.discord-status,
.now-playing-widget,
.views-widget {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.discord-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
}

.now-playing-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
}

.now-playing-widget.is-playing {
  border-color: rgba(184, 188, 196, 0.34);
  background: rgba(184, 188, 196, 0.08);
}

.now-playing-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.now-playing-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: none;
}

.now-playing-icon.has-cover {
  padding: 0;
  overflow: hidden;
}

.now-playing-icon.has-cover img {
  display: block;
}

.now-playing-icon.has-cover span {
  display: none;
}

.now-playing-icon span {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(246, 241, 233, 0.45);
}

.now-playing-icon.is-playing span {
  background: var(--accent);
  animation: nowPlayingBars 0.9s ease-in-out infinite alternate;
}

.now-playing-icon.is-playing span:nth-child(2) { animation-delay: 0.16s; }
.now-playing-icon.is-playing span:nth-child(3) { animation-delay: 0.32s; }

.now-playing-info {
  min-width: 0;
  flex: 1 1 auto;
}

.search-music {
  position: relative;
  flex: 0 0 auto;
}

.search-music-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg);
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.search-music-toggle:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

.search-music-toggle:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.search-music-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 180px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 90;
}

.search-music.is-open .search-music-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.search-music-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.search-music-menu button:hover,
.search-music-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-music-menu svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 4px;
}

.now-playing-label {
  color: rgba(246, 241, 233, 0.52);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.now-playing-title {
  overflow: hidden;
  color: var(--fg);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.discord-status-indicator {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 15px;
  height: 15px;
  border: 3px solid rgba(8, 8, 10, 0.94);
  border-radius: 50%;
  background: #80848e;
}

.discord-status-indicator.online { background: #23a559; }
.discord-status-indicator.idle { background: #f0b232; }
.discord-status-indicator.dnd { background: #f23f43; }
.discord-status-indicator.offline { background: #80848e; }

.discord-info { min-width: 0; flex: 1 1 auto; }

.discord-name {
  overflow: hidden;
  color: var(--fg);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-custom-status,
.discord-activity {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.discord-activity img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.views-widget {
  width: fit-content;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
}

.views-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.views-value {
  color: var(--fg);
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1rem;
}

/* ── Expanded Discord profile ── */
.discord-expand-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg);
  font: 700 1.15rem/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.discord-expand-toggle {
  margin-left: auto;
}

.discord-expand-toggle:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.06);
}

.discord-expand-toggle:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.discord-profile {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  width: min(410px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.92);
  transform-origin: 50% 50%;
  transition: opacity 240ms ease, visibility 240ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
}

.discord-profile::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.discord-profile.is-expanded {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.discord-profile.is-expanded::before {
  opacity: 1;
}

.discord-profile__noise {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.discord-profile__banner {
  position: relative;
  height: 126px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(88, 101, 242, 0.42), rgba(35, 165, 89, 0.22)),
    url("assets/banner.jpg") center / cover no-repeat,
    #292b31;
}

.discord-profile__banner.has-banner {
  background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)), var(--discord-banner-image);
  background-position: center;
  background-size: cover;
}

.discord-profile__banner-fallback {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.48);
  font: 700 0.68rem/1 "Unbounded", sans-serif;
}

.discord-profile__banner.has-banner .discord-profile__banner-fallback {
  display: none;
}

.discord-profile__body {
  position: relative;
  padding: 58px 22px 22px;
}

.discord-profile__avatar {
  position: absolute;
  top: -54px;
  left: 50%;
  width: 104px;
  height: 104px;
  transform: translateX(-50%);
}

.discord-profile__avatar img {
  border: 7px solid #111214;
}

.discord-profile__avatar .discord-status-indicator {
  right: 4px;
  bottom: 4px;
  width: 24px;
  height: 24px;
  border-width: 5px;
  border-color: #111214;
}

.discord-profile__identity {
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.discord-profile__identity strong {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 1.3rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-profile__identity span,
.discord-profile__identity small {
  color: #b5bac1;
  font-size: 0.82rem;
}

.discord-profile__identity small {
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: #dbdee1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-profile__bio {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #dbdee1;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
}

.discord-profile__track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: #1e1f22;
}

.discord-profile__track-icon {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #2b2d31;
  color: #b5bac1;
}

.discord-profile__track-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.discord-profile__track-icon.has-cover img {
  display: block;
}

.discord-profile__track > div:last-child {
  min-width: 0;
  display: grid;
}

.discord-profile__track span {
  color: #949ba4;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.discord-profile__track strong,
.discord-profile__track small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-profile__track strong {
  color: #f2f3f5;
  font-size: 0.9rem;
}

.discord-profile__track small {
  color: #b5bac1;
  font-size: 0.74rem;
}

.discord-profile__actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.discord-server-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  background: #5865f2;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.discord-server-button:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.discord-profile__views {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: #949ba4;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.discord-profile__views strong {
  color: #f2f3f5;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 0.92rem;
}

.discord-profile__badges {
  position: absolute;
  top: 10px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 150px;
  justify-content: flex-end;
  z-index: 3;
}

.discord-profile__badges.is-empty { display: none; }

.discord-profile__badge {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  transition: transform 180ms ease;
  cursor: help;
}

.discord-profile__badge:hover {
  transform: translateY(-2px) scale(1.08);
}

.discord-profile__badge svg,
.discord-profile__badge img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.discord-profile__badge-tip {
  position: absolute;
  bottom: 130%;
  right: 0;
  background: #18191c;
  color: #f2f3f5;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.discord-profile__badge:hover .discord-profile__badge-tip,
.discord-profile__badge:focus-visible .discord-profile__badge-tip {
  opacity: 1;
}

.discord-profile.is-cracked {
  animation: discordCrack 380ms steps(2, end);
}

.discord-profile.is-cracked::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 42%, rgba(255,255,255,.85) 42.3%, transparent 43%) 47% 0 / 56% 58% no-repeat,
    linear-gradient(58deg, transparent 47%, rgba(255,255,255,.65) 47.3%, transparent 48%) 70% 45% / 48% 48% no-repeat,
    linear-gradient(137deg, transparent 46%, rgba(255,255,255,.55) 46.3%, transparent 47%) 20% 60% / 52% 42% no-repeat;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.65));
}

.discord-profile.is-fallen {
  display: none;
}

.discord-profile-debris {
  position: fixed;
  z-index: 79;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.discord-profile-shard {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(410px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  animation: discordShardFall var(--fall-duration, 1250ms) cubic-bezier(.4, 0, .8, .7) forwards;
  animation-delay: var(--fall-delay, 0ms);
}

@keyframes discordCrack {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% - 5px), calc(-50% + 2px)) rotate(-0.4deg); }
  50% { transform: translate(calc(-50% + 6px), calc(-50% - 2px)) rotate(0.5deg); }
  75% { transform: translate(calc(-50% - 3px), -50%) rotate(-0.2deg); }
}

@keyframes discordShardFall {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) rotate(0);
  }
  18% {
    transform: translate(-50%, -50%) translate(var(--shard-x), -18px) rotate(calc(var(--shard-rotate) * .25));
  }
  100% {
    opacity: 0.96;
    transform: translate(-50%, -50%) translate(var(--shard-x), 115vh) rotate(var(--shard-rotate));
  }
}

/* ── Touch screen ── */
.discord-expand-toggle {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.discord-expand-toggle:hover,
.discord-expand-toggle:focus-visible {
  transform: translate(2px, -2px) scale(1.08);
  border-color: rgba(184, 188, 196, 0.58);
  background: rgba(184, 188, 196, 0.16);
  outline: none;
}

.discord-profile {
  position: fixed;
  z-index: 28;
  top: clamp(86px, 12vh, 138px);
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -18px) scale(0.94);
  transform-origin: top center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(8, 8, 10, 0.88);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(184, 188, 196, 0.05);
  backdrop-filter: blur(24px);
  transition: opacity 240ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-profile.is-expanded {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.discord-profile__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.045) 4px);
  mix-blend-mode: screen;
}

.discord-profile__banner {
  position: relative;
  height: 126px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(184, 188, 196, 0.24), rgba(33, 35, 41, 0.55)),
    url("assets/banner.jpg") center / cover no-repeat,
    #23272f;
}

.discord-profile__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: var(--discord-banner-image);
  background-position: center;
  background-size: cover;
  transition: opacity 220ms ease;
}

.discord-profile__banner.has-banner::after { opacity: 1; }

.discord-profile__banner-fallback {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.discord-profile__body {
  position: relative;
  padding: 0 24px 22px;
}

.discord-profile__avatar {
  width: 92px;
  height: 92px;
  margin: -46px auto 12px;
  border: 6px solid rgba(8, 8, 10, 0.94);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.discord-profile__avatar .discord-status-indicator {
  right: 1px;
  bottom: 2px;
  width: 20px;
  height: 20px;
}

.discord-profile__identity {
  display: grid;
  gap: 3px;
  text-align: center;
}

.discord-profile__identity strong {
  color: var(--fg);
  font-size: 1.12rem;
}

.discord-profile__identity span {
  color: var(--muted);
  font-size: 0.78rem;
}

.discord-profile__bio {
  min-height: 42px;
  margin: 16px 0;
  color: rgba(246, 241, 233, 0.74);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

.discord-profile__track {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.discord-profile__track-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
}

.discord-profile__track div:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.discord-profile__track span,
.discord-profile__track small {
  color: var(--muted);
  font-size: 0.68rem;
}

.discord-profile__track strong {
  overflow: hidden;
  color: var(--fg);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-profile__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.discord-server-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(184, 188, 196, 0.32);
  border-radius: 11px;
  color: var(--fg);
  background: rgba(184, 188, 196, 0.1);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.discord-server-button:hover {
  transform: translateY(-2px);
  background: rgba(184, 188, 196, 0.2);
}

.discord-profile__views {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
  text-transform: uppercase;
}

.discord-profile__views strong {
  color: var(--fg);
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 0.92rem;
}

.discord-profile.is-cracked {
  animation: discordProfileJolt 150ms steps(2, end) 3;
}

.discord-profile.is-cracked::before,
.discord-profile.is-cracked::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 0 46%, rgba(255,255,255,.92) 46.3% 46.7%, transparent 47%),
    linear-gradient(68deg, transparent 0 55%, rgba(255,255,255,.62) 55.2% 55.6%, transparent 56%);
  mix-blend-mode: screen;
}

.discord-profile.is-cracked::after {
  transform: scaleX(-1);
  opacity: 0.72;
}

.discord-profile.is-shattering {
  opacity: 0;
  transform: translate(-50%, 22px) scale(0.98) rotate(-1deg);
  transition: opacity 250ms ease, transform 360ms ease;
}

.discord-profile.is-fallen {
  display: none;
}

.discord-profile-fragments {
  position: fixed;
  z-index: 29;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.discord-profile-fragment {
  position: absolute;
  left: var(--fragment-x);
  top: var(--fragment-y);
  width: var(--fragment-w);
  height: var(--fragment-h);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(184, 188, 196, 0.3), rgba(10, 10, 12, 0.92));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  animation: discordFragmentFall 1.35s cubic-bezier(0.22, 0.72, 0.34, 1) var(--fragment-delay) forwards;
}

@keyframes discordProfileJolt {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  35% { transform: translate(calc(-50% - 4px), 1px) scale(1.008) rotate(-0.5deg); }
  70% { transform: translate(calc(-50% + 5px), -1px) scale(0.994) rotate(0.45deg); }
}

@keyframes discordFragmentFall {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--fragment-dx), 115vh, 0) rotate(var(--fragment-rotate)) scale(0.62); }
}

.touch-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 10, 12, 0.85), rgba(5, 5, 5, 0.98)),
    #050505;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.touch-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.touch-content {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
}

.touch-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(184, 188, 196, 0.4);
  animation: touchPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.touch-ring::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(184, 188, 196, 0.15);
  animation: touchPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.3s;
}

.touch-text {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent);
  text-transform: uppercase;
  animation: touchTextFade 2s ease-in-out infinite;
}

@keyframes touchPulse {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.6; }
  50% { transform: translate3d(0,0,0) scale(1.12); opacity: 1; }
}

@keyframes touchTextFade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Music toggle ── */
.music-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--fg);
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0) rotateX(var(--mag-rx, 0deg)) rotateY(var(--mag-ry, 0deg));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  padding: 0;
  overflow: hidden;
}

.music-toggle:hover {
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 3px), 0) rotateX(var(--mag-rx, 0deg)) rotateY(var(--mag-ry, 0deg)) scale(1.04);
  border-color: rgba(184, 188, 196, 0.7);
}

.music-toggle.is-playing {
  background: rgba(184, 188, 196, 0.16);
  border-color: rgba(184, 188, 196, 0.68);
}

.music-toggle.is-playing .music-icon {
  animation: musicBounce 0.8s ease-in-out infinite alternate;
}

.music-icon {
  width: 26px;
  height: 26px;
  color: var(--fg);
  transition: color 200ms ease;
}

.music-toggle.is-playing .music-icon {
  color: var(--accent);
}

@keyframes musicBounce {
  0% { transform: translate3d(0,0,0) scale(1) rotate(-3deg); }
  100% { transform: translate3d(0,0,0) scale(1.08) rotate(3deg); }
}

@keyframes nowPlayingBars {
  from { height: 8px; opacity: 0.55; }
  to { height: 22px; opacity: 1; }
}

/* ── Animations ── */
@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) translate3d(0,0,0); opacity: 0.72; }
  50% { transform: translateX(-50%) translateY(-8px) translate3d(0,0,0); opacity: 1; }
}

@keyframes subCardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ball drops from above */
@keyframes ballDrop {
  0%   { transform: translateY(-120vh) translate3d(0,0,0); opacity: 0; }
  30%  { opacity: 0.8; }
  55%  { transform: translateY(6vh) translate3d(0,0,0); }
  72%  { transform: translateY(-3vh) translate3d(0,0,0); }
  85%  { transform: translateY(1.5vh) translate3d(0,0,0); }
  93%  { transform: translateY(-0.5vh) translate3d(0,0,0); opacity: 1; }
  100% { transform: translateY(0) translate3d(0,0,0); opacity: 1; }
}

/* Character flies in from right */
@keyframes charEnter {
  0%   { transform: translateX(120vw) translate3d(0,0,0); opacity: 0; }
  30%  { opacity: 0.7; }
  60%  { transform: translateX(-4vw) translate3d(0,0,0); }
  78%  { transform: translateX(1.5vw) translate3d(0,0,0); }
  90%  { transform: translateX(-0.5vw) translate3d(0,0,0); opacity: 1; }
  100% { transform: translateX(0) translate3d(0,0,0); opacity: 1; }
}

/* ── Page dots (mobile nav) ── */
.page-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 24;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.page-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), border-color 250ms ease, background 250ms ease, box-shadow 250ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 16px;
  min-height: 16px;
}

.page-dot:hover {
  border-color: rgba(184, 188, 196, 0.85);
  transform: scale(1.15);
}

.page-dot:active {
  transform: scale(0.9);
  background: rgba(184, 188, 196, 0.4);
}

.page-dot.is-active {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 16px rgba(184, 188, 196, 0.6);
}

.page-dot.is-active:active {
  transform: scale(1.1);
}

/* ── Mobile section label ── */
.mobile-section-label {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 22;
  display: none;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(184, 188, 196, 0.55);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 350ms ease;
}

.mobile-section-label.visible {
  opacity: 1;
}

/* ── Touch-friendly states for all interactive elements ── */
.nav-link,
.link-full-panel,
.music-toggle,
.page-dot,
.nav-burger,
.section-more {
  touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
  /* Active feedback on touch for nav links */
  .nav-link:active {
    background: rgba(184, 188, 196, 0.15);
    color: var(--accent);
    transform: scale(0.97);
  }

  /* Active feedback on link panels */
  .link-full-panel:active {
    transform: translateY(-2px) scale(0.98);
    border-color: rgba(184, 188, 196, 0.6);
    background: linear-gradient(135deg, rgba(184,188,196,0.14), rgba(255,255,255,0.04));
  }

  /* Active feedback on music toggle */
  .music-toggle:active {
    transform: scale(0.9);
    border-color: rgba(184, 188, 196, 0.6);
  }

  /* Active feedback on burger */
  .nav-burger:active {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
  }

  /* Active feedback on sub-cards */
  .sub-card:active {
    border-color: rgba(184, 188, 196, 0.35);
  }

  /* Active feedback on section-more button */
  .section-more:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 4px 16px rgba(184, 188, 196, 0.25);
  }
}

/* ── Mobile ── */
@media (max-width: 800px) {
  .page-dots {
    display: flex;
  }

  .mobile-section-label {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 260ms ease, opacity 260ms ease;
    pointer-events: none;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 16px;
    width: 100%;
    text-align: left;
    border-radius: 14px;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-burger {
    display: flex;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
  }

  .slide {
    padding: 60px 16px;
  }

  .links-full-grid {
    grid-template-columns: 1fr;
  }

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

  .about-orbit {
    width: calc(100% - 16px);
    height: 420px;
    perspective: 850px;
  }

  .orbit-nav-btn {
    width: 38px;
    height: 38px;
  }

  .orbit-nav-btn--prev {
    left: -4px;
  }

  .orbit-nav-btn--next {
    right: -4px;
  }

  .orbit-pagination {
    bottom: -6px;
    padding: 4px 8px;
    gap: 6px;
  }

  .orbit-page-dot {
    padding: 3px 8px;
    font-size: 0.65rem;
  }

  .orbit-page-dot__title {
    display: none;
  }

  .about-photo-card {
    width: min(74vw, 270px);
    border-radius: 24px;
  }

  .about-photo-card.is-hovered,
  .about-photo-card:hover,
  .about-photo-card:focus-visible {
    --hover-scale: 0.14;
    --hover-z: 110px;
  }

  .about-photo-card__body {
    padding: 18px;
  }

  .about-photo-card__body p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .about-orbit-hint {
    width: 100%;
    bottom: -32px;
    font-size: 0.62rem;
    text-align: center;
    white-space: normal;
  }

  .hero-copy {
    width: min(92%, 460px);
    margin: 14vh auto 0;
    text-align: center;
  }

  .hero-copy h1,
  .section-card h2 {
    line-height: 1.08;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 6.2vw, 2.45rem);
  }

  .section-card h2 {
    font-size: clamp(1.8rem, 5.5vw, 2.15rem);
  }

  .status-dock {
    left: 14px;
    bottom: 14px;
    width: min(300px, calc(100vw - 86px));
  }

  .discord-status {
    padding: 10px;
  }

  .now-playing-widget {
    padding: 10px;
  }

  .discord-avatar {
    width: 44px;
    height: 44px;
  }

  .music-toggle {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .launcher-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .launcher-meta {
    text-align: left;
  }

  /* Scrollable sections for content that overflows */
  .slide.slide-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
    padding-top: 76px;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Compact section cards on mobile */
  .section-card {
    padding: clamp(16px, 4vw, 28px);
    border-radius: 22px;
    margin-bottom: 16px;
  }

  .section-card h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }

  .section-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section-kicker {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  /* Compact link panels on mobile */
  .links-full-grid {
    gap: 12px;
    width: calc(100% - 28px);
  }

  .link-full-panel {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .link-full-panel .link-title {
    font-size: 1.15rem;
    font-weight: 700;
  }

  .link-full-panel .link-desc {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .link-full-panel .link-url {
    margin-top: 8px;
    font-size: 0.78rem;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Compact launcher items on mobile */
  .launcher-list {
    margin-top: 16px;
    gap: 8px;
    width: 100%;
  }

  .launcher-item {
    padding: 16px 16px;
    border-radius: 16px;
    gap: 12px;
    min-height: 60px;
  }

  .launcher-name {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .launcher-meta {
    font-size: 0.78rem;
    gap: 6px;
  }

  .status-badge {
    font-size: 0.75rem;
    font-weight: 700;
  }

  /* Compact about sub-cards */
  .sub-card {
    padding: clamp(16px, 3vw, 24px);
    border-radius: 18px;
  }

  .sub-card h2 {
    font-size: 1.2rem;
  }

  .sub-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .sub-page {
    width: calc(100% - 28px);
    padding-top: 86px;
    padding-bottom: 44px;
  }

  .page-header {
    margin-bottom: 22px;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  .about-orbit--page {
    height: 430px;
  }

  /* Sections gap compact */
  .links-section,
  .projects-section,
  .about-section {
    gap: 16px;
  }

  /* Status dock more compact on mobile */
  .status-dock {
    width: min(280px, calc(100vw - 90px));
    gap: 6px;
  }

  .discord-status {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 14px;
  }

  .now-playing-widget {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 14px;
  }

  .now-playing-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .discord-avatar {
    width: 38px;
    height: 38px;
  }

  .discord-name {
    font-size: 0.85rem;
  }

  .discord-custom-status,
  .discord-activity,
  .now-playing-meta {
    font-size: 0.75rem;
  }

  .now-playing-label {
    font-size: 0.62rem;
  }

  .now-playing-title {
    font-size: 0.85rem;
  }

  .views-widget {
    padding: 6px 12px;
    border-radius: 14px;
  }

  /* Music toggle smaller to avoid overlap */
  .music-toggle {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }

  .music-icon {
    width: 20px;
    height: 20px;
  }

  /* Enlarge touch targets for link panels on mobile */
  .link-full-panel {
    min-height: 100px;
  }

  /* Reposition scroll-hint above dots */
  .scroll-hint {
    bottom: 54px;
    font-size: 0.72rem;
    opacity: 0.5;
  }

  /* Swipe active visual feedback */
  .page.swiping-down .slide {
    transition: transform 200ms ease;
  }

  .page.swiping-up .slide {
    transition: transform 200ms ease;
  }
}

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

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-hint,
  .ball,
  .character {
    animation: none !important;
    transition: none !important;
  }

  .ball,
  .character {
    opacity: 1 !important;
  }
}

/* ── Shared interaction effects ── */
.is-magnetic {
  transform-style: preserve-3d;
  will-change: transform;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--fg);
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 188, 196, 0.18), transparent 28%),
    #050505;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    clip-path 620ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 260ms ease,
    visibility 620ms;
  clip-path: circle(150% at 50% 50%);
}

.page-transition::before,
.page-transition::after {
  content: "";
  position: absolute;
  width: min(74vw, 840px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(184, 188, 196, 0.18);
  box-shadow:
    0 0 80px rgba(184, 188, 196, 0.1),
    inset 0 0 80px rgba(184, 188, 196, 0.06);
}

.page-transition::after {
  width: min(48vw, 540px);
  border-style: dashed;
  animation: transitionOrbit 8s linear infinite reverse;
}

.page-transition.is-ready {
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-transition.is-leaving {
  clip-path: circle(150% at 50% 50%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-transition__orb {
  position: absolute;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), transparent 8%),
    radial-gradient(circle, rgba(184, 188, 196, 0.32), rgba(15, 17, 22, 0.96) 68%);
  box-shadow:
    0 0 34px rgba(184, 188, 196, 0.32),
    inset -12px -14px 24px rgba(0, 0, 0, 0.56);
  animation: transitionOrbPulse 1.25s ease-in-out infinite;
}

.page-transition__label {
  position: absolute;
  top: calc(50% + 72px);
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 233, 0.62);
}

body.page-is-leaving > :not(.page-transition) {
  filter: blur(8px);
  transform: scale(0.985);
  opacity: 0.72;
  transition: filter 420ms ease, transform 420ms ease, opacity 420ms ease;
}

/* ── Dark cursor pack ── */
html,
body {
  cursor: url("dark/arrow.cur") 4 2, auto;
}

a,
button,
[tabindex="0"],
.about-photo-card {
  cursor: url("dark/hand.cur") 8 4, pointer;
}

input,
textarea,
[contenteditable="true"] {
  cursor: url("dark/ibeam.cur") 8 8, text;
}

/* ── Card 02 → 03 star message ── */
.star-thanks {
  position: fixed;
  inset: 0;
  z-index: 10500;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms ease;
}

.star-thanks.is-visible {
  opacity: 1;
}

.star-thanks.is-fading {
  opacity: 0;
  transition-duration: 1000ms;
}

.star-thanks__message {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--fg);
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  opacity: 0;
  text-shadow: 0 0 28px rgba(184, 188, 196, 0.62);
  animation: thanksMessageIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.star-thanks__star {
  position: absolute;
  left: var(--star-x);
  top: var(--star-y);
  color: rgba(220, 224, 232, 0.9);
  font-size: var(--star-size);
  text-shadow: 0 0 16px rgba(184, 188, 196, 0.9);
  opacity: 0;
  animation: starFloat 2.9s ease-out var(--star-delay) forwards;
}

@keyframes thanksMessageIn {
  0% { opacity: 0; transform: translate(-50%, -42%) scale(0.84); filter: blur(8px); }
  52% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); filter: blur(0); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes starFloat {
  0% { opacity: 0; transform: translate3d(0, 24px, 0) rotate(-20deg) scale(0.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--star-drift), -90px, 0) rotate(180deg) scale(1.15); }
}

/* ── Sound spam glitch ── */
.glitch-easter-egg {
  position: fixed;
  inset: 0;
  z-index: 11000;
  overflow: hidden;
  color: #d9e3df;
  background:
    radial-gradient(circle at 50% 45%, rgba(130, 255, 205, 0.08), transparent 28%),
    #030605;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.glitch-easter-egg.is-cracked {
  opacity: 1;
}

.glitch-easter-egg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(126, 255, 199, 0.2) 4px, transparent 5px),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(126, 255, 199, 0.05) 71px, transparent 72px);
  mix-blend-mode: screen;
  animation: terminalScan 1.1s steps(2, end) infinite;
}

.glitch-easter-egg__flash {
  position: absolute;
  inset: 0;
  background: #f3fff9;
  opacity: 0;
  animation: crackFlash 480ms steps(2, end) forwards;
}

.glitch-easter-egg__crack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(238, 255, 247, 0.95);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  filter:
    drop-shadow(0 0 4px rgba(194, 255, 227, 0.95))
    drop-shadow(0 0 22px rgba(126, 255, 199, 0.72));
  stroke-dasharray: 1900;
  stroke-dashoffset: 1900;
  animation: drawCrack 650ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

.glitch-terminal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100% - 36px));
  min-height: min(440px, calc(100% - 180px));
  padding: 18px;
  border: 1px solid rgba(126, 255, 199, 0.38);
  background: rgba(2, 9, 7, 0.76);
  box-shadow:
    0 0 0 1px rgba(126, 255, 199, 0.06),
    0 0 60px rgba(126, 255, 199, 0.1),
    inset 0 0 38px rgba(126, 255, 199, 0.05);
  font-family: "Courier New", monospace;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  filter: blur(7px);
  transition: opacity 520ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease;
}

.glitch-easter-egg.is-terminal .glitch-terminal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
}

.glitch-terminal__top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(126, 255, 199, 0.22);
  color: rgba(194, 255, 227, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glitch-terminal__top b {
  color: #ff6c80;
  animation: errorBlink 700ms steps(2, end) infinite;
}

.glitch-terminal__body {
  display: grid;
  gap: 9px;
  color: rgba(194, 255, 227, 0.78);
  font-size: clamp(0.68rem, 1.8vw, 0.9rem);
  line-height: 1.45;
}

.glitch-terminal__body div {
  opacity: 0;
  animation: terminalLineIn 260ms ease var(--line-delay) forwards;
}

.glitch-terminal__hint {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: rgba(194, 255, 227, 0.42);
  font-size: 0.68rem;
  animation: terminalHintBlink 1.1s steps(2, end) infinite;
}

body.is-glitched > :not(.glitch-easter-egg) {
  filter: blur(1.4px) contrast(1.28) saturate(0.48);
  animation: pageGlitch 150ms steps(2, end) infinite;
}

@keyframes crackFlash {
  0%, 72% { opacity: 0; }
  76% { opacity: 0.88; }
  82% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes drawCrack {
  to { stroke-dashoffset: 0; }
}

@keyframes terminalScan {
  0% { transform: translateY(-8px); }
  100% { transform: translateY(8px); }
}

@keyframes errorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0.26; }
}

@keyframes terminalLineIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes terminalHintBlink {
  0%, 48% { opacity: 0.35; }
  49%, 100% { opacity: 0.8; }
}

@keyframes pageGlitch {
  0% { transform: translate(0); }
  25% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(0, 1px); }
  100% { transform: translate(0); }
}

/* ── Main → About → Biography GIF sequence ── */
.gif-invasion {
  position: fixed;
  inset: 0;
  z-index: 10400;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(184, 188, 196, 0.05), transparent 48%);
  transition: opacity 500ms ease;
}

.gif-invasion.is-visible {
  opacity: 1;
}

.gif-invasion__heading {
  position: fixed;
  left: 50%;
  top: 82px;
  z-index: 3;
  padding: 8px 14px;
  border: 1px solid rgba(184, 188, 196, 0.24);
  border-radius: 999px;
  color: rgba(246, 241, 233, 0.58);
  background: rgba(5, 5, 5, 0.52);
  backdrop-filter: blur(12px);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.gif-popup {
  position: fixed;
  left: clamp(155px, var(--popup-x), calc(100vw - 155px));
  top: clamp(150px, var(--popup-y), calc(100vh - 150px));
  width: clamp(170px, 20vw, 290px);
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(184, 188, 196, 0.46);
  border-radius: 12px;
  background: rgba(10, 10, 12, 0.82);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(184, 188, 196, 0.12);
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--popup-rotation)) scale(0.2);
  opacity: 0;
  animation: gifPopupIn 700ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--popup-index) * 130ms) forwards;
  transition: opacity 240ms ease, transform 240ms ease;
}

.gif-popup.is-closing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7) rotate(8deg);
}

.gif-popup figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 0 2px 5px 5px;
  color: rgba(246, 241, 233, 0.6);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gif-popup figcaption button {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(246, 241, 233, 0.22);
  border-radius: 50%;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: url("dark/hand.cur") 8 4, pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gif-popup figcaption button:hover {
  border-color: rgba(184, 188, 196, 0.7);
  background: rgba(184, 188, 196, 0.18);
  transform: rotate(90deg);
}

.gif-popup img {
  width: 100%;
  aspect-ratio: 1.25;
  display: block;
  border-radius: 7px;
  object-fit: cover;
  background: #08090a;
}

@keyframes gifPopupIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate(-50%, -50%) scale(0.2) rotate(-18deg);
  }
  70% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1.05) rotate(var(--popup-rotation));
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1) rotate(var(--popup-rotation));
  }
}

@media (max-width: 800px) {
  .gif-invasion__heading {
    top: 72px;
    width: max-content;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gif-popup {
    left: clamp(105px, var(--popup-x), calc(100vw - 105px));
    top: clamp(135px, var(--popup-y), calc(100vh - 115px));
    width: min(43vw, 190px);
  }
}

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

@keyframes transitionOrbPulse {
  0%, 100% { transform: scale(0.9); filter: brightness(0.86); }
  50% { transform: scale(1.08); filter: brightness(1.2); }
}

/* Final Discord profile state: keep this after responsive overrides. */
.discord-profile {
  z-index: 80;
  top: 50%;
  width: min(410px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 8px;
  background: #111214;
  transform: translate(-50%, -46%) scale(0.92);
  transform-origin: center;
  visibility: hidden;
}

.discord-profile.is-expanded {
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.discord-profile__banner {
  height: 126px;
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(88, 101, 242, 0.35), rgba(35, 39, 47, 0.45)),
    url("assets/banner.jpg") center / cover no-repeat,
    var(--discord-banner-accent, #5865f2);
}

.discord-profile__banner.has-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)), var(--discord-banner-image);
  background-position: center;
  background-size: cover;
}

.discord-profile__banner.has-banner::after {
  display: none;
}

.discord-profile__body {
  padding: 58px 22px 22px;
}

.discord-profile__avatar {
  position: absolute;
  top: -54px;
  left: 50%;
  width: 104px;
  height: 104px;
  margin: 0;
  border: 0;
  transform: translateX(-50%);
}

.discord-profile__avatar img {
  border: 7px solid #111214;
}

.discord-profile__identity small {
  display: block;
}

.discord-profile__track-icon {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
}

.discord-profile__track-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.discord-profile__track-icon.has-cover img {
  display: block;
}

.discord-profile__actions {
  display: grid;
}

.discord-server-button {
  justify-content: center;
}

.discord-profile.is-cracked {
  animation: discordCrack 380ms steps(2, end);
}

.discord-profile.is-cracked::before {
  display: none;
}

.discord-profile.is-cracked::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  display: block;
  pointer-events: none;
  transform: none;
  opacity: 1;
  background:
    linear-gradient(118deg, transparent 42%, rgba(255,255,255,.85) 42.3%, transparent 43%) 47% 0 / 56% 58% no-repeat,
    linear-gradient(58deg, transparent 47%, rgba(255,255,255,.65) 47.3%, transparent 48%) 70% 45% / 48% 48% no-repeat,
    linear-gradient(137deg, transparent 46%, rgba(255,255,255,.55) 46.3%, transparent 47%) 20% 60% / 52% 42% no-repeat;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.65));
}

@media (max-width: 520px) {
  .discord-profile {
    max-height: calc(100vh - 18px);
  }

  .discord-profile__banner {
    height: 112px;
  }

  .discord-profile__body {
    padding: 54px 16px 16px;
  }
}
