/* Ohmykartoshka, high-impact personal flagship */
:root {
  --bg: #060607;
  --bg-elevated: #0e0e11;
  --surface: #151518;
  --surface-glow: rgba(124, 92, 255, 0.08);
  --text: #f4f2ed;
  --text-muted: #98949a;
  --accent: #e4bc62;
  --accent-hot: #ffd475;
  --violet: #7c5cff;
  --cyan: #3ecbff;
  --line: rgba(255, 255, 255, 0.07);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --header-safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-safe-top) + 0.75rem);
  scrollbar-color: rgba(124, 92, 255, 0.55) rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar        { width: 8px; height: 8px; }
::-webkit-scrollbar-track  { background: rgba(0, 0, 0, 0.25); }
::-webkit-scrollbar-thumb  { background: rgba(124, 92, 255, 0.55); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 92, 255, 0.82); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

a:hover {
  color: var(--accent-hot);
}

/* Film grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll-driven reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out),
    filter 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-sizing: border-box;
  min-height: calc(var(--header-h) + var(--header-safe-top));
  padding-top: var(--header-safe-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-right, 0px));
  background: linear-gradient(to bottom, rgba(6, 6, 7, 0.94), rgba(6, 6, 7, 0.55), transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.logo span {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.nav-primary ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-primary a:hover,
.nav-primary a:focus-visible {
  color: var(--text);
}

.nav-primary a:hover::after,
.nav-primary a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + var(--header-safe-top) + 2rem)
    max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left, 0px))
    max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-right, 0px)) clamp(3rem, 6vw, 5rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-zoom 28s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  to {
    transform: scale(1.18);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 20% 80%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(62, 203, 255, 0.2), transparent 50%),
    linear-gradient(165deg, rgba(6, 6, 7, 0.15) 0%, rgba(6, 6, 7, 0.88) 55%, var(--bg) 100%);
}

.hero__aurora {
  position: absolute;
  inset: -40%;
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 92, 255, 0.45), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(228, 188, 98, 0.28), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(62, 203, 255, 0.22), transparent 38%);
  filter: blur(60px);
  animation: aurora-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-drift {
  0% {
    transform: translate(-4%, -2%) rotate(0deg);
  }
  100% {
    transform: translate(5%, 4%) rotate(8deg);
  }
}

.hero__gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 60%, black 15%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 62rem;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.hero__title-accent {
  display: block;
  background: linear-gradient(105deg, var(--text) 0%, var(--accent-hot) 38%, var(--violet) 78%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shimmer 8s linear infinite;
}

@keyframes title-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.hero__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 300;
  color: rgba(244, 242, 237, 0.72);
  max-width: 28rem;
  margin: 0 0 2.25rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 212, 117, 0.35), 0 18px 50px rgba(228, 188, 98, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 212, 117, 0.55), 0 22px 60px rgba(228, 188, 98, 0.38);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.15);
}

.hero__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2.2s var(--ease-out) infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8rem) max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left, 0px))
    max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-right, 0px));
}

.section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section__header--center {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.section__intro {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.08rem;
  font-weight: 300;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-grid__visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.about-grid__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(228, 188, 98, 0.65), transparent 40%, rgba(124, 92, 255, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.about-grid__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.about-grid__visual:hover img {
  transform: scale(1.05);
}

.about-grid__copy p {
  color: rgba(244, 242, 237, 0.72);
  margin: 0 0 1.35rem;
  font-weight: 300;
  font-size: 1.05rem;
}

.about-grid__copy p:last-of-type {
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 1rem 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Spotlight */
.pillars {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(124, 92, 255, 0.12), transparent 55%), var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.pillar-card {
  position: relative;
  padding: 2rem 1.75rem 2rem 1.75rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 45%);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 0%, rgba(124, 92, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 188, 98, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(244, 242, 237, 0.2);
  margin-bottom: 1rem;
}

.pillar-card h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.pillar-card p {
  position: relative;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* Bento gallery */
.showcase--bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: minmax(220px, 32vw) minmax(220px, 32vw);
  gap: 0.65rem;
  min-height: clamp(520px, 68vw, 720px);
}

.showcase--bento figure:first-child {
  grid-row: 1 / -1;
}

