/* ═══════════════════════════════════════════════════════════════════════════
   ROTTEN CHAMBER — Website Stylesheet
   "Corruption Dossier" — Noir editorial / classified investigation aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Fonts ─────────────────────────────────────────────────────────────── */
/* Loaded via <link> in HTML head for performance (preconnect + display=swap) */

/* ─── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  /* Backgrounds — deep navy-black spectrum */
  --bg-void: #030408;
  --bg-deepest: #060810;
  --bg-primary: #080A14;
  --bg-elevated: #0D0F1A;
  --bg-card: #12142A;
  --bg-card-hover: #181B35;

  /* The Red — blood, danger, corruption */
  --red: #D93333;
  --red-dark: #801414;
  --red-deep: #4D0A0A;
  --red-bright: #FF5959;
  --red-glow: rgba(217, 51, 51, 0.15);
  --red-subtle: rgba(217, 51, 51, 0.06);

  /* Accent spectrum */
  --green: #4DFF66;
  --green-dim: rgba(77, 255, 102, 0.12);
  --blue: #8BA4D9;
  --blue-bright: #A6BFFF;
  --gold: #FFD700;
  --gold-muted: #C9A84C;
  --gold-dim: rgba(242, 217, 102, 0.25);

  /* Text — warm-tinted grays */
  --text-bright: #F0EDE6;
  --text-primary: #D9D5CC;
  --text-body: #B3AFA6;
  --text-muted: #9A968E;
  --text-dim: #908C84;
  --text-faint: #5C5850;
  --text-golden: #E6CC66;

  /* Borders & surfaces */
  --border-red: rgba(128, 20, 20, 0.5);
  --border-subtle: rgba(77, 77, 128, 0.25);
  --border-card: rgba(77, 77, 128, 0.15);
  --border-photo: rgba(200, 195, 180, 0.12);

  /* Spacing scale */
  --space-2xs: 0.125rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-4xl: 12rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --content-padding: clamp(1.25rem, 4vw, 2rem);

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --duration-dramatic: 1.2s;

  /* Radii */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

/* ─── Accessibility ────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--bg-void);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top var(--duration-fast) var(--ease-out-quart);
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

::selection {
  background: rgba(217, 51, 51, 0.3);
  color: var(--text-bright);
}

::-moz-selection {
  background: rgba(217, 51, 51, 0.3);
  color: var(--text-bright);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Fira Sans', sans-serif;
  background-color: var(--bg-void);
  color: var(--text-body);
  line-height: 1.75;
  font-size: 1.0625rem;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain — noir texture across entire page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 512px 512px;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--text-bright);
}

::selection {
  background: var(--red);
  color: #fff;
}

/* ─── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-bright);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
}

h4 {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.section-subtitle {
  font-family: 'Fira Sans', sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
  max-width: 560px;
}

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

section {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* Red hairline between sections */
section + section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 30vw);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red-dark), transparent);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header .section-subtitle {
  margin: 0;
}

.section-intro {
  max-width: 640px;
  margin: var(--space-md) auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.section-divider {
  width: 100%;
  height: 20px;
  position: relative;
  margin: var(--space-sm) 0;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, var(--red-dark), transparent);
}

.section-divider::after {
  content: '\2666';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-2px, -50%);
  font-size: 0.45rem;
  color: var(--red-dark);
}

/* Centered section headers */
.section-header--center {
  text-align: center;
}

.section-header--center .section-divider::before {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  background: linear-gradient(to right, transparent, var(--red-dark), transparent);
}

.section-header--center .section-divider::after {
  left: 50%;
  transform: translate(-50%, -50%);
}

.section-header--center .section-subtitle {
  margin: 0 auto;
}

