/* WAVX Music — hand-written styles (no framework) */

:root {
  --bg: #07040f;
  --bg-2: #0e0920;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f0ff;
  --muted: #b3a9cc;

  --orange: #ff6a3d;
  --magenta: #d10076;
  --brand: #9e0059;
  --violet: #6a2cff;
  --grad: linear-gradient(110deg, var(--orange), var(--magenta) 45%, var(--violet));

  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Syne', var(--font);
  --fs-hero: clamp(2.4rem, 1.4rem + 3.4vw, 5rem);
  --fs-h2: clamp(2.2rem, 1.4rem + 3vw, 4.25rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.15rem);

  --radius: 1.5rem;
  --radius-lg: 2rem;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 2rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
iframe,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  top: 1rem;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 3rem + 7vw, 9rem);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem);
  text-align: center;
}

.section-head > p:last-child:not(.kicker) {
  margin-top: 1.25rem;
  color: var(--muted);
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-title {
  font-size: var(--fs-h2);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.kicker::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 100vw;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 1.9rem;
}

.btn-primary {
  background: var(--grad);
  background-size: 160% 100%;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(209, 0, 118, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-position 0.6s var(--ease);
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 40px -10px rgba(209, 0, 118, 0.9);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--surface-2);
}

.btn-light {
  background: #fff;
  color: #12081f;
}

.btn-light:hover {
  box-shadow: 0 16px 40px -12px rgba(255, 255, 255, 0.6);
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 1000;
  width: min(calc(100% - 2rem), var(--container));
  transform: translateX(-50%);
  transition: top 0.4s var(--ease);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0.4rem 0.4rem 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 100vw;
  background: rgba(14, 9, 32, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 0.4s, box-shadow 0.4s;
}

.site-nav.is-scrolled .nav-bar {
  background: rgba(14, 9, 32, 0.82);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: auto;
  height: calc(var(--nav-h) - 0.8rem - 2px);
  border-radius: 100vw;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 100vw;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  height: calc(var(--nav-h) - 0.8rem - 2px);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: 0.4rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.site-nav.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(14, 9, 32, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .site-nav.is-open .nav-panel {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 0.9rem 1rem;
    text-align: center;
  }

  .nav-cta {
    height: auto;
    padding-block: 0.9rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 4rem) 0 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  /* Fade the hero into the page so the next section has no hard edge */
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
}

.aurora {
  position: absolute;
  inset: -20%;
  z-index: -3;
  filter: blur(80px) saturate(130%);
  opacity: 0.85;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
  top: 15%;
  left: 10%;
  width: 45vmax;
  height: 45vmax;
  background: radial-gradient(circle, rgba(106, 44, 255, 0.75), transparent 65%);
}

.aurora span:nth-child(2) {
  top: 30%;
  right: 5%;
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, rgba(209, 0, 118, 0.7), transparent 65%);
  animation-duration: 22s;
  animation-delay: -6s;
}

.aurora span:nth-child(3) {
  bottom: 0;
  left: 35%;
  width: 35vmax;
  height: 35vmax;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.55), transparent 65%);
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, -4vh) scale(1.15); }
  100% { transform: translate(-5vw, 5vh) scale(0.95); }
}

.wave-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  width: 100%;
  height: 30%;
  opacity: 0.9;
}

.hero-content {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 100vw;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.98;
}

/* Line-by-line mask reveal */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title .line > span {
  display: inline-block;
}

.js .hero-title .line > span {
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}

.js .hero-title .line:nth-child(2) > span {
  animation-delay: 0.15s;
}

@keyframes rise {
  to {
    transform: none;
  }
}

.hero-lede {
  max-width: 560px;
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
}

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

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 100vw;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Equalizer bars ---------- */

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--grad);
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: -0.35s; }
.eq i:nth-child(3) { animation-delay: -0.7s; }
.eq i:nth-child(4) { animation-delay: -0.2s; }
.eq i:nth-child(5) { animation-delay: -0.55s; }

.eq--lg {
  height: 28px;
  gap: 3px;
}

.eq--lg i {
  width: 4px;
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding-block: 1.6rem;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  transform: rotate(-1.5deg) scale(1.02);
  margin-block: 1rem;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

.marquee-track span:nth-of-type(odd) {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  color: transparent;
}

.marquee-track b {
  font-weight: 400;
  color: var(--magenta);
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 1rem));
  }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
}

