.avatar > .optional-image,
.optional-image.loaded {
  opacity: 1 !important;
  transition: none !important;
  z-index: 2;
}
.avatar-placeholder { display: none !important; }

html.from-intro.is-in .avatar,
html:not(.from-intro) .avatar {
  animation: name-enter 1.1s cubic-bezier(.16, 1, .3, 1) .15s both;
}

html.from-intro .loader { display: none !important; }
html.from-intro body,
html.from-intro.is-in body {
  opacity: 1;
  transition: none;
}
.header .brand-wordmark strong,
.hero-name,
.hero-name.gradient-text {
  filter: none;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.scene-mesh,
.scene-grid,
.orb,
#spark-field,
.scene-noise { position: absolute; inset: 0; }
.scene-mesh {
  inset: -12%;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(var(--first-rgb), .2), transparent 42%),
    radial-gradient(ellipse at 82% 8%, rgba(var(--glow-rgb), .22), transparent 40%),
    radial-gradient(ellipse at 58% 86%, rgba(90, 140, 255, .12), transparent 46%);
  background-size: 130% 130%;
  animation: mesh-shift 32s ease-in-out infinite alternate;
  transform: translate3d(calc(var(--px, 0) * 28px), calc(var(--py, 0) * 20px), 0);
}
.scene-grid {
  inset: -8%;
  background-image:
    linear-gradient(rgba(140, 210, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 210, 230, .045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at 50% 28%, #000 18%, transparent 72%);
  transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px), 0);
}
.orb {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: .45;
}
.orb-a { inset: auto auto 12% -40px; background: rgba(var(--first-rgb), .22); translate: calc(var(--px, 0) * -36px) calc(var(--py, 0) * -18px); }
.orb-b { inset: 18% -80px auto auto; width: 340px; height: 340px; background: rgba(var(--glow-rgb), .2); translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * 16px); }
.orb-c { inset: auto 22% -120px auto; width: 220px; height: 220px; background: rgba(120, 170, 255, .16); translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * -24px); }
#spark-field { width: 100%; height: 100%; }
.scene-noise {
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/></svg>");
}
@keyframes mesh-shift {
  from { background-position: 0% 0%; }
  to { background-position: 12% 8%; }
}

.header,
.header.scrolled,
.header.menu-open {
  top: 12px;
  left: 0;
  right: 0;
  width: min(1140px, calc(100% - 24px));
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(7, 11, 22, .62);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}
.header.scrolled {
  background: rgba(7, 11, 22, .84);
  border-color: rgba(var(--glow-rgb), .32);
}

.header.scrolled .nav { height: 72px; }


.hero-copy {
  transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 7px), 0);
}
.hero-name,
.hero-name.gradient-text {
  font-size: clamp(3.35rem, 7.2vw, 6.7rem);
  letter-spacing: -0.045em;
}
.dev-name {
  animation: name-enter 1.1s cubic-bezier(.16, 1, .3, 1) 1.4s both, soft-glitch 8s ease-in-out 2.6s infinite;
}
@keyframes soft-glitch {
  0%, 90%, 100% { transform: none; text-shadow: none; }
  93% { transform: translateX(-1px); text-shadow: 2px 0 rgba(var(--first-rgb), .45); }
  96% { transform: translateX(1px); text-shadow: -2px 0 rgba(var(--glow-rgb), .4); }
}

.intro-name { letter-spacing: -1px; }
.intro-name span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-progress {
  width: min(220px, 60vw);
  height: 2px;
  margin: 18px auto 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.intro-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  animation: intro-load 1.15s ease forwards;
}
@keyframes intro-load { to { width: 100%; } }

.skill-card,
.project-card,
.life-card,
.social-card,
.donate-panel,
.contact-panel,
.qr-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)),
    color-mix(in srgb, var(--theme-surface) 82%, transparent);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.depth-card { position: relative; }
.skills-grid,
.social-grid { perspective: 900px; }
.project-placeholder,
.project-art { transition: transform .55s ease; }
.project-card:hover .project-placeholder { transform: scale(1.045) translateZ(12px); }
.project-card:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 0, .38), 0 0 28px rgba(var(--glow-rgb), .16);
}
.tags span {
  border: 1px solid rgba(var(--first-rgb), .28);
  background: rgba(var(--first-rgb), .08);
}