.showcase figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.showcase figure:hover img {
  transform: scale(1.07);
}

.showcase figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(6, 6, 7, 0.92), transparent);
}

/* Gallery: cinematic motion stack */
.gallery-section {
  position: relative;
}

.gallery-section .gallery-bento {
  position: relative;
  z-index: 1;
}

.gallery-section .gallery-bento::before {
  content: "";
  position: absolute;
  inset: clamp(-1rem, -3vw, -2rem);
  z-index: 0;
  border-radius: 16px;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 242, 237, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 237, 1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, black 12%, transparent 72%);
}

.gallery-section .gallery-bento figure {
  z-index: 1;
  transition:
    transform 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out),
    border-color 0.45s var(--ease-out);
}

.gallery-section .gallery-bento figure[data-reveal].is-visible {
  animation: gallery-orbit 7s ease-in-out infinite alternate;
}

.gallery-section .gallery-bento figure:nth-child(1)[data-reveal].is-visible {
  animation-delay: 0s;
}

.gallery-section .gallery-bento figure:nth-child(2)[data-reveal].is-visible {
  animation-delay: 0.35s;
}

.gallery-section .gallery-bento figure:nth-child(3)[data-reveal].is-visible {
  animation-delay: 0.7s;
}

@keyframes gallery-orbit {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-6px);
  }
}

.gallery-section .gallery-bento figure::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(228, 188, 98, 0.55),
    transparent 38%,
    rgba(124, 92, 255, 0.45),
    transparent 62%,
    rgba(62, 203, 255, 0.35)
  );
  background-size: 240% 240%;
  opacity: 0;
  animation: gallery-edge-flow 14s linear infinite;
  pointer-events: none;
  z-index: 4;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.45s var(--ease-out);
}

.gallery-section .gallery-bento figure[data-reveal].is-visible::before {
  opacity: 0.55;
}

.gallery-section .gallery-bento figure:hover::before {
  opacity: 1;
}

@keyframes gallery-edge-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.gallery-section .gallery-bento figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.09) 48%,
    rgba(255, 212, 117, 0.06) 52%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.gallery-section .gallery-bento figure:hover {
  animation-play-state: paused;
  transform: translateY(-10px);
  border-color: rgba(228, 188, 98, 0.35);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(124, 92, 255, 0.12),
    0 0 48px rgba(124, 92, 255, 0.14);
}

.gallery-section .gallery-bento figure:hover::after {
  animation: gallery-shine-sweep 0.95s var(--ease-out) forwards;
}

@keyframes gallery-shine-sweep {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-12deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-12deg);
  }
}

.gallery-section .gallery-bento img {
  transition:
    transform 1.05s var(--ease-out),
    filter 0.65s var(--ease-out);
}

.gallery-section .gallery-bento figure[data-reveal].is-visible img {
  animation: gallery-breathe 14s ease-in-out infinite alternate;
}

.gallery-section .gallery-bento figure:nth-child(2)[data-reveal].is-visible img {
  animation-duration: 18s;
}

.gallery-section .gallery-bento figure:nth-child(3)[data-reveal].is-visible img {
  animation-duration: 16s;
}

@keyframes gallery-breathe {
  0% {
    transform: scale(1.05) translate(0%, 0%);
    filter: saturate(1.02) brightness(1);
  }
  100% {
    transform: scale(1.11) translate(-1.5%, -1%);
    filter: saturate(1.08) brightness(1.04);
  }
}

.gallery-section .gallery-bento figure:hover img {
  animation-play-state: paused;
  transform: scale(1.12);
  filter: saturate(1.12) brightness(1.06);
}

.gallery-section .gallery-bento figcaption {
  z-index: 6;
  transition:
    letter-spacing 0.45s var(--ease-out),
    color 0.35s var(--ease-out),
    text-shadow 0.35s var(--ease-out);
}

.gallery-section .gallery-bento figure:hover figcaption {
  letter-spacing: 0.24em;
  color: rgba(255, 212, 117, 0.95);
  text-shadow: 0 0 24px rgba(228, 188, 98, 0.35);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-details {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.contact-details h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.35rem;
}

.contact-details dl {
  margin: 0;
}

.contact-details dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.35rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 300;
}

