/* ProjectRush — cinematic neon/glassmorphism layer.
   Vanta.js paints animated 3D backgrounds; this file paints everything
   that sits on top of them: typography, glass cards, neon glows, hover
   states, and the reveal-on-scroll animation primitives. */

:root {
  --bg: #07080c;
  --bg-2: #0c0f16;
  --ink: #f5f0e6;
  --ink-soft: rgba(245, 240, 230, 0.72);
  --ink-mute: rgba(245, 240, 230, 0.52);

  --cyan: #4bd7ff;
  --cyan-glow: rgba(75, 215, 255, 0.55);
  --rose: #ff4f7a;
  --rose-glow: rgba(255, 79, 122, 0.6);
  --gold: #f5c85b;
  --gold-glow: rgba(245, 200, 91, 0.55);
  --violet: #9b80ff;
  --violet-glow: rgba(155, 128, 255, 0.55);

  --line: rgba(245, 240, 230, 0.08);
  --line-strong: rgba(245, 240, 230, 0.16);
  --glass: rgba(14, 18, 28, 0.55);
  --glass-strong: rgba(14, 18, 28, 0.92);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-glow-cyan: 0 0 40px rgba(75, 215, 255, 0.18);
  --shadow-glow-rose: 0 0 40px rgba(255, 79, 122, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
p, h1, h2, h3, h4 { margin: 0; }

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(75, 215, 255, 0.4), rgba(255, 79, 122, 0.4));
  border-radius: 999px;
}

/* ----- Display typography ----- */
.display {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.glow-cyan {
  text-shadow:
    0 0 12px var(--cyan-glow),
    0 0 32px rgba(75, 215, 255, 0.32);
}

.glow-rose {
  text-shadow:
    0 0 12px var(--rose-glow),
    0 0 32px rgba(255, 79, 122, 0.32);
}

.glow-gold {
  text-shadow:
    0 0 12px var(--gold-glow),
    0 0 32px rgba(245, 200, 91, 0.32);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(75, 215, 255, 0.4);
  border-radius: 999px;
  background: rgba(75, 215, 255, 0.08);
  color: var(--cyan);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* ----- Sticky transparent navbar -----
   No backdrop-filter — re-blurring the page beneath a sticky element on
   every scroll frame is the single biggest scroll-perf foot-gun. A solid
   translucent background composites for free. */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 8, 12, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(75, 215, 255, 0.55);
  background: linear-gradient(135deg, rgba(75, 215, 255, 0.18), rgba(255, 79, 122, 0.12));
  border-radius: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 18px rgba(75, 215, 255, 0.18), 0 0 18px rgba(75, 215, 255, 0.18);
}

.brand-name { display: grid; line-height: 1.05; }
.brand-name strong { font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: 0.08em; font-size: 0.95rem; }
.brand-name small { color: var(--ink-mute); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 200ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--rose));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.6, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--ink); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* ----- Buttons ----- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #ffce5a 0%, #ff8a4c 50%, #ff5a9e 100%);
  color: #1a0e1a;
  box-shadow: 0 14px 40px rgba(255, 138, 76, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { box-shadow: 0 18px 50px rgba(255, 138, 76, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

.btn-ghost {
  border-color: rgba(245, 240, 230, 0.18);
  background: rgba(245, 240, 230, 0.04);
  backdrop-filter: blur(8px);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(75, 215, 255, 0.32);
  color: var(--ink);
}

/* ----- Vanta canvas wrapper -----
   Keeps a static gradient fallback so that small viewports / reduced
   motion / WebGL-disabled clients still get a styled background instead
   of pure black. */
.vanta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 70% at 75% 25%, rgba(75, 215, 255, 0.18), transparent 60%),
    radial-gradient(60% 70% at 20% 80%, rgba(255, 79, 122, 0.14), transparent 60%),
    var(--bg);
}

.vanta-bg canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--bg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0) 0%, rgba(7, 8, 12, 0.55) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.6) 38%, rgba(7, 8, 12, 0.1) 60%, transparent 80%);
  pointer-events: none;
}

