:root {
  color-scheme: dark;
  --bg: #020714;
  --panel: rgba(7, 19, 41, 0.68);
  --panel-strong: rgba(9, 28, 64, 0.82);
  --line: rgba(117, 188, 255, 0.22);
  --text: #edf7ff;
  --muted: #9cb3ca;
  --blue: #4aa3ff;
  --cyan: #4f7cff;
  --violet: #735cff;
  --radius: 8px;
  --header-height: 86px;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  background:
    radial-gradient(circle at 72% 18%, rgba(30, 86, 150, 0.18), transparent 34rem),
    radial-gradient(circle at 18% 70%, rgba(24, 48, 132, 0.08), transparent 30rem),
    linear-gradient(135deg, #01040c 0%, var(--bg) 52%, #02040c 100%);
  color: var(--text);
  cursor: auto;
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

img,
video,
iframe {
  max-width: 100%;
}

body.has-lightbox {
  overflow: hidden;
}

main {
  transform-origin: 50% 0;
}

.hero,
.section {
  transition: filter 0.18s linear, opacity 0.18s linear, transform 0.18s linear;
}

body::after {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, calc(var(--pull, 0) * 0.72)), transparent 34vh),
    linear-gradient(to bottom, rgba(10, 24, 78, calc(var(--pull, 0) * 0.2)), transparent 32vh);
  content: "";
  height: 42vh;
  left: 0;
  opacity: var(--pull, 0);
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 8;
}

body::before {
  background: radial-gradient(circle at 50% 50%, rgba(28, 55, 142, 0.045), transparent 44rem);
  content: "";
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

a {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

#starfield {
  height: 100dvh !important;
  inset: 0;
  max-width: none;
  opacity: 0.78;
  pointer-events: none;
  position: fixed;
  width: 100vw !important;
  z-index: -1;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 82, 180, 0.2), transparent 34rem),
    linear-gradient(90deg, rgba(48, 82, 190, 0.1), transparent 30%, transparent 70%, rgba(115, 92, 255, 0.08)),
    rgba(2, 7, 20, 0.76);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22), inset 0 -1px 0 rgba(83, 116, 210, 0.09);
  display: flex;
  gap: 24px;
  justify-content: center;
  left: 0;
  min-height: 86px;
  padding: 16px clamp(20px, 4vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
  isolation: isolate;
}

.header-star {
  animation: navStarTwinkle var(--twinkle, 3s) ease-in-out infinite;
  background: rgba(245, 250, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(210, 230, 255, 0.64);
  height: var(--size, 1px);
  left: var(--x, 50%);
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
  top: var(--y, 50%);
  transition: opacity 0.22s ease;
  width: var(--size, 1px);
  z-index: 0;
}

.brand,
.site-header nav,
.hero-actions,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  left: clamp(18px, 4vw, 64px);
  position: absolute;
  gap: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  z-index: 3;
}

.brand::after {
  background: radial-gradient(circle, rgba(44, 84, 190, 0.22), transparent 68%);
  content: "";
  height: 72px;
  left: -16px;
  opacity: 0;
  position: absolute;
  top: -16px;
  transform: scale(0.6);
  transition: opacity 0.28s ease, transform 0.28s ease;
  width: 72px;
  z-index: -1;
}

.brand:hover::after {
  opacity: 1;
  transform: scale(1);
}

.brand-mark {
  display: grid;
  height: 50px;
  place-items: center;
  position: relative;
  transition: transform 0.62s cubic-bezier(.16,.84,.18,1);
  width: 50px;
}

.brand img {
  animation: brandDrift 9s linear infinite, brandPulse 3.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(48, 82, 190, 0.42));
  height: 46px;
  object-fit: contain;
  transition: filter 0.62s ease, transform 0.62s cubic-bezier(.16,.84,.18,1);
  width: 46px;
}

.brand:hover img {
  animation-duration: 0.9s, 0.9s;
  filter: drop-shadow(0 0 28px rgba(74, 106, 255, 0.86));
  transform: scale(1.46) rotate(-18deg);
}

.brand:hover .brand-mark {
  transform: translateX(2px) scale(1.08);
}

.brand-text {
  display: inline-flex;
  gap: 0;
  font-size: 1.28rem;
  line-height: 1;
  text-shadow: 0 0 16px rgba(105, 130, 255, 0.18);
}

.brand-text span {
  display: inline-block;
  transform-origin: left center;
  transition:
    opacity 0.76s ease,
    transform 0.92s cubic-bezier(.12,.86,.16,1),
    filter 0.76s ease;
  transition-delay: var(--return-delay, 0ms);
  will-change: transform, opacity, filter;
}

.brand:hover .brand-text span {
  filter: blur(1.7px);
  opacity: 0;
  transform:
    translateX(var(--suck-x, -92px))
    translateY(var(--suck-y, -18px))
    rotate(var(--suck-rot, -42deg))
    scale(0.2);
  transition-delay: var(--delay, 0ms);
}

.site-header nav {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 14px;
  min-width: 0;
  overflow: visible;
  padding: 0;
  position: relative;
  z-index: 2;
}

.site-header nav a {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(108, 139, 245, 0.22);
  border-radius: 13px;
  color: #f5f9ff;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 800;
  justify-content: center;
  isolation: isolate;
  letter-spacing: 0.055em;
  line-height: 1;
  min-height: 54px;
  min-width: 128px;
  overflow: hidden;
  padding: 17px 22px 16px;
  position: relative;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease,
    transform 0.28s cubic-bezier(.16,.84,.22,1),
    background 0.28s ease;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(180, 215, 255, 0.42), 0 1px 0 rgba(0, 0, 0, 0.34);
  white-space: nowrap;
  z-index: 1;
}

.site-header nav a::before {
  background:
    linear-gradient(135deg, var(--nav-a, rgba(82, 112, 240, 0.24)), var(--nav-b, rgba(12, 28, 75, 0.72))),
    rgba(8, 18, 44, 0.72);
  content: "";
  inset: 0;
  opacity: 0.96;
  position: absolute;
  transform: translateY(0) scale(1);
  transform-origin: left center;
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(.16,.84,.22,1), filter 0.34s ease;
  clip-path: none;
  z-index: 0;
}

.site-header nav a .nav-star {
  animation: navStarTwinkle var(--twinkle, 2.6s) ease-in-out infinite;
  background: var(--nav-line, rgba(126, 154, 255, 0.9));
  border-radius: 50%;
  box-shadow: 0 0 5px var(--nav-line, rgba(126, 154, 255, 0.9));
  height: var(--size, 3px);
  left: var(--x, 50%);
  opacity: 0.22;
  pointer-events: none;
  position: absolute;
  top: var(--y, 50%);
  transition: opacity 0.2s ease;
  transform: translate(-50%, -50%) scale(0.75);
  width: var(--size, 3px);
  z-index: 1;
}

.header-star.is-respawning,
.site-header nav a .nav-star.is-respawning {
  animation-play-state: paused;
  opacity: 0 !important;
}

.site-header nav a .nav-star::before,
.site-header nav a .nav-star::after {
  background: inherit;
  border-radius: 999px;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.site-header nav a .nav-star::before {
  height: 1px;
  width: calc(var(--size, 3px) * 3.2);
}

.site-header nav a .nav-star::after {
  height: calc(var(--size, 3px) * 3.2);
  width: 1px;
}

.site-header nav a .nav-label {
  color: #f5f9ff;
  display: inline-block;
  position: relative;
  z-index: 5;
}

.site-header nav a::after {
  background:
    linear-gradient(90deg, transparent, var(--nav-line, rgba(100, 132, 255, 0.95)), transparent),
    radial-gradient(circle, var(--nav-line, rgba(100, 132, 255, 0.95)), transparent 58%);
  bottom: 7px;
  content: "";
  height: 2px;
  left: 16%;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.25);
  transition: opacity 0.2s ease, transform 0.22s ease;
  width: 68%;
}

.site-header nav a:hover {
  background: transparent;
  border-color: var(--nav-border, rgba(134, 164, 255, 0.48));
  box-shadow:
    inset 0 0 28px var(--nav-glow-in, rgba(92, 118, 235, 0.14)),
    0 0 26px var(--nav-glow, rgba(58, 88, 210, 0.22));
  color: var(--nav-text, var(--cyan));
  transform: translateY(-3px) scale(1.045);
}

.site-header nav a:hover::before {
  filter: saturate(1.25) brightness(1.12);
  opacity: 1;
  transform: translateY(-1px) scale(1.02);
}

.site-header nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header nav a:nth-child(1) {
  --nav-a: rgba(46, 84, 190, 0.34);
  --nav-b: rgba(6, 24, 64, 0.78);
  --nav-border: rgba(88, 132, 255, 0.5);
  --nav-glow: rgba(58, 92, 220, 0.3);
  --nav-line: rgba(104, 146, 255, 0.95);
  --nav-orb: rgba(104, 146, 255, 0.4);
  --nav-text: #8eaaff;
  --nav-shape: polygon(16px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.site-header nav a:nth-child(2) {
  --nav-a: rgba(58, 106, 210, 0.3);
  --nav-b: rgba(5, 30, 65, 0.8);
  --nav-border: rgba(84, 176, 255, 0.5);
  --nav-glow: rgba(54, 142, 240, 0.28);
  --nav-line: rgba(94, 184, 255, 0.95);
  --nav-orb: rgba(94, 184, 255, 0.42);
  --nav-text: #7dc7ff;
  --orb-x: 24%;
  --nav-shape: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 13px 50%);
}

.site-header nav a:nth-child(3) {
  --nav-a: rgba(98, 66, 190, 0.32);
  --nav-b: rgba(18, 18, 62, 0.82);
  --nav-border: rgba(146, 116, 255, 0.52);
  --nav-glow: rgba(115, 82, 235, 0.3);
  --nav-line: rgba(166, 136, 255, 0.96);
  --nav-orb: rgba(166, 136, 255, 0.44);
  --nav-text: #b3a0ff;
  --orb-x: 76%;
  --nav-shape: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}

.site-header nav a:nth-child(4) {
  --nav-a: rgba(31, 92, 128, 0.34);
  --nav-b: rgba(5, 31, 55, 0.8);
  --nav-border: rgba(70, 206, 220, 0.45);
  --nav-glow: rgba(40, 160, 210, 0.24);
  --nav-line: rgba(91, 220, 255, 0.9);
  --nav-orb: rgba(91, 220, 255, 0.38);
  --nav-text: #8de5ff;
  --orb-x: 18%;
  --nav-shape: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 16px 100%);
}