.contact-form {
  display: grid;
  gap: 1.35rem;
}

.contact-form label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}

.contact-form textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.form-status {
  font-size: 0.875rem;
  color: var(--cyan);
  margin: 0;
  min-height: 1.25rem;
}

/* Footer */
.site-footer {
  padding-top: 2.75rem;
  padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, rgba(124, 92, 255, 0.06), transparent);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-hot);
}

.nav-primary a.nav-current {
  color: var(--text);
}

.nav-primary a.nav-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Homepage portals */
.portals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(260px, 36vw, 380px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 0.8s var(--ease-out);
}

.portal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    155deg,
    rgba(6, 6, 7, 0.05) 0%,
    rgba(6, 6, 7, 0.72) 42%,
    rgba(6, 6, 7, 0.94) 100%
  );
}

.portal:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 188, 98, 0.35);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
}

.portal:hover::before {
  transform: scale(1.12);
}

.portal--music::before {
  background-image: url("https://images.unsplash.com/photo-1470225620780-dba8ba362b72?auto=format&fit=crop&w=1200&q=80");
}

.portal--video::before {
  background-image: url("https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1200&q=80");
}

.page-hero--challenge .page-hero__wash {
  background:
    radial-gradient(ellipse 85% 55% at 15% 85%, rgba(228, 188, 98, 0.22), transparent 52%),
    linear-gradient(175deg, rgba(6, 6, 7, 0.35) 0%, rgba(6, 6, 7, 0.92) 58%, var(--bg) 100%);
}

.section__inner--narrow {
  max-width: 42rem;
}

.challenge-intro__lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.challenge-intro p {
  color: rgba(244, 242, 237, 0.78);
  font-weight: 300;
}

.challenge-rules {
  counter-reset: chall;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.challenge-rules li {
  counter-increment: chall;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.15rem;
  color: rgba(244, 242, 237, 0.82);
  font-weight: 300;
}

.challenge-rules li::before {
  content: counter(chall);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-hot);
  background: rgba(255, 255, 255, 0.03);
}

.challenge-prizes {
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 2rem;
}

.challenge-prizes__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.challenge-prizes__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.challenge-prizes__list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0;
}

.challenge-prizes__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
}

.challenge-prizes__list li:last-child {
  border-bottom: none;
}

.challenge-prizes__rank {
  font-weight: 600;
}

.challenge-prizes__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent-hot);
}

.challenge-submit__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.challenge-submit p {
  color: rgba(244, 242, 237, 0.78);
  font-weight: 300;
}

.challenge-submit__luck {
  margin-top: 1.25rem;
}

.challenge-aside {
  padding: 1.5rem 1.65rem;
  border-radius: 12px;
  border-left: 3px solid rgba(228, 188, 98, 0.55);
  background: rgba(124, 92, 255, 0.08);
  font-weight: 400;
  color: rgba(244, 242, 237, 0.85);
}

.challenge-aside p {
  margin: 0;
}

.portal__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.portal--music .portal__tag {
  color: var(--violet);
}

.portal h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.portal p {
  margin: 0 0 1.25rem;
  max-width: 22rem;
  font-weight: 300;
  color: rgba(244, 242, 237, 0.78);
  font-size: 1rem;
}

.portal__cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.portal:hover .portal__cta {
  color: var(--text);
}

/* Inner pages hero */
.page-hero {
  position: relative;
  min-height: clamp(420px, 78vh, 820px);
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + var(--header-safe-top) + 3rem)
    max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left, 0px))
    max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-right, 0px)) clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.page-hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 10% 90%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 12%, rgba(62, 203, 255, 0.18), transparent 52%),
    linear-gradient(175deg, rgba(6, 6, 7, 0.25) 0%, rgba(6, 6, 7, 0.92) 62%, var(--bg) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 58rem;
}

.page-hero__content h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.page-hero__content .hero__lead {
  max-width: 34rem;
}

.page-hero--video .page-hero__wash {
  background:
    radial-gradient(ellipse 80% 60% at 80% 70%, rgba(62, 203, 255, 0.22), transparent 55%),
    linear-gradient(185deg, rgba(6, 6, 7, 0.35) 0%, rgba(6, 6, 7, 0.94) 55%, var(--bg) 100%);
}

