/* ============================================================================
   Nyte portfolio — stylesheet
   Single file by design (no build step). Navigate by the banners below;
   search "§ N." to jump to a section.

   TABLE OF CONTENTS
   § 1.  Reset & design tokens (palette / themes)
   § 2.  Base, background & ocean FX (caustics, surface, motes, bubbles)
   § 3.  Navigation
   § 4.  Hero (intro, profile card, code window)
   § 5.  Standard sections (labels, titles, dividers)
   § 6.  Skills grid
   § 7.  Work cards (projects + commissions, featured card)
   § 8.  Feedback carousel
   § 9.  Contact & socials
   § 10. Luau code window + syntax highlighting
   § 11. Project modal (tabs, panels, video embeds)
   § 12. Responsive / reduced-motion
   ========================================================================== */

/* ===== § 1. Reset & design tokens ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {

  /* Palette — Fizz the Tidal Trickster: azure-blue skin · rusty-orange fins ·
     jade trident · cream belly. Deep-ocean blue base. */
  --bg: #07182E;
  --bg2: #0C2645;
  --bg3: #103258;
  --border: #1E3F66;
  --border-hover: #3D7FC0;

  --text: #E9F1F8;
  --muted: #7C9BC2;
  --faint: #45618A;

  /* azure = primary (his skin), rust = secondary (his fins), jade = trident */
  --azure: #5FA8E6;
  --rust: #D5793F;
  --jade: #8FB07A;
  --gem: #3DBEE6;
  --cream: #E4E7CF;
  /* legacy aliases kept so existing references still resolve */
  --aqua: var(--azure);
  --coral: var(--rust);
  --gold: var(--jade);

  --accent: #5FA8E6;
  --accent2: #7C9BC2;
  --accent-glow: rgba(95, 168, 230, 0.20);

  /* Glass + gradient accent system (azure ↔ rust duotone) */
  --accent-cyan: #5FA8E6;
  --accent-purple: #D5793F;
  --accent-blue: #3DBEE6;
  --glow: rgba(95, 168, 230, 0.22);
  --glow-purple: rgba(213, 121, 63, 0.16);
  --glass-bg: rgba(12, 38, 69, 0.44);
  --glass-bg-strong: rgba(12, 38, 69, 0.66);
  --glass-border: rgba(95, 168, 230, 0.20);
  --glass-border-hover: rgba(95, 168, 230, 0.50);
  --glass-blur: blur(10px) saturate(135%);

  --red: #E08A55;
  --red-dim: rgba(224, 138, 85, 0.1);
  --cyan: #5FA8E6;
  --cyan-dim: rgba(95, 168, 230, 0.1);
  --yellow: #E8C765;
  --yellow-dim: rgba(232, 199, 101, 0.1);
  --green: #9BC47F;
  --green-dim: rgba(155, 196, 127, 0.1);
  --purple: #8AA0E0;
  --purple-dim: rgba(138, 160, 224, 0.1);

  --font-head: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius: 8px;
  --max: 1200px;
}