/* ─── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--content-padding);
  transition: all var(--duration-normal) ease;
  background-color: transparent;
}

.nav.scrolled {
  background-color: rgba(3, 4, 8, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(128, 20, 20, 0.3),
    0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  opacity: 0.9;
  transition: opacity var(--duration-normal) ease, transform 0.6s var(--ease-out-expo);
}

.nav__brand:hover .nav__logo {
  opacity: 1;
  transform: rotate(180deg);
}

.nav__title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav__wordmark {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: filter var(--duration-fast) ease;
}

.nav__brand:hover .nav__wordmark {
  filter: drop-shadow(0 1px 4px rgba(217, 51, 51, 0.25));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
  position: relative;
  padding: 4px 0;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lang-switcher__current {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  transition: all var(--duration-fast) ease;
}

.lang-switcher__current:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.lang-switcher__arrow {
  font-size: 0.55rem;
  transition: transform var(--duration-fast) ease;
}

.lang-switcher.open .lang-switcher__arrow {
  transform: rotate(180deg);
}

.lang-switcher__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--duration-fast) ease;
  min-width: 110px;
}

.lang-switcher.open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.lang-switcher__option:hover {
  background: var(--red-subtle);
  color: var(--text-primary);
}

.lang-switcher__option.active {
  color: var(--red);
}

/* Mobile menu toggle */
.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
  line-height: 1;
  position: relative;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}

.btn--primary:hover {
  background: #c42e2e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(217, 51, 51, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn--secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-dim);
}

.btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--sm {
  font-size: 0.75rem;
  padding: 8px 18px;
}

.btn__badge {
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/exclusive/hero_key_art_master.webp');
  background-image: image-set(
    url('../assets/images/exclusive/hero_key_art_master.webp') type('image/webp'),
    url('../assets/images/exclusive/hero_key_art_master.png') type('image/png')
  );
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  animation: hero-breathe 10s ease-in-out infinite;
  transform-origin: center;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    /* Strong left edge for text readability */
    linear-gradient(90deg, rgba(3, 4, 8, 0.7) 0%, rgba(3, 4, 8, 0.3) 35%, transparent 60%),
    /* Bottom fade */
    linear-gradient(to top, var(--bg-deepest) 0%, transparent 40%),
    /* Overall vignette */
    radial-gradient(ellipse at 60% 50%, transparent 20%, rgba(3, 4, 8, 0.5) 70%, rgba(3, 4, 8, 0.85) 100%);
  pointer-events: none;
}

.hero__fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__fog-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent 20%,
    rgba(140, 150, 170, 0.03) 50%,
    rgba(140, 150, 170, 0.06) 75%,
    transparent 100%
  );
  animation: fog-drift 30s ease-in-out infinite;
}

.hero__fog-layer:nth-child(2) {
  animation-duration: 40s;
  animation-delay: -15s;
  opacity: 0;
  background: linear-gradient(
    -90deg,
    transparent 30%,
    rgba(140, 150, 170, 0.02) 60%,
    rgba(140, 150, 170, 0.04) 80%,
    transparent 100%
  );
  animation-name: fog-drift-reverse;
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}


/* Hero content — LEFT ALIGNED for asymmetric composition */
.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--content-padding);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-golden);
  border: 1px solid var(--gold-dim);
  padding: 5px 16px;
  border-radius: 1px;
  margin-bottom: var(--space-lg);
  transform: rotate(-1deg);
  opacity: 0;
  animation: hero-element-in 0.8s var(--ease-out-expo) forwards 0.2s;
}

.hero__title {
  margin-bottom: var(--space-md);
  max-width: 600px;
  opacity: 0;
  animation: hero-title-in 1s var(--ease-out-expo) forwards 0.5s;
}

.hero__logo {
  display: block;
  width: clamp(280px, 40vw, 520px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(217, 51, 51, 0.15)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  color: var(--red);
  text-shadow: 0 0 60px rgba(217, 51, 51, 0.2);
}

.hero__tagline {
  font-family: 'Fira Sans', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-primary);
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-xs);
  max-width: 480px;
  opacity: 0;
  animation: hero-element-in 0.8s var(--ease-out-expo) forwards 0.9s;
}

