:root {
  /* Huly-style palette */
  --bg: #020617;
  --bg-alt: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.7);
  --accent-strong: rgba(56,189,248,0.95);
  --accent-2: #f97316;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.28);
  --radius-lg: 1.4rem;
  --shadow-soft: 0 26px 90px rgba(0, 0, 0, 0.9);
  --transition-fast: 160ms ease-out;
  --transition-med: 260ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 50% -20%, #1f2937 0%, #020617 40%, #020617 70%, #000 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

/* ========== GLOBAL FX ========== */

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  z-index: -1;
}

.gradient-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
  mix-blend-mode: screen;
  z-index: -2;
}

.gradient-orb--center {
  width: 620px;
  height: 620px;
  background:
    radial-gradient(circle at 50% 40%, rgba(59,130,246,0.9), transparent 60%);
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.65;
}

.gradient-orb--left {
  width: 420px;
  height: 420px;
  background:
    radial-gradient(circle, rgba(56,189,248,0.8), transparent 60%);
  top: 20%;
  left: -120px;
  animation: floatLeft 26s ease-in-out infinite alternate;
  opacity: 0.45;
}

.gradient-orb--right {
  width: 520px;
  height: 520px;
  background:
    radial-gradient(circle, rgba(79,70,229,0.7), transparent 60%);
  bottom: -140px;
  right: -180px;
  animation: floatRight 26s ease-in-out infinite alternate;
  opacity: 0.5;
}

@keyframes floatLeft {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(40px, 40px, 0) scale(1.05); }
}

@keyframes floatRight {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-30px, -40px, 0) scale(1.05); }
}

/* Mouse spotlight */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(56,189,248,0.18), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.9;
  z-index: -1;
  transition: background-position 80ms linear;
}

/* Floating card suits in background */
.symbols {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  opacity: 0.28;
  z-index: -1;
}

.symbol {
  position: absolute;
  font-size: 1.2rem;
  color: rgba(148,163,184,0.32);
  animation: floatSymbol linear infinite;
}

@keyframes floatSymbol {
  0% {
    transform: translateY(120vh) translateX(0) scale(0.9);
    opacity: 0;
  }
  12% { opacity: 0.8; }
  100% {
    transform: translateY(-20vh) translateX(40px) scale(1.1);
    opacity: 0;
  }
}

/* ========== LAYOUT ========== */

.shell {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.3rem, 3vw, 2.2rem);
}

.page {
  padding-top: 80px;
}

/* ========== NAVBAR ========== */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(24px);
  background:
    linear-gradient(to bottom, rgba(3,7,18,0.95), rgba(3,7,18,0.7), transparent);
  border-bottom: 1px solid rgba(15,23,42,1);
}

/* === Language selector in nav === */

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-lang-sep {
  opacity: 0.45;
}

.nav-lang-link {
  text-decoration: none;
  color: var(--muted);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.nav-lang-link:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.nav-lang-link--active {
  color: #f9fafb;
  border-color: rgba(56, 189, 248, 0.95);
  background: radial-gradient(
    140% 220% at 50% 0%,
    rgba(56, 189, 248, 0.55),
    rgba(15, 23, 42, 0.98)
  );
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.65),
    0 12px 35px rgba(0, 0, 0, 0.9);
}

@media (max-width: 800px) {
  .nav-lang {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}

/* === LANGUAGE DROPDOWN === */

.nav-lang {
  position: relative;
  margin-left: 1.5rem;
}

.nav-lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent 50%),
              rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.nav-lang-current:hover {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

.nav-lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.nav-lang-code {
  font-size: 0.7rem;
}

.nav-lang-caret {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Dropdown */

.nav-lang-menu {
  position: absolute;
  top: 120%;
  right: 0;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.22), transparent 55%),
              rgba(15, 23, 42, 0.97);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.85);
  gap: 0.15rem;
  z-index: 60;
}

.nav-lang-menu.is-open {
  display: flex;
}

.nav-lang-menu li {
  margin: 0;
}

.nav-lang-menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #e5e7eb;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.nav-lang-menu a:hover {
  background: rgba(15, 23, 42, 1);
  color: #f9fafb;
  transform: translateY(-1px);
}

