/* ============================================================
   NES — NESMA ESPORTS · Interactive Website
   Brand: deep electric purple + lime / acid-green accent
   Typography: Dharma Gothic E (Display) + JetBrains Mono (UI/Code)
============================================================ */

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Dharma Gothic";
  src: url("assets/fonts/DharmaGothicE-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Dharma Gothic";
  src: url("assets/fonts/DharmaGothicE-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Dharma Gothic";
  src: url("assets/fonts/DharmaGothicE-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Dharma Gothic";
  src: url("assets/fonts/DharmaGothicE-ExBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Dharma Gothic";
  src: url("assets/fonts/DharmaGothicE-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --purple-deep: #1a0438;
  --purple-base: #3a0ca3;
  --purple-mid:  #5b1eda;
  --purple-bright: #7a00ff;
  --purple-glow: #9d4dff;
  --lime: #c7f600;
  --lime-soft: #d8fc4a;
  --ink: #0a0014;
  --bone: #f5f0ff;
  --white: #ffffff;

  --display: "Dharma Gothic", "Anton", "Bebas Neue", Impact, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --nav-h: 84px;
  --container: 1480px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html { scroll-behavior: auto; }
body.no-scroll { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- CUSTOM CURSOR (purple fireball) ---------- */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, [data-cursor] { cursor: none; }
  .cursor {
    position: fixed;
    top: 0; left: 0;
    width: 64px; height: 60px;
    background: url("assets/cursor-fireball.png") center/contain no-repeat;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(-12deg);
    filter: drop-shadow(0 0 14px rgba(157, 77, 255, 0.85))
            drop-shadow(0 0 28px rgba(122, 0, 255, 0.45));
    transition: width 0.25s cubic-bezier(.2,.8,.2,1), height 0.25s cubic-bezier(.2,.8,.2,1), filter 0.25s ease;
    will-change: transform;
  }
  .cursor.is-hover {
    width: 92px; height: 86px;
    filter: drop-shadow(0 0 22px rgba(199, 246, 0, 0.7))
            drop-shadow(0 0 40px rgba(157, 77, 255, 0.7));
  }
  .cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--purple-glow);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    filter: blur(6px);
    will-change: transform;
  }
}

/* ---------- GRAIN + SCANLINES ---------- */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
}
.scanlines::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 199;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  opacity: 0.35;
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner {
  display: grid;
  place-items: center;
  gap: 22px;
}
.loader__mark {
  width: 90px; height: 90px;
  background: url("assets/cursor-fireball.png") center/contain no-repeat;
  filter: drop-shadow(0 0 24px rgba(157, 77, 255, 0.9));
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.loader__bar {
  width: 280px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
}
.loader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  width: 0%;
  transition: width 0.3s ease;
}
.loader__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  mix-blend-mode: difference;
  color: #fff;
}
.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav__logo img {
  width: 132px;
  height: auto;
  display: block;
  /* The PNG is already white-on-transparent */
}
.nav__list {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.nav__list a {
  position: relative;
  padding-bottom: 4px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.nav__list a:hover { opacity: 1; }
.nav__list a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.3s cubic-bezier(.2,.8,.2,1);
}
.nav__list a:hover::after { width: 100%; }
.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav__cta:hover { background: #fff; color: #000; }

/* ============================================================
   HERO — fixed video, scroll scrubs playback,
   text reveals L/R around the centered character
============================================================ */
.hero {
  position: relative;
  /* Single-viewport hero — video loops on first scroll; user scrolls past it */
  height: 100vh;
  background: var(--ink);
}
.hero__stage {
  position: relative;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Slight pulse / breathing */
  filter: contrast(1.05) saturate(1.1);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 35%, rgba(10, 0, 20, 0.55) 75%, rgba(10, 0, 20, 0.95) 100%),
    linear-gradient(180deg, rgba(10,0,20,0.3) 0%, transparent 30%, transparent 70%, rgba(10,0,20,0.6) 100%);
}
.hero__copy {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 6vw;
  gap: 4vw;
  pointer-events: none;
}
.hero__side {
  display: flex;
  flex-direction: column;
}
.hero__side--left { align-items: flex-start; text-align: left; }
.hero__side--right { align-items: flex-end; text-align: right; }
.hero__center { width: 0; } /* the character takes this space visually */

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
}
.hero__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.hero__side--right .hero__eyebrow::before { display: none; }
.hero__side--right .hero__eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(54px, 9.2vw, 168px);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  text-shadow:
    0 0 60px rgba(122, 0, 255, 0.45),
    0 0 120px rgba(122, 0, 255, 0.25);
}
.hero__title .accent { color: var(--lime); font-style: italic; }
.hero__title .word { display: block; overflow: hidden; }
.hero__title .word > span {
  display: inline-block;
  transform: translateY(110%);
}