/* Light Theme */
body.light-theme {
  --bg: #EAF2FB;
  --bg2: #DBE9F7;
  --bg3: #C9DCF0;
  --border: #A8C4E2;
  --border-hover: #2E7BC4;
  --text: #0A2240;
  --muted: #46618A;
  --faint: #7C9BC2;

  --azure: #2E7BC4;
  --rust: #BC5A2A;
  --jade: #5E8C4A;
  --gem: #1E90C8;
  --cream: #8a7d4a;
  --aqua: var(--azure);
  --coral: var(--rust);
  --gold: var(--jade);

  --accent: #2E7BC4;
  --accent2: #46618A;
  --accent-glow: rgba(46, 123, 196, 0.14);
  --red: #BC5A2A;
  --red-dim: rgba(188, 90, 42, 0.08);
  --cyan: #2E7BC4;
  --cyan-dim: rgba(46, 123, 196, 0.08);
  --yellow: #B8860B;
  --yellow-dim: rgba(184, 134, 11, 0.08);
  --green: #5E8C4A;
  --green-dim: rgba(94, 140, 74, 0.08);
  --purple: #5b5fc7;
  --purple-dim: rgba(91, 95, 199, 0.08);

  --accent-cyan: #2E7BC4;
  --accent-purple: #BC5A2A;
  --accent-blue: #1E90C8;
  --glow: rgba(46, 123, 196, 0.30);
  --glow-purple: rgba(188, 90, 42, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(10, 34, 64, 0.12);
  --glass-border-hover: rgba(46, 123, 196, 0.45);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

body.light-theme .theme-icon-sun {
  display: block;
}

body.light-theme .theme-icon-moon {
  display: none;
}

/* Theme switch: crossfade the whole page (View Transitions API). */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: ease;
}

/* ===== § 2. Base, background & ocean FX ================================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* deep-sea depth gradient sits on the body itself (static base) */
  background:
    radial-gradient(75vw 75vw at 50% 112%, var(--glow), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
  background-attachment: fixed;
  transition: color 0.3s ease;
}

/* ── Animated background ──────────────────────────────────────────────
   Two big soft glow blobs (aqua + coral) fixed to the viewport, slowly
   drifting like light through water behind the scrolling content. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

body::before {
  width: 78vmax;
  height: 78vmax;
  top: -22vmax;
  right: -16vmax;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  animation: drift-aqua 26s ease-in-out infinite alternate;
}

body::after {
  width: 66vmax;
  height: 66vmax;
  bottom: -20vmax;
  left: -16vmax;
  background: radial-gradient(circle, var(--glow-purple), transparent 62%);
  animation: drift-coral 33s ease-in-out infinite alternate;
}

@keyframes drift-aqua {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-13vw, 9vh) scale(1.18); }
  100% { transform: translate(7vw, -7vh) scale(0.92); }
}

@keyframes drift-coral {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(12vw, -9vh) scale(1.22); }
  100% { transform: translate(-7vw, 7vh) scale(1); }
}

/* ── Rising bubbles ───────────────────────────────────────────────────
   Cosmetic <span> bubbles drifting up through the water, behind content
   (so they refract through the glass cards' backdrop blur). */
/* Caustics: shifting pools of light dappling the water, like sun through a
   moving surface. Two layers drift in opposite directions for a live shimmer. */
.ocean-caustics {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ocean-caustics::before,
.ocean-caustics::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 22% 14% at 20% 22%, var(--glow), transparent 60%),
    radial-gradient(ellipse 26% 16% at 68% 46%, var(--glow), transparent 62%),
    radial-gradient(ellipse 18% 12% at 42% 78%, var(--glow), transparent 60%),
    radial-gradient(ellipse 24% 15% at 86% 30%, var(--glow), transparent 62%),
    radial-gradient(ellipse 20% 13% at 10% 68%, var(--glow), transparent 60%),
    radial-gradient(ellipse 16% 11% at 56% 12%, var(--glow), transparent 60%);
  will-change: transform;
}

.ocean-caustics::before {
  opacity: 0.7;
  animation: caustic-a 28s ease-in-out infinite alternate;
}

.ocean-caustics::after {
  opacity: 0.45;
  transform: scale(1.35) rotate(7deg);
  animation: caustic-b 36s ease-in-out infinite alternate;
}

@keyframes caustic-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, -3%) scale(1.12); }
}

@keyframes caustic-b {
  0%   { transform: scale(1.35) rotate(7deg) translate(0, 0); }
  100% { transform: scale(1.45) rotate(4deg) translate(-5%, 3%); }
}

/* Light theme: screen-blend FX vanish on a pale background, so flip to multiply
   and use strong saturated blues — clearly readable water on a sunlit surface. */

/* deeper blue water column so the dapples have contrast to sit against */
body.light-theme {
  background:
    radial-gradient(75vw 75vw at 50% 112%, var(--glow), transparent 55%),
    linear-gradient(180deg, #E6F0FB 0%, #C7DBF2 50%, #AEC9EC 100%);
  background-attachment: fixed;
}

body.light-theme .ocean-caustics {
  opacity: 1;
  mix-blend-mode: multiply;
}

body.light-theme .ocean-caustics::before,
body.light-theme .ocean-caustics::after {
  background:
    radial-gradient(ellipse 22% 14% at 20% 22%, rgba(34, 110, 185, 0.34), transparent 62%),
    radial-gradient(ellipse 26% 16% at 68% 46%, rgba(34, 110, 185, 0.30), transparent 64%),
    radial-gradient(ellipse 18% 12% at 42% 78%, rgba(34, 110, 185, 0.30), transparent 62%),
    radial-gradient(ellipse 24% 15% at 86% 30%, rgba(34, 110, 185, 0.28), transparent 64%),
    radial-gradient(ellipse 20% 13% at 10% 68%, rgba(34, 110, 185, 0.30), transparent 62%),
    radial-gradient(ellipse 16% 11% at 56% 12%, rgba(34, 110, 185, 0.28), transparent 62%);
}

body.light-theme .ocean-surface {
  mix-blend-mode: multiply;
  background: linear-gradient(180deg, rgba(34, 110, 185, 0.30), transparent 88%);
}

body.light-theme .ocean-bubbles span {
  background: radial-gradient(circle at 32% 30%,
    rgba(255, 255, 255, 0.85), rgba(34, 110, 185, 0.30) 54%, transparent 72%);
  border-color: rgba(34, 110, 185, 0.5);
}

body.light-theme .ocean-motes span {
  background: rgba(34, 110, 185, 0.7);
}

/* Surface light: the lit water surface glimpsed above, with drifting ripples. */
.ocean-surface {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 24vh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--glow), transparent 85%);
  mix-blend-mode: screen;
  animation: surface-shimmer 9s ease-in-out infinite alternate;
}

