/* ============================================
   Arkatech Films — @Arkatech1
   Cinematic dark theme
   ============================================ */

:root {
  --bg: #07070c;
  --bg-elevated: #0e0e16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f2ef;
  --text-muted: #9a96a8;
  --text-dim: #6b6678;
  --magenta: #ff2d95;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --gradient: linear-gradient(135deg, #ff2d95 0%, #8b5cf6 45%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 45, 149, 0.15), rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.1));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --nav-h: 72px;
  --max: 1120px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  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");
  mix-blend-mode: overlay;
}

.orb {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

.orb-a {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 45, 149, 0.45), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-b {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 60px) scale(1.1); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(7, 7, 12, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 7, 12, 0.88);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  z-index: 2;
}

.logo-mark {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Prevent background scroll when mobile menu is open */
html.nav-open,
html.nav-open body {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(255, 45, 149, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.1);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-yt {
  background: #ff0033;
  color: #fff;
}

.btn-yt:hover {
  background: #e6002e;
  box-shadow: 0 8px 24px rgba(255, 0, 51, 0.35);
}

.btn-shop {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(34, 211, 238, 0.45);
}

.btn-shop:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.15);
}

/* Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 0 rgba(255, 45, 149, 0.5);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 149, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 45, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 149, 0); }
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1,
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

.hero-word {
  display: block;
  animation: hero-word-in 0.85s var(--ease) both;
}

.hero-word-delay {
  animation-delay: 0.12s;
}

.hero-word-delay2 {
  animation-delay: 0.24s;
}

@keyframes hero-word-in {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.lede-pop {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  border-left: 3px solid transparent;
  border-image: var(--gradient) 1;
  padding-left: 1rem;
}

.lede-pop strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.stats {
  display: flex;
  gap: 1.75rem 2rem;
  flex-wrap: wrap;
}

.stat {
  min-width: 6.5rem;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-frame {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 60px rgba(139, 92, 246, 0.25);
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--gradient) border-box;
  opacity: 0.55;
  z-index: -1;
  animation: spin-slow 12s linear infinite;
}

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

.floating-chip {
  position: absolute;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(14, 14, 22, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.chip-1 { top: 8%; left: -4%; color: var(--magenta); animation-delay: 0s; }
.chip-2 { top: 42%; right: -8%; color: var(--cyan); animation-delay: 1.2s; }
.chip-3 { bottom: 10%; left: 6%; color: var(--violet); animation-delay: 0.6s; }

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

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--violet), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1) translateY(12px); }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: calc(var(--max) + 5rem);
  margin: 0 auto;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Videos */
.featured {
  display: grid;
  gap: 1.25rem;
}

.featured-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.featured-main:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
  transform: translateY(-3px);
}

.featured-main .thumb {
  position: relative;
  min-height: 280px;
  aspect-ratio: 16 / 9;
}

.featured-main .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-main .video-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 0.65rem;
  background: var(--gradient-soft);
}

.featured-main h3 {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 800;
}

.featured-main p {
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

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

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.video-card:hover {
  border-color: rgba(255, 45, 149, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.video-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.video-card:hover .thumb img {
  transform: scale(1.05);
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0.9;
  transition: transform 0.25s var(--ease), background 0.25s, opacity 0.25s;
}

.video-card:hover .play-btn {
  transform: scale(1.08);
  background: rgba(255, 45, 149, 0.75);
  opacity: 1;
}

.featured-main .play-btn {
  width: 68px;
  height: 68px;
}

.video-card .video-meta {
  padding: 1rem 1.1rem 1.2rem;
}

.video-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.video-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.feed-status {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.feed-status[data-live="true"] {
  color: #6ee7b7;
}

.feed-status[data-live="true"]::before {
  content: "● ";
  font-size: 0.65rem;
}

.feed-status[data-live="false"] {
  color: var(--amber);
}

.loading-block {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

/* Lab — game + beat machine side by side */
.lab-section {
  max-width: calc(var(--max) + 5rem);
}

.lab-grid {
  display: grid;
  /* Stack by default so sequencer always has full width (side-by-side crushed steps) */
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1200px) {
  .lab-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  }
}

.lab-panel {
  min-width: 0; /* prevent grid blowout / crushed sequencer */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  /* visible so horizontal sequencer scroll is not clipped */
  overflow: visible;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.08);
}

.lab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.06), rgba(34, 211, 238, 0.05));
}

.lab-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}

.lab-panel-head h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Arcade game */