.button,
.explore-trigger,
.closing-explore {
  --mx: 0px;
  --my: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover,
.explore-trigger:hover,
.closing-explore:hover {
  transform: translate3d(var(--mx), var(--my), 0);
  box-shadow: 0 10px 28px rgba(var(--glow-rgb), .22);
}
.button:active,
.explore-trigger:active,
.closing-explore:active {
  transform: translate3d(var(--mx), var(--my), 0);
}
.button:not(.primary)::before,
.explore-trigger::before,
.closing-explore::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-160%);
  pointer-events: none;
}
.button:not(.primary):hover::before,
.explore-trigger:hover::before,
.closing-explore:hover::before { animation: btn-sheen .9s cubic-bezier(.16,1,.3,1); }
.primary:hover { box-shadow: 0 10px 32px rgba(var(--glow-rgb), .38); }
@keyframes btn-sheen { to { transform: translateX(420%); } }

.section { position: relative; }
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--glow-rgb), .45), transparent);
  pointer-events: none;
}

.dev-status {
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
}
.dev-status span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .78rem;
}
.dev-status b {
  color: #e8f7ff;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .68rem;
}

.style-controls {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
  touch-action: manipulation;
  user-select: auto;
}
.style-toggle {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--glow-rgb), .4);
  background: rgba(8, 12, 24, .78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
}
.style-toggle > span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(var(--glow-rgb), .8);
}
.style-panel {
  width: min(300px, calc(100vw - 24px));
  max-height: min(420px, calc(100svh - 96px));
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 12, 24, .78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.style-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.style-panel[hidden] { display: none; }
.style-panel-head { align-items: center; }
.style-panel-head .eyebrow { margin: 0; }
.style-lead, .fx-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .78rem;
}
.fx-label {
  margin-top: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .68rem;
  color: #d5def2;
}
.accent-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.accent-options button { min-height: 44px; padding: 8px 6px; font-size: .72rem; }
.glow-shortcut, .fx-row { width: 100%; justify-content: space-between; }
html, body { overflow-x: clip; }

.music-widget {
  overflow: visible;
  left: 78px;
  right: auto;
  bottom: 14px;
  z-index: 80;
  touch-action: none;
}
.music-widget:not(.compact) {
  width: min(292px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
  max-height: calc(100dvh - 24px);
}
.music-widget:not(.compact) .music-shell {
  max-height: calc(100svh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.music-widget .music-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.music-widget.is-settling {
  transition: left .22s cubic-bezier(.16, 1, .3, 1), top .22s cubic-bezier(.16, 1, .3, 1);
}
.music-widget.widget-dragging { transition: none; }
.music-widget.flip-left .hamster-mascot,
.music-widget.flip-left .hamster-mascot:hover {
  left: auto;
  right: 0;
}
.music-widget .music-mini { display: none; }
.music-widget.music-widget.compact {
  width: 68px;
  height: 68px;
  background: none;
  box-shadow: none;
}
.music-widget.compact .hamster-mascot,
.music-widget.compact .hamster-mascot:hover {
  left: 0;
  bottom: 0;
}
.music-widget .hamster-mascot,
.music-widget .hamster-mascot:hover {
  --ham: 68px;
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  top: auto;
  width: var(--ham);
  height: var(--ham);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  min-width: 0;
  min-height: 0;
  transform: none;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}
.hamster-dance {
  position: absolute;
  inset: 0;
  background: url('images/hamster-sprite.png') 0 0 / calc(54 * var(--ham)) var(--ham) no-repeat;
  animation: hamsterSteps 2.16s steps(54, end) infinite;
  animation-play-state: paused;
}
.music-widget.is-playing .hamster-dance { animation-play-state: running; }
@keyframes hamsterSteps {
  from { background-position-x: 0; }
  to { background-position-x: calc(var(--ham) * -54); }
}
.hamster-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(8, 12, 22, .88);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #e8eefc;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.hamster-tip.is-on { opacity: 1; }
@media (max-width: 760px) {
  .music-widget.music-widget.compact { width: 52px; height: 52px; }
  .music-widget .hamster-mascot,
  .music-widget .hamster-mascot:hover {
    --ham: 52px;
    left: 0;
    bottom: 0;
    top: auto;
    transform: none;
  }
  .music-widget.compact .hamster-mascot,
  .music-widget.compact .hamster-mascot:hover {
    left: 0;
    bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hamster-dance { animation: none; }
}
.music-widget .music-head,
.music-widget .music-track,
.music-widget .music-status,
.music-widget .music-mini-label,
.music-widget .playlist-heading,
.music-widget .music-footer,
.music-widget .music-times {
  cursor: grab;
  touch-action: none;
}
.music-widget.widget-dragging,
.music-widget.widget-dragging .music-head,
.music-widget.widget-dragging .music-track { cursor: grabbing; }
.music-widget button,
.music-widget input,
.music-widget a,
.music-widget label { cursor: pointer; touch-action: manipulation; }
.music-widget input[type="range"] { touch-action: none; min-height: 44px; }

.global-pointer-glow {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(var(--first-rgb), .09), rgba(var(--glow-rgb), .05) 36%, transparent 70%);
  transition: opacity .45s ease;
  mix-blend-mode: screen;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--purple));
  border-radius: 99px;
  border: 2px solid #070b16;
}
.back-top {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  line-height: 1;
  font-size: 15px;
  z-index: 40;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35), 0 0 18px rgba(var(--glow-rgb), .2);
}
.back-top[hidden] { display: none !important; }
.back-top::before { border-radius: 50%; }
.back-top small {
  position: static;
  display: block;
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: #d7fff8;
}