.nav-lang-menu a.is-current {
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.3), transparent 55%),
              rgba(15, 23, 42, 0.98);
  color: #fefce8;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.7);
}

.nav-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(248,250,252,0.8);
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 0 36px rgba(59,130,246,0.95);
  background:
    radial-gradient(circle at 30% 0%, #4f46e5, #0b1120 55%, #020617 100%);
}

.brand-text-main {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-block: 0.1rem;
  color: var(--muted);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transition: width var(--transition-fast);
}

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

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

/* CTA container in nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}

/* Don’t restyle the Huly button, just control visibility */
.nav-cta {
  display: none;
}

@media (min-width: 860px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* New header logo */
.nav-logo {
  height: 38px;        /* adjust to your preference */
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-brand {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* ========== PANELS ========== */

section.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 3.2rem;
  position: relative;
}

.panel-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  section.panel {
    min-height: auto;
  }
  .panel-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
}

/* ========== HERO ========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3.2rem 4rem;
  }
}

.hero-kicker {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  margin-bottom: 0.7rem;
}

.hero-line {
  width: 70px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin-bottom: 1.2rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  color: var(--muted);
  margin-bottom: 0.8rem;
  background:
    radial-gradient(circle at left, rgba(79,70,229,0.3), transparent 60%);
}

.hero-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 26px var(--accent-strong);
}

.glitch-title {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 0.5rem;
}

.glitch-title span {
  display: block;
}

.glitch-title-main {
  position: relative;
  color: var(--text);
}

.glitch-title-main::before,
.glitch-title-main::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.3;
  clip-path: inset(0 0 50% 0);
  animation: glitch 2.6s infinite linear alternate-reverse;
}

.glitch-title-main::before {
  transform: translate(-2px, -1px);
  color: #38bdf8;
}

.glitch-title-main::after {
  transform: translate(2px, 1px);
  color: #6366f1;
  animation-delay: 0.4s;
}

@keyframes glitch {
  0% { clip-path: inset(0 0 45% 0); }
  20% { clip-path: inset(40% 0 0 0); }
  40% { clip-path: inset(0 0 60% 0); }
  60% { clip-path: inset(50% 0 0 0); }
  80% { clip-path: inset(20% 0 20% 0); }
  100% { clip-path: inset(0 0 100% 0); }
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 1.1rem 0 1.8rem;
}

.hero-sub strong {
  color: #e5e7eb;
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,1);
  background: rgba(3,7,18,0.96);
}

.meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Generic buttons (still used in a few places) */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  color: inherit;
  overflow: hidden;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med),
    color var(--transition-med);
  will-change: transform, box-shadow, background;
}

.btn-primary {
  background: linear-gradient(120deg, #f9fafb, #e5e7eb);
  color: #111827;
  border-color: rgba(248,250,252,0.9);
  box-shadow: 0 18px 50px rgba(0,0,0,0.9);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, #ffffff, #f3f4f6);
  box-shadow:
    0 24px 70px rgba(0,0,0,1);
  border-color: rgba(248,250,252,1);
}

.btn-ghost {
  border-color: rgba(148,163,184,0.6);
  color: var(--muted);
  background: rgba(15,23,42,0.96);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.2), transparent 60%);
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.9);
}

.hero-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-note span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #a855f7;
  box-shadow: 0 0 16px rgba(168,85,247,0.9);
}

/* ===== HERO VISUAL / REEL ===== */

.hero-visual { position: relative; }

.reel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30,64,175,0.8);
  background:
    radial-gradient(circle at 10% 0%, rgba(37,99,235,0.6), transparent 60%),
    radial-gradient(circle at 90% 120%, rgba(56,189,248,0.35), transparent 60%),
    #020617;
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: 0 30px 90px rgba(15,23,42,0.9);
  overflow: hidden;
  isolation: isolate;
}

.reel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.reel-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15,23,42,0.85);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34,197,94,0.9);
}

.reel-body {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(30,64,175,0.7);
}