.game-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent);
  font-family: "Courier New", ui-monospace, monospace;
}

.game-stat {
  text-align: center;
}

.game-stat-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.game-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.game-stat:nth-child(2) strong {
  color: var(--amber);
}

.game-stat:nth-child(3) strong {
  color: var(--magenta);
}

.game-lives {
  color: var(--violet) !important;
  letter-spacing: 0.15em !important;
}

.game-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #05050a;
  touch-action: none;
  user-select: none;
}

/* Beat sequencer */
.seq-shell {
  padding: 0.85rem 0.9rem 1.1rem;
  background: linear-gradient(180deg, #0a0a12 0%, #07070c 100%);
  font-family: "Courier New", ui-monospace, monospace;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: visible;
}

.seq-transport {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.seq-bpm,
.seq-vol,
.seq-swing {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.seq-bpm input[type="range"],
.seq-vol input[type="range"],
.seq-swing input[type="range"] {
  width: 72px;
  accent-color: var(--magenta);
}

.seq-bpm strong {
  color: var(--cyan);
  min-width: 2ch;
  font-size: 0.95rem;
}

.seq-actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

#seq-play.is-playing {
  background: var(--magenta);
  border-color: transparent;
  color: #fff;
}

.seq-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.seq-preset {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.seq-preset:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.seq-preset.active {
  border-color: var(--magenta);
  color: #fff;
  background: rgba(255, 45, 149, 0.2);
  box-shadow: 0 0 16px rgba(255, 45, 149, 0.25);
}

/* Scrollable sequencer board — prevents crushed 16-step grid on deploy */
.seq-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  scrollbar-color: rgba(255, 45, 149, 0.5) rgba(255, 255, 255, 0.05);
}

.seq-scroll-inner {
  min-width: 640px;
  width: max-content;
  max-width: none;
  padding: 0.65rem 0.55rem;
  box-sizing: border-box;
}

.seq-step-nums {
  display: flex;
  gap: 4px;
  margin-bottom: 0.4rem;
  align-items: center;
  width: max-content;
}

.seq-num-label {
  width: 52px;
  flex: 0 0 52px;
}

.seq-num {
  flex: 0 0 28px;
  width: 28px;
  text-align: center;
  font-size: 0.6rem;
  color: var(--text-dim);
}

.seq-num.beat {
  color: var(--cyan);
  font-weight: 700;
}

.seq-num.current {
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 45, 149, 0.8);
}

.seq-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seq-row {
  display: flex;
  gap: 4px;
  align-items: center;
  width: max-content;
}

.seq-track-label {
  width: 52px;
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.3rem 0.3rem;
  min-height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pad, #22d3ee);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.seq-track-label:hover,
.seq-track-label.hit {
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
  transform: scale(1.03);
  border-color: var(--pad, #22d3ee);
}

.seq-track-key {
  font-size: 0.55rem;
  opacity: 0.7;
}

.seq-cells {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(16, 28px);
  gap: 4px;
  width: calc(16 * 28px + 15 * 4px);
}

.seq-cell {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 0;
  flex: 0 0 28px;
  transition: background 0.1s, box-shadow 0.1s, border-color 0.1s;
}

.seq-cell.beat {
  border-color: rgba(34, 211, 238, 0.2);
}

.seq-cell.on {
  background: var(--pad, #ff2d95);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(255, 45, 149, 0.45);
}

.seq-cell.current {
  outline: 1px solid #fff;
  outline-offset: 0;
  z-index: 1;
}

.seq-cell:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.seq-pads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.seq-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), #0c0c14);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.12s, border-color 0.12s;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.seq-pad:hover {
  transform: translateY(-2px);
  border-color: var(--pad, #22d3ee);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.seq-pad.hit,
.seq-pad:active {
  transform: scale(0.96);
  border-color: var(--pad, #ff2d95);
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.4);
}

.seq-pad-key {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--pad);
  letter-spacing: 0.08em;
}

.seq-pad-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seq-hint {
  line-height: 1.45;
}

/* Projects page */
.projects-page {
  padding-top: calc(var(--nav-h) + 0.5rem);
  min-height: 70vh;
}

.projects-page-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.projects-section {
  max-width: calc(var(--max) + 5rem);
}

.projects-head {
  max-width: none;
}

.projects-grid {
  display: grid;
  gap: 1.25rem;
}

.project-listing-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.project-listing-card:hover {
  border-color: rgba(61, 214, 140, 0.35);
  transform: translateY(-2px);
}

.project-listing-card--wonder:hover {
  border-color: rgba(125, 211, 252, 0.4);
}

.project-listing-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  background:
    radial-gradient(circle at 50% 40%, rgba(61, 214, 140, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2), transparent 50%),
    #0a0f0c;
}

.project-listing-visual--wonder {
  background:
    radial-gradient(circle at 50% 40%, rgba(125, 211, 252, 0.28), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.28), transparent 50%),
    #070b14;
}

.project-listing-card--wonder .project-listing-icon {
  filter: drop-shadow(0 8px 24px rgba(125, 211, 252, 0.4));
}

@media (max-width: 700px) {
  .project-listing-card {
    grid-template-columns: 1fr;
  }

  .project-listing-visual {
    min-height: 120px;
  }
}

.project-listing-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(61, 214, 140, 0.35));
}