.ocean-surface::before {
  content: "";
  position: absolute;
  inset: 0 -90px;
  background: repeating-linear-gradient(90deg,
    transparent 0, rgba(180, 225, 255, 0.06) 44px, transparent 88px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  animation: surface-ripple 13s linear infinite;
}

@keyframes surface-shimmer {
  0%   { opacity: 0.5; }
  100% { opacity: 0.9; }
}

@keyframes surface-ripple {
  0%   { transform: translateX(0); }
  100% { transform: translateX(88px); }
}

/* Motes: tiny plankton specks drifting slowly upward through the water. */
.ocean-motes {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ocean-motes span {
  position: absolute;
  bottom: -4%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(190, 225, 255, 0.6);
  filter: blur(0.5px);
  opacity: 0;
  animation: mote-drift var(--dur, 30s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes mote-drift {
  0%   { transform: translate(0, 0); opacity: 0; }
  12%  { opacity: 0.6; }
  50%  { transform: translate(2vw, -52vh); }
  88%  { opacity: 0.35; }
  100% { transform: translate(-1.5vw, -104vh); opacity: 0; }
}

.ocean-motes span:nth-child(1)  { left: 4%;  --dur: 30s; --delay: 0s;  width: 2px; height: 2px; }
.ocean-motes span:nth-child(2)  { left: 11%; --dur: 38s; --delay: 6s;  width: 4px; height: 4px; }
.ocean-motes span:nth-child(3)  { left: 18%; --dur: 26s; --delay: 3s; }
.ocean-motes span:nth-child(4)  { left: 24%; --dur: 34s; --delay: 12s; width: 2px; height: 2px; }
.ocean-motes span:nth-child(5)  { left: 31%; --dur: 29s; --delay: 8s;  width: 4px; height: 4px; }
.ocean-motes span:nth-child(6)  { left: 38%; --dur: 40s; --delay: 1s; }
.ocean-motes span:nth-child(7)  { left: 44%; --dur: 27s; --delay: 15s; width: 2px; height: 2px; }
.ocean-motes span:nth-child(8)  { left: 50%; --dur: 33s; --delay: 5s; }
.ocean-motes span:nth-child(9)  { left: 56%; --dur: 36s; --delay: 10s; width: 4px; height: 4px; }
.ocean-motes span:nth-child(10) { left: 62%; --dur: 28s; --delay: 2s;  width: 2px; height: 2px; }
.ocean-motes span:nth-child(11) { left: 69%; --dur: 39s; --delay: 14s; }
.ocean-motes span:nth-child(12) { left: 75%; --dur: 25s; --delay: 7s;  width: 2px; height: 2px; }
.ocean-motes span:nth-child(13) { left: 81%; --dur: 35s; --delay: 11s; width: 4px; height: 4px; }
.ocean-motes span:nth-child(14) { left: 86%; --dur: 31s; --delay: 4s; }
.ocean-motes span:nth-child(15) { left: 91%; --dur: 37s; --delay: 9s;  width: 2px; height: 2px; }
.ocean-motes span:nth-child(16) { left: 95%; --dur: 28s; --delay: 13s; }
.ocean-motes span:nth-child(17) { left: 66%; --dur: 42s; --delay: 17s; width: 2px; height: 2px; }
.ocean-motes span:nth-child(18) { left: 14%; --dur: 32s; --delay: 19s; width: 4px; height: 4px; }

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

/* god rays: soft diagonal light shafts filtering down through the water */
.ocean-bubbles::before {
  content: "";
  position: absolute;
  inset: -30% -30% 30% -30%;
  background: repeating-linear-gradient(102deg,
    transparent 0,
    rgba(120, 190, 245, 0.045) 42px,
    transparent 96px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
  transform-origin: top center;
  animation: god-rays 20s ease-in-out infinite alternate;
}

/* depth vignette: darken the edges so the center reads as lit water */
.ocean-bubbles::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(125% 95% at 50% 22%,
    transparent 52%, rgba(0, 0, 0, 0.38) 100%);
}

body.light-theme .ocean-bubbles::before {
  background: repeating-linear-gradient(102deg,
    transparent 0,
    rgba(46, 123, 196, 0.05) 42px,
    transparent 96px);
}

body.light-theme .ocean-bubbles::after {
  background: radial-gradient(125% 95% at 50% 22%,
    transparent 58%, rgba(46, 123, 196, 0.10) 100%);
}

@keyframes god-rays {
  0%   { transform: translateX(-4%) skewX(0deg); opacity: 0.8; }
  50%  { transform: translateX(3%) skewX(-2deg); opacity: 1; }
  100% { transform: translateX(-2%) skewX(1deg); opacity: 0.7; }
}

.ocean-bubbles span {
  position: absolute;
  bottom: -8vh;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%,
    rgba(255, 255, 255, 0.55), var(--glow) 55%, transparent 72%);
  border: 1px solid var(--glass-border-hover);
  opacity: 0;
  animation: bubble-rise var(--dur, 16s) ease-in infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes bubble-rise {
  0%   { transform: translate(0, 0) scale(0.5); opacity: 0; }
  12%  { opacity: 0.55; }
  50%  { transform: translate(2vw, -52vh) scale(1); }
  85%  { opacity: 0.45; }
  100% { transform: translate(-1.5vw, -106vh) scale(1.15); opacity: 0; }
}

/* spread + vary the 15 bubbles: position, size, speed, start time */
.ocean-bubbles span:nth-child(1)  { left: 6%;  --dur: 17s; --delay: 0s;   width: 10px; height: 10px; }
.ocean-bubbles span:nth-child(2)  { left: 14%; --dur: 22s; --delay: 5s;   width: 18px; height: 18px; }
.ocean-bubbles span:nth-child(3)  { left: 21%; --dur: 14s; --delay: 2s;   width: 8px;  height: 8px; }
.ocean-bubbles span:nth-child(4)  { left: 29%; --dur: 20s; --delay: 8s;   width: 13px; height: 13px; }
.ocean-bubbles span:nth-child(5)  { left: 37%; --dur: 16s; --delay: 1s;   width: 16px; height: 16px; }
.ocean-bubbles span:nth-child(6)  { left: 44%; --dur: 24s; --delay: 6s;   width: 9px;  height: 9px; }
.ocean-bubbles span:nth-child(7)  { left: 51%; --dur: 18s; --delay: 11s;  width: 12px; height: 12px; }
.ocean-bubbles span:nth-child(8)  { left: 58%; --dur: 15s; --delay: 3s;   width: 20px; height: 20px; }
.ocean-bubbles span:nth-child(9)  { left: 65%; --dur: 21s; --delay: 9s;   width: 10px; height: 10px; }
.ocean-bubbles span:nth-child(10) { left: 72%; --dur: 19s; --delay: 4s;   width: 14px; height: 14px; }
.ocean-bubbles span:nth-child(11) { left: 79%; --dur: 23s; --delay: 13s;  width: 8px;  height: 8px; }
.ocean-bubbles span:nth-child(12) { left: 85%; --dur: 16s; --delay: 7s;   width: 17px; height: 17px; }
.ocean-bubbles span:nth-child(13) { left: 90%; --dur: 20s; --delay: 2s;   width: 11px; height: 11px; }
.ocean-bubbles span:nth-child(14) { left: 95%; --dur: 14s; --delay: 10s;  width: 13px; height: 13px; }
.ocean-bubbles span:nth-child(15) { left: 48%; --dur: 26s; --delay: 15s;  width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .ocean-bubbles::before,
  .ocean-caustics::before,
  .ocean-caustics::after,
  .ocean-surface,
  .ocean-surface::before,
  .ocean-motes span,
  .ocean-bubbles span { animation: none; }
  .ocean-motes span,
  .ocean-bubbles span { display: none; }
  .ocean-caustics,
  .ocean-bubbles { filter: none; }
}

/* ── Lite mode (no GPU acceleration / low FPS) ─────────────────────────
   Toggled by perf.js when the measured frame rate is low. Drops the costly
   backdrop-blur, blend modes and animated water layers; keeps the page fully
   readable on a static deep-sea gradient. */
body.perf-lite {
  --glass-bg: var(--bg2);
  --glass-bg-strong: var(--bg3);
  --glass-blur: none;
}

/* nav + modal backdrop use literal blur() values, not the token */
body.perf-lite nav,
body.perf-lite .modal-backdrop {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.perf-lite nav { background: var(--bg); }
body.perf-lite .modal-backdrop { background: rgba(0, 0, 0, 0.9); }

/* remove the animated water layers; the static body gradient stays */
body.perf-lite .ocean-caustics,
body.perf-lite .ocean-bubbles,
body.perf-lite .ocean-motes,
body.perf-lite .ocean-surface,
body.perf-lite .spotify-bg-blur { display: none; }

/* stop the continuous background/decorative animations */
body.perf-lite::before,
body.perf-lite::after,
body.perf-lite .hero h1 .name,
body.perf-lite .badge-glow::after,
body.perf-lite .eyebrow-dot,
body.perf-lite .status-dot,
body.perf-lite .working-on-dot { animation: none; }

/* Dismissible hint shown only when lite mode was triggered by low FPS. */
.perf-notice {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 360px;
  padding: 0.8rem 0.85rem 0.8rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.perf-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.perf-notice-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.perf-notice-text strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

.perf-notice-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
  transition: color 0.2s;
}

.perf-notice-close:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .perf-notice {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    max-width: none;
  }
}

body.light-theme nav {
  background: rgba(250, 250, 250, 0.8);
}

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

/* Base */
* {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== § 3. Navigation =================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(11, 15, 46, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

nav:hover {
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--faint);
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, text-shadow 0.2s;
}

nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

.nav-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  background: var(--bg2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  height: max-content;
}

/* ===== § 4. Hero ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
}

/* accent glow bleeding from the upper area behind the code window */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 4.5rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(155, 214, 168, 0.5);
  animation: eyebrow-pulse 2s ease-out infinite;
}

@keyframes eyebrow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(155, 214, 168, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(155, 214, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 214, 168, 0); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 .name {
  display: block;
  background: linear-gradient(95deg,
    #ffffff, var(--gem), var(--azure), var(--gem), #ffffff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* luminous halo so the name lifts off the deep-water background */
  filter: drop-shadow(0 0 22px rgba(61, 190, 230, 0.45))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: name-shine 6s linear infinite;
}

@keyframes name-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Subtitle: one tidy line under the name, not giant per-word stacking. */
.hero h1 .role {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-top: 0.85rem;
}

.hero h1 .accent {
  display: none;
}

/* Terminal-style specialty line that types/erases under the name. */
.hero-typed {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-typed-prompt {
  color: var(--accent);
  font-weight: 700;
}

.hero-typed-label {
  color: var(--faint);
}

.hero-typed-text {
  color: var(--text);
}

.hero-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--accent);
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 540px;
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.7;
}

.hero-desc code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: var(--bg2);
  color: var(--text);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

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

.btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

/* Discord Button */
.btn-discord {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--border);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  padding: 0.85rem 1.35rem;
}

.btn-discord:hover {
  border-color: var(--accent2);
  background: var(--bg3);
  box-shadow: 0 8px 24px rgba(114, 136, 174, 0.18);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2.75rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hstat-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hstat-num span {
  color: var(--accent);
  font-weight: 600;
}

.hstat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
  white-space: nowrap;
}

/* Hero code window (right column) */
.hero-right {
  min-width: 0;
}

.hero-code {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: perspective(1400px) rotateY(-4deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-code:hover {
  transform: perspective(1400px) rotateY(0deg) translateY(-4px);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.5);
}

.hero-code-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.hero-code-file {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-code pre {
  margin: 0;
  padding: 1.3rem 1.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  tab-size: 2;
  -moz-tab-size: 2;
}

.hero-code pre::-webkit-scrollbar {
  height: 6px;
}
.hero-code pre::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-code {
    transform: none;
  }
  .hero-code:hover {
    transform: translateY(-4px);
  }
}

/* Hero profile card (right column) */
.profile-card {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-hover), transparent);
}

.profile-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--glow);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--azure), var(--gem));
}

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