.reel-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(59,130,246,0.65), transparent 60%),
    linear-gradient(to top, rgba(15,23,42,0.95), transparent 40%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.reel-placeholder {
  height: 260px;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0, rgba(34,211,238,0.35), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(99,102,241,0.25), transparent 55%),
    url("https://images.pexels.com/photos/167404/pexels-photo-167404.jpeg?auto=compress&cs=tinysrgb&w=1200")
    center/cover no-repeat;
  color: #e5e7eb;
  padding: 1.6rem 1.4rem;
}

.reel-placeholder h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.3rem;
}

.reel-placeholder p {
  font-size: 0.8rem;
  max-width: 15rem;
  color: #e5e7eb;
}

.reel-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.reel-play span {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  border: 1px solid rgba(248,250,252,0.9);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: rgba(15,23,42,0.96);
  box-shadow: 0 0 30px rgba(248,250,252,0.3);
}

.reel-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.9rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.reel-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.96);
}

.scanline {
  position: absolute;
  inset-inline: -20px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(148,163,184,0.6), transparent);
  animation: scan 5s linear infinite;
  opacity: 0.6;
}

@keyframes scan {
  0% { top: 110%; }
  100% { top: -10%; }
}

.reel-video {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ========== ACT HEADERS ========== */

.act-label {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.act-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
}

.act-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 1.6rem;
}

/* ========== ACT I – DOSSIER ========== */

.dossier {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 70%),
    rgba(3,7,18,0.97);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.1rem;
  font-size: 0.85rem;
}

.dossier-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px dashed rgba(55,65,81,0.95);
  padding-bottom: 0.55rem;
}

.dossier-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.dossier-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
}

.dossier-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
}

.dossier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dossier-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(15,23,42,0.96);
}

.timeline {
  margin-top: 1.8rem;
  border-left: 1px dashed rgba(75,85,99,1);
  padding-left: 1.3rem;
  display: grid;
  gap: 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0.25rem;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(248,250,252,0.9);
  background: radial-gradient(circle, #a855f7, transparent 60%);
  box-shadow: 0 0 26px rgba(168,85,247,0.8);
}

.timeline-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  margin-bottom: 0.1rem;
}

/* ========== ACT II – SHOW FORMATS (PLAYING CARDS) ========== */

.heist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
  justify-items: center;
}

@media (max-width: 900px) {
  .heist-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.heist-card {
  width: 220px;
  aspect-ratio: 63 / 88;
  perspective: 1200px;
  position: relative;
  z-index: 0;
}

.heist-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.heist-card:hover,
.heist-card:focus-within {
  z-index: 10;
}

.heist-card:hover .heist-card-inner,
.heist-card:focus-within .heist-card-inner {
  transform: rotateY(180deg);
}

.heist-card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow:
    0 14px 45px rgba(0,0,0,0.9),
    0 0 0 1px rgba(15,23,42,0.9);
}

/* Back of the card – Bicycle back */
.heist-card-back {
  background-image: url("../assets/card-back.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Front of the card */
.heist-card-front {
  background:
    radial-gradient(circle at top, rgba(56,189,248,0.14), transparent 70%),
    rgba(3,7,18,0.98);
  border: 1px solid rgba(148,163,184,0.9);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem 1rem;
  position: relative;
}

/* Rank / suit corners */
.card-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  line-height: 1.1;
  color: #f9fafb;
}

.card-corner--top {
  top: 0.5rem;
  left: 0.55rem;
}

.card-corner--bottom {
  bottom: 0.5rem;
  right: 0.55rem;
  transform: rotate(180deg);
}

.card-rank {
  font-weight: 600;
}

.card-suit {
  font-size: 0.78rem;
}

/* Centered format label at top of card */
.card-label {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--accent);
}

/* Content sits below the label */
.card-content {
  text-align: left;
  font-size: 0.86rem;
  color: var(--muted);
  padding-top: 1.4rem;
}

.card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.card-body {
  font-size: 0.86rem;
  margin-bottom: 0.75rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.card-tags span {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.98);
}

/* ========== ACT III – REACTIONS ========= */

.reaction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .reaction-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Small dots to switch between testimonials inside the same card */
.witness-dots {
  display: flex;
  gap: 6px;
  margin-top: 1rem;
}

.w-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: width 0.18s ease-out, background 0.18s ease-out, opacity 0.18s ease-out;
  opacity: 0.7;
}