.project-listing-body {
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.project-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #22d3ee);
}

.project-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.project-tags {
  list-style: none;
  margin: 0.25rem 0 0.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags li {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}

.page-projects .site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  max-width: calc(var(--max) + 5rem);
  margin: 0 auto;
}

.page-projects .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

@media (max-width: 720px) {
  .project-listing-card {
    grid-template-columns: 1fr;
  }

  .project-listing-visual {
    min-height: 120px;
  }
}

/* AI News */
.news-section {
  max-width: calc(var(--max) + 5rem);
}

.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: none;
  flex-wrap: wrap;
}

.news-head > div {
  max-width: 36rem;
}

.news-filter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.75rem 0 1.35rem;
}

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

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.3rem;
  background:
    linear-gradient(160deg, rgba(255, 45, 149, 0.04), transparent 40%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  opacity: 1 !important; /* never stay hidden if reveal JS misses */
  transform: none;
}

.news-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s;
}

.news-card:hover {
  border-color: rgba(255, 45, 149, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.news-card:hover::after {
  opacity: 1;
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-source {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.news-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: "Courier New", ui-monospace, monospace;
}

.news-tag-video {
  color: #ff2d95;
  border-color: rgba(255, 45, 149, 0.4);
  background: rgba(255, 45, 149, 0.1);
}

.news-tag-image {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

.news-tag-music {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
}

.news-tag-film {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.12);
}

.news-tag-tech {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
}

.news-card time {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: "Courier New", ui-monospace, monospace;
}

.news-card h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  flex: 1;
}

.news-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: auto;
  transition: color 0.2s;
  font-family: "Courier New", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.news-card:hover .news-read {
  color: var(--magenta);
}

#protocol-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  outline: none;
}

#protocol-canvas:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.game-bezel {
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(34, 211, 238, 0.15);
  border-radius: 2px;
}

.game-controls {
  padding: 1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--border);
}

.game-help {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: "Courier New", ui-monospace, monospace;
}

.game-help kbd {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  margin: 0 0.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--cyan);
}

.game-help-touch {
  color: var(--text-dim);
}

.game-flavor {
  line-height: 1.5;
}

.accent-amber {
  color: var(--amber);
  font-weight: 700;
  font-family: "Courier New", ui-monospace, monospace;
}

/* Shop */
.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
  flex-wrap: wrap;
}

.shop-head > div {
  max-width: 36rem;
}

.shop-banner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.25);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.12), rgba(255, 45, 149, 0.08));
}

.shop-banner-copy {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.shop-banner-copy h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
}

.shop-banner-copy p {
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 0.35rem;
}