.profile-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}

.profile-handle {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--green-dim);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.profile-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.profile-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.profile-key {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

/* ===== § 5. Standard sections ============================================ */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 2rem;
  counter-increment: section;
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* editorial section index: 01 ── LABEL */
.sec-label::before {
  content: counter(section, decimal-leading-zero);
  font-weight: 600;
  color: var(--accent-cyan);
}

.sec-label::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-cyan);
  opacity: 0.5;
}

/* Centered header variant — applied to alternating sections for rhythm */
.sec-head-center {
  text-align: center;
}

.sec-head-center .sec-label {
  justify-content: center;
}

.sec-head-center .sec-sub {
  margin-left: auto;
  margin-right: auto;
}

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, var(--text) 55%, var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-sub {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 3.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
}

/* ===== § 6. Skills grid ================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.skill-cell {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.75rem;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, background 0.25s, box-shadow 0.25s;
}

/* sheen line along the top edge of each glass panel */
.skill-cell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-hover), transparent);
  opacity: 0.6;
}

.skill-cell:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--glow);
}

.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--glow), var(--glow-purple));
  border: 1px solid var(--glass-border);
  line-height: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* wrapper span around the icon: collapse baseline gap so glyph centers */
.skill-icon > * {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.skill-icon svg,
.skill-icon img {
  display: block;
}

.skill-cell:hover .skill-icon {
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 18px var(--glow);
}

.skill-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(114, 136, 174, 0.35));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.skill-icon-svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent2);
  filter: drop-shadow(0 0 6px rgba(114, 136, 174, 0.25));
  transition: filter 0.3s ease, transform 0.3s ease;
}