.w-dot.is-active {
  width: 16px;
  background: var(--accent);
  opacity: 1;
}

.witness {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 70%),
    rgba(3,7,18,0.98);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.witness-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Stack multiple witness cards nicely */
.witness + .witness {
  margin-top: 1.2rem;
}

/* Subtle variation for the wedding quote */
.witness--wedding {
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 65%),
    rgba(3, 7, 18, 0.98);
}

.witness--wedding .witness-label {
  color: #f472b6; /* soft pink accent */
}



.witness-quote::before {
  content: "“";
  font-size: 1.2rem;
  color: rgba(31,41,55,0.9);
  margin-right: 0.4rem;
  vertical-align: top;
}

.witness-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.witness-role {
  font-size: 0.78rem;
  color: var(--muted);
}

.witness-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.witness-tags span {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.96);
}

.reaction-side {
  font-size: 0.9rem;
  color: var(--muted);
}

.reaction-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  margin-bottom: 1.1rem;
}

.reaction-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(55,65,81,0.9);
  font-size: 0.78rem;
  background: rgba(15,23,42,0.98);
}

.reaction-counters {
  display: flex;
  gap: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.reaction-counter strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

/* New layout for Act III */

#act3 .panel-inner {
  align-items: flex-start;
}

/* Left column layout */
.reaction-left {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.reaction-copy {
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
}

/* Right column: stack of cards */
.reaction-right {
  display: flex;
  justify-content: flex-end;
}

.witness-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  max-width: 420px;
}

/* Variation styles */
.witness--corporate {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 65%),
    rgba(3,7,18,0.98);
}

.witness--wedding {
  background:
    radial-gradient(circle at top right, rgba(236,72,153,0.20), transparent 65%),
    rgba(3,7,18,0.98);
}

.witness--wedding .witness-label {
  color: #f9a8d4;
}

/* Mobile stacking */
@media (max-width: 900px) {
  #act3 .panel-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .reaction-right {
    justify-content: flex-start;
  }

  .witness-list {
    max-width: none;
  }
}

/* ========== ACT IV – CONTACT / CONSOLE ========== */

.console {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at top left, rgba(79,70,229,0.2), transparent 70%),
    rgba(3,7,18,0.98);
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.console-steps {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* Contact form layout (date + type side by side) */
.console-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Full-width CTA inside console */
.gp-cta--wide {
  width: 100%;
  justify-content: center;
}

/* Status message under the form */
.console-status {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.console-status--pending {
  color: #e5e7eb;
}

.console-status--success {
  color: #bbf7d0;
}

.console-status--error {
  color: #fecaca;
}

.console-submit {
  margin-top: 0.9rem;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: radial-gradient(circle, rgba(56,189,248,0.9), transparent 60%);
  box-shadow: 0 0 16px rgba(56,189,248,0.9);
}

.step-line {
  flex: 1;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(148,163,184,0.8), transparent);
}

form {
  display: grid;
  gap: 0.95rem;
}

label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

input,
textarea,
select {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(55,65,81,0.95);
  background: rgba(15,23,42,0.96);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.5);
  background: rgba(15,23,42,0.99);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.console-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.4rem;
  margin-bottom: 0.7rem;
}

.contact-info {
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-info a {
  color: var(--accent);
  font-weight: 500;
}

.contact-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(56,189,248,0.9);
}

/* ========== FOOTER ========== */

footer {
  border-top: 1px solid rgba(15,23,42,1);
  font-size: 0.78rem;
  color: var(--muted);
  padding-block: 1.5rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(148,163,184,0.7);
}

.footer-madeby {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
}

.footer-madeby a {
  color: #38bdf8; /* your cyan accent */
  text-decoration: none;
  font-weight: 500;
}

.footer-madeby a:hover {
  text-decoration: underline;
}

/* ========== REVEAL / BACK TO TOP ========== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

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

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  background: rgba(15,23,42,0.98);
  box-shadow: 0 18px 40px rgba(0,0,0,1);
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med), transform var(--transition-med);
  z-index: 35;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Make back-to-top arrow white */
.back-to-top {
  color: #ffffff;
  border-color: rgba(255,255,255,0.8);
}

.back-to-top:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,1);
  box-shadow: 0 0 18px rgba(255,255,255,0.4);
}