.site-header nav a:nth-child(5) {
  --nav-a: rgba(34, 68, 150, 0.34);
  --nav-b: rgba(8, 19, 49, 0.82);
  --nav-border: rgba(118, 150, 255, 0.48);
  --nav-glow: rgba(74, 102, 220, 0.28);
  --nav-line: rgba(126, 154, 255, 0.96);
  --nav-orb: rgba(126, 154, 255, 0.42);
  --nav-text: #a8b7ff;
  --nav-shape: polygon(12px 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 12px 100%, 0 50%);
}

.social-dock {
  display: grid;
  gap: 12px;
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.social-float {
  align-items: center;
  aspect-ratio: 1;
  backdrop-filter: blur(18px);
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.18), transparent 0.46rem),
    linear-gradient(135deg, var(--social-a), var(--social-b));
  border: 1px solid rgba(140, 165, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 22px var(--social-glow);
  display: flex;
  justify-content: center;
  overflow: visible;
  position: relative;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s cubic-bezier(.16,.84,.22,1);
  width: 52px;
}

.social-float::before {
  background:
    linear-gradient(100deg, transparent 0 32%, rgba(255, 255, 255, 0.28) 44%, rgba(255, 255, 255, 0.1) 52%, transparent 66% 100%);
  background-position: -90px 0;
  background-repeat: no-repeat;
  background-size: 130px 100%;
  border-radius: inherit;
  clip-path: circle(50%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: background-position 0.45s ease, opacity 0.18s ease;
  z-index: 0;
}

.social-float::after {
  background: rgba(5, 12, 30, 0.86);
  border: 1px solid rgba(140, 165, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: var(--text);
  content: attr(data-label);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(10px, -50%);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(.16,.84,.22,1);
  white-space: nowrap;
  z-index: 3;
}

.social-float:hover {
  border-color: rgba(210, 222, 255, 0.58);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34), 0 0 32px var(--social-glow);
  transform: translateX(-8px) scale(1.08);
}

.social-float:hover::before {
  opacity: 1;
  background-position: 70px 0;
}

.social-float:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.social-float img {
  height: 27px;
  position: relative;
  width: 27px;
  z-index: 1;
}

.social-float.youtube {
  --social-a: rgba(255, 38, 72, 0.52);
  --social-b: rgba(21, 33, 82, 0.82);
  --social-glow: rgba(255, 38, 72, 0.28);
}

.social-float.youtube-alt {
  --social-a: rgba(255, 255, 255, 0.22);
  --social-b: rgba(32, 48, 96, 0.86);
  --social-glow: rgba(255, 255, 255, 0.16);
}

.social-float.instagram {
  --social-a: rgba(255, 64, 129, 0.48);
  --social-b: rgba(82, 58, 170, 0.78);
  --social-glow: rgba(255, 64, 129, 0.26);
}

.social-float.twitch {
  --social-a: rgba(145, 70, 255, 0.5);
  --social-b: rgba(24, 39, 94, 0.82);
  --social-glow: rgba(145, 70, 255, 0.28);
}

.social-float.discord {
  --social-a: rgba(88, 101, 242, 0.5);
  --social-b: rgba(19, 48, 86, 0.82);
  --social-glow: rgba(88, 101, 242, 0.28);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(320px, 520px) minmax(0, 620px);
  justify-content: center;
  min-height: calc(100vh - 86px);
  padding: clamp(48px, 7vw, 94px) clamp(18px, 4vw, 64px);
}

.hero-copy {
  transform: translateY(-18px);
}

.hero-visual {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(48, 82, 190, 0.05),
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 70px rgba(74, 163, 255, 0.16);
  max-width: 520px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: filter 0.55s ease, transform 0.55s ease;
  width: 100%;
}

.hero-visual:hover {
  border-color: rgba(48, 82, 190, 0.58);
  box-shadow:
    0 0 0 1px rgba(48, 82, 190, 0.08),
    0 32px 110px rgba(0, 0, 0, 0.5),
    0 0 86px rgba(74, 163, 255, 0.22);
  transform: translateY(-4px) rotateX(1deg) rotateY(-1deg);
}

.hero-visual:hover img {
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.045);
}

.hero-visual::after {
  background:
    linear-gradient(90deg, rgba(48, 82, 190, 0), rgba(48, 82, 190, 0.18), rgba(48, 82, 190, 0)),
    linear-gradient(to top, rgba(2, 7, 20, 0.2), transparent 44%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.scanline {
  animation: scanMove 5s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(48, 82, 190, 0.48), transparent);
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 18%;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  font-size: clamp(3.8rem, 7vw, 6.3rem);
}

.eyebrow,
.tag {
  align-items: center;
  color: var(--cyan);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 7px;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.tag img {
  height: 16px;
  width: 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.8rem, 11vw, 9rem);
  letter-spacing: 0;
  line-height: 0.84;
  margin-bottom: 28px;
  text-shadow: 0 0 34px rgba(74, 163, 255, 0.44);
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.28rem;
  margin-bottom: 26px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
  line-height: 1.62;
}

.hero-actions {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 32px;
  max-width: 650px;
  width: 100%;
}

.button {
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.14), transparent 0.5rem),
    linear-gradient(135deg, var(--cta-a, rgba(54, 86, 190, 0.44)), var(--cta-b, rgba(7, 18, 46, 0.74)));
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.025), 0 14px 32px rgba(0, 0, 0, 0.2);
  color: var(--text);
  display: inline-flex;
  gap: 9px;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  min-width: 0;
  padding: 12px 15px;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.button.primary,
.instagram-action {
  grid-column: span 2;
}

.twitch-action,
.discord-action,
.secondary-action {
  grid-column: span 2;
}

.button::before {
  background: linear-gradient(100deg, transparent 0 30%, rgba(255, 255, 255, 0.2) 46%, transparent 64% 100%);
  background-position: -110px 0;
  background-repeat: no-repeat;
  background-size: 150px 100%;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  z-index: 0;
  transition: background-position 0.45s ease, opacity 0.18s ease;
}

.button:hover::before {
  background-position: 160px 0;
  opacity: 1;
}

.button::after {
  border: 1px solid var(--cta-border, var(--line));
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: border-color 0.25s ease;
  z-index: 2;
}

.button:hover::after {
  border-color: var(--cta-border-hover, rgba(126, 154, 255, 0.72));
}

.button img {
  flex: 0 0 auto;
  height: 23px;
  position: relative;
  width: 23px;
  z-index: 1;
}

.instagram-action img,
.discord-action img {
  height: 25px;
  width: 25px;
}

.button span {
  position: relative;
  z-index: 1;
}

.button:hover,
.panel:hover,
.post-card:hover {
  box-shadow: inset 0 0 26px var(--cta-glow-in, rgba(90, 120, 240, 0.12)), 0 18px 42px var(--cta-glow, rgba(74, 106, 255, 0.24));
  transform: translateY(-3px);
}

.panel:hover,
.post-card:hover {
  border-color: rgba(48, 82, 190, 0.72);
}

.button.primary {
  --cta-a: rgba(255, 38, 72, 0.58);
  --cta-b: rgba(48, 70, 180, 0.44);
  --cta-border: rgba(255, 80, 105, 0.38);
  --cta-border-hover: rgba(255, 120, 140, 0.76);
  --cta-glow: rgba(255, 38, 72, 0.26);
}

.instagram-action {
  --cta-a: rgba(255, 64, 129, 0.48);
  --cta-b: rgba(115, 92, 255, 0.28);
  --cta-border: rgba(255, 110, 170, 0.32);
  --cta-border-hover: rgba(255, 126, 190, 0.74);
  --cta-glow: rgba(255, 64, 129, 0.22);
}

.twitch-action {
  --cta-a: rgba(145, 70, 255, 0.48);
  --cta-b: rgba(34, 58, 128, 0.44);
  --cta-border: rgba(165, 112, 255, 0.34);
  --cta-border-hover: rgba(178, 132, 255, 0.78);
  --cta-glow: rgba(145, 70, 255, 0.24);
}

.discord-action {
  --cta-a: rgba(88, 101, 242, 0.48);
  --cta-b: rgba(26, 76, 120, 0.34);
  --cta-border: rgba(118, 132, 255, 0.32);
  --cta-border-hover: rgba(140, 152, 255, 0.74);
  --cta-glow: rgba(88, 101, 242, 0.24);
}