.hero-lineup {
  position: absolute;
  z-index: 1;
  inset: clamp(5rem, 9vh, 6rem) 0 clamp(3rem, 9vh, 6rem) auto;
  display: flex;
  width: min(98vw, 140rem);
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 1.4rem);
  overflow: hidden;
  pointer-events: none;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.4));
}

.hero-character {
  width: 0;
  min-width: 0;
  flex: 1 1 0%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-character.is-primary { flex-grow: 1.16; }

.hero-character.is-visible {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  min-height: 100vh;
  max-width: 1140px;
  width: 100%;
  padding: 9rem clamp(1rem, 5vw, 4.5rem) clamp(4rem, 9vh, 6rem);
}

.hero-lede,
.hero-content > p {
  max-width: 620px;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  margin-top: 1rem;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffd6a8 60%, #ff8aa3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 138, 76, 0.28));
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

/* ----- Section scaffolding -----
   content-visibility: auto skips layout/paint for off-screen sections
   entirely. contain-intrinsic-size keeps the scrollbar stable. */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 4.5rem);
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.section-bg {
  position: relative;
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(255, 79, 122, 0.08), transparent 60%),
    radial-gradient(60% 80% at 10% 80%, rgba(75, 215, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.section-inner { position: relative; max-width: 1240px; margin: 0 auto; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(320px, 1fr);
  gap: clamp(1rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.66) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 760px;
}

.section-eyebrow-stack { display: grid; gap: 1rem; align-content: start; }

/* ----- Glassmorphism card -----
   Solid translucent background + a regular 1px gradient border via
   border-image. No mask-composite (which forces an extra compositing
   layer per card and re-rasters on scroll on some GPUs). */
.glass {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass-strong);
  border: 1px solid rgba(245, 240, 230, 0.12);
  overflow: hidden;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms, box-shadow 240ms ease;
}

.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 215, 255, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
}

.glass-body { position: relative; padding: 1.6rem; }

/* Overview tile variant */
.tile-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--rose);
  text-shadow: 0 0 12px var(--rose-glow);
}

.tile-title {
  margin-top: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ink);
}

.tile-text { margin-top: 0.7rem; color: var(--ink-soft); line-height: 1.55; font-size: 0.95rem; }

/* ----- Grid utility ----- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.grid-rows  { display: grid; gap: 0.85rem; }

/* ----- Screenshot tabs (custom, no framework) ----- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  height: 2.6rem;
  padding: 0 1.2rem;
  border: 1px solid var(--line-strong);
  background: rgba(245, 240, 230, 0.04);
  color: var(--ink-soft);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 200ms, border-color 200ms, background 200ms, box-shadow 200ms;
}

.tab:hover { color: var(--ink); border-color: rgba(75, 215, 255, 0.45); }

.tab[aria-selected="true"] {
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), #82ecff);
  border-color: transparent;
  box-shadow: 0 0 28px rgba(75, 215, 255, 0.45);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-up 480ms cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Screenshot card ----- */
.shot {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), border-color 280ms, box-shadow 280ms;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 200, 91, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 200, 91, 0.22);
}

.shot-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #050608;
  border-bottom: 1px solid var(--line);
}

.shot-cap {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ----- Demo card ----- */
.demo {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-strong);
  border: 1px solid rgba(245, 200, 91, 0.34);
  position: relative;
}

.demo-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.demo-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffd6a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.demo-iframe {
  display: block;
  width: 100%;
  min-height: 22rem;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #050608;
}

/* ----- Page hero (plan/join) ----- */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9rem clamp(1rem, 5vw, 4.5rem) clamp(3rem, 9vh, 6rem);
  background: var(--bg);
}