.hero__subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-body);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: hero-element-in 0.8s var(--ease-out-expo) forwards 1.2s;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-element-in 0.8s var(--ease-out-expo) forwards 1.5s;
}

.btn__icon {
  vertical-align: -0.15em;
  margin-right: 0.4em;
  flex-shrink: 0;
}

.hero__bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg-deepest));
  pointer-events: none;
  z-index: 1;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--content-padding);
  z-index: 2;
  color: var(--text-dim);
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  writing-mode: vertical-lr;
  opacity: 0;
  animation:
    hero-element-in 0.8s var(--ease-out-expo) forwards 2s,
    scroll-hint-pulse 3s ease-in-out infinite 3s;
}

.hero__scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  margin-top: 8px;
}

/* Case label — decorative dossier element */
.hero__case-label {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--content-padding);
  z-index: 2;
  font-family: 'Oswald', sans-serif;
  font-size: 0.55rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.6;
  opacity: 0;
  animation: hero-element-in 0.8s var(--ease-out-expo) forwards 2.2s;
}

/* ─── Screenshots ──────────────────────────────────────────────────────── */
.screenshots {
  background: var(--bg-deepest);
  overflow: hidden;
  position: relative;
}

.screenshots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/exclusive/page-background.webp');
  background-image: image-set(
    url('../assets/images/exclusive/page-background.webp') type('image/webp'),
    url('../assets/images/exclusive/page-background.png') type('image/png')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

/* ── Evidence Board Layout ── */
.screenshots__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.screenshot {
  position: relative;
  cursor: pointer;
  background: rgba(20, 18, 14, 0.6);
  border: 1px solid rgba(180, 170, 150, 0.1);
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform var(--duration-normal) var(--ease-out-quart),
              box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
}

/* Subtle rotation for evidence-pinned feel */
.screenshot:nth-child(1) { transform: rotate(-1.2deg); }
.screenshot:nth-child(2) { transform: rotate(0.6deg); }
.screenshot:nth-child(3) { transform: rotate(-0.4deg); }
.screenshot:nth-child(4) { transform: rotate(0.8deg); }
.screenshot:nth-child(5) { transform: rotate(-0.7deg); }
.screenshot:nth-child(6) { transform: rotate(0.3deg); }

/* Pin */
.screenshot__pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #c43030, #6b1010);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.screenshot__pin::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

/* Hover */
.screenshot:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  border-color: rgba(217, 51, 51, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 51, 51, 0.1);
  z-index: 3;
}

/* Image */
.screenshot__img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter var(--duration-normal) ease;
  filter: saturate(0.85) brightness(0.95);
}

.screenshot:hover .screenshot__img {
  filter: saturate(1) brightness(1);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 4, 8, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid rgba(180, 170, 150, 0.12);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
  animation: lightbox-zoom-in 0.3s var(--ease-out-expo) forwards;
}

@keyframes lightbox-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox__caption {
  display: none;
}

.lightbox__counter {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: var(--space-sm);
  transition: color var(--duration-fast) ease;
  z-index: 2;
}

.lightbox__close:hover {
  color: var(--text-bright);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(180, 170, 150, 0.1);
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 14px;
  line-height: 1;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
  z-index: 2;
}

.lightbox__prev { left: var(--space-md); }
.lightbox__next { right: var(--space-md); }

.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--text-bright);
  border-color: rgba(217, 51, 51, 0.3);
}

/* ── Video Lightbox (trailer) ── */
.lightbox__video-frame {
  width: min(90vw, 1280px);
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  background: #000;
  border: 1px solid rgba(180, 170, 150, 0.12);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
  animation: lightbox-zoom-in 0.3s var(--ease-out-expo) forwards;
}

