
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050505;
  --bg-raised: #0c0c0c;
  --bg-card: #101010;
  --border: #2a2a2a;
  --border-hover: #4a4a4a;
  --surface: #181818;

  --white: #ffffff;
  --text: #ececec;
  --text-secondary: #c4c4c4;
  --text-muted: #999999;

  --accent: #f4f4f4;
  --accent-dim: rgba(255, 255, 255, 0.08);

  --max-w: 1080px;
  --nav-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;
  --pill: 10px;

  --font-sans: 'Space Grotesk', 'IBM Plex Sans Thai', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur: 0.25s;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orbit-ring,
  .orbit-icon svg {
    animation: none !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-dim);
  color: var(--white);
}

:where(a, button, input, [role='button']):focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.36;
}

.performance-lite #particleCanvas {
  opacity: 0.24;
}

.hero-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.decor-galaxy {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: min(48vw, 590px);
  height: min(35vw, 340px);
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 100% 0%, #000 28%, transparent 72%);
  mask-image: radial-gradient(ellipse 95% 95% at 100% 0%, #000 28%, transparent 72%);
}

.decor-galaxy img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  user-select: none;
}

@media (max-width: 768px) {
  .decor-galaxy {
    width: min(64vw, 340px);
    height: min(42vw, 210px);
    opacity: 0.42;
  }
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  transform: translate3d(0, 0, 0);
}

.bg-glow-1 {
  top: 4%;
  left: 2%;
  width: 480px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.025) 45%, transparent 72%);
  animation: bg-glow-drift-1 24s ease-in-out infinite alternate;
}

.bg-glow-2 {
  right: 0;
  bottom: 4%;
  width: 430px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 48%, transparent 72%);
  animation: bg-glow-drift-2 28s ease-in-out infinite alternate;
}

@keyframes bg-glow-drift-1 {
  from { transform: translate3d(-40px, -20px, 0) scale(0.95); }
  to { transform: translate3d(110px, 90px, 0) scale(1.08); }
}

@keyframes bg-glow-drift-2 {
  from { transform: translate3d(40px, 30px, 0) scale(1); }
  to { transform: translate3d(-100px, -80px, 0) scale(1.1); }
}

.performance-lite .bg-glow-2 {
  display: none;
}

.performance-lite .bg-glow-orb {
  animation: none;
}

.contact-glow {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.contact-glow::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 10%;
  width: 320px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 45%, transparent 70%);
  opacity: 0.55;
}

.contact-glow::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 10%;
  width: 300px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  opacity: 0.45;
}

.contact-glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  opacity: 0.45;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow-orb,
  .contact-glow::before,
  .contact-glow::after,
  .contact-glow-center {
    animation: none;
  }

  #particleCanvas {
    opacity: 0.2;
  }
}

.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 720px;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.navbar.reveal,
.js-active .navbar.reveal,
.js-active .navbar.reveal.visible {
  transform: translateX(-50%) translateY(0);
}

.js-active .navbar.reveal:not(.visible) {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 48px;
  background: rgba(9, 9, 11, 0.96);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.navbar.scrolled .nav-inner {
  background: rgba(9, 9, 11, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  gap: 0;
}

.logo-bracket {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: color var(--dur) var(--ease);
}

.logo-name {
  color: var(--white);
  transition: color var(--dur) var(--ease);
}

.nav-logo:hover .logo-bracket {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--pill);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 99px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  padding: calc(var(--nav-h) + 48px) 5% 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  max-width: 520px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.75rem;
  animation: hero-fade 0.7s var(--ease) both;
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  animation: hero-fade 0.7s var(--ease) 0.08s both;
}

.hero-hi {
  display: block;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: min(380px, 100%);
  min-height: 1.2em;
}

.hero-typed {
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-cursor {
  font-weight: 200;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 420px;
  margin-bottom: 2rem;
  animation: hero-fade 0.7s var(--ease) 0.16s both;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: hero-fade 0.7s var(--ease) 0.24s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--white);
  color: var(--bg);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  border-radius: var(--pill);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 2px 16px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.14);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  width: 100%;
  animation: hero-fade 0.7s var(--ease) 0.32s both;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.stat-num-wrap {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 68px;
  line-height: 1;
}

.stat-num-wrap::before {
  content: '';
  position: absolute;
  inset: -18px -26px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 45, 0.26), transparent 68%);
  opacity: 0;
  pointer-events: none;
}