.hero__sub {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: rgba(245, 240, 255, 0.78);
  margin-top: 24px;
  max-width: 340px;
  opacity: 0;
  transform: translateY(20px);
}

.hero__corner {
  position: absolute;
  z-index: 4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.hero__corner--tl { top: calc(var(--nav-h) + 16px); left: 36px; }
.hero__corner--tr { top: calc(var(--nav-h) + 16px); left: 50%; transform: translateX(-50%); text-align: center; }
.hero__corner--bl { bottom: 24px; left: 36px; }
.hero__corner--br { bottom: 24px; right: 36px; display: flex; align-items: center; gap: 10px; }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--lime));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -36px;
  left: 0; right: 0;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--lime));
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(0); }
  100% { transform: translateY(72px); }
}

/* Timecode HUD */
.hud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hud__dot {
  width: 8px; height: 8px;
  background: #ff2e2e;
  border-radius: 50%;
  box-shadow: 0 0 12px #ff2e2e;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ============================================================
   SECTION: VISION + MISSION
============================================================ */
.section {
  position: relative;
  padding: 140px 0 160px;
  background: var(--ink);
}
.section--purple {
  background:
    radial-gradient(circle at 20% 10%, rgba(122, 0, 255, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(58, 12, 163, 0.7) 0%, transparent 50%),
    var(--purple-deep);
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: "//";
  color: rgba(199, 246, 0, 0.5);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.vm-card {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.vm-card h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(60px, 8vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: #fff;
}
.vm-card h2 .ghost {
  -webkit-text-stroke: 2px var(--lime);
  color: transparent;
}
.vm-card p {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 240, 255, 0.85);
  max-width: 540px;
}
.vm-card .vm-num {
  position: absolute;
  top: 30px;
  right: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--lime);
}

/* ============================================================
   MARQUEE
============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  background: var(--lime);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee__item {
  font-family: var(--display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee__item::after {
  content: "✦";
  display: inline-block;
  font-size: 36px;
  color: var(--purple-bright);
  transform: translateY(-4px);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT / NESMA
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: end;
}
.about-grid h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 7.5vw, 130px);
  line-height: 0.85;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.about-grid h2 .em {
  display: block;
  color: var(--lime);
  font-style: italic;
}
.about-grid p {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 240, 255, 0.8);
  max-width: 600px;
  margin: 0 0 18px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.about-stat .n {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 5.5vw, 92px);
  line-height: 1;
  color: var(--lime);
}
.about-stat .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 255, 0.6);
  margin-top: 8px;
}

/* ============================================================
   SKILLS / PRODUCTION HUB
============================================================ */
.skills-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 80px;
  gap: 40px;
}
.skills-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 9vw, 160px);
  line-height: 0.85;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.skills-head h2 span.ghost {
  -webkit-text-stroke: 2px #fff;
  color: transparent;
  font-style: italic;
}
.skills-head .meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 255, 0.55);
  max-width: 280px;
  text-align: right;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-left: 1px solid rgba(255,255,255,0.12);
}
.skill-cell {
  position: relative;
  padding: 36px 32px 40px;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  min-height: 240px;
  overflow: hidden;
  background: transparent;
  transition: background 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.skill-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122, 0, 255, 0.0), rgba(122, 0, 255, 0.4));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.skill-cell:hover { background: rgba(122, 0, 255, 0.15); }