.lightbox__video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ─── How to Play ──────────────────────────────────────────────────────── */
.how-to-play {
  background: var(--bg-primary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  list-style: none;
}

/* Connecting line behind steps */
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--red-dark) 15%,
    var(--red-dark) 85%,
    transparent
  );
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  padding: 0 var(--space-md) var(--space-lg);
  z-index: 1;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-md);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  background: var(--bg-primary);
  border: 1px solid var(--red-dark);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.step__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1);
  opacity: 0.9;
  transition: filter var(--duration-normal) ease, opacity var(--duration-normal) ease;
}

.step:hover .step__icon {
  filter: brightness(1) contrast(1.1);
  opacity: 1;
}

.step__title {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* counter-reset on parent */
.steps { counter-reset: step; }

/* ─── Roles ─────────────────────────────────────────────────────────────── */
.roles {
  background: var(--bg-deepest);
  position: relative;
}

.roles::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/exclusive/secondary_background_master.webp');
  background-image: image-set(
    url('../assets/images/exclusive/secondary_background_master.webp') type('image/webp'),
    url('../assets/images/exclusive/secondary_background_master.png') type('image/png')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.roles__group {
  margin-bottom: var(--space-3xl);
}

.roles__group:last-child {
  margin-bottom: 0;
}

.roles__group-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.roles__group-line {
  flex: 1;
  height: 1px;
}

.roles__group-line--clean {
  background: linear-gradient(to right, var(--green-dim), transparent);
}

.roles__group-line--corrupt {
  background: linear-gradient(to right, rgba(255, 89, 89, 0.12), transparent);
}

.roles__group-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-weight: 400;
}

.roles__group-title--clean { color: var(--green); }
.roles__group-title--corrupt { color: var(--red-bright); }

/* ─── Showcase Grid (4 featured characters) ────────────────────────────── */
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.showcase-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition:
    border-color var(--duration-normal) ease,
    transform var(--duration-normal) var(--ease-out-quart),
    box-shadow var(--duration-normal) ease;
}

.showcase-card:hover {
  border-color: rgba(77, 255, 102, 0.15);
  transform: translateY(-6px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(77, 255, 102, 0.04);
}

.showcase-card__portrait-wrap {
  position: relative;
  overflow: hidden;
}

.showcase-card__portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: filter var(--duration-normal) ease, transform var(--duration-slow) var(--ease-out-expo);
}

.showcase-card:hover .showcase-card__portrait {
  filter: brightness(1.08) contrast(1.05);
  transform: scale(1.03);
}

.showcase-card__info {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.showcase-card__name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.showcase-card__desc {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
}

.roles__more {
  text-align: center;
  margin-top: var(--space-xl);
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Corrupt Mystery Block ────────────────────────────────────────────── */
.corrupt-mystery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 89, 89, 0.12);
  transition: border-color var(--duration-normal) ease;
}

.corrupt-mystery:hover {
  border-color: rgba(255, 89, 89, 0.25);
}

.corrupt-mystery__art {
  position: relative;
  overflow: hidden;
}

.corrupt-mystery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.corrupt-mystery:hover .corrupt-mystery__img {
  transform: scale(1.03);
}

.corrupt-mystery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, var(--bg-card) 100%);
  pointer-events: none;
}

.corrupt-mystery__content {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.corrupt-mystery__title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--red-bright);
  margin-bottom: var(--space-md);
  letter-spacing: 0.06em;
}

.corrupt-mystery__desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.corrupt-mystery__roles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.corrupt-mystery__tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-bright);
  background: rgba(255, 89, 89, 0.06);
  border: 1px solid rgba(255, 89, 89, 0.15);
  padding: 4px 10px;
  border-radius: 1px;
  position: relative;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.corrupt-mystery__tag:hover {
  border-color: rgba(255, 89, 89, 0.4);
  background: rgba(255, 89, 89, 0.1);
}

.corrupt-mystery__tag-icon {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0;
  filter: brightness(0.9);
  pointer-events: none;
  transition: opacity var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out-expo);
}