/* Equalizer */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 56px;
  margin-bottom: 1.75rem;
}

.eq span {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--violet), var(--cyan));
  transform-origin: bottom;
  animation: eq-jump 0.85s ease-in-out infinite alternate;
}

.eq span:nth-child(1) {
  animation-delay: 0s;
  height: 28%;
}
.eq span:nth-child(2) {
  animation-delay: 0.12s;
  height: 55%;
}
.eq span:nth-child(3) {
  animation-delay: 0.05s;
  height: 42%;
}
.eq span:nth-child(4) {
  animation-delay: 0.2s;
  height: 72%;
}
.eq span:nth-child(5) {
  animation-delay: 0.08s;
  height: 38%;
}
.eq span:nth-child(6) {
  animation-delay: 0.15s;
  height: 62%;
}
.eq span:nth-child(7) {
  animation-delay: 0.03s;
  height: 48%;
}

@keyframes eq-jump {
  0% {
    transform: scaleY(0.35);
    opacity: 0.65;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Vinyl + studio strip */
.music-studio {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.vinyl-wrap {
  display: flex;
  justify-content: center;
}

.vinyl {
  position: relative;
  width: min(280px, 75vw);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(20, 20, 24, 1),
    0 40px 100px rgba(0, 0, 0, 0.65);
}

.vinyl__groove {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, transparent 0 2px, rgba(255, 255, 255, 0.04) 2px 3px),
    radial-gradient(circle at center, rgba(6, 6, 7, 0.55) 32%, transparent 33%),
    conic-gradient(from 220deg, #2a2438, #141018, #1a2530, #2a2438);
}

.vinyl:not(.vinyl--spinning) .vinyl__label {
  animation-play-state: paused;
}

.vinyl__label {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.08);
  animation: vinyl-spin 14s linear infinite;
}

.vinyl__label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes vinyl-spin {
  to {
    transform: rotate(360deg);
  }
}

.vinyl__tonearm {
  position: absolute;
  top: -8%;
  right: -12%;
  width: 52%;
  height: 52%;
  border-radius: 4px;
  background: linear-gradient(135deg, #c9c6c2, #6f6d6b);
  transform: rotate(-18deg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.vinyl__tonearm::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 12%;
  width: 38%;
  height: 14%;
  border-radius: 2px;
  background: rgba(10, 10, 11, 0.85);
}

.demo-player {
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 1rem;
}

.demo-player__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.demo-player__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.demo-player__meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wave-svg {
  width: 100%;
  height: 56px;
  color: rgba(124, 92, 255, 0.45);
}

.library-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 56px;
  margin: 0.5rem 0 0;
  opacity: 0.32;
  transition: opacity 0.35s var(--ease-out);
}

.library-eq.library-eq--active {
  opacity: 1;
}

.library-eq span {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--violet), var(--cyan));
  transform-origin: bottom;
  animation: eq-jump 0.85s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.library-eq.library-eq--active span {
  animation-play-state: running;
}

.library-eq span:nth-child(1) {
  animation-delay: 0s;
  height: 28%;
}
.library-eq span:nth-child(2) {
  animation-delay: 0.12s;
  height: 55%;
}
.library-eq span:nth-child(3) {
  animation-delay: 0.05s;
  height: 42%;
}
.library-eq span:nth-child(4) {
  animation-delay: 0.2s;
  height: 72%;
}
.library-eq span:nth-child(5) {
  animation-delay: 0.08s;
  height: 38%;
}
.library-eq span:nth-child(6) {
  animation-delay: 0.15s;
  height: 62%;
}
.library-eq span:nth-child(7) {
  animation-delay: 0.03s;
  height: 48%;
}

.tracklist {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
}

.tracklist__row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 1.25rem auto;
  gap: 0 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: transparent;
  transition: background 0.22s var(--ease-out), border-left-color 0.22s var(--ease-out);
}

.tracklist__row:last-child {
  border-bottom: none;
}

.tracklist__row:hover {
  background: rgba(124, 92, 255, 0.07);
}

.tracklist__row.is-active {
  background: rgba(124, 92, 255, 0.13);
  border-left-color: var(--accent-hot);
}

.tracklist__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tracklist__idx {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  color: rgba(244, 242, 237, 0.28);
  text-align: right;
  letter-spacing: 0.02em;
  line-height: 1;
}

.tracklist__row.is-active .tracklist__idx {
  color: var(--accent-hot);
}

.tracklist__title {
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.tracklist__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracklist--scroll {
  max-height: min(55vh, 28rem);
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.tracklist--scroll::-webkit-scrollbar {
  width: 4px;
}

.tracklist--scroll::-webkit-scrollbar-track {
  background: transparent;
}

.tracklist--scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.35);
  border-radius: 999px;
}

.audio-status {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--cyan);
  min-height: 1.25rem;
}