body.light-theme .skill-icon-svg {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.1));
}

.skill-cell:hover .skill-icon-img {
  filter: drop-shadow(0 0 12px rgba(114, 136, 174, 0.6));
  transform: scale(1.1);
}

.skill-cell:hover .skill-icon-svg {
  filter: drop-shadow(0 0 12px rgba(114, 136, 174, 0.5));
  transform: scale(1.1);
}

body.light-theme .skill-cell:hover .skill-icon-svg {
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.2));
}

.skill-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.skill-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== § 7. Work cards (projects + commissions) ========================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Filter tabs above the merged work grid (All / Projects / Commissions). */
.work-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.work-tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.work-tab:hover {
  color: var(--text);
  border-color: var(--glass-border-hover);
}

.work-tab.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* Filtered-out cards. */
.work-hidden {
  display: none !important;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.6rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-hover), transparent);
  opacity: 0.5;
}

.work-card:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--glow);
  transform: translateY(-4px);
}

.work-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.work-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.work-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.work-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.work-meta {
  display: flex;
  gap: 0.85rem;
}

.work-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.work-view {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent2);
  white-space: nowrap;
  margin-left: auto;
  transition: color 0.2s, transform 0.2s;
}

.work-card:hover .work-view {
  color: var(--text);
  transform: translateX(3px);
}

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