.page-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.page-hero-title {
  font-family: 'Orbitron', sans-serif;
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero-lede {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Progress bar */
.progress {
  width: 100%;
  max-width: 560px;
  margin: 2.4rem auto 0;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.progress-stats .label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.progress-stats .count {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
}

.progress-bar {
  position: relative;
  height: 0.7rem;
  background: rgba(245, 240, 230, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--p, 33%);
  background: linear-gradient(90deg, var(--gold), #ff8a4c, var(--rose));
  border-radius: 999px;
  box-shadow: 0 0 18px var(--gold-glow);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2.4s linear infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ----- Plan items ----- */
.plan-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
}

.plan-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  border: 1px solid;
}

.plan-mark.done  { color: var(--cyan); border-color: rgba(75, 215, 255, 0.55); background: rgba(75, 215, 255, 0.1); box-shadow: inset 0 0 12px rgba(75, 215, 255, 0.25); }
.plan-mark.todo  { color: var(--rose); border-color: rgba(255, 79, 122, 0.5);  background: rgba(255, 79, 122, 0.08); box-shadow: inset 0 0 12px rgba(255, 79, 122, 0.18); }

.plan-title { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; }
.plan-desc  { margin-top: 0.3rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border: 1px solid;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pill.done { color: var(--cyan); border-color: rgba(75, 215, 255, 0.55); background: rgba(75, 215, 255, 0.1); }
.pill.todo { color: var(--rose); border-color: rgba(255, 79, 122, 0.5);  background: rgba(255, 79, 122, 0.08); }
.pill.gold { color: var(--gold); border-color: rgba(245, 200, 91, 0.55); background: rgba(245, 200, 91, 0.08); }

/* ----- Role tags ----- */
.tag-art    { color: var(--rose);   border-color: rgba(255, 79, 122, 0.55); background: rgba(255, 79, 122, 0.1); }
.tag-tech   { color: var(--cyan);   border-color: rgba(75, 215, 255, 0.55); background: rgba(75, 215, 255, 0.08); }
.tag-design { color: var(--gold);   border-color: rgba(245, 200, 91, 0.55); background: rgba(245, 200, 91, 0.08); }
.tag-audio  { color: var(--violet); border-color: rgba(155, 128, 255, 0.55); background: rgba(155, 128, 255, 0.08); }

.role-card .tile-title { margin-top: 1.1rem; }

/* Note alert */
.note {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.note p { margin: 0; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.note p strong { color: var(--ink); }

/* Contact card */
.contact { padding: clamp(2rem, 4vw, 3rem); text-align: center; }

.contact-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.contact-item span {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}

.contact-item p,
.contact-item a {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.contact-item a:hover { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }

/* ----- Footer ----- */
.footer {
  padding: 1.6rem clamp(1rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.6);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-size: 0.9rem;
}

.footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--cyan); }

/* ----- Lightbox (custom, no framework) ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(4, 6, 8, 0.92);
  backdrop-filter: blur(8px);
  animation: fade-in 220ms ease;
}

.lightbox[hidden] { display: none; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox figure {
  width: min(100%, 1280px);
  margin: 0;
  animation: pop-in 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #050608;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.lightbox figcaption {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(245, 240, 230, 0.06);
  color: var(--ink);
  border-radius: 999px;
  font-size: 1rem;
}
.lightbox-close:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 20px var(--cyan-glow); }

/* ----- Reveal-on-scroll ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo  { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero, .hero-content { min-height: auto; }
  .hero-content { padding-top: 7rem; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 8, 12, 0) 0%, rgba(7, 8, 12, 0.45) 50%, var(--bg) 100%),
      linear-gradient(0deg, var(--bg), rgba(7, 8, 12, 0.4));
  }
  .hero-lineup {
    inset: 5.5rem 0 auto auto;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    height: 18rem;
    gap: 0.3rem;
    opacity: 0.7;
  }
  .hero-character { width: 100%; }
  .hero-title {
    font-size: clamp(2rem, 9.5vw, 4rem);
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: auto 1fr; }
  .plan-row .pill { grid-column: 1 / -1; justify-self: start; }
  .nav-inner { padding: 0.85rem clamp(1rem, 4vw, 2rem); gap: 0.5rem; }
  .brand-name small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-character, [data-reveal] { opacity: 1; transform: none; }
}