.about-text .section-title {
  margin-bottom: 1.75rem;
}

.about-text p + p {
  margin-top: 1rem;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text);
}

.about-text p:not(.lead):not(.kicker) {
  color: var(--muted);
}

.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.genre-chips li {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100vw;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}

.genre-chips li:hover {
  border-color: var(--magenta);
  color: var(--text);
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.vinyl {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, #111 0 2px, #1b1b1b 2px 4px);
  box-shadow:
    0 40px 80px -20px rgba(106, 44, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  animation: spin 14s linear infinite;
}

.vinyl::after {
  /* Light sheen that stays put while the record turns */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, 0.12) 25%, transparent 30% 70%, rgba(255, 255, 255, 0.08) 75%, transparent 80%);
  animation: spin 14s linear infinite reverse;
}

.vinyl-disc {
  position: absolute;
  inset: 32%;
  overflow: hidden;
  border-radius: 50%;
  border: 6px solid #0b0b0b;
}

.vinyl-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(20, 13, 40, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  animation: bob 6s ease-in-out infinite;
}

.float-card strong,
.float-card span:not(.eq) {
  display: block;
  line-height: 1.3;
}

.float-card strong {
  font-size: 0.95rem;
}

.float-card div span {
  font-size: 0.8rem;
  color: var(--muted);
}

.float-card img {
  width: 44px;
  height: 44px;
  border-radius: 0.7rem;
  object-fit: cover;
}

.float-card--a {
  top: 8%;
  left: -4%;
}

.float-card--b {
  right: -4%;
  bottom: 10%;
  animation-delay: -3s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
}

/* ---------- Video player ---------- */

.player {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
}

.player-glow {
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--grad);
  filter: blur(60px);
  opacity: 0.55;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.97); }
  50% { opacity: 0.65; transform: scale(1.02); }
}

.player-frame {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05) 40%, rgba(209, 0, 118, 0.5));
}

.vp-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 1px);
  background: #000;
  cursor: pointer;
}

.player-frame:fullscreen {
  padding: 0;
  border-radius: 0;
  background: #000;
}

.player-frame:fullscreen .vp-video {
  object-fit: contain;
  border-radius: 0;
}

/* Big centre play button, shown only while paused */
.vp-big {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 96px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 40px rgba(209, 0, 118, 0.5);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.vp-big svg {
  width: 40%;
  height: 40%;
  margin-left: 6%;
}

.vp-big:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.player.is-playing .vp-big {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Control bar */
.vp-controls {
  position: absolute;
  inset: auto 1px 1px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem 0.85rem;
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
  background: linear-gradient(to top, rgba(7, 4, 15, 0.85), transparent);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.player.is-playing.is-idle .vp-controls {
  opacity: 0;
  transform: translateY(8px);
}

.player.is-playing.is-idle .player-frame {
  cursor: none;
}

.vp-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s;
}

.vp-btn:hover,
.vp-btn:focus-visible {
  background: var(--surface-2);
}

.vp-btn svg {
  width: 20px;
  height: 20px;
}

.player.is-playing .vp-i-play,
.player:not(.is-playing) .vp-i-pause,
.player.is-muted .vp-i-sound,
.player:not(.is-muted) .vp-i-muted {
  display: none;
}

.vp-time {
  flex: none;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Range inputs: gradient fill up to --fill */
.vp-seek,
.vp-volume {
  --fill: 0%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--magenta)) 0 / var(--fill) 100% no-repeat, rgba(255, 255, 255, 0.2);
  cursor: pointer;
  appearance: none;
}

.vp-seek {
  flex: 1;
  min-width: 0;
}

.vp-volume {
  flex: none;
  width: 80px;
}

.vp-seek::-webkit-slider-thumb,
.vp-volume::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  appearance: none;
}

.vp-seek::-moz-range-thumb,
.vp-volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

@media (max-width: 760px) {
  .vp-controls {
    gap: 0.35rem;
    padding: 2rem 0.6rem 0.5rem;
  }

  .vp-volume,
  .vp-time {
    display: none;
  }
}

/* ---------- Glow cards (cursor-following highlight) ---------- */

.glow-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s, transform 0.4s var(--ease), background-color 0.4s;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(209, 0, 118, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.glow-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-6px);
}

.glow-card:hover::before {
  opacity: 1;
}