/* ===== Pricing tiers ===================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

/* top sheen line, like the other glass cards */
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-hover), transparent);
  opacity: 0.6;
}

.pricing-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--glow);
}

/* Highlighted tier — duotone wash + stronger border, lifts off the row. */
.pricing-card.featured {
  border-color: var(--glass-border-hover);
  background:
    radial-gradient(80% 120% at 0% 0%, var(--glow), transparent 55%),
    radial-gradient(70% 120% at 100% 100%, var(--glow-purple), transparent 55%),
    var(--glass-bg-strong);
}

.pricing-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.pricing-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.pricing-amount {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.pricing-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.25rem 0 0.5rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-cta {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* Tags — pill-shaped to share the button language. Subtle border + tinted
   fill, semantic colour carried by the text. No glow/animation. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  line-height: 1;
}

.tag-lua    { color: var(--red);    border-color: var(--red);    background: var(--red-dim); }
.tag-ts     { color: var(--cyan);   border-color: var(--cyan);   background: var(--cyan-dim); }
.tag-oop    { color: var(--yellow); border-color: var(--yellow); background: var(--yellow-dim); }
.tag-open   { color: var(--green);  border-color: var(--green);  background: var(--green-dim); }
.tag-sys    { color: var(--purple); border-color: var(--purple); background: var(--purple-dim); }

/* Type tags distinguishing the two kinds in the merged work grid. */
.tag-kind { font-weight: 600; }
.tag-kind-project    { color: var(--cyan);  border-color: var(--cyan);  background: var(--cyan-dim); }
.tag-kind-commission { color: var(--coral); border-color: var(--coral); background: var(--red-dim); }

.tag-wip {
  color: var(--yellow);
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

.tag-finished {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

/* Small status dot inside a tag (e.g. "working on"). */
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* About Section */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4rem;
  align-items: start;
}

/* About intro-as-code: same window chrome as the hero used, but flat. */
.about-code {
  transform: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.about-code:hover {
  transform: translateY(-4px);
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1.18rem;
  line-height: 1.75;
}

.code-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text);
  margin-top: 2.5rem;
  overflow-x: auto;
}

.kw {
  color: var(--rust);
  font-weight: 500;
}

.fn {
  color: var(--gem);
}

.str {
  color: var(--green);
}

.cm {
  color: var(--faint);
  font-style: italic;
}

.num {
  color: var(--yellow);
}

.gl {
  color: var(--muted);
}

/* ===== § 10. Luau code window + syntax highlighting ====================== */
.code-showcase {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Title bar: collapse toggle, traffic-light dots, active file path. */
.code-showcase-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.code-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.code-collapse:hover {
  color: var(--text);
  background: var(--bg2);
}

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

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-hover);
}

.code-dot:nth-child(1) { background: #f4a6a6; }
.code-dot:nth-child(2) { background: #f1d49b; }
.code-dot:nth-child(3) { background: #9bd6a8; }

.code-path {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Body: explorer sidebar + code pane. */
.code-ide {
  display: grid;
  grid-template-columns: 190px 1fr;
  height: 440px;
}

.code-ide.sidebar-hidden {
  grid-template-columns: 0 1fr;
}

.code-sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg2);
  padding: 0.6rem 0;
  overflow: auto;
  min-width: 0;
}

.code-ide.sidebar-hidden .code-sidebar {
  display: none;
}

.code-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  padding: 0 0.85rem 0.5rem;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
  padding-right: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.tree-row:hover {
  background: var(--bg3);
  color: var(--text);
}

.tree-file.active {
  background: var(--bg3);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent2);
}

.tree-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--muted);
}

.tree-chevron {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--faint);
  transition: transform 0.15s ease;
}

.tree-folder.open > .tree-chevron {
  transform: rotate(90deg);
}

.tree-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-children.collapsed {
  display: none;
}