.tracklist__time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.embed-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.embed-shell iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: none;
}

.lyric-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.lyric-marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  letter-spacing: -0.02em;
  animation: marquee 32s linear infinite;
}

.lyric-marquee__track span {
  flex-shrink: 0;
  padding-right: 3rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Video lattice */
.video-marquee-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.video-feature {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55);
}

.video-feature iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: none;
}

.video-feature--native {
  padding: 1rem 1rem 1rem;
}

.video-now-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: anywhere;
}

.library-video,
.video-feature--native video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  vertical-align: middle;
  background: #070708;
  border-radius: 10px;
  outline: none;
  max-height: 72svh;
  object-fit: contain;
}

/* Portrait-first side-by-side: player on left, tracklist on right */
.video-library {
  display: grid;
  grid-template-columns: clamp(240px, 36%, 360px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

button.tracklist__row--video {
  width: 100%;
  font: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  /* 3-column grid: index | title+meta | watch badge */
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  padding: 0.95rem 1rem 0.95rem 1.25rem;
  transition: background 0.25s var(--ease-out);
}

button.tracklist__row--video:hover {
  background: rgba(124, 92, 255, 0.06);
}

.tracklist__video-badge {
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(62, 203, 255, 0.35);
  color: var(--cyan);
  background: rgba(62, 203, 255, 0.08);
}

@media (max-width: 700px) {
  button.tracklist__row--video.tracklist__row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  button.tracklist__row--video .tracklist__idx {
    grid-row: 1 / span 2;
    align-self: center;
  }

  button.tracklist__row--video .tracklist__info {
    grid-column: 2;
    grid-row: 1;
  }

  button.tracklist__row--video .tracklist__video-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  background: var(--surface);
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.video-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(62, 203, 255, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.video-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.05);
}

.video-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 7, 0.92), transparent 55%);
  pointer-events: none;
}

.video-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(6, 6, 7, 0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.15rem;
}

.video-tile__cap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.video-tile__cap span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.film-strip {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scrollbar-width: thin;
}

.film-strip span {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--surface), #0b0b0f);
  border: 1px solid var(--line);
  opacity: 0.85;
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(6, 6, 7, 0.82);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__panel {
  width: min(960px, 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.65);
  background: var(--bg);
}

.video-modal__top {
  display: flex;
  justify-content: flex-end;
  padding: 0.65rem 0.65rem 0;
}

.video-modal__close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.video-modal__close:hover {
  border-color: rgba(228, 188, 98, 0.45);
}

.video-modal__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* ── Music Player ── */
.mplayer {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 1.25rem;
}

.mplayer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.mplayer__track-info {
  min-width: 0;
  flex: 1;
}

.mplayer__counter {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}

.mplayer__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mplayer__source {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin: 0;
}