/* ========== RESPONSIVE TWEAKS ========== */

@media (max-width: 700px) {
  .nav-inner {
    padding-inline: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
}

/* ===== VIDEO HEADER ===== */

.hero-video-header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video-header .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05);
}

/* ===== SCROLL DOWN BUTTON ===== */

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 24px rgba(0,0,0,0.6);
}

.scroll-down:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 10px 40px rgba(255,255,255,0.45);
}

.scroll-arrow {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  transform: translateY(2px);
}

/* ===== CARD-SUIT MYSTICAL BARRIER ===== */

.suit-separator {
  position: relative;
  width: 100%;
  height: 70px;
  margin: 1.25rem 0;
  overflow: hidden;
  pointer-events: none;
}

/* Soft glowing band */
.suit-wave {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(56, 189, 248, 0.10) 0%,
    rgba(15, 23, 42, 0) 55%
  );
  opacity: 0.35;
  filter: blur(18px);
  animation: suitWaveFloat 12s ease-in-out infinite;
}

/* Thin horizontal line through the middle */
.suit-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    transparent,
    rgba(148,163,184,0.5),
    transparent
  );
  opacity: 0.6;
}

/* Individual suits */
.suit {
  position: absolute;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.4rem;
  opacity: 0.35;
  filter: blur(0.2px);
  text-shadow: 0 0 16px rgba(15,23,42,0.9);
  animation: suitDrift 18s linear infinite;
}

.suit--spade,
.suit--club {
  color: rgba(226,232,240,0.9);
}

.suit--heart,
.suit--diamond {
  color: rgba(248,113,113,0.9);
}

/* Positions & slight timing offsets */
.suit:nth-of-type(2)  { left: 12%; top: 40%; animation-delay: -4s; }
.suit:nth-of-type(3)  { left: 32%; top: 60%; animation-delay: -10s; }
.suit:nth-of-type(4)  { left: 52%; top: 35%; animation-delay: -2s; }
.suit:nth-of-type(5)  { left: 72%; top: 55%; animation-delay: -14s; }
.suit:nth-of-type(6)  { left: 88%; top: 45%; animation-delay: -7s; }

@keyframes suitWaveFloat {
  0%   { transform: translateY(10px) scale(1); }
  50%  { transform: translateY(-10px) scale(1.05); }
  100% { transform: translateY(10px) scale(1); }
}

@keyframes suitDrift {
  0% {
    transform: translateX(-20px) translateY(0) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.4;
  }
  50% {
    transform: translateX(20px) translateY(-6px) scale(1.05);
    opacity: 0.5;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translateX(60px) translateY(0) scale(1.02);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .suit-separator {
    height: 65px;
    margin: 1rem 0;
  }

  .suit {
    font-size: 1.1rem;
  }
}

/* Tighter layout for ACT II – cards */
#act2.panel {
  min-height: auto;
  align-items: flex-start;
  padding-block: 2.5rem;
}

/* Tighter spacing for HERO section */
#intro.hero {
  min-height: auto;
  align-items: flex-start;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Animated blue border for hero reel + contact console */
.reel,
.console {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.reel::before,
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent 40%,
      rgba(56, 189, 248, 0.95) 50%,
      transparent 60%,
      transparent 100%
    ) top left / 300% 1px no-repeat,
    linear-gradient(
      90deg,
      transparent 0,
      transparent 40%,
      rgba(56, 189, 248, 0.95) 50%,
      transparent 60%,
      transparent 100%
    ) bottom left / 300% 1px no-repeat,
    linear-gradient(
      180deg,
      transparent 0,
      transparent 40%,
      rgba(56, 189, 248, 0.95) 50%,
      transparent 60%,
      transparent 100%
    ) top left / 1px 300% no-repeat,
    linear-gradient(
      180deg,
      transparent 0,
      transparent 40%,
      rgba(56, 189, 248, 0.95) 50%,
      transparent 60%,
      transparent 100%
    ) top right / 1px 300% no-repeat;

  animation: magicBorderRun 4.5s linear infinite;
  opacity: 0.85;
}

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