.code-main {
  min-width: 0;
  overflow: hidden;
}

.code-showcase pre {
  margin: 0;
  padding: 1.3rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text);
  height: 100%;
  overflow: auto;
  tab-size: 2;
}

.code-showcase code {
  font-family: inherit;
  white-space: pre;
}

/* Custom themed scrollbars — slim azure thumb on a transparent track. */
.code-showcase pre,
.code-sidebar,
.modal-panels {
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border-hover) transparent;
}

.code-showcase pre::-webkit-scrollbar,
.code-sidebar::-webkit-scrollbar,
.modal-panels::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.code-showcase pre::-webkit-scrollbar-track,
.code-sidebar::-webkit-scrollbar-track,
.modal-panels::-webkit-scrollbar-track {
  background: transparent;
}

.code-showcase pre::-webkit-scrollbar-thumb,
.code-sidebar::-webkit-scrollbar-thumb,
.modal-panels::-webkit-scrollbar-thumb {
  background: var(--glass-border-hover);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.code-showcase pre::-webkit-scrollbar-thumb:hover,
.code-sidebar::-webkit-scrollbar-thumb:hover,
.modal-panels::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  background-clip: padding-box;
}

.code-showcase pre::-webkit-scrollbar-corner,
.modal-panels::-webkit-scrollbar-corner {
  background: transparent;
}

@media (max-width: 560px) {
  .code-ide {
    grid-template-columns: 150px 1fr;
  }
}

.about-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-card-title {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.about-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-info-key {
  font-size: 0.875rem;
  color: var(--muted);
}

.about-info-val {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  margin-right: 8px;
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ===== § 9. Contact & socials =========================================== */
/* Discord Embed */
.discord-embed {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.discord-embed:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 0 1px var(--glow);
}

.discord-avatar-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.discord-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: block;
}

.discord-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg2);
  background: #80848e; /* offline default */
  display: none; /* hidden until loaded */
  z-index: 2;
}

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

.discord-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.discord-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.discord-tag {
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 0.1rem;
}

.discord-msg-btn {
  font-size: 0.8rem !important;
  padding: 0.6rem 1.25rem !important;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Spotify Status */
.spotify-status {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(29, 185, 84, 0.2);
  width: 100%;
  max-width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.spotify-bg-blur {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(25px);
  opacity: 0.15;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.spotify-status:hover .spotify-bg-blur {
  opacity: 0.3;
}

.spotify-status:hover {
  border-color: rgba(29, 185, 84, 0.4);
  transform: translateY(-2px);
}

.spotify-art-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.spotify-art-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spotify-status:hover .spotify-art-wrapper img {
  transform: scale(1.05);
}

.eq-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.eq-bar {
  width: 4px;
  background: #1DB954;
  height: 10px;
  border-radius: 2px;
  animation: eqAnim 1s ease-in-out infinite alternate;
}
.eq-bar:nth-child(2) { animation-delay: 0.3s; }
.eq-bar:nth-child(3) { animation-delay: 0.6s; }

@keyframes eqAnim {
  0% { height: 4px; }
  100% { height: 16px; }
}

.spotify-details-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  gap: 0.25rem;
}

.spotify-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.spotify-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
}

.spotify-song {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-icon {
  width: 16px;
  height: 16px;
  color: #1DB954;
  flex-shrink: 0;
  margin-top: 2px;
}

.spotify-progress-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.spotify-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.spotify-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

.spotify-progress-fill {
  height: 100%;
  background: var(--text);
  width: 0%;
  border-radius: 2px;
  transition: width 1s linear;
}

.spotify-status:hover .spotify-progress-fill {
  background: #1DB954;
  box-shadow: 0 0 5px rgba(29, 185, 84, 0.5);
}

/* Socials Grid */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 2rem 1rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  /* per-platform accent, overridden below */
  --social-accent: var(--text);
}

/* soft radial glow that fades in on hover */
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--social-accent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.social-card:hover {
  border-color: var(--social-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.social-card:hover::before {
  opacity: 0.12;
}

/* brand accents */
.social-card.roblox-link { --social-accent: #f4a6a6; }
.social-card.x-link      { --social-accent: var(--text); }
#discord-message-btn-social { --social-accent: #8c9eff; }

.social-icon {
  position: relative;
  width: 28px;
  height: 28px;
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
}

.social-card:hover .social-icon {
  color: var(--social-accent);
  transform: scale(1.1);
}

.social-name,
.social-handle {
  position: relative;
}

.social-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.social-handle {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--faint);
}

/* Stars */
.feedback-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.feedback-stars svg {
  width: 16px;
  height: 16px;
}

.contact-link-icon {
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.85rem;
  color: var(--faint);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--text);
}

/* Badge */
.working-on-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

.working-on-badge strong {
  color: var(--text);
}

.working-on-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s infinite ease-in-out;
  flex-shrink: 0;
}

/* Status Dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2.5s infinite ease-in-out;
}

/* ===== § 8. Feedback carousel =========================================== */
.feedback-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  padding-top: 0.5rem;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
}