.skill-cell:hover::before { opacity: 1; }
.skill-cell .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--lime);
}
.skill-cell h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  margin: 18px 0 0;
  color: #fff;
  position: relative;
  z-index: 1;
}
.skill-cell p {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 240, 255, 0.7);
  margin: 14px 0 0;
}
.skill-cell .arrow {
  position: absolute;
  top: 32px; right: 28px;
  color: rgba(255,255,255,0.3);
  font-size: 20px;
  transition: transform 0.4s ease, color 0.4s ease;
}
.skill-cell:hover .arrow {
  color: var(--lime);
  transform: rotate(-45deg);
}

/* ============================================================
   STUDIO  ·  specs panel
============================================================ */
.studio {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.studio::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 80px 100%,
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 100% 80px;
  pointer-events: none;
}
.studio-head {
  text-align: center;
  margin-bottom: 100px;
}
.studio-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(72px, 11vw, 220px);
  line-height: 0.85;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.studio-head h2 .acid {
  background: linear-gradient(180deg, var(--lime), #88aa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.studio-head p {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 255, 0.55);
  margin: 18px 0 0;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.spec {
  position: relative;
  background: var(--ink);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 28px;
  transition: background 0.3s ease;
}
.spec:hover { background: rgba(122, 0, 255, 0.08); }
.spec .ico {
  font-family: var(--display);
  font-weight: 900;
  font-size: 48px;
  color: var(--lime);
  line-height: 1;
}
.spec h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
}
.spec .desc {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 255, 0.65);
}
.spec .size {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 8px 12px;
  border: 1px solid var(--lime);
  border-radius: 999px;
}

/* ============================================================
   PROJECTS — horizontal pinned scroller
============================================================ */
.projects {
  background: var(--purple-deep);
  position: relative;
  overflow: hidden;
  padding-top: 0;
}
.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(157, 77, 255, 0.35) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.projects-pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 80px 36px 24px;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
.projects-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(60px, 7.5vw, 140px);
  line-height: 0.85;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.projects-head h2 .ghost {
  -webkit-text-stroke: 2px var(--lime);
  color: transparent;
  font-style: italic;
}
.projects-head .counter {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 255, 0.6);
}
.projects-head .counter .now { color: var(--lime); font-size: 18px; }

.projects-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 40px;
}
.projects-track {
  display: flex;
  gap: 28px;
  padding: 0 36px;
  align-items: center;
  will-change: transform;
}
.project-card {
  flex: 0 0 440px;
  width: 440px;
  height: 540px;          /* Fixed identical height for ALL cards */
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
@media (max-height: 760px) {
  .project-card { height: 460px; }
}
@media (max-height: 640px) {
  .project-card { height: 400px; padding: 24px; }
}
.project-card:hover { transform: translateY(-8px); }
.project-card .pj-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--lime);
}
.project-card .pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.project-card .pj-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(245, 240, 255, 0.25);
  border-radius: 999px;
  color: rgba(245, 240, 255, 0.7);
}
.project-card h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.project-card .pj-desc {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(245, 240, 255, 0.75);
  margin: 12px 0 0;
}
.project-card .pj-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.project-card > * { position: relative; z-index: 1; }
.project-card .pj-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