.secondary-action {
  --cta-a: rgba(255, 255, 255, 0.16);
  --cta-b: rgba(32, 48, 96, 0.56);
  --cta-border: rgba(210, 222, 255, 0.18);
  --cta-border-hover: rgba(230, 238, 255, 0.48);
  --cta-glow: rgba(210, 222, 255, 0.12);
  color: #c7d3ea;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 64px);
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.section-heading {
  max-width: 760px;
}

.signal-grid,
.post-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.post-card {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.panel {
  min-height: 150px;
  padding: clamp(18px, 3vw, 30px);
}

.video-panel {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.video-panel::before {
  background:
    linear-gradient(to top, rgba(2, 7, 20, 0.92), rgba(2, 7, 20, 0.28) 56%, transparent),
    linear-gradient(90deg, rgba(48, 82, 190, 0), rgba(48, 82, 190, 0.14), rgba(48, 82, 190, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.video-panel::after {
  animation: scanMove 5s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(48, 82, 190, 0.42), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 20%;
  z-index: 2;
}

.panel-preview {
  background:
    radial-gradient(circle at 50% 44%, rgba(74, 163, 255, 0.18), transparent 8rem),
    rgba(5, 13, 31, 0.92);
  background-position: center;
  background-size: cover;
  filter: saturate(0.95) contrast(1.02);
  inset: 0;
  opacity: 0.84;
  position: absolute;
  transform: scale(1.01);
  transition: filter 0.55s ease, opacity 0.55s ease, transform 0.55s ease;
  z-index: 0;
}

.video-panel:hover .panel-preview {
  filter: saturate(1.16) contrast(1.07);
  opacity: 1;
  transform: scale(1.045);
}

.video-panel .tag,
.video-panel h3,
.video-title {
  position: relative;
  z-index: 3;
}

.video-panel h3 {
  margin-bottom: 8px;
}

.instagram-section .section-heading {
  max-width: none;
}

.instagram-section h2 {
  white-space: nowrap;
}

.signal-section .section-heading {
  max-width: none;
}

.signal-section h2 {
  white-space: nowrap;
}

.signal-section .tag {
  font-size: 0.92rem;
  gap: 9px;
}

.signal-section .tag img {
  height: 22px;
  width: 22px;
}

.video-title {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.95rem;
  font-weight: 800;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  overflow: hidden;
}

.video-panel.is-live .tag::before {
  animation: livePulse 1.35s ease-in-out infinite;
  background: #ff2448;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 36, 72, 0.8);
  content: "";
  display: inline-block;
  height: 9px;
  margin-right: 8px;
  width: 9px;
}

.panel strong {
  color: var(--blue);
}

.feature-panel {
  background: linear-gradient(135deg, rgba(16, 45, 98, 0.86), rgba(5, 13, 31, 0.74));
}

.post-grid {
  grid-template-columns: repeat(3, 1fr);
}

.instagram-embed-grid {
  align-items: start;
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.instagram-status,
.instagram-placeholder {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.insta-card {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 72% 18%, rgba(48, 82, 190, 0.16), transparent 10rem),
    var(--panel);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(48, 82, 190, 0.05),
    0 28px 90px rgba(0, 0, 0, 0.38),
    0 0 62px rgba(74, 163, 255, 0.12);
  display: block;
  max-width: 520px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}

.insta-card::before {
  background:
    linear-gradient(90deg, rgba(48, 82, 190, 0), rgba(48, 82, 190, 0.16), rgba(48, 82, 190, 0)),
    linear-gradient(to top, rgba(2, 7, 20, 0.5), rgba(2, 7, 20, 0.08) 52%, transparent);
  content: "";
  inset: 0;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.45s ease;
  z-index: 1;
}

.insta-card::before {
  background-size: 100% 100%;
}

.insta-card::after {
  border: 1px solid var(--line);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
  z-index: 3;
}

.insta-card img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: filter 0.55s ease, transform 0.55s ease;
  width: 100%;
}

.insta-card:hover {
  box-shadow:
    0 0 0 1px rgba(48, 82, 190, 0.08),
    0 32px 110px rgba(0, 0, 0, 0.48),
    0 0 76px rgba(74, 163, 255, 0.2);
  transform: translateY(-4px) rotateX(1deg) rotateY(-1deg);
}

.insta-card:hover::before {
  opacity: 0.82;
}

.insta-card:hover::after {
  border-color: rgba(48, 82, 190, 0.58);
  box-shadow: inset 0 0 32px rgba(48, 82, 190, 0.08);
}

.insta-card:hover img {
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.045);
}

.insta-card .scanline,
.insta-card-line {
  animation: scanMove 5s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(48, 82, 190, 0.48), transparent);
  height: 1px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 18%;
  z-index: 2;
}

.insta-card-index {
  bottom: 16px;
  color: rgba(237, 247, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 900;
  left: 16px;
  letter-spacing: 0.18em;
  position: absolute;
  text-transform: uppercase;
  z-index: 2;
}

.post-card {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.post-card::before {
  background:
    radial-gradient(circle at 70% 20%, rgba(48, 82, 190, 0.28), transparent 10rem),
    url("/assets/galanium.png") center / 74% no-repeat;
  content: "";
  inset: 0;
  opacity: 0.28;
  position: absolute;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.post-card:hover::before {
  opacity: 0.5;
  transform: scale(1.08) rotate(8deg);
}

.insta-preview::before {
  background:
    linear-gradient(to top, rgba(2, 7, 20, 0.88), rgba(2, 7, 20, 0.14) 56%, transparent),
    radial-gradient(circle at 70% 20%, rgba(255, 64, 129, 0.28), transparent 10rem);
  opacity: 1;
  z-index: 1;
}

.insta-preview img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: filter 0.45s ease, transform 0.45s ease;
  width: 100%;
}

.insta-preview:hover img {
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.06);
}

.post-card span,
.post-card strong,
.post-card em {
  display: block;
  position: relative;
  z-index: 2;
}

.post-card span {
  color: var(--cyan);
  font-weight: 900;
}

.post-card strong {
  font-size: 1.35rem;
  margin-top: auto;
}

.post-card em {
  color: var(--muted);
  font-style: normal;
  margin-top: 6px;
}

.games-hero {
  min-height: calc(100vh - 62px);
}

.games-hero h1 {
  margin-bottom: 24px;
}

.game-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  margin-top: 42px;
}

.game-card {
  backdrop-filter: blur(18px);
  background:
    radial-gradient(circle at 74% 20%, rgba(48, 82, 190, 0.22), transparent 14rem),
    linear-gradient(135deg, rgba(16, 45, 98, 0.76), rgba(5, 13, 31, 0.78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(160px, 0.78fr) minmax(0, 1fr);
  min-height: 320px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  position: relative;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.game-card:hover {
  border-color: rgba(48, 82, 190, 0.66);
  box-shadow:
    inset 0 0 26px rgba(90, 120, 240, 0.1),
    0 22px 58px rgba(0, 0, 0, 0.32),
    0 0 48px rgba(48, 82, 190, 0.16);
  transform: translateY(-3px);
}

.game-art {
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 48%, rgba(74, 163, 255, 0.16), transparent 9rem),
    rgba(2, 7, 20, 0.44);
  border: 1px solid rgba(117, 188, 255, 0.14);
  border-radius: var(--radius);
  display: grid;
  grid-row: 1 / span 3;
  min-height: 230px;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.game-art::after {
  background: linear-gradient(to top, rgba(2, 7, 20, 0.2), transparent 48%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.game-art img {
  filter: drop-shadow(0 0 30px rgba(48, 82, 190, 0.28));
  max-height: 82%;
  max-width: 82%;
  object-fit: contain;
}

.game-card span,
.game-card h2,
.game-card p {
  grid-column: 2;
  position: relative;
}

.game-card span {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-top: auto;
}

.game-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  margin-bottom: 0;
}

.game-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.portfolio-hero {
  align-items: center;
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  grid-template-rows: auto auto auto;
  justify-items: center;
  min-height: calc(100vh - 86px);
  padding-bottom: clamp(38px, 5vw, 70px);
  padding-top: clamp(38px, 5vw, 70px);
}

.portfolio-heading {
  max-width: 760px;
  text-align: center;
}

.portfolio-heading h1 {
  margin-bottom: 0;
}

.portfolio-tabs {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 980px;
  width: 100%;
}

.portfolio-tab {
  background:
    radial-gradient(circle at 18% 18%, rgba(108, 184, 255, 0.14), transparent 1.2rem),
    linear-gradient(135deg, rgba(16, 45, 98, 0.74), rgba(5, 13, 31, 0.82));
  border: 1px solid rgba(108, 139, 245, 0.24);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(74, 106, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-height: 46px;
  overflow: hidden;
  padding: 10px 18px;
  position: relative;
  text-transform: uppercase;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.portfolio-tab::before {
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  content: "";
  inset: -40% auto -40% -70%;
  position: absolute;
  transform: rotate(14deg);
  transition: left 0.48s ease;
  width: 52%;
}

.portfolio-tab:hover,
.portfolio-tab.is-active {
  border-color: rgba(93, 190, 255, 0.5);
  box-shadow: inset 0 0 22px rgba(72, 150, 255, 0.14), 0 0 28px rgba(70, 158, 255, 0.16);
  color: #dff4ff;
  transform: translateY(-2px);
}

.portfolio-tab:hover::before,
.portfolio-tab.is-active::before {
  left: 120%;
}

.portfolio-carousel {
  align-items: center;
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  max-width: 1220px;
  width: 100%;
}

.portfolio-track {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 0;
  overflow: visible;
  padding: 8px 4px 18px;
  position: relative;
}

.project-card {
  backdrop-filter: blur(18px);
  background:
    radial-gradient(circle at 80% 12%, rgba(83, 240, 255, 0.16), transparent 8rem),
    radial-gradient(circle at 12% 92%, rgba(115, 92, 255, 0.16), transparent 10rem),
    linear-gradient(145deg, rgba(10, 31, 73, 0.78), rgba(4, 10, 26, 0.86));
  border: 1px solid rgba(108, 139, 245, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  display: none;
  max-width: min(980px, 100%);
  min-height: 0;
  overflow: clip;
  position: relative;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  width: 100%;
}

.project-card.is-current {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
}

.project-card::before {
  background:
    linear-gradient(90deg, transparent, rgba(93, 190, 255, 0.34), transparent),
    radial-gradient(circle, rgba(93, 190, 255, 0.18), transparent 62%);
  content: "";
  height: 1px;
  left: 10%;
  opacity: 0.65;
  pointer-events: none;
  position: absolute;
  right: 10%;
  top: 0;
}

.project-card::after {
  display: none;
}

.project-card:hover {
  border-color: rgba(93, 190, 255, 0.52);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34), 0 0 52px rgba(48, 82, 190, 0.18);
}

.project-media {
  align-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(93, 190, 255, 0.16), transparent 9rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, rgba(6, 16, 42, 0.92), rgba(3, 8, 22, 0.96));
  border-bottom: 1px solid rgba(108, 139, 245, 0.18);
  aspect-ratio: 16 / 9;
  display: block;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

a.project-media {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

a.project-media:hover .demo-window,
a.project-media:hover .figma-frame {
  border-color: rgba(169, 207, 255, 0.62);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38), inset 0 0 36px rgba(93, 190, 255, 0.14);
  transform: translateY(-2px) scale(1.01);
}

.project-media iframe,
.project-media img,
.project-media video {
  border: 0;
  height: 100%;
  inset: 0;
  display: block;
  object-fit: cover;
  opacity: 1;
  pointer-events: auto;
  position: absolute;
  z-index: 2;
  width: 100%;
}

.project-card:hover .project-media iframe,
.project-card:hover .project-media img,
.project-card:hover .project-media video {
  filter: saturate(1.04) contrast(1.02);
  opacity: 1;
}

.project-media:has(iframe)::before,
.project-media:has(img)::before,
.project-media:has(video)::before {
  display: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  height: auto;
  inset: 0;
  pointer-events: none;
  transform: none;
  width: auto;
  z-index: 1;
}

.project-media:has(iframe)::after,
.project-media:has(img)::after,
.project-media:has(video)::after {
  display: none;
}

.project-media::before,
.project-media::after {
  border: 1px solid rgba(93, 190, 255, 0.22);
  border-radius: 50%;
  content: "";
  height: 150px;
  position: absolute;
  pointer-events: none;
  transform: rotate(-18deg) scaleY(0.42);
  width: 270px;
}

.project-media::after {
  border-color: rgba(115, 92, 255, 0.18);
  transform: rotate(18deg) scaleY(0.38);
}

.project-media span {
  backdrop-filter: blur(10px);
  background: rgba(4, 10, 26, 0.62);
  border: 1px solid rgba(93, 190, 255, 0.22);
  border-radius: 999px;
  color: rgba(223, 244, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  position: relative;
  text-transform: uppercase;
  z-index: 3;
}

.project-media.local-animation {
  background:
    radial-gradient(circle at 50% 42%, rgba(93, 190, 255, 0.2), transparent 9rem),
    radial-gradient(circle at 22% 78%, rgba(115, 92, 255, 0.2), transparent 8rem),
    linear-gradient(135deg, rgba(7, 18, 48, 0.96), rgba(3, 8, 22, 0.98));
}

.project-media.local-animation::before {
  border-color: rgba(93, 190, 255, 0.34);
  box-shadow: 0 0 34px rgba(70, 158, 255, 0.12);
}

.project-media.local-animation::after {
  border-color: rgba(115, 92, 255, 0.28);
}

.media-gallery {
  background:
    radial-gradient(circle at 76% 18%, rgba(74, 126, 255, 0.18), transparent 14rem),
    linear-gradient(145deg, rgba(6, 16, 42, 0.96), rgba(3, 8, 22, 0.98));
}

.media-gallery > img {
  cursor: zoom-in;
  object-fit: contain;
  padding: clamp(10px, 2vw, 22px);
}

.gallery-thumbs {
  bottom: 12px;
  display: flex;
  gap: 8px;
  left: 50%;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  padding: 4px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 5;
}

.gallery-thumbs button {
  aspect-ratio: 1;
  background: rgba(5, 13, 34, 0.78);
  border: 1px solid rgba(126, 154, 255, 0.28);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  flex: 0 0 auto;
  height: 54px;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.is-active {
  border-color: rgba(93, 190, 255, 0.76);
  box-shadow: 0 0 20px rgba(93, 190, 255, 0.28);
  transform: translateY(-2px);
}

.gallery-thumbs img {
  height: 100%;
  inset: auto;
  object-fit: cover;
  opacity: 0.9;
  padding: 0;
  position: static;
  width: 100%;
}

.demo-preview,
.figma-preview {
  align-items: center;
  display: grid;
  justify-items: center;
  padding: clamp(22px, 4vw, 48px);
}

.demo-preview::before,
.demo-preview::after,
.figma-preview::before,
.figma-preview::after {
  display: none;
}

.demo-window,
.figma-frame {
  background:
    radial-gradient(circle at 82% 18%, rgba(93, 190, 255, 0.14), transparent 8rem),
    linear-gradient(145deg, rgba(10, 30, 70, 0.92), rgba(4, 10, 26, 0.96));
  border: 1px solid rgba(126, 154, 255, 0.34);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), inset 0 0 28px rgba(93, 190, 255, 0.08);
  display: grid;
  gap: 12px;
  max-width: 520px;
  padding: clamp(22px, 4vw, 42px);
  position: relative;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  width: min(86%, 520px);
  z-index: 3;
}

.demo-window span,
.figma-frame span,
.figma-frame small {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.demo-window strong,
.figma-frame strong {
  color: #f5f9ff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  text-shadow: 0 0 22px rgba(93, 190, 255, 0.24);
}

.demo-bars {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.demo-bars i {
  background: linear-gradient(90deg, #4aa3ff, #735cff);
  border-radius: 999px;
  display: block;
  height: 9px;
}

.demo-bars i:nth-child(1) { width: 82%; }
.demo-bars i:nth-child(2) { width: 56%; }
.demo-bars i:nth-child(3) { width: 72%; }
.demo-bars i:nth-child(4) { width: 38%; }

.demo-posters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.demo-posters i {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, rgba(74, 163, 255, 0.52), rgba(115, 92, 255, 0.4));
  border: 1px solid rgba(223, 244, 255, 0.16);
  border-radius: 8px;
  display: block;
}

.bank-demo {
  background:
    radial-gradient(circle at 50% 42%, rgba(74, 126, 255, 0.24), transparent 14rem),
    linear-gradient(145deg, rgba(5, 13, 34, 0.96), rgba(8, 20, 55, 0.94));
}

.cinema-demo {
  background:
    radial-gradient(circle at 72% 36%, rgba(115, 92, 255, 0.24), transparent 14rem),
    linear-gradient(145deg, rgba(5, 13, 34, 0.96), rgba(8, 20, 55, 0.94));
}

.figma-preview {
  background:
    linear-gradient(135deg, rgba(255, 250, 239, 0.08), rgba(74, 126, 255, 0.12)),
    linear-gradient(145deg, rgba(5, 13, 34, 0.96), rgba(8, 20, 55, 0.94));
}

.figma-image-preview {
  padding: 0;
}

.figma-image-preview::before,
.figma-image-preview::after {
  display: none;
}

.figma-showcase {
  background: #14171d;
  display: grid;
  height: 100%;
  inset: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.figma-showcase::after {
  background:
    linear-gradient(180deg, rgba(3, 8, 22, 0.05), rgba(3, 8, 22, 0.5)),
    radial-gradient(circle at 78% 16%, rgba(93, 190, 255, 0.22), transparent 9rem);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.figma-showcase img {
  height: 100%;
  object-fit: contain;
  padding: 10px;
  position: static;
  width: 100%;
}

.xyz-showcase {
  gap: 2px;
  grid-template-columns: 1fr 1fr;
}

.figma-preview-chip {
  bottom: 14px;
  left: 14px;
  position: absolute;
}

.xyz-preview .figma-frame {
  border-color: rgba(232, 170, 66, 0.46);
}

.alvea-preview .figma-frame {
  border-color: rgba(93, 190, 255, 0.46);
}

.sound-card .project-media {
  background:
    radial-gradient(circle at 50% 18%, rgba(60, 120, 255, 0.18), transparent 13rem),
    linear-gradient(180deg, rgba(8, 20, 52, 0.96), rgba(2, 7, 22, 0.99));
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  padding: 50px clamp(22px, 5vw, 62px);
}

.sound-card .project-media::before,
.sound-card .project-media::after {
  display: none;
}

.sound-orb {
  display: none;
}

.sound-orb::before,
.sound-orb::after {
  display: none;
}

.sound-bars {
  align-items: end;
  background:
    radial-gradient(circle at 50% 44%, rgba(92, 190, 255, 0.16), transparent 11rem),
    linear-gradient(135deg, rgba(23, 56, 121, 0.62), rgba(6, 18, 50, 0.92) 58%, rgba(3, 8, 24, 0.98));
  border: 1px solid rgba(114, 174, 255, 0.42);
  border-radius: 30px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 54px rgba(55, 121, 255, 0.2),
    inset 0 0 42px rgba(87, 158, 255, 0.1);
  display: flex;
  gap: clamp(9px, 1.15vw, 16px);
  height: clamp(148px, 19vw, 190px);
  justify-content: center;
  max-width: 680px;
  overflow: hidden;
  padding: clamp(58px, 7vw, 70px) clamp(22px, 4vw, 34px) clamp(38px, 4vw, 46px);
  position: relative;
  width: min(100%, 680px);
  z-index: 3;
}

.sound-bars::before {
  color: rgba(225, 244, 255, 0.9);
  content: "Radio Arles";
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  font-weight: 900;
  left: clamp(18px, 3vw, 30px);
  letter-spacing: 0;
  position: absolute;
  top: clamp(14px, 2vw, 22px);
  text-shadow: 0 0 20px rgba(111, 190, 255, 0.26);
}

.sound-bars::after {
  background: linear-gradient(90deg, rgba(70, 126, 255, 0.82), rgba(146, 220, 255, 0.98), rgba(70, 126, 255, 0.82));
  border-radius: 999px;
  bottom: clamp(22px, 3vw, 30px);
  box-shadow: 0 0 24px rgba(98, 184, 255, 0.5);
  content: "";
  height: 4px;
  left: clamp(22px, 3vw, 32px);
  position: absolute;
  right: clamp(22px, 3vw, 32px);
}

.sound-bars span {
  animation: soundPulse 1.75s ease-in-out infinite;
  background: linear-gradient(180deg, #f5fcff, #8fdcff 30%, #428fff 68%, #1d5ce2);
  border-radius: 999px;
  box-shadow:
    0 0 20px rgba(93, 190, 255, 0.58),
    inset 0 2px 8px rgba(255, 255, 255, 0.28);
  display: block;
  height: calc(28px + var(--bar, 0.5) * 82px);
  width: clamp(15px, 2.1vw, 26px);
}

.sound-bars span:nth-child(1) { --bar: 0.35; animation-delay: -0.2s; }
.sound-bars span:nth-child(2) { --bar: 0.68; animation-delay: -0.55s; }
.sound-bars span:nth-child(3) { --bar: 0.92; animation-delay: -0.1s; }
.sound-bars span:nth-child(4) { --bar: 0.52; animation-delay: -0.75s; }
.sound-bars span:nth-child(5) { --bar: 0.82; animation-delay: -0.35s; }
.sound-bars span:nth-child(6) { --bar: 0.46; animation-delay: -0.95s; }
.sound-bars span:nth-child(7) { --bar: 0.72; animation-delay: -0.45s; }
.sound-bars span:nth-child(8) { --bar: 0.3; animation-delay: -0.8s; }

.sound-card audio {
  display: none;
}

.custom-audio {
  align-items: center;
  backdrop-filter: blur(18px);
  background:
    radial-gradient(circle at 18% 0%, rgba(93, 190, 255, 0.16), transparent 6rem),
    linear-gradient(135deg, rgba(8, 19, 50, 0.96), rgba(3, 8, 23, 0.98));
  border: 1px solid rgba(118, 171, 255, 0.38);
  border-radius: 24px;
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.34),
    inset 0 0 28px rgba(99, 168, 255, 0.08);
  display: grid;
  gap: 12px 18px;
  grid-template-columns: auto 1fr auto;
  max-width: min(620px, calc(100% - 34px));
  padding: 13px 15px;
  position: relative;
  width: min(100%, 620px);
  z-index: 6;
}

.audio-toggle {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(54, 132, 255, 0.98), rgba(93, 101, 255, 0.92));
  border: 1px solid rgba(219, 240, 255, 0.48);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(74, 126, 255, 0.38);
  color: #f5f9ff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  min-width: 82px;
  padding: 12px 16px;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  border-color: rgba(235, 248, 255, 0.78);
  box-shadow: 0 0 34px rgba(81, 153, 255, 0.46);
  transform: translateY(-1px);
}

.audio-seek {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(90deg, rgba(46, 118, 255, 0.98), rgba(91, 188, 255, 0.98), rgba(237, 250, 255, 0.98)) 0 0 / calc(var(--audio-percent, 0) * 1%) 100% no-repeat,
    linear-gradient(90deg, rgba(184, 216, 255, 0.11), rgba(91, 150, 255, 0.16)),
    rgba(4, 12, 33, 0.96);
  border: 1px solid rgba(132, 178, 255, 0.34);
  border-radius: 999px;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(63, 137, 255, 0.12);
  cursor: pointer;
  display: block;
  height: 18px;
  line-height: 1;
  overflow: visible;
  padding: 0;
  position: relative;
  touch-action: none;
  width: 100%;
}

.audio-seek::-webkit-slider-runnable-track {
  background: transparent;
  border: 0;
  height: 18px;
}

.audio-seek::-moz-range-track {
  background: transparent;
  border: 0;
  height: 18px;
}

.audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: radial-gradient(circle, #ffffff 0 18%, #aee6ff 20% 48%, #367cff 50% 100%);
  border: 2px solid rgba(235, 248, 255, 0.9);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(125, 208, 255, 0.86),
    0 0 38px rgba(73, 120, 255, 0.45);
  height: 22px;
  margin-top: -2px;
  width: 22px;
}

.audio-seek::-moz-range-thumb {
  background: radial-gradient(circle, #ffffff 0 18%, #aee6ff 20% 48%, #367cff 50% 100%);
  border: 2px solid rgba(235, 248, 255, 0.9);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(125, 208, 255, 0.86),
    0 0 38px rgba(73, 120, 255, 0.45);
  height: 18px;
  width: 18px;
}

.audio-seek:hover,
.audio-seek:focus-visible {
  border-color: rgba(161, 220, 255, 0.64);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(77, 168, 255, 0.28);
  outline: none;
}

.audio-time {
  background: rgba(2, 7, 20, 0.64);
  border: 1px solid rgba(117, 166, 255, 0.22);
  border-radius: 999px;
  color: rgba(226, 246, 255, 0.92);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  min-width: 96px;
  padding: 11px 13px;
  text-align: center;
  white-space: nowrap;
}

.project-media .audio-time span,
.project-media .audio-time b {
  backdrop-filter: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  padding: 0;
  text-transform: none;
}

.audio-time b {
  color: rgba(116, 166, 255, 0.55);
  padding: 0 4px;
}

.image-lightbox {
  align-items: center;
  backdrop-filter: blur(22px);
  background:
    radial-gradient(circle at 50% 12%, rgba(62, 102, 255, 0.22), transparent 24rem),
    rgba(1, 4, 13, 0.88);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: clamp(18px, 4vw, 48px);
  position: fixed;
  z-index: 200;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  border: 1px solid rgba(110, 154, 255, 0.42);
  border-radius: 18px;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.58), 0 0 70px rgba(74, 126, 255, 0.18);
  max-height: min(86vh, 1200px);
  max-width: min(92vw, 1380px);
  object-fit: contain;
}

.meme-modal {
  align-items: center;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 62, 111, 0.18), transparent 20rem),
    radial-gradient(circle at 22% 78%, rgba(93, 190, 255, 0.12), transparent 18rem),
    rgba(2, 7, 20, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 190;
}

.meme-modal[hidden] {
  display: none;
}

.meme-modal-shell {
  background:
    radial-gradient(circle at 16% 20%, rgba(93, 190, 255, 0.14), transparent 16rem),
    linear-gradient(135deg, rgba(8, 18, 48, 0.96), rgba(4, 9, 24, 0.98));
  border: 1px solid rgba(93, 190, 255, 0.24);
  border-bottom-color: rgba(255, 62, 111, 0.26);
  border-radius: 22px;
  box-shadow: 0 26px 110px rgba(0, 0, 0, 0.62), 0 0 70px rgba(93, 190, 255, 0.14);
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  max-height: min(86vh, 860px);
  max-width: min(1180px, 94vw);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.meme-modal-close {
  align-items: center;
  background: rgba(5, 10, 26, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #f5f9ff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.7rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 42px;
  z-index: 4;
}

.meme-modal-close:hover {
  border-color: rgba(93, 190, 255, 0.55);
  box-shadow: 0 0 26px rgba(93, 190, 255, 0.18);
  transform: scale(1.04);
}

.meme-modal-visual {
  align-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 62, 111, 0.14), transparent 19rem),
    #020714;
  display: grid;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.meme-modal-visual img {
  height: 100%;
  max-height: 86vh;
  object-fit: contain;
  width: 100%;
}

.meme-modal-arrow {
  background: transparent;
  border: 0;
  color: #f5f9ff;
  cursor: pointer;
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  padding: 0 12px;
  position: absolute;
  text-shadow: 0 0 28px rgba(93, 190, 255, 0.42);
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.meme-modal-arrow:hover {
  color: #ffffff;
  text-shadow: 0 0 36px rgba(255, 62, 111, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.meme-modal-arrow.prev {
  left: 12px;
}

.meme-modal-arrow.next {
  right: 12px;
}

.meme-modal-copy {
  border-left: 1px solid rgba(93, 190, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.meme-modal-kicker {
  color: #ff5b86;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meme-modal-copy h2 {
  color: #f5f9ff;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.86;
  margin: 0;
  text-shadow: 0 0 32px rgba(255, 62, 111, 0.2);
}

.meme-modal-copy p {
  color: rgba(210, 226, 245, 0.84);
  font-size: 1rem;
  line-height: 1.62;
  margin: 0;
}

.meme-modal-pills,
.meme-modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meme-modal-pills span {
  background: rgba(255, 62, 111, 0.11);
  border: 1px solid rgba(255, 62, 111, 0.28);
  border-radius: 999px;
  color: #fff5fa;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.meme-modal-thumbs button {
  background: rgba(5, 10, 26, 0.74);
  border: 1px solid rgba(93, 190, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
  height: 54px;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 78px;
}

.meme-modal-thumbs button.is-active,
.meme-modal-thumbs button:hover {
  border-color: rgba(255, 62, 111, 0.58);
  box-shadow: 0 0 22px rgba(255, 62, 111, 0.18);
  transform: translateY(-1px);
}

.meme-modal-thumbs img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.lightbox-close {
  align-items: center;
  background: rgba(8, 18, 48, 0.86);
  border: 1px solid rgba(138, 176, 255, 0.44);
  border-radius: 50%;
  color: #f5f9ff;
  cursor: pointer;
  display: grid;
  font-size: 2rem;
  height: 52px;
  justify-items: center;
  line-height: 1;
  position: fixed;
  right: clamp(16px, 4vw, 42px);
  top: clamp(16px, 4vw, 42px);
  width: 52px;
  z-index: 201;
}

.project-copy {
  background:
    radial-gradient(circle at 86% 18%, rgba(93, 190, 255, 0.1), transparent 12rem),
    linear-gradient(135deg, rgba(6, 16, 42, 0.68), rgba(3, 8, 22, 0.78));
  border-top: 1px solid rgba(108, 139, 245, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: clamp(190px, 20vw, 250px);
  padding: clamp(22px, 3vw, 34px);
}

.project-meta {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.project-meta span {
  color: var(--cyan);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-copy h2 {
  color: #f5f9ff;
  display: -webkit-box;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.12;
  margin: 0 0 2px;
  overflow: hidden;
  padding-bottom: 0.08em;
  text-shadow: 0 0 22px rgba(137, 184, 255, 0.18), 0 12px 34px rgba(0, 0, 0, 0.35);
  white-space: normal;
}

.project-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
  max-height: none;
  overflow: visible;
}

.instagram-project {
  display: grid;
  place-items: center;
}

.portfolio-instagram-link {
  color: inherit;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  text-decoration: none;
  width: 100%;
}

.portfolio-instagram-link img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.portfolio-instagram-link span {
  background: rgba(5, 10, 26, 0.74);
  border: 1px solid rgba(93, 190, 255, 0.22);
  border-radius: 999px;
  bottom: 14px;
  color: #f5f9ff;
  font-family: var(--font-display);
  font-weight: 900;
  left: 14px;
  padding: 7px 11px;
  position: absolute;
}

.instagram-fallback {
  align-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(109, 83, 255, 0.28), transparent 12rem),
    linear-gradient(145deg, rgba(8, 20, 55, 0.96), rgba(3, 8, 22, 0.98));
  display: grid;
  justify-items: center;
}

.meme-preview {
  border: 0;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.meme-preview img {
  object-fit: cover;
  transition: filter 0.28s ease, transform 0.28s ease;
}

.meme-preview::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 62, 111, 0.24), transparent),
    radial-gradient(circle at 74% 22%, rgba(255, 62, 111, 0.22), transparent 7rem);
  content: "";
  inset: 0;
  opacity: 0.82;
  pointer-events: none;
  position: absolute;
}

.meme-preview:hover img {
  filter: saturate(1.14) contrast(1.05);
  transform: scale(1.035);
}

.meme-preview-badge {
  background: rgba(5, 10, 26, 0.78);
  border: 1px solid rgba(255, 62, 111, 0.48);
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 0 22px rgba(255, 62, 111, 0.2);
  color: #fff5fa;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  left: 14px;
  padding: 8px 12px;
  position: absolute;
  z-index: 2;
}

.project-link {
  align-items: center;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 30, 74, 0.34), transparent 1.2rem),
    linear-gradient(135deg, rgba(120, 18, 48, 0.72), rgba(16, 35, 88, 0.76));
  border: 1px solid rgba(255, 76, 116, 0.32);
  border-radius: 999px;
  color: #eef7ff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  position: relative;
  text-decoration: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  width: fit-content;
}

.project-link-button {
  cursor: pointer;
}

.project-link:hover {
  border-color: rgba(255, 88, 132, 0.68);
  box-shadow: 0 0 24px rgba(255, 42, 95, 0.18);
  transform: translateY(-1px);
}

.portfolio-arrow {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #dff4ff;
  display: inline-flex;
  font: inherit;
  font-size: 5.6rem;
  font-weight: 900;
  height: 142px;
  justify-content: center;
  line-height: 1;
  text-shadow: 0 0 24px rgba(93, 190, 255, 0.36), 0 0 58px rgba(70, 106, 255, 0.22);
  transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease;
  width: 78px;
}

.portfolio-arrow:hover {
  color: #ffffff;
  text-shadow: 0 0 34px rgba(93, 190, 255, 0.62), 0 0 82px rgba(70, 106, 255, 0.34);
  transform: translateY(-2px) scale(1.06);
}

.portfolio-contact {
  align-items: center;
  background:
    radial-gradient(circle at 10% 42%, rgba(93, 190, 255, 0.12), transparent 12rem),
    radial-gradient(circle at 88% 36%, rgba(91, 76, 255, 0.1), transparent 16rem);
  border-radius: 34px;
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  grid-template-columns: auto minmax(0, 1fr);
  margin: 48px auto 0;
  max-width: 940px;
  padding: clamp(24px, 4vw, 36px);
  position: relative;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  width: 100%;
}

.portfolio-contact:hover {
  box-shadow: 0 0 0 1px rgba(93, 190, 255, 0.28), 0 0 52px rgba(93, 190, 255, 0.14), 0 24px 84px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.portfolio-contact::before {
  background:
    radial-gradient(circle at 16% 42%, rgba(93, 190, 255, 0.22), transparent 8rem),
    radial-gradient(circle at 72% 48%, rgba(115, 92, 255, 0.17), transparent 12rem),
    linear-gradient(90deg, transparent, rgba(93, 190, 255, 0.18), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.portfolio-contact::after {
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(93, 190, 255, 0.18) 43%, transparent 51%),
    linear-gradient(155deg, transparent 0 56%, rgba(255, 62, 111, 0.12) 61%, transparent 68%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
  position: absolute;
}

.contact-portrait {
  display: grid;
  height: clamp(116px, 15vw, 154px);
  isolation: isolate;
  place-items: center;
  position: relative;
  width: clamp(116px, 15vw, 154px);
}

.contact-portrait::before {
  background:
    radial-gradient(circle, rgba(93, 190, 255, 0.34), transparent 58%),
    conic-gradient(from 110deg, rgba(93, 190, 255, 0), rgba(93, 190, 255, 0.64), rgba(115, 92, 255, 0.18), rgba(93, 190, 255, 0));
  border-radius: 50%;
  content: "";
  filter: blur(0.2px);
  inset: 0;
  opacity: 0.8;
  position: absolute;
  animation: contact-core 7s ease-in-out infinite;
  z-index: -2;
}

.contact-portrait::after {
  background:
    radial-gradient(circle, #ffffff 0 2px, transparent 2.5px),
    radial-gradient(circle, rgba(93, 190, 255, 0.9) 0 1.5px, transparent 2px);
  background-position: 20% 18%, 78% 82%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 50%;
  content: "";
  inset: -18px;
  opacity: 0.85;
  position: absolute;
  animation: contact-sparks 5.8s ease-in-out infinite;
  z-index: -1;
}

.contact-orbit {
  border: 1px solid rgba(93, 190, 255, 0.34);
  border-left-color: rgba(255, 62, 111, 0.46);
  border-radius: 50%;
  inset: 8px;
  position: absolute;
  transform: rotate(-12deg) scaleX(1.18);
  animation: contact-orbit 8s ease-in-out infinite;
}

@keyframes contact-core {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.96) rotate(0deg);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.06) rotate(8deg);
  }
}

@keyframes contact-sparks {
  0%, 100% {
    background-position: 20% 18%, 78% 82%;
    opacity: 0.62;
    transform: scale(0.95);
  }
  45% {
    background-position: 30% 74%, 70% 20%;
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes contact-orbit {
  0%, 100% {
    opacity: 0.72;
    transform: rotate(-12deg) scaleX(1.18) scale(0.98);
  }
  50% {
    opacity: 1;
    transform: rotate(18deg) scaleX(1.28) scale(1.06);
  }
}

.contact-portrait img {
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(93, 190, 255, 0.34), 0 0 34px rgba(93, 190, 255, 0.22), 0 18px 60px rgba(0, 0, 0, 0.34);
  height: 78%;
  object-fit: cover;
  width: 78%;
}

.contact-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.contact-kicker {
  color: var(--accent);
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.portfolio-contact h2 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  margin: 0 0 8px;
  text-align: left;
}

.contact-mail {
  align-items: center;
  background:
    radial-gradient(circle at 18% 24%, rgba(93, 190, 255, 0.28), transparent 2.4rem),
    linear-gradient(135deg, rgba(12, 42, 98, 0.8), rgba(24, 16, 64, 0.7));
  border: 1px solid rgba(93, 190, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(93, 190, 255, 0.12);
  color: #f5f9ff;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 900;
  margin-bottom: 14px;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(93, 190, 255, 0.18);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.contact-mail:hover {
  border-color: rgba(93, 190, 255, 0.7);
  box-shadow: 0 0 44px rgba(93, 190, 255, 0.22), 0 0 24px rgba(115, 92, 255, 0.14);
  transform: translateY(-2px);
}

.contact-line {
  color: rgba(210, 226, 245, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.55;
  margin: -2px 0 16px;
  max-width: 58ch;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-socials a {
  background: rgba(10, 27, 68, 0.78);
  border: 1px solid rgba(93, 190, 255, 0.22);
  border-radius: 999px;
  color: rgba(223, 244, 255, 0.9);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 11px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-socials a:hover {
  border-color: rgba(93, 190, 255, 0.58);
  box-shadow: 0 0 24px rgba(93, 190, 255, 0.16);
  transform: translateY(-1px);
}

.cursor-dot,
.cursor-ring {
  display: none;
}

.cursor-dot {
  background: #dff2ff;
  clip-path: polygon(0 0, 0 21px, 6px 15px, 10px 24px, 14px 22px, 10px 14px, 19px 14px);
  filter: drop-shadow(0 0 8px rgba(74, 163, 255, 0.8));
  height: 24px;
  transform: translate(0, 0);
  width: 19px;
}

.cursor-ring {
  background: rgba(74, 163, 255, 0.2);
  border: 0;
  border-radius: 50%;
  height: 9px;
  opacity: 0.48;
  transform: translate(-50%, -50%);
  transition: height 0.1s ease, width 0.1s ease, opacity 0.1s ease, background 0.1s ease;
  width: 9px;
}

.cursor-ring.is-hover {
  background: rgba(170, 196, 255, 0.28);
  height: 14px;
  opacity: 0.52;
  width: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 34px clamp(18px, 4vw, 64px);
  text-align: center;
}

.footer-home {
  border: 1px solid rgba(118, 150, 255, 0.26);
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  padding: 10px 18px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.footer-home:hover {
  border-color: rgba(126, 154, 255, 0.6);
  box-shadow: 0 0 24px rgba(74, 106, 255, 0.22);
  transform: translateY(-2px);
}

.site-footer small {
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes brandDrift {
  0% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes brandPulse {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; }
}

@keyframes navStarTwinkle {
  0%, 100% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
  }
  38% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1.22) rotate(22deg);
  }
  62% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(0.82) rotate(45deg);
  }
}

@keyframes scanMove {
  0%, 100% { opacity: 0; transform: translateY(0); }
  15%, 80% { opacity: 1; }
  50% { transform: translateY(260px); }
}

@keyframes livePulse {
  0%, 100% { opacity: 0.72; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes soundPulse {
  0%, 100% { transform: scaleY(0.68); opacity: 0.72; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 1320px) {
  :root {
    --header-height: 158px;
  }

  .site-header {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    left: auto;
    position: relative;
  }

  .hero {
    grid-template-columns: minmax(0, 620px);
    min-height: auto;
  }

  .hero-visual,
  .hero-copy {
    justify-self: center;
    max-width: min(100%, 620px);
  }

  .hero-copy {
    text-align: center;
  }

  .site-header nav {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: min(100%, 760px);
    width: 100%;
  }

  .site-header nav a {
    font-size: 0.88rem;
    min-height: 48px;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 520px);
    min-height: auto;
  }

  .hero-visual,
  .hero-copy {
    justify-self: center;
    max-width: min(100%, 620px);
  }

  .hero-copy {
    text-align: center;
  }

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

  .hero-actions {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .button.primary,
  .instagram-action,
  .twitch-action,
  .discord-action,
  .secondary-action {
    grid-column: span 1;
  }
}

.detail-toggle {
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 154, 255, 0.08), transparent 0.5rem),
    linear-gradient(135deg, rgba(10, 18, 38, 0.9), rgba(3, 7, 18, 0.86));
  border: 1px solid rgba(111, 131, 170, 0.24);
  border-radius: 999px;
  box-shadow: inset 0 0 12px rgba(74, 106, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.24);
  color: #7f8da8;
  display: inline-flex;
  font: inherit;
  font-size: 0.61rem;
  font-weight: 900;
  gap: 5px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 28px;
  padding: 4px 6px 4px 8px;
  position: fixed;
  right: clamp(10px, 1.35vw, 18px);
  text-transform: uppercase;
  top: 43px;
  transform: translateY(-50%);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, transform 0.22s ease, background 0.22s ease;
  white-space: nowrap;
  z-index: 70;
}

.detail-toggle-state {
  color: #62708c;
  font-size: 0.56rem;
  min-width: 18px;
  opacity: 0.9;
  transform: translateY(1px);
}

.detail-toggle-track {
  background: linear-gradient(135deg, rgba(17, 28, 52, 0.96), rgba(4, 8, 18, 0.98));
  border: 1px solid rgba(116, 132, 162, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.38);
  height: 17px;
  position: relative;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  width: 33px;
}

.detail-toggle-knob {
  background:
    radial-gradient(circle at 34% 30%, #d9e4f7, #7d8ca8 38%, #263248 82%);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(108, 132, 170, 0.24);
  height: 13px;
  left: 2px;
  position: absolute;
  top: 1px;
  transition: transform 0.24s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.22s ease, background 0.22s ease;
  width: 13px;
}

.detail-toggle[aria-pressed="true"] {
  background:
    radial-gradient(circle at 22% 20%, rgba(120, 210, 255, 0.22), transparent 0.58rem),
    linear-gradient(135deg, rgba(9, 35, 76, 0.94), rgba(5, 14, 38, 0.9));
  border-color: rgba(93, 190, 255, 0.5);
  box-shadow:
    inset 0 0 18px rgba(72, 150, 255, 0.16),
    0 0 22px rgba(70, 158, 255, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.26);
  color: #dff4ff;
}

.detail-toggle[aria-pressed="true"] .detail-toggle-state {
  color: #70d7ff;
  text-shadow: 0 0 10px rgba(83, 200, 255, 0.68);
}

.detail-toggle[aria-pressed="true"] .detail-toggle-track {
  background: linear-gradient(135deg, rgba(15, 72, 144, 0.95), rgba(5, 19, 55, 0.98));
  border-color: rgba(105, 205, 255, 0.5);
  box-shadow: inset 0 0 12px rgba(39, 106, 230, 0.34), 0 0 12px rgba(70, 178, 255, 0.28);
}

.detail-toggle[aria-pressed="true"] .detail-toggle-knob {
  background: radial-gradient(circle at 34% 30%, #ffffff, #89e7ff 34%, #2f77ff 78%);
  box-shadow: 0 0 13px rgba(83, 210, 255, 0.64);
  transform: translateX(16px);
}

.detail-toggle:hover {
  border-color: rgba(122, 178, 230, 0.48);
  box-shadow: inset 0 0 16px rgba(74, 106, 255, 0.12), 0 11px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(-50%) scale(1.025);
}

.language-switcher {
  position: fixed;
  right: clamp(104px, 8.6vw, 126px);
  top: 43px;
  transform: translateY(-50%);
  z-index: 71;
}

.language-toggle,
.language-menu button {
  align-items: center;
  border: 1px solid rgba(118, 150, 255, 0.34);
  color: #eef6ff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 900;
  gap: 6px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.language-toggle {
  background:
    radial-gradient(circle at 24% 24%, rgba(93, 190, 255, 0.16), transparent 0.7rem),
    linear-gradient(135deg, rgba(9, 22, 54, 0.94), rgba(4, 9, 24, 0.92));
  border-radius: 999px;
  box-shadow: inset 0 0 14px rgba(74, 106, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.26);
  min-height: 30px;
  padding: 4px 9px 4px 7px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.language-toggle:hover,
.language-toggle:focus-visible,
.language-switcher.is-open .language-toggle {
  border-color: rgba(111, 207, 255, 0.58);
  box-shadow: inset 0 0 16px rgba(73, 140, 255, 0.14), 0 0 22px rgba(70, 158, 255, 0.22);
  transform: scale(1.025);
}

.language-flag {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(224, 240, 255, 0.36), 0 0 10px rgba(88, 178, 255, 0.18);
  display: inline-block;
  flex: 0 0 auto;
  height: 13px;
  overflow: hidden;
  position: relative;
  width: 19px;
}

.language-flag.flag-fr {
  background: linear-gradient(90deg, #2446a6 0 33.33%, #ffffff 33.33% 66.66%, #ed2939 66.66% 100%);
}

.language-flag.flag-en {
  background:
    linear-gradient(0deg, transparent 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(90deg, transparent 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(28deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
    linear-gradient(-28deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 36%, #ffffff 36% 64%, transparent 64%),
    linear-gradient(90deg, transparent 36%, #ffffff 36% 64%, transparent 64%),
    linear-gradient(28deg, transparent 42%, #ffffff 42% 58%, transparent 58%),
    linear-gradient(-28deg, transparent 42%, #ffffff 42% 58%, transparent 58%),
    #012169;
}

.language-code {
  color: #dff4ff;
  font-size: 0.62rem;
  min-width: 18px;
}

.language-menu {
  background:
    radial-gradient(circle at 28% 0%, rgba(93, 190, 255, 0.18), transparent 4rem),
    rgba(3, 8, 24, 0.96);
  border: 1px solid rgba(107, 156, 255, 0.34);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38), inset 0 0 20px rgba(93, 190, 255, 0.07);
  display: grid;
  gap: 5px;
  min-width: 86px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  background: rgba(16, 35, 78, 0.62);
  border-radius: 11px;
  font-size: 0.68rem;
  justify-content: flex-start;
  padding: 7px 8px;
}

.language-menu button:hover,
.language-menu button.is-active {
  background: linear-gradient(135deg, rgba(43, 103, 230, 0.86), rgba(18, 45, 116, 0.86));
  border-color: rgba(150, 220, 255, 0.55);
  color: #ffffff;
}

@media (min-width: 821px) and (max-width: 1080px) {
  .portfolio-carousel {
    gap: 12px;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    max-width: 860px;
  }

  .portfolio-track {
    min-height: 0;
    overflow: visible;
    padding: 6px 0 18px;
  }

  .project-card.is-current {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-template-rows: none;
  }

  .project-media {
    align-items: stretch;
    aspect-ratio: 16 / 9;
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
  }

  .project-media iframe,
  .project-media img,
  .project-media video {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
  }

  .project-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
    margin-top: 0;
    min-height: clamp(178px, 23vw, 232px);
    padding: 18px 24px 26px;
  }

  .project-copy h2 {
    font-size: clamp(1.5rem, 3.3vw, 2.15rem);
    line-height: 1.12;
    overflow: hidden;
  }

  .gallery-thumbs {
    bottom: 8px;
  }

  .gallery-thumbs button {
    height: 46px;
  }

  .project-copy p {
    max-height: none;
    overflow: visible;
  }

  .project-meta {
    margin: 0;
  }

  .sound-card .project-media {
    aspect-ratio: auto;
    min-height: auto;
    gap: 14px;
    padding: 30px 18px;
  }

  .custom-audio {
    grid-template-columns: auto minmax(160px, 1fr) auto;
    width: min(580px, calc(100% - 28px));
  }

  .sound-card .project-media,
  .sound-card.project-card.is-current {
    overflow: hidden;
  }

  .sound-orb {
    display: none;
  }

  .sound-bars {
    border-radius: 24px;
    height: 140px;
    padding: 54px 22px 36px;
    width: min(100%, 580px);
  }

  .sound-bars span {
    height: calc(22px + var(--bar, 0.5) * 52px);
    width: clamp(13px, 2.4vw, 20px);
  }

}

@media (max-width: 900px) {
  :root {
    --header-height: 236px;
  }

  .hero,
  .signal-grid,
  .post-grid,
  .instagram-embed-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .site-header nav {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    justify-items: center;
    overflow: visible;
    padding-bottom: 0;
    max-width: min(calc(100vw - 32px), 360px);
    width: 100%;
  }

  .site-header nav a:nth-child(n) {
    grid-column: auto;
    justify-self: stretch;
  }

  .site-header nav a {
    font-size: clamp(0.72rem, 2.6vw, 0.84rem);
    min-height: 42px;
    min-width: 0;
    padding: 11px 8px;
    max-width: none;
    width: 100%;
  }

  .site-header nav a:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 180px;
  }

  .detail-toggle {
    font-size: 0.52rem;
    gap: 4px;
    min-height: 24px;
    padding: 3px 5px 3px 6px;
    right: 9px;
    top: 9px;
    transform: none;
    width: auto;
  }

  .language-switcher {
    right: 9px;
    top: 40px;
    transform: none;
  }

  .language-toggle {
    min-height: 24px;
    padding: 3px 7px 3px 6px;
  }

  .language-flag {
    font-size: 0.86rem;
  }

  .language-code {
    font-size: 0.54rem;
  }

  .detail-toggle-track {
    height: 14px;
    width: 27px;
  }

  .detail-toggle-knob {
    height: 10px;
    width: 10px;
  }

  .detail-toggle[aria-pressed="true"] .detail-toggle-knob {
    transform: translateX(13px);
  }

  .detail-toggle:hover {
    transform: scale(1.02);
  }

  .site-header nav a:hover {
    transform: translateY(-1px) scale(1.015);
  }

  .portfolio-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .portfolio-tab {
    font-size: 0.82rem;
    min-height: 42px;
    padding: 9px 12px;
    width: 100%;
  }

  .portfolio-carousel {
    gap: 6px;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .portfolio-arrow {
    display: inline-flex;
    font-size: 2.9rem;
    height: 92px;
    width: 28px;
  }

  .portfolio-track {
    min-width: 0;
    min-height: 0;
    overflow: visible;
    padding-inline: 0;
  }

  .project-card {
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    overflow: clip;
    width: 100%;
  }

  .project-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-template-rows: none;
    justify-content: flex-start;
    margin-top: 0;
    min-height: 0;
    padding: 14px 18px 24px;
  }

  .project-card.is-current {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-template-rows: auto auto;
  }

  .project-media {
    align-items: stretch;
    aspect-ratio: 16 / 9;
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    margin-bottom: 0;
    width: 100%;
  }

  .project-media iframe,
  .project-media img,
  .project-media video {
    height: 100%;
    inset: 0;
    min-height: 0;
    position: absolute;
    width: 100%;
  }

  .project-copy h2 {
    font-size: clamp(1.45rem, 6.2vw, 2.15rem);
    line-height: 1.12;
    overflow: hidden;
    white-space: normal;
  }

  .media-gallery > img {
    padding: 8px;
  }

  .gallery-thumbs {
    bottom: 7px;
    gap: 6px;
    max-width: calc(100% - 14px);
  }

  .gallery-thumbs button {
    height: 40px;
  }

  .demo-window,
  .figma-frame {
    width: 100%;
  }

  .project-copy p {
    max-height: none;
    overflow: visible;
    padding-bottom: 2px;
  }

  .project-link {
    font-size: 0.66rem;
    min-height: 23px;
    padding-inline: 8px;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin: 0;
  }

  .sound-card .project-media {
    aspect-ratio: auto;
    min-height: auto;
    gap: 12px;
    padding: 18px 10px;
  }

  .sound-card .project-copy {
    padding-top: 16px;
  }

  .custom-audio {
    border-radius: 20px;
    gap: 11px 12px;
    grid-template-columns: auto 1fr;
    max-width: 100%;
    padding: 11px;
    width: 100%;
  }

  .audio-toggle {
    font-size: 0.7rem;
    min-width: 62px;
    padding: 9px 11px;
  }

  .audio-seek {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 20px;
  }

  .audio-seek::-webkit-slider-runnable-track {
    height: 20px;
  }

  .audio-seek::-moz-range-track {
    height: 20px;
  }

  .audio-seek::-webkit-slider-thumb {
    height: 24px;
    margin-top: -3px;
    width: 24px;
  }

  .audio-seek::-moz-range-thumb {
    height: 20px;
    width: 20px;
  }

  .audio-time {
    align-self: center;
    grid-column: 2;
    grid-row: 1;
    font-size: 0.72rem;
    min-width: 0;
    padding: 9px 10px;
    text-align: right;
  }

  .portfolio-contact {
    gap: 16px;
    justify-items: center;
    grid-template-columns: 1fr;
    margin-top: 34px;
    padding: 24px 0 4px;
    text-align: center;
  }

  .portfolio-contact h2 {
    text-align: center;
  }

  .contact-copy {
    display: grid;
    justify-items: center;
  }

  .contact-socials {
    justify-content: center;
  }

  .meme-modal {
    padding: 12px;
  }

  .meme-modal-shell {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .meme-modal-visual {
    min-height: 260px;
  }

  .meme-modal-visual img {
    max-height: 48vh;
  }

  .meme-modal-copy {
    border-left: 0;
    border-top: 1px solid rgba(93, 190, 255, 0.16);
    padding: 24px;
  }

  .meme-modal-close {
    right: 10px;
    top: 10px;
  }

  .meme-modal-thumbs button {
    height: 46px;
    width: 66px;
  }

  .sound-orb {
    width: clamp(72px, 24vw, 104px);
  }

  .sound-bars {
    border-radius: 20px;
    gap: 7px;
    height: 122px;
    padding: 48px 16px 32px;
  }

  .sound-bars::before {
    font-size: 1.12rem;
    left: 18px;
    top: 14px;
  }

  .sound-bars::after {
    bottom: 20px;
    height: 3px;
    left: 18px;
    right: 18px;
  }

  .sound-bars span {
    height: calc(18px + var(--bar, 0.5) * 44px);
    width: clamp(10px, 3.2vw, 15px);
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
  }

  .button {
    font-size: 0.92rem;
    min-height: 52px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
  }

  .social-dock {
    gap: 9px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .social-float {
    width: 42px;
  }

  .social-float img {
    height: 22px;
    width: 22px;
  }

  .social-float::after {
    display: none;
  }

  .hero-copy {
    transform: none;
  }

  .signal-section h2,
  .instagram-section h2 {
    white-space: normal;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-art,
  .game-card span,
  .game-card h2,
  .game-card p {
    grid-column: 1;
  }

  .game-art {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 232px;
  }

  .site-header {
    max-width: 100vw;
    overflow: hidden;
    padding: 12px 12px 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    height: 42px;
    width: 42px;
  }

  .brand img {
    height: 38px;
    width: 38px;
  }

  .brand-text {
    font-size: 1.04rem;
  }

  .site-header nav {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(300px, calc(100vw - 58px));
  }

  .site-header nav a {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
    min-height: 38px;
    padding: 9px 8px;
  }

  .site-header nav a:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 160px;
  }

  .language-switcher {
    right: 8px;
    top: 39px;
  }

  .portfolio-hero,
  .section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .portfolio-tabs {
    gap: 8px;
    max-width: min(300px, calc(100vw - 28px));
  }

  .portfolio-tab {
    font-size: 0.72rem;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

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

  .hero-visual,
  .hero-copy {
    max-width: min(300px, calc(100vw - 40px));
    width: 100%;
  }

  .button.primary,
  .instagram-action,
  .twitch-action,
  .discord-action,
  .secondary-action {
    grid-column: auto;
  }

  .portfolio-heading h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 2.8rem);
    line-height: 0.92;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .portfolio-carousel {
    gap: 4px;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    max-width: min(336px, calc(100vw - 18px));
    width: min(336px, calc(100vw - 18px));
  }

  .portfolio-arrow {
    font-size: 2.45rem;
    width: 18px;
  }

  .project-card {
    max-width: min(292px, calc(100vw - 62px));
  }

  .project-copy {
    padding-left: 14px;
    padding-right: 14px;
  }

  .project-copy h2 {
    overflow-wrap: anywhere;
  }
}

.low-detail body::after,
body.low-detail::after {
  display: none;
}

.low-detail #starfield {
  display: none;
}

.low-detail .site-header,
.low-detail .panel,
.low-detail .post-card,
.low-detail .instagram-status,
.low-detail .instagram-placeholder,
.low-detail .game-card,
.low-detail .project-card,
.low-detail .social-float,
.low-detail .button,
.low-detail .hero-visual,
.low-detail .insta-card {
  backdrop-filter: none;
}

.low-detail .header-star,
.low-detail .nav-star,
.low-detail .scanline,
.low-detail .insta-card-line,
.low-detail .video-panel::after {
  display: none;
}

.low-detail .brand img {
  animation: none;
}

.low-detail .black-hole {
  opacity: 0.38;
  transform: translate3d(-50%, calc(var(--hole-y, -180px) + 18px), 0) scale(0.72);
}

.low-detail .brand:hover img,
.low-detail .brand:hover .brand-mark,
.low-detail .brand:hover .brand-text span,
.low-detail .site-header nav a:hover,
.low-detail .button:hover,
.low-detail .panel:hover,
.low-detail .post-card:hover,
.low-detail .hero-visual:hover,
.low-detail .insta-card:hover,
.low-detail .game-card:hover,
.low-detail .project-card:hover,
.low-detail .social-float:hover {
  filter: none;
  transform: none;
}

.low-detail .brand:hover .brand-text span {
  opacity: 1;
}

.low-detail .brand::after,
.low-detail .button::before,
.low-detail .social-float::before,
.low-detail .site-header nav a::after,
.low-detail .insta-card::before {
  display: none;
}

.low-detail .hero,
.low-detail .section,
.low-detail .button,
.low-detail .panel,
.low-detail .post-card,
.low-detail .hero-visual,
.low-detail .hero-visual img,
.low-detail .insta-card,
.low-detail .insta-card img,
.low-detail .game-card,
.low-detail .project-card,
.low-detail .social-float,
.low-detail .panel-preview {
  transition-duration: 0.001ms !important;
}

.low-detail .black-hole,
.low-detail .orbital-ring,
.low-detail .brand img,
.low-detail .nav-star {
  animation: none !important;
}

.low-detail .hero-visual,
.low-detail .insta-card,
.low-detail .game-card,
.low-detail .project-card,
.low-detail .panel,
.low-detail .button,
.low-detail .social-float {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.low-detail .video-panel:hover .panel-preview,
.low-detail .hero-visual:hover img,
.low-detail .insta-card:hover img,
.low-detail .post-card:hover::before {
  filter: none;
  opacity: 0.86;
  transform: none;
}

@media (pointer: coarse) {
  body,
  a,
  button {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