.stat-num,
.stat-suffix {
  position: relative;
  z-index: 2;
}

.stat-suffix {
  display: inline-block;
  max-width: 20px;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: max-width 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.stat-assiduity.is-overload .stat-num {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.22);
}

.stat-assiduity.is-breaking .stat-num-wrap {
  animation: stat-jolt 0.46s ease-in-out;
}

.stat-assiduity.is-inf .stat-num {
  color: #ff4040;
  letter-spacing: 0.025em;
  text-shadow:
    0 0 7px rgba(255, 64, 64, 0.9),
    0 0 20px rgba(255, 40, 40, 0.48),
    0 0 38px rgba(255, 20, 20, 0.22);
  animation: stat-inf-arrive 0.52s cubic-bezier(0.18, 0.9, 0.3, 1.25);
}

.stat-assiduity.is-inf .stat-suffix {
  max-width: 0;
  opacity: 0;
  transform: translateX(-3px);
}

.stat-assiduity.is-inf .stat-num-wrap::before {
  opacity: 0.48;
}

.stat-crack {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 108px;
  height: 66px;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stat-crack svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stat-crack path {
  fill: none;
  stroke: rgba(255, 245, 245, 0.78);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 2px rgba(255, 90, 90, 0.35));
}

.stat-assiduity.is-breaking .stat-crack {
  animation: stat-crack-shell 0.72s ease-out both;
}

.stat-assiduity.is-breaking .stat-crack path {
  animation: stat-crack-draw 0.24s ease-out forwards;
}

.stat-assiduity.is-breaking .stat-crack path:nth-child(2) { animation-delay: 0.035s; }
.stat-assiduity.is-breaking .stat-crack path:nth-child(3) { animation-delay: 0.06s; }
.stat-assiduity.is-breaking .stat-crack path:nth-child(4) { animation-delay: 0.085s; }
.stat-assiduity.is-breaking .stat-crack path:nth-child(5) { animation-delay: 0.11s; }