.touch-press { transform: scale(.985); }

@media (hover: hover) and (pointer: fine) {
  .skill-card,
  .project-card,
  .life-card,
  .social-card,
  .donate-panel,
  .contact-panel {
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
  }
}
@media (max-width: 760px) {
  .header,
  .header.scrolled,
  .header.menu-open {
    top: 8px;
    width: calc(100% - 16px);
    border-radius: 16px;
  }

  .hero-name,
  .hero-name.gradient-text { font-size: clamp(3.15rem, 13vw, 4.4rem); letter-spacing: -0.04em; }
  .hero-copy { transform: none; }
  .scene-grid { opacity: .45; }
  .orb { filter: blur(18px); opacity: .28; }
  .style-controls { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-mesh,
  .dev-name,
  .intro-progress span,
  .button::before { animation: none; }
  .hero-copy,
  .scene,
  .scene-mesh,
  .scene-grid { transform: none; }
}
html[data-fx="calm"] .scene-mesh,
html[data-fx="calm"] .ambient i,
html[data-fx="calm"] .dev-name,
html[data-fx="calm"] .orb { animation: none; }
html[data-fx="calm"] #spark-field,
html[data-fx="calm"] .scene-grid { opacity: .2; }
html[data-fx="calm"] .depth-card { rotate: none; }
html[data-fx="calm"] .hero-copy,
html[data-fx="calm"] .scene,
html[data-fx="calm"] .scene-mesh,
html[data-fx="calm"] .scene-grid { transform: none; }
html[data-fx="calm"] .tilt-card { transform: none; }

.tilt-shell {
  min-width: 0;
}
.tilt-hitbox {
  height: 100%;
  perspective: 1000px;
}
.tilt-hitbox > .tilt-card {
  height: 100%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.is-tilting > .depth-shine { opacity: 1; }
.depth-shine { pointer-events: none; }

@media (max-width: 1050px) and (min-width: 761px) {
  .tilt-shell:has(.hero-visual) { transform: scale(.87); transform-origin: center; }
  .tilt-hitbox > .hero-visual { transform: none; }
}
@media (max-width: 760px) {
  .tilt-shell:has(.hero-visual) { transform: none; }
  .tilt-hitbox > .hero-visual { transform: none; }
  .nav { height: 58px !important; max-height: 58px !important; }
  .header,
  .header.scrolled,
  .header.menu-open {
    position: fixed !important;
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    translate: none !important;
    z-index: 200 !important;
    background: rgba(8, 12, 22, .94) !important;
  }






  .header,
  .header.menu-open { z-index: 80; }
  .nav { position: relative; }


  .hero { padding-top: calc(124px + env(safe-area-inset-top)); }

  .header.menu-open ~ .music-widget,
  body.menu-lock .music-widget,
  body.menu-lock .zip-fab,
  body.menu-lock .style-controls,
  body.menu-lock .motion-permit,
  body.menu-lock #back-top {
    visibility: hidden;
    pointer-events: none;
  }
}
@media (max-width: 380px) {
  .tilt-shell:has(.hero-visual) { transform: scale(.78); transform-origin: center; }
  .tilt-hitbox > .hero-visual { transform: none; }
}

.zip-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 230, 238, .55);
  background: rgba(7, 11, 22, .88);
  color: #78e6ee;
  font: 600 .85rem/1 "Be Vietnam Pro", system-ui, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 18px rgba(120, 230, 238, .25);
}
.zip-fab:hover { color: #fff; }





.qr-panel {
  width: clamp(260px, 22vw, 320px);
  max-width: 100%;
  margin-inline: auto;
}
.qr-panel .qr-crop,
.qr-panel .qr-crop.qr-static {
  aspect-ratio: auto;
  width: 100%;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
}
.qr-panel img,
.qr-panel .qr-static img {
  position: static;
  inset: auto;
  left: auto;
  top: auto;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 22px;
  opacity: 1;
  transition: opacity .22s ease;
}
@media (max-width: 760px) {
  .qr-panel { width: min(360px, calc(100% - 24px)); }
}

body.snake-open .music-widget.snake-tucked { width: 220px; }
.snake-dock {
  width: min(980px, calc(100% - 20px));
  max-height: min(94svh, 820px);
  margin: auto;
  padding: 14px;
  border: 1px solid rgba(120, 230, 238, .28);
  border-radius: 22px;
  color: #eef3ff;
  background: rgba(8, 12, 24, .94);
  box-shadow: 0 24px 80px #000a;
}
.snake-dock::backdrop { background: rgba(3, 6, 14, .78); }
.snake-top, .snake-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.snake-top strong { display: block; letter-spacing: .08em; font-size: .82rem; }
#snake-state, #ntjr-status { color: #8ef0e4; font-size: .68rem; letter-spacing: .12em; }
.snake-scores { display: flex; gap: 12px; margin-right: auto; font-size: .72rem; color: #b7c0d8; }
.snake-scores b { color: #fff; font-size: .95rem; }
.snake-top button, .snake-actions button, .ntjr-presets button, .snake-pad button, #snake-start {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(187, 140, 255, .35);
  background: rgba(255, 255, 255, .04);
  color: #e7edff;
}
#snake-ntjr.ntjr-orb {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 84px;
  height: 84px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(120, 230, 238, .55);
  background: radial-gradient(circle at 50% 42%, rgba(28, 40, 58, .55), rgba(7, 11, 20, .94) 70%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(187, 140, 255, .28), 0 0 16px rgba(120, 230, 238, .16);
  color: #e9fff8;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#snake-ntjr.ntjr-orb[aria-expanded="true"] {
  border-color: #78e6ee;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(120, 230, 238, .45), 0 0 20px rgba(120, 230, 238, .28);
}
.ntjr-orb-float {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  animation: orb-idle 3.8s ease-in-out infinite;
}
.ntjr-orb-float::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(187, 140, 255, .32);
  pointer-events: none;
}
.ntjr-orb-float::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(120, 230, 238, .8) 84%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 66%);
  mask: radial-gradient(circle, transparent 63%, #000 66%);
  animation: orb-spin 9s linear infinite;
  pointer-events: none;
}
.ntjr-orb-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
  letter-spacing: .12em;
  font-size: .62rem;
  font-weight: 750;
}
.ntjr-orb-copy small { font-size: .58rem; letter-spacing: .14em; color: #b7fff4; }
.ntjr-orb-copy-on { display: none; }
#snake-ntjr[aria-expanded="true"] .ntjr-orb-copy-off { display: none; }
#snake-ntjr[aria-expanded="true"] .ntjr-orb-copy-on { display: flex; }
.ntjr-orb-dot {
  position: absolute;
  top: 14px;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7dffa8;
  box-shadow: 0 0 8px #7dffa8aa;
}
#snake-ntjr:hover .ntjr-orb-float { animation-play-state: paused; transform: scale(1.03); }
#snake-ntjr:active .ntjr-orb-float,
#snake-ntjr.is-dragging .ntjr-orb-float { animation: none; transform: scale(.97); }
#snake-ntjr.is-dragging { cursor: grabbing; }
@keyframes orb-idle { 50% { transform: translate3d(0, -2px, 0); } }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  #snake-ntjr.ntjr-orb { width: 66px; height: 66px; }
  .ntjr-orb-copy { font-size: .52rem; letter-spacing: .08em; }
  .ntjr-orb-copy small { font-size: .48rem; }
  .ntjr-orb-dot { top: 10px; }
}
.snake-layout { display: block; margin-top: 12px; }
.snake-stage { position: relative; }
#snake-board {
  display: block;
  width: min(100%, 560px);
  margin-inline: auto;
  height: auto;
  border-radius: 18px;
  background: #070b16;
  touch-action: none;
}
.snake-flags { display: flex; justify-content: space-between; gap: 8px; min-height: 22px; margin-top: 6px; font: 600 .75rem/1.4 ui-monospace, monospace; color: #c9b6ff; }
#snake-god { color: #f3d27a; }
.snake-overlay {
  position: absolute;
  inset: 0 0 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 18px;
  background: rgba(5, 8, 16, .62);
  text-align: center;
}
.snake-overlay[hidden] { display: none; }
#snake-overlay-title { margin: 0; letter-spacing: .16em; font-size: .95rem; }
#snake-overlay-detail { margin: 0; color: #c9d4ea; font-size: .82rem; }
.snake-pad { display: none; }
.ntjr { position: fixed; top: 76px; right: 16px; z-index: 90; display: flex; flex-direction: column; width: min(460px, calc(100vw - 24px)); max-height: 75vh; padding: 0 0 8px; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255,255,255,.12); background: rgba(28,28,30,.92); color: #f2f2f7; box-shadow: 0 24px 60px rgba(0,0,0,.45); backdrop-filter: blur(28px) saturate(1.4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ntjr[hidden] { display: none; }
.ntjr-head { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 14px 14px 8px; cursor: grab; user-select: none; touch-action: none; }
.ntjr-head b { display: block; letter-spacing: -.03em; font-size: 1.15rem; font-weight: 700; }
.ntjr-head small { color: rgba(235,235,245,.55); font-size: .72rem; }
.ntjr-chip { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(180deg,#64d2ff,#0a84ff); color: white; font-weight: 700; }
.ntjr-online { color: rgba(235,235,245,.6); font-size: .68rem; white-space: nowrap; }
#ntjr-close { width: 30px; min-height: 30px; padding: 0; border-radius: 50%; border: 0; background: rgba(120,120,128,.32); color: rgba(235,235,245,.8); font-size: 1.05rem; }
.ntjr-body { display: grid; grid-template-columns: 84px minmax(0,1fr); min-height: 260px; border-top: 1px solid rgba(255,255,255,.06); }
.ntjr-side { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; background: rgba(0,0,0,.28); }
.ntjr-side button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; border-radius: 10px; background: transparent; color: rgba(235,235,245,.62); font-size: .62rem; font-weight: 650; }
.ntjr-side button i { font-style: normal; font-size: .95rem; line-height: 1; }
.ntjr-side button.is-on { color: #7ee8ff; background: rgba(10,132,255,.16); }
.ntjr-main { overflow: auto; max-height: min(52dvh, 440px); padding: 8px 0 10px; }
.ntjr-pane { display: none; }
.ntjr-pane.is-on { display: block; }
.ntjr-presets { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 10px 8px; }
.ntjr-presets button { min-height: 44px; width: 100%; padding: 8px 12px; border: 0; border-radius: 12px; background: #2c2c30; color: #f2f2f7; font-size: .9rem; font-weight: 650; }
.ntjr-presets button.is-on { color: #fff; background: #0a84ff; }
.ntjr-group { margin: 4px 16px 8px; font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: rgba(235,235,245,.55); }
.ntjr-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 48px; margin: 0 10px 8px; padding: 0 14px; border: 0; border-radius: 12px; background: #2c2c30; font-size: 15px; white-space: nowrap; }
.ntjr-row input[type="checkbox"] { appearance: none; width: 51px; height: 31px; margin: 0; border: 0; border-radius: 99px; background: rgba(120,120,128,.36); position: relative; }
.ntjr-row input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.2,.9,.3,1.15); }
.ntjr-row input[type="checkbox"]:checked { background: #34c759; }
.ntjr-row input[type="checkbox"]:checked::after { transform: translateX(20px); }
.ntjr-row input[type="range"] { width: 118px; accent-color: #0a84ff; }
.ntjr-row select { min-height: 30px; border: 0; border-radius: 8px; background: rgba(118,118,128,.28); color: #0a84ff; font-weight: 600; padding: 0 8px; }
@media (max-width: 760px) {
  .ntjr { left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 16px)); max-height: min(72dvh, calc(100dvh - 32px)); z-index: 120; }
}
.ntjr-foot {
  padding: 8px 12px;
  border-top: 1px solid rgba(120, 230, 238, .18);
  color: #9ff7e4;
  font-size: .68rem;
  letter-spacing: .12em;
}
.snake-actions { margin-top: 10px; }
@media (max-width: 760px) {
  .snake-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
  .ntjr {
    position: fixed;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(340px, calc(100vw - 28px));
    max-height: min(72dvh, calc(100dvh - 32px));
    margin: 0;
    z-index: 120;
  }
  .ntjr-head { cursor: grab; touch-action: none; }
  .ntjr-row { font-size: 14px; min-height: 42px; }
  .ntjr-scroll { max-height: min(46dvh, 420px); }
}
@media (prefers-reduced-motion: reduce) {
  .ntjr-orb-float,
  .ntjr-orb-float::after { animation: none; }
}
.mini-snake-art { background: #070b16; min-height: 148px; }
.snake-scene { display: block; width: 100%; height: auto; }
.snake-food-orb { transform-origin: 262px 78px; animation: food-float 2.8s ease-in-out infinite; }
.snake-head { filter: drop-shadow(0 0 6px rgba(94, 240, 210, .45)); }
@keyframes food-float { 50% { transform: translateY(-2px); } }
.motion-permit {
  position: fixed;
  left: 16px;
  bottom: 72px;
  z-index: 70;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 230, 238, .4);
  background: rgba(7, 11, 22, .88);
  color: #d7fff8;
  font: 600 .78rem/1 system-ui, sans-serif;
}
@media (hover: hover) and (pointer: fine) { .motion-permit { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .snake-food-orb, .snake-head { animation: none; filter: none; }
}

html.page-hidden *,
html.page-hidden *::before,
html.page-hidden *::after {
  animation-play-state: paused !important;
}
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  #spark-field,
  .scene-noise,
  .orb,
  .hero-visual:before,
  .intro-orbit,
  .clock-horizon:before,
  .clock-horizon:after,
  .closing-lines {
    display: none !important;
  }
  .scene-mesh,
  .scene-grid,
  .scene,
  .intro-orbit-one,
  .intro-orbit-two,
  .snake-food-orb {
    animation: none !important;
    transform: none !important;
  }
  .header,
  .header.scrolled,
  .header.menu-open,
  .music-shell,
  .style-toggle,
  .style-panel,
  .nav-links,
  .photo-viewer,
  .explorer::backdrop,
  .memory-photo:before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .music-widget:not(.compact),
  .music-widget:not(.compact) .music-shell {
    max-height: min(390px, calc(100dvh - 180px));
  }
  .snake-pad {
    display: grid;
    grid-template-columns: repeat(3, 72px);
    grid-template-areas: ". up ." "left down right";
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
  }
  .snake-pad [data-dir="up"] { grid-area: up; }
  .snake-pad [data-dir="left"] { grid-area: left; }
  .snake-pad [data-dir="down"] { grid-area: down; }
  .snake-pad [data-dir="right"] { grid-area: right; }
  .snake-pad button {
    min-height: 56px;
    font-size: 1.25rem;
    touch-action: manipulation;
  }
}
.zip-fab {
  left: 50%;
  right: auto;
  top: auto;
  bottom: calc(120px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2147483000;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid #fff;
  background: #78e6ee;
  color: #071016;
  font-weight: 800;
}

/* Current menu compatibility and small-screen layout. */
#snake-dock #ntjr{width:min(460px,calc(100vw - 24px));height:auto;max-height:min(75dvh,calc(100dvh - 24px));border-radius:28px;background:rgba(28,28,30,.96);-webkit-backdrop-filter:blur(28px) saturate(1.4)}
#snake-dock #ntjr .ntjr-body{min-height:0;overflow:hidden;flex:1}
#snake-dock #ntjr .ntjr-main{min-width:0;min-height:0;overscroll-behavior:contain}
#snake-dock #ntjr .ntjr-row{white-space:normal;gap:10px;padding:8px 12px;font-size:13px}
#snake-dock #ntjr .ntjr-row span{overflow:visible}
#snake-dock #ntjr .ntjr-row input[type=range]{width:95px;min-width:0}
#snake-dock #ntjr .ntjr-head{flex:none;background:transparent;border-bottom:0}
#snake-dock #ntjr-close{width:44px;min-height:44px;cursor:pointer}
#snake-dock #ntjr .ntjr-foot{flex:none}
#snake-dock #ntjr .ntjr-row input[type=checkbox]:active::after{width:27px}
#snake-dock #ntjr .ntjr-row input[type=checkbox]:checked::after{transform:translateX(20px)}
#snake-dock #ntjr .ntjr-pane:not(.is-on){display:none!important}
#snake-dock #ntjr :is(button,input,select):focus-visible{outline:2px solid #64d2ff;outline-offset:3px}
@media(max-width:760px){#snake-dock #ntjr{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:calc(100vw - 16px);max-height:calc(100dvh - 24px)}#snake-dock #ntjr .ntjr-body{grid-template-columns:72px minmax(0,1fr)}#snake-dock #ntjr .ntjr-main{max-height:calc(100dvh - 180px)}}
@media(max-width:350px){#snake-dock #ntjr .ntjr-head{gap:7px;padding-inline:10px}#snake-dock #ntjr .ntjr-chip{width:28px;height:28px}#snake-dock #ntjr .ntjr-head b{font-size:1rem}#snake-dock #ntjr .ntjr-row:has(input[type=range]){grid-template-columns:1fr}#snake-dock #ntjr .ntjr-row input[type=range]{width:100%}}

.skill-ios .skill-icon {
  border-radius: 14px;
  font-size: .78rem;
  letter-spacing: -.03em;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.04) 46%, transparent),
    rgba(10, 14, 26, .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 8px 16px rgba(0,0,0,.2);
}



/* Floating motion invitation. Scoped to keep the site's menus and cards untouched. */
.nt-motion-notice {
  --nt-motion-top: 84px;
  position: fixed;
  z-index: 79;
  top: max(var(--nt-motion-top), calc(env(safe-area-inset-top, 0px) + 12px));
  right: max(18px, env(safe-area-inset-right, 0px));
  width: min(400px, calc(100% - 32px));
  max-height: calc(100dvh - max(var(--nt-motion-top), env(safe-area-inset-top, 0px)) - 20px - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  color: #f8f8ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.97);
  transform-origin: 50% 0;
  transition: opacity .32s ease, transform .55s cubic-bezier(.22,1.18,.36,1), visibility .32s;
  pointer-events: none;
  box-shadow: 0 18px 52px #03071355, 0 3px 12px #0002;
}
.nt-motion-notice.is-in { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.nt-motion-notice.is-obscured { opacity: 0; visibility: hidden; pointer-events: none; }
.nt-motion-notice [hidden] { display: none !important; }
.nt-motion-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #e5f2ff42;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffffff19, #cceeff08 45%, #c5b2ff19), #182034;
  box-shadow: inset 0 1px 0 #ffffff50, inset 0 -1px 0 #ffffff0c;
}
.nt-motion-glass::before {
  content: "";
  position: absolute;
  inset: -50px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 0, #bdfaff23, transparent 65%), radial-gradient(ellipse at 95% 90%, #bfa7ff1f, transparent 60%);
  transform: translate(var(--nt-light-x, 0px), var(--nt-light-y, 0px));
}
.nt-motion-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 #f3ffff75, inset 1px 0 0 #e0eaff26;
  opacity: .5;
}
.nt-motion-notice.is-in .nt-motion-glass::after { animation: nt-motion-edge .8s ease-out; }
.nt-motion-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nt-motion-brand { display: flex; align-items: center; gap: 7px; color: #d0d9ec; font-size: 9px; font-weight: 650; letter-spacing: 1.4px; }
.nt-motion-brand i { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #9cf1e5, #bda8ff); }
.nt-motion-device { border: 1px solid #ffffff22; border-radius: 99px; padding: 4px 8px; background: #ffffff08; color: #d9e6fa; font-size: 9px; line-height: 1.5; letter-spacing: .5px; }
.nt-motion-content { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; }
.nt-motion-copy h2 { margin: 0 0 7px; color: #f8f8ff; font-size: 18px; font-weight: 650; line-height: 1.25; letter-spacing: -.5px; }
.nt-motion-copy p { margin: 0; color: #c9d2e5; font-size: 13px; line-height: 1.55; }
.nt-motion-art { position: relative; height: 84px; display: grid; place-items: center; perspective: 400px; }
.nt-motion-phone { position: relative; width: 43px; height: 75px; padding: 3px; border: 1px solid #ffffffaa; border-radius: 12px; background: linear-gradient(145deg, #f5fbff, #d9e9f3 42%, #aaabd8 74%, #edf5ff); box-shadow: inset 0 0 0 1px #5b67804a, 4px 8px 16px #03050a60; transform: rotateY(-19deg) rotateX(9deg); }
.nt-motion-notice.is-in .nt-motion-phone { animation: nt-motion-phone 2.8s ease-in-out 2; }
.nt-motion-phone::before { content: ""; position: absolute; z-index: 2; top: 4px; left: 50%; transform: translateX(-50%); width: 15px; height: 5px; border-radius: 9px; background: #222536; }
.nt-motion-phone::after { content: ""; position: absolute; inset: 2px; border-radius: 10px; background: linear-gradient(110deg, transparent 22%, #fff8 37%, transparent 52%); opacity: .48; }
.nt-motion-screen { height: 100%; border-radius: 9px; background: radial-gradient(circle at 50% 30%, #b5e8f7, #8198d8 50%, #6a66a6); display: flex; align-items: end; justify-content: center; padding-bottom: 9px; }
.nt-motion-screen b { font-size: 9px; letter-spacing: -1px; color: #fff; }
.nt-motion-monitor { position: absolute; inset: 12px 0 16px; padding: 8px; display: flex; gap: 3px; border: 1px solid #f2ffff65; border-radius: 12px; background: linear-gradient(135deg, #b8faff35, #bdb1ff12); box-shadow: inset 0 1px #ffffff77, 0 8px 18px #03081240; transform: rotateY(-20deg) rotateZ(-8deg); }
.nt-motion-monitor i { width: 3px; height: 3px; border-radius: 50%; background: #d8f7f7; }
.nt-motion-cursor { position: absolute; width: 44px; height: 54px; right: -5px; bottom: 2px; filter: drop-shadow(2px 5px 3px #080c1838); }
.nt-motion-actions { display: flex; gap: 9px; margin-top: 18px; }
.nt-motion-actions button { position: relative; overflow: hidden; min-height: 46px; padding: 9px 16px; border-radius: 15px; font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; touch-action: manipulation; transition: transform .16s cubic-bezier(.16,1,.3,1); }
.nt-motion-actions button:active { transform: scale(.97); }
.nt-motion-actions button:focus-visible { outline: 2px solid #9af1ef; outline-offset: 3px; }
.nt-motion-actions button::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent, #ffffff45, transparent); transition: opacity .2s; }
.nt-motion-actions button:hover::after, .nt-motion-actions button:active::after { opacity: 1; }
.nt-motion-enable { flex: 1; border: 1px solid #f3f4ff99; background: linear-gradient(110deg, #d7fffc, #ddd9ff 60%, #eee4ff); color: #17182a; box-shadow: inset 0 1px #fff, 0 4px 14px #bfd7ff18; }
.nt-motion-enable:disabled { opacity: .75; }
.nt-motion-later { min-width: 92px; border: 1px solid #ffffff30; background: #ffffff0a; color: #edf0fc; }
.nt-motion-status { margin: 0; color: #cbd6e8; font-size: 11px; line-height: 1.5; }
.nt-motion-status:not(:empty) { margin-top: 12px; }
@keyframes nt-motion-phone { 0%,100% { transform: rotateY(-19deg) rotateX(9deg); } 50% { transform: rotateY(-9deg) rotateX(5deg) translateY(-2px); } }
@keyframes nt-motion-edge { from { opacity: 1; } to { opacity: .5; } }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nt-motion-glass { background: linear-gradient(135deg, #ffffff1c, #cceeff08 45%, #c5b2ff1c), #101727df; -webkit-backdrop-filter: blur(20px) saturate(1.35); backdrop-filter: blur(20px) saturate(1.35); }
}
@media (max-width: 760px) {
  .nt-motion-notice { right: max(14px, env(safe-area-inset-right, 0px)); left: max(14px, env(safe-area-inset-left, 0px)); width: auto; max-width: 420px; margin-inline: auto; }
  .nt-motion-glass { padding: 16px; }
  .nt-motion-copy h2 { font-size: 17px; }
}
@media (max-width: 360px) {
  .nt-motion-content { grid-template-columns: 46px minmax(0, 1fr); gap: 11px; }
  .nt-motion-copy h2 { font-size: 16px; }
  .nt-motion-copy p { font-size: 12px; }
  .nt-motion-actions button { padding-inline: 12px; }
}
@media (prefers-color-scheme: light) {
  .nt-motion-glass { background: linear-gradient(135deg, #ffffffe6, #edf7fff0 45%, #eee8fff2); border-color: #ffffffd9; }
  .nt-motion-brand, .nt-motion-device { color: #44536f; }
  .nt-motion-device { border-color: #65799e30; background: #ffffff70; }
  .nt-motion-copy h2 { color: #18253c; }
  .nt-motion-copy p, .nt-motion-status { color: #45536b; }
  .nt-motion-enable { border-color: #758ab54a; }
  .nt-motion-later { color: #34425c; background: #ffffff70; border-color: #7383a538; }
  .nt-motion-actions button:focus-visible { outline-color: #305aa4; }
}
@media (prefers-reduced-transparency: reduce) {
  .nt-motion-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: #182034; }
}
html[data-fx="calm"] .nt-motion-notice, html[data-fx="calm"] .nt-motion-notice * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .nt-motion-notice, .nt-motion-notice *, .nt-motion-notice *::after { animation: none !important; transition: none !important; }
  .nt-motion-notice, .nt-motion-actions button:active { transform: none; }
}
html[data-depth="off"] .scene-mesh,
html[data-depth="off"] .scene-grid,
html[data-depth="off"] .hero-copy {
  transform: none;
}
html[data-depth="off"] .orb-a,
html[data-depth="off"] .orb-b,
html[data-depth="off"] .orb-c {
  translate: none;
}


/* Keep the QR inside its grid row after reveal styles make it relative. */
#donate .qr-panel { top: auto; }