/* ========================== */
/* MOBILE NAVIGATION          */
/* ========================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(248,250,252,0.9);
  border-radius: 2px;
  transition: 0.25s ease;
}

@media (max-width: 860px) {
  .nav-inner {
    padding: 0.65rem 1.1rem;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    z-index: 999;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1.1rem;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(30,64,175,0.85);
    box-shadow: 0 15px 45px rgba(0,0,0,0.85);
    border-radius: 18px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 220px;
  }

  .nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-menu .nav-links a {
    font-size: 0.85rem;
    padding: 0.2rem 0;
  }

  .nav-menu .nav-cta {
    display: inline-flex;
    margin-top: 0.35rem;
    justify-content: center;
    width: 100%;
  }

  .nav.nav--open .nav-menu {
    display: flex;
  }

  /* Hamburger → X animation */
  .nav.nav--open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav.nav--open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.nav--open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ===== GALLERY SECTION ===== */

#gallery.panel {
  min-height: auto;
  align-items: flex-start;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* ===== GALLERY SECTION LAYOUT FIX ===== */

.panel-inner--gallery {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: flex-start;
  width: 100%;
}

/* The intro now expands full width */
.gallery-intro {
  width: 100%;
  max-width: 720px; /* optional: keeps text readable */
}

/* Filters & carousel full width */
.gallery-controls,
.gallery-carousel-wrapper {
  width: 100%;
}

@media (max-width: 900px) {
  .panel-inner--gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gallery-right {
  position: relative;
}

/* Filters */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.gallery-filter {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
  cursor: pointer;
}

.gallery-filter.is-active {
  border-color: var(--accent);
  color: #f9fafb;
}

/* Carousel wrapper */
.gallery-carousel-wrapper {
  position: relative;
  padding-inline: 1.2rem; /* to give space for arrows */
}

/* Horizontal strip */
.gallery-carousel {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;           /* Firefox */
}

.gallery-carousel::-webkit-scrollbar {
  display: none;                   /* Chrome, Safari */
}

/* Each tile – uniform 16:9 format */
.gallery-item {
  flex: 0 0 260px;                 /* width of each item */
  aspect-ratio: 16 / 9;            /* cinematic format */
  display: flex;
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  cursor: pointer;
  scroll-snap-align: center;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

/* Overlay reused */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.95),
    rgba(2, 6, 23, 0)
  );
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tag {
  align-self: flex-start;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.92);
}

.gallery-caption {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  z-index: 5;
}

.gallery-arrow--left {
  left: 0;
}

.gallery-arrow--right {
  right: 0;
}

.gallery-arrow:hover {
  transform: translateY(-50%) translateY(-2px);
}

@media (max-width: 900px) {
  .gallery-carousel-wrapper {
    padding-inline: 0;
  }

  .gallery-arrow {
    display: none; /* swipe / scroll on mobile */
  }

  .gallery-item {
    flex: 0 0 80%;
  }
}

/* ===== GALLERY LIGHTBOX ===== */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  z-index: 60;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox img {
  max-width: min(900px, 100%);
  max-height: 90vh;
  border-radius: 1.2rem;
  border: 1px solid rgba(148,163,184,0.8);
  box-shadow: 0 30px 120px rgba(0,0,0,0.95);
  object-fit: contain;
}

.gallery-lightbox-video {
  display: none; /* hidden by default, shown only for video items */
  max-width: min(900px, 100%);
  max-height: 90vh;
  border-radius: 1.2rem;
  border: 1px solid rgba(148,163,184,0.8);
  box-shadow: 0 30px 120px rgba(0,0,0,0.95);
  background: #000;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.7rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Tighter spacing for Gallery */
#gallery.panel {
  min-height: auto;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.panel-inner--gallery {
  align-items: flex-start;
  padding-top: 0;
}

/* ===== COOKIE BAR ===== */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -200px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.9rem 1.2rem;
  z-index: 80;
  opacity: 0;
  transform: translateY(0);
  transition: all 0.3s ease-out;
  font-size: 0.85rem;
}

.cookie-bar.is-visible {
  bottom: 0;
  opacity: 1;
}

.cookie-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: space-between;
}

.cookie-bar-text {
  margin: 0;
  color: #e5e7eb;
}