/* ---------- Streaming platforms ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  text-decoration: none;
}

.platform::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand-color) 22%, transparent), transparent 50%);
}

.platform-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.75rem;
  color: var(--brand-color);
  transition: transform 0.5s var(--ease);
}

.platform:hover .platform-icon {
  transform: scale(1.12) rotate(-6deg);
}

.platform-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.platform-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
}

.platform-cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease);
}

.platform:hover .platform-cta {
  color: var(--text);
}

.platform:hover .platform-cta svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Features ---------- */

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

.feature {
  padding: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
}

.feature img {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px -8px rgba(209, 0, 118, 0.6);
  transition: transform 0.6s var(--ease);
}

.feature:hover img {
  transform: rotate(-12deg) scale(1.08);
}

.feature-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--muted);
}

.feature h3 {
  font-size: var(--fs-h3);
}

.feature p {
  margin-top: 0.75rem;
  color: var(--muted);
}

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

/* ---------- Gallery (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 12vw + 40px, 230px);
  gap: 1rem;
}

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.bento-item--main {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: saturate(0.85);
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 4, 15, 0.55), transparent 50%);
  transition: opacity 0.6s;
}

.bento-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.bento-item:hover::after {
  opacity: 0.3;
}

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

  .bento-item--main {
    grid-column: span 2;
  }
}

/* ---------- Connect CTA ---------- */

.connect-card {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter);
  border-radius: var(--radius-lg);
  text-align: center;
  isolation: isolate;
}

.connect-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  background-size: 200% 200%;
  animation: flow 12s ease-in-out infinite alternate;
}

.connect-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero.webp') center / cover;
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.connect-card h2 {
  font-size: var(--fs-h2);
}

.connect-card p {
  max-width: 540px;
  margin: 1.25rem auto 2.25rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background-color 0.35s, color 0.35s;
}

.social-row a:hover,
.social-row a:focus-visible {
  background: #fff;
  color: var(--brand);
  transform: translateY(-4px) scale(1.06);
}

.social-row svg {
  width: 24px;
  height: 24px;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--orange);
}

.faq-item summary svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}

.faq-item[open] summary svg {
  transform: rotate(135deg);
  background: var(--magenta);
  border-color: var(--magenta);
}

/* Height animation: grid row 0fr -> 1fr (driven by main.js on toggle) */
.faq-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-body > p {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 1.6rem;
  color: var(--muted);
}

.faq-item.is-closing .faq-body,
.faq-item.is-opening .faq-body {
  grid-template-rows: 0fr;
}

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

/* ---------- Contacts ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.75rem;
  text-decoration: none;
}

.contact-card svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  padding: 0.55rem;
  border-radius: 0.8rem;
  background: rgba(209, 0, 118, 0.15);
  color: #ff5cb0;
}

.contact-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-word;
}

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

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

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner .brand {
  margin: 0;
  color: var(--text);
}

.footer-inner .brand img {
  height: 40px;
}

.footer-word {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 24vw, 22rem);
  font-weight: 800;
  line-height: 0.75;
  text-align: center;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) var(--delay, 0s),
    transform 0.9s var(--ease) var(--delay, 0s),
    filter 0.9s var(--ease) var(--delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Glow cards keep their hover lift once revealed */
.js .glow-card[data-reveal].is-visible {
  transition:
    opacity 0.9s var(--ease) var(--delay, 0s),
    transform 0.4s var(--ease),
    filter 0.9s var(--ease) var(--delay, 0s),
    border-color 0.4s;
}

.js .glow-card[data-reveal].is-visible:hover {
  transform: translateY(-6px);
}

/* Gallery tiles unveil with a clip-path wipe instead of a slide. The clip
   sits on the image, not the observed tile: Chrome's IntersectionObserver
   counts a fully clipped target as never intersecting. */
.js .bento-item[data-reveal] {
  transform: none;
  filter: none;
  transition: opacity 0.6s var(--ease) var(--delay, 0s);
}

.js .bento-item[data-reveal] img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.15);
  transition:
    clip-path 0.7s var(--ease) var(--delay, 0s),
    transform 0.9s var(--ease) var(--delay, 0s),
    filter 0.6s;
}

.js .bento-item[data-reveal].is-visible img {
  clip-path: inset(0 0 0 0);
  transform: none;
}

.js .bento-item[data-reveal].is-visible:hover img {
  transform: scale(1.08);
}

/* ---------- Reduced motion ---------- */

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  .js .hero-title .line > span {
    transform: none;
  }
}