.corrupt-mystery__tag:hover .corrupt-mystery__tag-icon {
  opacity: 0.75;
  transform: translateX(-50%) scale(1);
}

/* ─── Features ──────────────────────────────────────────────────────────── */
.features {
  background: var(--bg-primary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/exclusive/dossier_texture_master.webp');
  background-image: image-set(
    url('../assets/images/exclusive/dossier_texture_master.webp') type('image/webp'),
    url('../assets/images/exclusive/dossier_texture_master.png') type('image/png')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.035;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}


.feature {
  background:
    linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  transition:
    border-color var(--duration-normal) ease,
    transform var(--duration-normal) var(--ease-out-quart),
    box-shadow var(--duration-normal) ease;
  position: relative;
  overflow: hidden;
}

/* Top red accent — appears on hover */
.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 10%, var(--red) 50%, transparent 90%);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.feature:hover {
  border-color: rgba(128, 20, 20, 0.3);
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(217, 51, 51, 0.2);
}

.feature:hover::before {
  opacity: 1;
}

.feature__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  object-fit: contain;
  filter: brightness(0.85) sepia(0.15);
  opacity: 0.85;
  transition: filter var(--duration-normal) ease, opacity var(--duration-normal) ease;
}

.feature:hover .feature__icon {
  filter: brightness(0.9) sepia(0);
  opacity: 1;
}

/* Annotation stamps row */
.feature__stamps {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-md);
  align-items: center;
}

.feature__stamp {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.78;
  filter: brightness(0.85);
  transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease, filter var(--duration-normal) ease;
}

.feature:hover .feature__stamp {
  opacity: 1;
  filter: brightness(1);
}

.feature:hover .feature__stamp:nth-child(1) { transform: rotate(-6deg) scale(1.1); }
.feature:hover .feature__stamp:nth-child(2) { transform: rotate(4deg) scale(1.1); }
.feature:hover .feature__stamp:nth-child(3) { transform: rotate(-3deg) scale(1.1); }

.feature__title {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.06em;
}

.feature__desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ─── Narrative — cinematic blockquote ──────────────────────────────────── */
.narrative {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--bg-deepest);
  overflow: hidden;
}

.narrative__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  opacity: 0.5;
}

.narrative .container {
  max-width: 720px;
}

.narrative__quote {
  border: none;
  margin: 0 0 var(--space-xl) 0;
  padding: 0 0 0 var(--space-lg);
  border-left: 2px solid var(--red-dark);
  position: relative;
}

.narrative__quote p {
  font-family: 'Fira Sans', sans-serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.narrative__answer {
  padding-left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.narrative__answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

.narrative__answer p:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── FAQ ──────────────────────────────────────────────────────────────── */
.faq {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  border-bottom: 1px solid var(--border-card);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-normal);
}

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

.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent-red);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform var(--transition-normal);
}

.faq-item[open] .faq-item__question::after {
  content: '\2212';
}

.faq-item__question:hover {
  color: var(--accent-red);
}

.faq-item__answer {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
  padding: 0 0 var(--space-md) 0;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(128, 20, 20, 0.3);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
}

/* Council seal watermark */
.footer__seal {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.5);
}

/* Red gradient glow at top of footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(128, 20, 20, 0.05), transparent);
  pointer-events: none;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.7;
}

.footer__wordmark {
  height: 22px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  opacity: 0.8;
}

.footer__name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.footer__tagline {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer__section h4 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: all var(--duration-fast) ease;
}

.footer__social-link:hover {
  border-color: var(--red-dark);
  color: var(--red);
  background: var(--red-subtle);
  transform: translateY(-1px);
}

.footer__social-link--soon {
  cursor: default;
}

.footer__social-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  font-family: 'Oswald', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.footer__social-link--soon:hover .footer__social-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(77, 77, 128, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__press-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer__press-link:hover {
  color: var(--red);
}

.footer__godot {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer__godot svg {
  opacity: 0.8;
}

.footer__developer {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__developer-logo {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.footer__placeholder {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-faint);
}

/* ─── Keyframe Animations ──────────────────────────────────────────────── */
@keyframes hero-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.015); filter: brightness(1.04); }
}