.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-bar-button {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #020617;
  color: #f9fafb;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-bar-link {
  font-size: 0.8rem;
  color: #38bdf8;
  text-decoration: none;
}

.cookie-bar-link:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .cookie-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   LEGAL PAGES (privacy / terms)
   =========================== */

.body.legal-page {
  min-height: 100vh;
}

.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
}

.legal-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%),
              radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.08), transparent 55%),
              rgba(15, 23, 42, 0.94);
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.85);
  padding: 2.4rem 2.1rem 2.6rem;
}

@media (max-width: 640px) {
  .legal-main {
    padding: 3.5rem 1.2rem 2.5rem;
  }
  .legal-card {
    padding: 1.9rem 1.4rem 2.1rem;
    border-radius: 1.25rem;
  }
}

.legal-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #38bdf8;
  margin: 0 0 0.4rem;
}

.legal-title {
  font-size: clamp(2rem, 3vw, 2.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0 0 1.8rem;
}

.legal-card h2 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}

.legal-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0.2rem 0 0.6rem;
  color: #e5e7eb;
}

.legal-card ul {
  margin: 0.3rem 0 0.8rem 1.2rem;
  padding: 0;
}

.legal-card li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.15rem;
  color: #e5e7eb;
}

.legal-note {
  margin-top: 1.7rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: #38bdf8;
  text-decoration: none;
}

.legal-back::before {
  content: "←";
  font-size: 0.9rem;
}

.legal-back:hover {
  text-decoration: underline;
}

/* ===== LEGAL HEADER ===== */

.legal-header {
  max-width: 860px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-logo {
  height: 40px;
  width: auto;
  display: block;
}

.legal-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.legal-brand-name {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.legal-breadcrumb {
  font-size: 0.78rem;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .legal-header {
    padding: 0 1.2rem;
    margin-bottom: 1.2rem;
  }
  .legal-logo {
    height: 34px;
  }
}

/* ===== HERO 3D PANEL ===== */

.hero-grid {
  perspective: 1400px;
}

.hero-panel {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.14), transparent 55%),
              rgba(15,23,42,0.96);
  border-radius: 1.5rem;
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow:
    0 22px 80px rgba(0,0,0,0.9),
    0 0 40px rgba(56,189,248,0.35);
  padding: 1.8rem 2.1rem;
  transform-origin: center center;
  transform-style: preserve-3d;
  animation: heroPanelIntro 1.3s ease-out both;
}

@keyframes heroPanelIntro {
  0% {
    opacity: 0;
    transform: translateY(32px) rotateX(12deg) rotateY(-10deg) scale(0.96);
    box-shadow: 0 40px 120px rgba(0,0,0,1);
  }
  55% {
    opacity: 1;
    transform: translateY(0) rotateX(-6deg) rotateY(5deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  }
}

@media (max-width: 768px) {
  .hero-panel {
    padding: 1.4rem 1.3rem;
    border-radius: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 3.2rem;
  }

  .panel {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .gallery-section {
    padding-top: 2.4rem;
    padding-bottom: 2.8rem;
  }
}

/* Mobile gallery strip */
@media (max-width: 768px) {
  .gallery-carousel-shell {
    margin-top: 1.4rem;
  }

  #galleryCarousel {
    gap: 0.75rem;
    padding-inline: 0.4rem;
  }

  .gallery-item {
    flex: 0 0 70%;
    max-width: 70%;
  }
}

/* Micro-animations */
.gallery-item {
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.75);
}

.testimonial-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}

.testimonial-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PAGE LOADER ===== */

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at top, #020617 0%, #020617 35%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 300ms ease-out;
}

.loader-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  animation: loaderFloat 1.4s ease-in-out infinite alternate;
}

.loader-suits {
  font-size: 1.8rem;
  letter-spacing: 0.6em;
  color: #38bdf8;
  margin-bottom: 0.6rem;
}

.loader-name {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.loader-tagline {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.loader-bar {
  position: relative;
  width: 120px;
  height: 2px;
  margin: 0 auto;
  background: rgba(15,23,42,0.9);
  overflow: hidden;
  border-radius: 999px;
}

.loader-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  animation: loaderSweep 1.1s ease-in-out infinite;
}

@keyframes loaderFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}