/* Scrollbar (Hidden) */
.feedback-grid::-webkit-scrollbar {
  display: none;
  height: 0;
}

.feedback-card {
  position: relative;
  flex: 0 0 420px;
  height: 400px;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 2rem 1.75rem 1.75rem;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

/* big decorative quote mark */
.feedback-card::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
  transition: color 0.25s, opacity 0.25s;
}

/* top accent line, reveals on hover */
.feedback-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feedback-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--glow);
}

.feedback-card:hover::before {
  color: var(--accent2);
  opacity: 0.7;
}

.feedback-card:hover::after {
  transform: scaleX(1);
}

.feedback-stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.feedback-text {
  position: relative;
  flex: 1 1 auto;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feedback-author {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.feedback-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid var(--border);
  transition: border-color 0.25s;
}

.feedback-card:hover .feedback-avatar-img,
.feedback-card:hover .feedback-avatar-fallback {
  border-color: var(--accent2);
}

.feedback-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  border: 2px solid var(--border);
  transition: border-color 0.25s;
}

.feedback-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.feedback-role {
  font-size: 0.8rem;
  color: var(--faint);
}

.feedback-placeholder {
  color: var(--faint);
  font-size: 0.9rem;
  font-style: italic;
  padding: 2rem 0;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

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

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

/* Staggered Initial Fade-in Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpAnim 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

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

.fade-in-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDownAnim 0.8s ease forwards;
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

/* Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.btn-primary .ripple {
  background-color: rgba(0, 0, 0, 0.15);
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Toast Notifications — glassy pill matching the site's ocean cards. */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px) scale(0.96);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  padding: 0.65rem 1.1rem 0.65rem 0.8rem;
  border: 1px solid var(--glass-border-hover);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  z-index: 1000;
  pointer-events: none;
  font-family: inherit;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--glow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

/* Accent check badge at the head of the toast. */
.toast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* The copied value, shown in mono so it reads as a handle/code. */
.toast-value {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Badge Glow */
.badge-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.badge-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.badge-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Modal */
/* ===== § 11. Project modal ============================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-hover);
  border-radius: 18px;
  width: 92%;
  max-width: 1040px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--glow);
}

/* sheen along the top edge to match the site's glass cards */
.modal-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-hover), transparent);
  z-index: 101;
}

.modal-backdrop.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 100;
}

.modal-close:hover {
  color: var(--text);
}

.modal-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background:
    radial-gradient(120% 180% at 0% 0%, var(--glow), transparent 55%),
    radial-gradient(100% 160% at 100% 0%, var(--glow-purple), transparent 60%);
  border-radius: 18px 18px 0 0;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
  margin: 0.5rem 0 0;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0.6rem 0 0;
}

/* Body = a flex region that fills the remaining height. The tab bar pins to
   the top; only the active panel scrolls, so each part gets the full space. */
.modal-sections {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Tab bar */
.modal-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.modal-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1rem 0.4rem;
  margin-right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal-tab:hover {
  color: var(--text);
}

.modal-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.modal-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--glass-border);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
}

.modal-tab.active .modal-tab-count {
  background: var(--accent-cyan);
  color: var(--bg);
}

/* Panels */
.modal-panels {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.modal-panel {
  display: none;
  padding: 2.25rem 2.5rem 2.5rem;
  animation: modal-panel-in 0.25s ease;
}

.modal-panel.active {
  display: block;
}

@keyframes modal-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-panel p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.modal-panel p + p {
  margin-top: 1rem;
}

.modal-section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.modal-section-label::before {
  content: '// ';
  opacity: 0.6;
}

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

.modal-section p + p {
  margin-top: 0.85rem;
}

.modal-section .code-showcase {
  margin-top: 0;
}

/* Links row */
.modal-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.modal-link-btn:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
}

/* Featured teaser clip leading the Overview, above the description. */
.modal-featured-video {
  margin-bottom: 1.75rem;
}

/* Showcase: large single-column video reel — each clip gets full width so
   nothing feels cramped. Many clips simply scroll. */
.modal-embeds {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.modal-embed-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
}

.modal-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.modal-embed-container:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glow);
}

.modal-embed-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== § 12. Responsive / reduced-motion ================================= */
/* Responsive Adjustments */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  nav ul {
    width: 100%;
    margin-top: 0.75rem;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 0.8rem;
  }

  .nav-badge {
    display: none;
  }

  .hero {
    padding-top: 8rem;
  }

  section {
    padding: 4rem 1.25rem;
  }

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

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

  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .discord-embed {
    flex-wrap: wrap;
  }

  .discord-msg-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .feedback-card {
    flex-basis: 82vw;
  }
}