@keyframes fog-drift {
  0% { opacity: 0; transform: translateX(-8%); }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(8%); }
}

@keyframes fog-drift-reverse {
  0% { opacity: 0; transform: translateX(8%); }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-8%); }
}

@keyframes hero-element-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: 0.12em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.04em;
  }
}

@keyframes scroll-hint-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ─── Scroll Reveal System ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }


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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__badge,
  .hero__title,
  .hero__tagline,
  .hero__subtitle,
  .hero__actions,
  .hero__scroll-hint,
  .hero__case-label {
    opacity: 1;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── Scroll Progress Bar ──────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-bright));
  z-index: 10001;
  transition: none;
  pointer-events: none;
}

/* ─── Back to Top ──────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  background: rgba(13, 15, 26, 0.85);
  border: 1px solid var(--border-red);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--duration-normal) ease,
              visibility var(--duration-normal) ease,
              transform var(--duration-normal) ease,
              border-color var(--duration-fast) ease,
              color var(--duration-fast) ease;
  backdrop-filter: blur(8px);
}

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

.back-to-top:hover {
  border-color: var(--red);
  color: var(--text-bright);
}

/* ─── Responsive: Tablet (1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .steps::before {
    display: none;
  }

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

  .screenshots__board {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

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

  .corrupt-mystery {
    grid-template-columns: 1fr 1.2fr;
  }

}

/* ─── Responsive: Mobile (640px) ───────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --content-padding: 1.25rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
    --space-4xl: 7rem;
  }

  /* Mobile nav */
  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .nav.menu-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(3, 4, 8, 0.97);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-red);
    gap: var(--space-md);
  }

  .nav.menu-open .nav__link {
    font-size: 0.95rem;
    color: var(--text-body);
  }

  /* Mobile hero */
  .hero__bg {
    background-image: url('../assets/images/exclusive/derived/hero_key_art_mobile.webp');
    background-image: image-set(
      url('../assets/images/exclusive/derived/hero_key_art_mobile.webp') type('image/webp'),
      url('../assets/images/exclusive/derived/hero_key_art_mobile.png') type('image/png')
    );
    background-position: center center;
  }

  .hero__content {
    text-align: center;
  }

  .hero__title {
    max-width: none;
  }

  .hero__logo {
    width: clamp(220px, 60vw, 360px);
    margin: 0 auto;
  }

  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__scroll-hint {
    left: 50%;
    writing-mode: horizontal-tb;
    transform: translateX(-50%);
  }

  .hero__scroll-hint::after {
    width: 1px;
    height: 24px;
    margin: 6px auto 0;
  }

  .hero__case-label {
    display: none;
  }

  /* Mobile sections */
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .screenshots__board {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--red-dark) transparent;
  }

  .screenshot {
    flex: 0 0 85vw;
    scroll-snap-align: start;
  }

  .screenshot:nth-child(n) {
    transform: none;
  }

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

  .showcase__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .corrupt-mystery {
    grid-template-columns: 1fr;
  }

  .corrupt-mystery__roles {
    justify-content: center;
  }

  .corrupt-mystery__tag-icon {
    display: none;
  }

  .corrupt-mystery__img {
    min-height: 200px;
    max-height: 260px;
  }

  .corrupt-mystery__overlay {
    background: linear-gradient(to bottom, transparent 40%, var(--bg-card) 100%);
  }

  .narrative__quote p {
    font-size: 1.05rem;
  }

  .narrative__accent {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Section red hairlines — wider on mobile */
  section + section::after {
    width: 60vw;
  }
}

/* ─── Small Mobile (380px) ─────────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero__logo {
    width: clamp(200px, 70vw, 280px);
  }

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

  .btn {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

}