.stat-burst {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 4;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.stat-burst i {
  --spark-x: 0px;
  --spark-y: 0px;
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 6px rgba(255, 50, 50, 0.9);
  opacity: 0;
}

.stat-burst i:nth-child(1) { --spark-x: -31px; --spark-y: -15px; }
.stat-burst i:nth-child(2) { --spark-x: -24px; --spark-y: 18px; }
.stat-burst i:nth-child(3) { --spark-x: -4px; --spark-y: -26px; }
.stat-burst i:nth-child(4) { --spark-x: 28px; --spark-y: -14px; }
.stat-burst i:nth-child(5) { --spark-x: 32px; --spark-y: 15px; }
.stat-burst i:nth-child(6) { --spark-x: 7px; --spark-y: 27px; }

.stat-assiduity.is-inf .stat-burst i {
  animation: stat-spark 0.62s ease-out both;
}

.stat-assiduity.is-inf .stat-burst i:nth-child(2),
.stat-assiduity.is-inf .stat-burst i:nth-child(5) {
  animation-delay: 0.035s;
}

@keyframes stat-jolt {
  0%, 100% { transform: translate3d(0, 0, 0); }
  14% { transform: translate3d(-2px, 1px, 0) rotate(-0.7deg); }
  30% { transform: translate3d(2px, -1px, 0) rotate(0.6deg); }
  47% { transform: translate3d(-1px, -1px, 0) rotate(-0.4deg); }
  64% { transform: translate3d(1px, 1px, 0) rotate(0.3deg); }
  82% { transform: translate3d(-1px, 0, 0); }
}

@keyframes stat-crack-shell {
  0% { opacity: 0; }
  12% { opacity: 1; }
  68% { opacity: 0.82; }
  100% { opacity: 0; }
}

@keyframes stat-crack-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes stat-inf-arrive {
  0% { opacity: 0.2; transform: scale(0.72); filter: blur(2px); }
  58% { opacity: 1; transform: scale(1.13); filter: blur(0); }
  100% { transform: scale(1); }
}

@keyframes stat-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  18% { opacity: 0.95; }
  100% {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) scale(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-assiduity.is-breaking .stat-num-wrap,
  .stat-assiduity.is-inf .stat-num,
  .stat-assiduity.is-inf .stat-num-wrap::before {
    animation: none;
  }

  .stat-crack,
  .stat-burst {
    display: none;
  }
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.hero-visual {
  position: relative;
  z-index: 1;
  animation: hero-fade 0.7s var(--ease) 0.4s both;
}

.code-window {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 360px;
  min-width: 340px;
  flex-shrink: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.code-window:hover {
  border-color: var(--border-hover);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.wdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.wdot-r {
  background: #ef4444;
}

.wdot-y {
  background: #eab308;
}

.wdot-g {
  background: #22c55e;
}

.code-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.code-content {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  overflow: hidden;
  color: var(--text-secondary);
}

.code-content code {
  white-space: pre;
}

.ck {
  color: #d4d4d4;
}

.cv {
  color: #f1f5f9;
}

.cp {
  color: #a1a1aa;
}

.cs {
  color: #86efac;
}

.cb {
  color: #fbbf24;
}

.section {
  position: relative;
  z-index: 1;
  padding: 100px 5%;
}

.gallery-section,
.globe-section,
#projects,
.contact-section,
.supporter-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 1.15rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.text-accent {
  font-family: inherit;
  font-weight: 700;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  background: none;
  display: inline;
  filter: none;
  animation: none;
}

.text-ami-red {
  font-family: inherit;
  font-weight: 600;
  display: inline;
  color: #e25555;
  -webkit-text-fill-color: #e25555;
  background: none;
  filter: none;
  animation: none;
}

.reveal.visible .text-ami-red,
.section-title.visible .text-ami-red,
.js-active .reveal.visible .text-ami-red {
  color: #e25555;
  -webkit-text-fill-color: #e25555;
  filter: none;
  animation: none;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bento-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  overflow: hidden;
  contain: layout paint;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
  cursor: default;
}

.bento-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.04);
}

.bento-tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-span2 {
  grid-column: span 2;
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: #ffffff;
  overflow: hidden;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
  flex-shrink: 0;
}

.gallery-subheading {
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
  margin: -1.5rem auto 2rem;
  max-width: 420px;
  color: #e8e8e8;
}

.bento-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.bento-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.75rem;
}

.pill {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
  cursor: default;
}

.pill:hover {
  border-color: var(--border-hover);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.reveal,
.reveal-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.js-active .reveal:not(.visible),
.js-active .reveal-card:not(.visible) {
  opacity: 0;
  transform: translateY(14px);
}

.js-active .reveal.visible,
.js-active .reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card:nth-child(1) {
  transition-delay: 0s;
}

.reveal-card:nth-child(2) {
  transition-delay: 0.04s;
}

.reveal-card:nth-child(3) {
  transition-delay: 0.08s;
}

.reveal-card:nth-child(4) {
  transition-delay: 0.12s;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.75rem 5%;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-weight: 700;
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.social-link:hover {
  border-color: var(--border-hover);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: calc(var(--nav-h) + 56px);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-name-row {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .code-window {
    min-width: 0;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

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

  .bento-tall {
    grid-row: span 1;
  }

  .bento-span2 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .navbar {
    width: calc(100% - 20px);
    top: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    gap: 2px;
    animation: hero-fade 0.25s var(--ease);
  }

  .nav-links.mobile-open .nav-link {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
  }

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

  .bento-span2 {
    grid-column: span 1;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-sep {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-name-row {
    min-width: unset;
  }

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

  .contact-card {
    padding: 2rem 1.25rem;
  }
}

.globe-section {
  overflow: hidden;
}

.globe-interactive-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  transition: gap 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.globe-container {
  position: relative;
  flex: 0 1 auto;
  width: min(100%, 700px);
  max-width: 700px;
  height: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(13, 13, 16, 0.6) 70%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06), inset 0 0 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: max-width 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.globe-interactive-wrapper.tech-active {
  justify-content: center;
  gap: 20px;
}
.globe-interactive-wrapper.tech-active .globe-container {
  flex: 1 1 auto;
  width: 52%;
  max-width: 52%;
  margin: 0;
}

#globeCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.orbit-ring {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: orbit-spin 34s linear infinite;
  animation-play-state: paused;
  z-index: 2;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.orbit-icon {
  position: absolute;
  width: 54px;
  height: 54px;
  background: rgba(17, 17, 19, 0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
  cursor: pointer;
  z-index: 5;
}

.orbit-icon::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}

.orbit-icon:hover {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.orbit-icon.orbit-icon-active {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 0 16px rgba(255, 255, 255, 0.28);
  transform: scale(1.1);
}

.orbit-icon svg {
  transform-origin: center;
  animation: orbit-counter-spin 34s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}

@keyframes orbit-counter-spin {
  to {
    transform: rotate(-360deg);
  }
}

.globe-interactive-wrapper.is-in-view .orbit-ring,
.globe-interactive-wrapper.is-in-view .orbit-icon svg {
  animation-play-state: running;
}

.globe-interactive-wrapper.tech-active .orbit-ring,
.globe-interactive-wrapper.tech-active .orbit-icon svg,
body.modal-open .orbit-ring,
body.modal-open .orbit-icon svg {
  animation-play-state: paused;
}

.orbit-icon-1 {
  top: -27px;
  left: calc(50% - 27px);
}

.orbit-icon-2 {
  top: calc(50% - 27px);
  right: -27px;
}

.orbit-icon-3 {
  bottom: -27px;
  left: calc(50% - 27px);
}

.orbit-icon-4 {
  top: calc(50% - 27px);
  left: -27px;
}

.globe-info-panel {
  flex: 0 0 0;
  width: 0;
  max-width: 0;
  min-width: 0;
  height: 520px;
  display: flex;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateX(28px);
  transition:
    flex-basis 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.12s,
    max-width 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.12s,
    width 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.12s,
    opacity 0.28s ease,
    transform 0.35s ease;
}

.globe-interactive-wrapper.tech-active .globe-info-panel {
  flex: 1 1 480px;
  width: 100%;
  max-width: 480px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    flex-basis 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease 0.2s,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
}

.globe-info-inner {
  position: relative;
  width: 100%;
  min-width: 300px;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(13, 13, 16, 0.85) 60%,
    rgba(17, 17, 19, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.04), inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.globe-info-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.globe-info-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.globe-info-icon {
  width: 52px;
  height: 52px;
  background: rgba(17, 17, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: opacity 0.25s var(--ease);
}

.globe-info-icon svg {
  pointer-events: none;
}

.globe-info-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: opacity 0.3s var(--ease);
}

.globe-info-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
  transition: opacity 0.3s var(--ease);
}

.globe-info-body p {
  margin-bottom: 0.6rem;
}

.globe-info-body p:last-child {
  margin-bottom: 0;
}

.globe-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.globe-info-tags .pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.2rem 0.65rem;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 500;
}

.globe-info-inner.is-switching .globe-info-icon,
.globe-info-inner.is-switching .globe-info-title,
.globe-info-inner.is-switching .globe-info-body,
.globe-info-inner.is-switching .globe-info-tags {
  opacity: 0;
  transform: translateY(8px);
}

.globe-info-icon,
.globe-info-title,
.globe-info-body,
.globe-info-tags {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.globe-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.04em;
  transition: opacity 0.5s var(--ease);
}

.globe-interactive-wrapper.tech-active ~ .globe-hint {
  opacity: 0;
}

@media (max-width: 768px) {
  .globe-interactive-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .globe-interactive-wrapper.tech-active {
    justify-content: flex-start;
    align-items: center;
  }

  .globe-interactive-wrapper.tech-active .globe-container {
    width: 100%;
    max-width: 100%;
  }

  .globe-info-panel {
    height: auto;
    min-height: 0;
    transform: translateY(24px);
  }

  .globe-interactive-wrapper.tech-active .globe-info-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    transform: translateY(0);
  }

  .globe-info-inner {
    min-width: 0;
    height: auto;
  }

  .orbit-ring {
    width: 280px;
    height: 280px;
  }

  .globe-container {
    height: 360px;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  contain: layout paint;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
  cursor: default;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.project-preview {
  padding: 1.25rem 1.25rem 0;
}

.project-mockup {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.mockup-body {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-gradient-1 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
}

.mockup-gradient-2 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.mockup-gradient-3 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 60%;
}

.mockup-lines span {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.mockup-lines span:nth-child(1) {
  width: 80%;
}

.mockup-lines span:nth-child(2) {
  width: 60%;
}

.mockup-lines span:nth-child(3) {
  width: 90%;
}

.mockup-lines span:nth-child(4) {
  width: 45%;
}

.project-info {
  padding: 1.25rem;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-section {
  padding-bottom: 60px;
}

.contact-card {
  position: relative;
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s var(--ease);
}

.contact-card:hover {
  border-color: var(--border-hover);
}

.contact-card > * {
  position: relative;
  z-index: 2;
}

.contact-title {
  margin-top: 1rem;
}

.contact-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-btn:hover {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.ig-btn:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
}

.email-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.guns-btn:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-links {
    gap: 10px;
  }
}

.gallery-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 16px;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  contain: layout paint;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
  overflow: hidden;
}

.gallery-item:hover {
  border-color: var(--white);
  transform: translateY(-1px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  object-fit: cover;
  display: block;
  opacity: 0.84;
  transition: opacity 0.22s var(--ease);
}

.gallery-item:hover img {
  opacity: 1;
}

.music-player-box {
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-item:hover .music-player-box,
.gallery-item.is-playing .music-player-box {
  max-height: 200px;
  padding: 16px;
}

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

.m-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}

.m-artist {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  flex-shrink: 0;
}

.m-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.m-progress-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.m-seeker {
  -webkit-appearance: none;
  appearance: none;
  width: 100% !important;
  height: 4px;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff var(--progress, 0%),
    rgba(255, 255, 255, 0.2) var(--progress, 0%),
    rgba(255, 255, 255, 0.2) 100%
  );
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.m-seeker::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff !important;
  cursor: pointer;
  margin-top: -5px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: transform 0.15s ease;
}

.m-seeker::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: transform 0.15s ease;
}

.m-seeker:hover::-webkit-slider-thumb,
.m-seeker:active::-webkit-slider-thumb {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(255, 255, 255, 1);
}

.m-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.music-vol {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.vol-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  overflow: visible;
}

.vol-range {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  flex: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

@media (max-width: 768px) {
  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .gallery-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
  }

  .gallery-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
  }

  .gallery-item img {
    width: 72px;
    height: 72px;
    min-width: 72px;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .music-player-box {
    max-height: none !important;
    padding: 0 !important;
    background: transparent !important;
    border-top: none !important;
    flex: 1;
    min-width: 0;
    gap: 6px;
  }

  .gallery-item:hover .music-player-box,
  .gallery-item.is-playing .music-player-box {
    max-height: none !important;
    padding: 0 !important;
  }

  .m-title {
    font-size: 0.98rem;
    font-weight: 600;
  }

  .m-artist {
    font-size: 0.82rem;
  }

  .music-controls {
    gap: 8px;
    margin-top: 4px;
  }

  .m-btn {
    width: 34px;
    height: 34px;
  }

  .m-time {
    font-size: 0.75rem;
    min-width: 65px;
  }

  .music-vol {
    display: none;
  }
}

.supporter-section {
  padding-bottom: 5rem;
}

.supporter-action {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-open-supporter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-open-supporter:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: none;
  box-shadow: none;
}

.sp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;

  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
  contain: layout paint;
}

body.modal-open #particleCanvas,
body.modal-open .bg-glow,
body.modal-open .contact-glow {
  display: none !important;
}

.sp-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sp-modal {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.62);
  transform: translateY(5px);
  transition: transform 0.22s var(--ease);
  position: relative;
}

.sp-overlay.active .sp-modal {
  transform: translateY(0);
}

.sp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 0.2rem;
}

.sp-badge {
  margin-bottom: 0.4rem;
}

.sp-title .text-accent {
  animation: none;
}

.sp-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.sp-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.sp-card {
  height: 100%;
  min-height: 340px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);

  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0s !important;
}

.sp-card::before {
  display: none;
}

.sp-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  transform: none;
  box-shadow: none;
}

.sp-avatar {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #18181b;
}

.sp-card:hover .sp-avatar {
  border-color: rgba(255, 255, 255, 0.45);
  transform: none;
  box-shadow: none;
}

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

.sp-avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sp-avatar-icon svg {
  display: block;
}

.sp-quote {
  color: #ffffff;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  padding: 0 0.25rem;
  margin: 0;
  width: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  opacity: 1 !important;
  transform: none !important;
}

.sp-bottom {
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.15rem;
  flex-shrink: 0;
  opacity: 1 !important;
  transform: none !important;
}

.sp-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e0e0e0;
  margin-bottom: 0.25rem;
}

.sp-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
  min-height: 1.3em;
}

.sp-about {
  font-size: 0.8rem;
  color: #f5f5f5;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-card .reveal,
.sp-card .reveal-card {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (max-width: 900px) {
  .sp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .sp-modal {
    padding: 1.5rem;
  }
}

@media (max-width: 700px) {
  .sp-overlay {
    align-items: flex-start;
    padding: 1rem;
  }

  .sp-modal {
    max-height: calc(100vh - 2rem);
    padding: 1.25rem;
  }

  .sp-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .sp-card {
    min-height: 0;
  }
}