.mplayer__modes {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.mplayer__mode {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.mplayer__mode:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.mplayer__mode[aria-pressed="true"] {
  color: var(--accent-hot);
  border-color: rgba(255, 212, 117, 0.38);
  background: rgba(255, 212, 117, 0.08);
}

.mplayer__mode svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Big EQ visualizer */
.mplayer__eq-wrap {
  height: 120px;
  display: flex;
  align-items: flex-end;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.38);
  padding: 0.65rem 0.85rem;
  overflow: hidden;
}

.mplayer__eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.mplayer__eq span {
  flex: 1;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  height: var(--h, 50%);
  transform-origin: bottom;
  background: linear-gradient(to top, var(--violet), var(--cyan));
  animation: eq-jump var(--s, 0.85s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  animation-play-state: paused;
  opacity: 0.3;
  transition: opacity 0.45s var(--ease-out);
}

.mplayer__eq.library-eq--active span {
  animation-play-state: running;
  opacity: 1;
}

/* Seek / progress bar */
.mplayer__seek-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mplayer__t {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 2.5rem;
  font-variant-numeric: tabular-nums;
}

.mplayer__t--r {
  text-align: right;
}

.mplayer__seek {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: height 0.2s var(--ease-out);
  user-select: none;
  -webkit-user-select: none;
}

.mplayer__seek:hover,
.mplayer__seek:focus-visible {
  height: 8px;
  outline: none;
}

.mplayer__seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  pointer-events: none;
}

.mplayer__seek-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--violet);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform 0.2s var(--ease-out);
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.6);
}

.mplayer__seek:hover .mplayer__seek-thumb,
.mplayer__seek:focus-visible .mplayer__seek-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Transport controls */
.mplayer__transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.mplayer__ctrl {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.mplayer__ctrl:active {
  transform: scale(0.91) !important;
}

.mplayer__ctrl--sm {
  width: 3.1rem;
  height: 3.1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.mplayer__ctrl--sm:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.mplayer__ctrl--sm svg {
  width: 1.35rem;
  height: 1.35rem;
}

.mplayer__ctrl--lg {
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: var(--bg);
  box-shadow: 0 8px 28px rgba(228, 188, 98, 0.38);
}

.mplayer__ctrl--lg:hover {
  box-shadow: 0 14px 42px rgba(228, 188, 98, 0.55);
}

.mplayer__ctrl--lg svg {
  width: 1.75rem;
  height: 1.75rem;
}

.mplayer__ctrl--lg .icon-pause { display: none; }
.mplayer__ctrl--lg[aria-pressed="true"] .icon-play  { display: none; }
.mplayer__ctrl--lg[aria-pressed="true"] .icon-pause { display: block; }

/* Volume row */
.mplayer__vol-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mplayer__vol-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mplayer__vol {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.mplayer__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--violet);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(124, 92, 255, 0.45);
}

.mplayer__vol::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--violet);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(124, 92, 255, 0.45);
}

/* Now-playing mini bars inside tracklist row */
.tracklist__now-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.25s;
  justify-content: center;
}

.tracklist__row.is-active .tracklist__now-icon {
  opacity: 1;
}

.tracklist__now-icon i {
  display: block;
  flex: 1;
  border-radius: 1px;
  background: var(--accent-hot);
  animation: eq-jump 0.75s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.tracklist__row.is-playing .tracklist__now-icon i {
  animation-play-state: running;
}

.tracklist__now-icon i:nth-child(1) { height: 55%; animation-delay: 0s; }
.tracklist__now-icon i:nth-child(2) { height: 100%; animation-delay: 0.18s; }
.tracklist__now-icon i:nth-child(3) { height: 70%; animation-delay: 0.09s; }

/* Reset browser button chrome — prevents the "white frame" */
button.tracklist__row {
  width: 100%;
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: transparent;
  outline: none;
}

button.tracklist__row:last-child { border-bottom: none; }

button.tracklist__row:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.55);
  outline-offset: -2px;
}

button.tracklist__row:hover:not(.is-active) .tracklist__idx {
  color: var(--text-muted);
}

/* Keep grid children above the wave layer */
.tracklist__idx,
.tracklist__info,
.tracklist__now-icon,
.tracklist__dl {
  position: relative;
  z-index: 1;
}

/* Download link */
.tracklist__dl {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.3rem 0.6rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s, color 0.22s, border-color 0.22s, background 0.22s;
}

.tracklist__dl svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.tracklist__row:hover .tracklist__dl,
.tracklist__row.is-active .tracklist__dl {
  opacity: 1;
}

.tracklist__dl:hover {
  color: var(--accent-hot);
  border-color: rgba(255, 212, 117, 0.35);
  background: rgba(255, 212, 117, 0.07);
}

/* ── Per-row animated waveform ── */
.tracklist__wave {
  position: absolute;
  left: 3rem;
  right: 7.5rem;
  top: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  z-index: 0;
}