.shop-banner-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 1px solid var(--border);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.shop-banner-art span:first-child {
  font-size: 2.5rem;
  letter-spacing: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shop-banner-art span:nth-child(2) {
  font-size: 1rem;
}

.shop-banner-art span:last-child {
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.35em;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.product-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.product-media {
  aspect-ratio: 1;
  background: #111;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-meta {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.product-meta h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.product-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.product-card:hover .product-cta {
  color: var(--cyan);
}

.social-card.shop-link:hover {
  border-color: rgba(34, 211, 238, 0.5);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.footer a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* About — AI-Powered Creative Studio */
.studio-banner {
  position: relative;
  text-align: center;
  padding: 3rem 1.75rem;
  margin-bottom: 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255, 45, 149, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 70% at 80% 100%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 60% at 10% 80%, rgba(139, 92, 246, 0.16), transparent 50%),
    var(--bg-elevated);
  box-shadow: 0 0 100px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.studio-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  pointer-events: none;
  opacity: 0.5;
}

.studio-banner > * {
  position: relative;
  z-index: 1;
}

.studio-eyebrow {
  justify-content: center;
}

.studio-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.studio-tagline {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.85rem;
}

.studio-hook {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about-grid-studio {
  gap: 2rem;
}

.about-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.about-copy > p {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.7;
}

.about-lead {
  font-size: 1.15rem !important;
  color: var(--text) !important;
  line-height: 1.65 !important;
}

.about-lead strong {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight-line {
  color: var(--text);
  font-weight: 600;
}

.about-closer {
  font-size: 1.05rem !important;
  color: var(--text) !important;
  border-left: 3px solid var(--magenta);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.about-closer em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 600;
}

.about-creds {
  margin-top: 1.5rem !important;
  font-size: 0.9rem;
}

.checklist {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.about-panel {
  display: grid;
  gap: 1rem;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel-card.accent {
  background: var(--gradient-soft);
  border-color: rgba(139, 92, 246, 0.3);
}

.panel-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.expect-card {
  border-color: rgba(34, 211, 238, 0.2);
}

.expect-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.expect-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.expect-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  color: var(--cyan);
  flex-shrink: 0;
}

.expect-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.expect-list span {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.studio-cta-card .quote {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.studio-cta-sub {
  margin: -0.5rem 0 1.1rem;
}

.studio-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.quote {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.1rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}

.tool-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.tool-card span {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.tool-card small {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Social */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}

.social-card:hover {
  border-color: rgba(255, 45, 149, 0.45);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.social-card.yt:hover {
  border-color: rgba(255, 0, 51, 0.5);
}

.social-card.fb:hover {
  border-color: rgba(24, 119, 242, 0.55);
}

.social-card.fb .social-icon {
  color: #1877f2;
  font-weight: 800;
  font-family: Helvetica, Arial, sans-serif;
}

.social-card.ig:hover {
  border-color: rgba(225, 48, 108, 0.55);
}

.social-card.ig .social-icon {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.social-card strong {
  display: block;
  font-size: 0.98rem;
}

.social-card span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* CTA banner */
.cta-banner {
  position: relative;
  z-index: 1;
  margin: 1rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.12);
}

.cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* FAQ + services (SEO content) */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.15rem 1.1rem;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.35);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1rem 0;
  list-style: none;
  letter-spacing: -0.01em;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-muted);
  padding: 0 0 1.1rem;
  line-height: 1.65;
  font-size: 0.98rem;
}

.faq-item a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.service-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

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

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: modal-in 0.3s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
  opacity: 0.8;
}

.modal-close:hover {
  opacity: 1;
}

.modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .stats {
    justify-content: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .avatar-frame {
    width: min(240px, 60vw);
  }

  .featured-main {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .studio-banner {
    padding: 2.25rem 1.25rem;
    text-align: left;
  }

  .studio-eyebrow {
    justify-content: flex-start;
  }

  .studio-hook {
    margin: 0;
  }

  .studio-cta-row .btn {
    flex: 1;
    min-width: 140px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .seq-scroll-inner {
    min-width: 560px;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-banner {
    grid-template-columns: 1fr;
  }

  .shop-banner-art {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.25rem;
    flex-direction: row;
    gap: 0.75rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scroll-hint {
    display: none;
  }
}

/* Hamburger earlier so tablet/narrow laptop doesn't clip the long nav row */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 120;
  }

  /* Full mobile menu: scrollable so every link is reachable */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    padding:
      calc(var(--nav-h) + 0.75rem + env(safe-area-inset-top, 0px))
      1.5rem
      calc(1.75rem + env(safe-area-inset-bottom, 0px));
    max-height: 100dvh;
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(7, 7, 12, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a:not(.btn):last-of-type {
    border-bottom: none;
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 0.35rem;
    justify-content: center;
  }

  .nav-links .btn-shop {
    margin-top: 0.85rem;
  }

  .logo {
    position: relative;
    z-index: 120;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    gap: 1.5rem;
  }

  .shop-head .btn {
    width: 100%;
  }

  .game-hud {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .game-stage {
    width: 100%;
  }

  .seq-track-label {
    width: 44px;
    font-size: 0.55rem;
  }

  .seq-num-label {
    width: 44px;
  }

  .seq-pads {
    grid-template-columns: repeat(4, 1fr);
  }

  .seq-actions {
    margin-left: 0;
    width: 100%;
  }

  .news-head .btn {
    width: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