/* Vary card backgrounds via gradient art */
.project-card[data-c="1"] .pj-art { background-image: radial-gradient(circle at 30% 30%, #7a00ff 0%, transparent 60%), radial-gradient(circle at 70% 70%, #c7f600 0%, transparent 50%); }
.project-card[data-c="2"] .pj-art { background-image: radial-gradient(circle at 80% 20%, #5b1eda 0%, transparent 60%), radial-gradient(circle at 20% 80%, #9d4dff 0%, transparent 55%); }
.project-card[data-c="3"] .pj-art { background-image: linear-gradient(135deg, #3a0ca3, transparent), radial-gradient(circle at 70% 30%, #c7f600 0%, transparent 50%); }
.project-card[data-c="4"] .pj-art { background-image: radial-gradient(circle at 40% 60%, #7a00ff 0%, transparent 55%), linear-gradient(45deg, #1a0438, transparent); }
.project-card[data-c="5"] .pj-art { background-image: radial-gradient(circle at 60% 40%, #9d4dff 0%, transparent 60%), radial-gradient(circle at 30% 80%, #c7f600 0%, transparent 40%); }
.project-card[data-c="6"] .pj-art { background-image: linear-gradient(180deg, #5b1eda, transparent 80%), radial-gradient(circle at 80% 80%, #c7f600 0%, transparent 45%); }
.project-card[data-c="7"] .pj-art { background-image: radial-gradient(circle at 20% 20%, #c7f600 0%, transparent 35%), radial-gradient(circle at 80% 60%, #7a00ff 0%, transparent 55%); }
.project-card[data-c="8"] .pj-art { background-image: radial-gradient(circle at 50% 50%, #9d4dff 0%, transparent 65%), linear-gradient(225deg, #1a0438, transparent); }

/* ============================================================
   CLIENTS
============================================================ */
.clients {
  padding: 140px 0 160px;
}
.clients-head {
  text-align: center;
  margin-bottom: 80px;
}
.clients-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(60px, 9vw, 160px);
  line-height: 0.85;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.clients-head h2 .lime { color: var(--lime); font-style: italic; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-left: 1px solid rgba(255,255,255,0.12);
}
.client {
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 1.5 / 1;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(245, 240, 255, 0.5);
  transition: color 0.3s ease, background 0.3s ease;
  padding: 20px;
  text-align: center;
  line-height: 1;
}
.client:hover {
  color: var(--lime);
  background: rgba(122, 0, 255, 0.12);
}

/* ============================================================
   CTA / FOOTER
============================================================ */
.cta {
  position: relative;
  background: var(--lime);
  color: var(--ink);
  padding: 120px 0 80px;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/fireball-violet-clean.png");
  background-position: 110% 50%;
  background-size: 60vmin auto;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.cta h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(80px, 12vw, 240px);
  line-height: 0.78;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.cta h2 em { color: var(--purple-bright); font-style: italic; }
.cta-info {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(10, 0, 20, 0.85);
}
.cta-info strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--ink);
}
.cta-info a { text-decoration: underline; text-underline-offset: 4px; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 22px 32px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 999px;
  margin-top: 28px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.cta-button:hover {
  background: var(--purple-bright);
  color: #fff;
  transform: translateY(-2px);
}
.cta-button .arr { font-size: 18px; }

.footer {
  background: var(--ink);
  padding: 50px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.footer-grid img.footer__logo {
  width: 180px;
  height: auto;
  opacity: 0.85;
  filter: none;
}
.footer-grid img {
  /* fallback for any other img */
  width: 56px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-grid .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 255, 0.45);
}
.footer-grid .meta.right { text-align: right; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  .nav__list { display: none; }
  .vm-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .meta.right { text-align: center; }
  .hero__copy { padding: 0 5vw; gap: 2vw; }
  .marquee__item { font-size: 44px; }
  .project-card { flex: 0 0 78vw; height: 65vh; }
  .skills-head { grid-template-columns: 1fr; }
  .skills-head .meta { text-align: left; }
}
@media (max-width: 640px) {
  .nav { padding: 0 16px; height: 64px; }
  :root { --nav-h: 64px; }
  .nav__logo img { width: 78px; }
  .nav__cta { font-size: 9px; padding: 8px 14px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0 100px; }
  .hero__copy { grid-template-columns: 1fr; padding: 0 24px; text-align: left; gap: 60px; align-content: center; }
  .hero__side--right { align-items: flex-start; text-align: left; }
  .hero__center { display: none; }
  .hero__corner--tl, .hero__corner--tr, .hero__corner--bl, .hero__corner--br { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .marquee__item { font-size: 32px; gap: 36px; }
  .projects-head { padding: 60px 24px 30px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .projects-head h2 { font-size: 64px; }
  .vm-card h2 { font-size: 56px; }
  .about-grid h2, .skills-head h2, .studio-head h2, .clients-head h2, .cta h2 { font-size: 56px !important; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