.tracklist__row.is-active .tracklist__wave  { opacity: 0.22; }
.tracklist__row.is-playing .tracklist__wave { opacity: 0.55; }

.tracklist__wave-svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.tracklist__wave-path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.tracklist__row.is-playing .tracklist__wave-path { animation-play-state: running; }

.tracklist__wave-path--v0 { stroke: rgba(124, 92, 255, 0.9); animation-name: wave-flow-60; animation-duration: 3s; }
.tracklist__wave-path--v1 { stroke: rgba(62, 203, 255, 0.9); animation-name: wave-flow-40; animation-duration: 2.4s; }
.tracklist__wave-path--v2 { stroke: rgba(255, 212, 117, 0.8); animation-name: wave-flow-80; animation-duration: 3.6s; }

@keyframes wave-flow-60 { to { transform: translateX(-60px); } }
@keyframes wave-flow-40 { to { transform: translateX(-40px); } }
@keyframes wave-flow-80 { to { transform: translateX(-80px); } }

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .showcase--bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: unset;
  }

  .showcase--bento figure:first-child {
    grid-row: auto;
    aspect-ratio: 16 / 11;
  }

  .showcase--bento figure:not(:first-child) {
    aspect-ratio: 16 / 11;
  }

  .stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__media img {
    animation: none;
    transform: scale(1.05);
  }

  .nav-toggle {
    display: block;
  }

  .nav-primary {
    position: fixed;
    top: calc(var(--header-h) + var(--header-safe-top));
    left: 0;
    right: 0;
    background: rgba(6, 6, 7, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem max(1.25rem, env(safe-area-inset-left, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px))
      max(1.25rem, env(safe-area-inset-right, 0px));
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
    max-height: min(70dvh, calc(100dvh - var(--header-h) - var(--header-safe-top) - env(safe-area-inset-bottom, 0px)));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-primary.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-primary ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-primary li {
    border-bottom: 1px solid var(--line);
  }

  .nav-primary a {
    display: block;
    padding: 1rem 0;
  }

  .nav-primary a::after {
    display: none;
  }

  .portals {
    grid-template-columns: 1fr;
  }

  .music-studio {
    grid-template-columns: 1fr;
  }

  .video-library {
    grid-template-columns: 1fr;
  }

  .library-video,
  .video-feature--native video {
    max-height: 55svh;
  }

  .mplayer {
    padding: 1.25rem;
    gap: 1rem;
  }

  .mplayer__eq-wrap {
    height: 90px;
  }

  .mplayer__ctrl--lg {
    width: 3.85rem;
    height: 3.85rem;
  }

  .mplayer__ctrl--sm {
    width: 2.75rem;
    height: 2.75rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .embed-shell iframe {
    min-height: min(380px, 52vh);
  }

  .demo-player {
    padding: 1.2rem 1.25rem;
  }

  .demo-player__row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
  }

  .demo-player__row .btn {
    width: 100%;
    justify-content: center;
  }

  .demo-player__meta {
    width: 100%;
    min-width: 0;
  }

  .demo-player__meta strong {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
  }

  .page-hero {
    min-height: min(68svh, 580px);
  }

  .challenge-prizes {
    padding: 1.35rem 1.25rem;
  }

  .challenge-prizes__list li {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img,
  .hero__aurora,
  .hero__title-accent,
  .hero__scroll-line {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .showcase img,
  .btn,
  .pillar-card,
  .about-grid__visual img {
    transition: none;
  }

  .eq span,
  .library-eq span,
  .mplayer__eq span,
  .tracklist__now-icon i,
  .tracklist__wave-path,
  .vinyl__label,
  .lyric-marquee__track {
    animation: none !important;
  }

  .portal::before {
    transform: scale(1.06);
  }

  .portal:hover::before {
    transform: scale(1.06);
  }

  .gallery-section .gallery-bento figure[data-reveal].is-visible,
  .gallery-section .gallery-bento figure[data-reveal].is-visible::before {
    animation: none !important;
  }

  .gallery-section .gallery-bento figure[data-reveal].is-visible img {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  .gallery-section .gallery-bento figure:hover::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .gallery-section .gallery-bento figure[data-reveal].is-visible::before {
    opacity: 0.35 !important;
  }
}
