/* ============================================
   Pale Reef Games — main.css
   Vanilla CSS, no build step, no dependencies.
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg-primary: #0F1419;
  --bg-secondary: #1A2332;
  --bg-card: #1F2A3A;
  --bg-elevated: #243245;
  --text-primary: #F2E8D5;
  --text-secondary: #A8B5C5;
  --text-muted: #97A4B7;
  --accent-gold: #D4A843;
  --accent-gold-bright: #E8C56B;
  --accent-teal: #2E8B7A;
  --accent-blue: #3A5A8C;
  --accent-coral: #E08A6F;
  --accent-dusk: #6B4A8A;
  --accent-sunset: #F2A45C;
  --border: #2A3548;
  --border-strong: #3A4759;
  --nav-height: 64px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --max-width: 1200px;

  --font-display: 'Rajdhani', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-cta: 0 4px 16px rgba(212, 168, 67, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

/* Visible keyboard focus for any interactive element */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip-to-content link, hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 1000;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  outline: 2px solid var(--accent-gold-bright);
  outline-offset: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h4 {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

p.lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 300;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 1.5em;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow.text-center {
  display: flex;
  justify-content: center;
}

.eyebrow--pill {
  background: rgba(15, 20, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.35);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.eyebrow--pill::before,
.eyebrow--pill::after {
  display: none;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

section.tight {
  padding: var(--space-lg) 0;
}

.section-divider {
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Scrim so nav letters are legible against any video frame */
header.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--nav-height) + 32px);
  background: linear-gradient(to bottom, rgba(15, 20, 25, 0.6) 0%, rgba(15, 20, 25, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

header.site-header.scrolled {
  background: rgba(15, 20, 25, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

header.site-header.scrolled::before {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.7);
}

.nav-logo:hover {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.7);
  position: relative;
  padding: 0.5rem 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Body padding to account for fixed nav (only matters on pages without a hero behind the nav) */
body {
  padding-top: 0;
}

/* ---------- Hero (base, used by Press kit) ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-lg);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(46, 139, 122, 0.15), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(58, 90, 140, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: var(--space-sm);
}

.hero .tagline {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

/* ---------- Cinematic hero (Driftbane + Studio root) ---------- */
.hero--cinematic {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  min-height: 480px; /* fallback for browsers without aspect-ratio support */
  padding: 0;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.hero--cinematic::before {
  display: none;
}

.hero-bg,
.hero-clouds,
.hero-vignette,
.hero-character,
.hero-video {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: hero-bg-drift 24s ease-in-out infinite alternate;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-clouds {
  background-size: cover;
  background-position: center top;
  background-repeat: repeat-x;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: hero-clouds-drift 60s linear infinite;
  z-index: 1;
}

.hero-vignette {
  z-index: 2;
  background:
    linear-gradient(to bottom,
      rgba(15, 20, 25, 0.55) 0%,
      rgba(15, 20, 25, 0) 22%,
      rgba(15, 20, 25, 0) 50%,
      rgba(15, 20, 25, 0.78) 88%,
      rgba(15, 20, 25, 0.95) 100%),
    radial-gradient(ellipse at 50% 70%, rgba(15, 20, 25, 0) 0%, rgba(15, 20, 25, 0.4) 100%);
}

.hero-character {
  z-index: 3;
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  filter: drop-shadow(-8px 8px 24px rgba(0, 0, 0, 0.5));
  animation: hero-char-float 8s ease-in-out infinite alternate;
}

.hero--cinematic .container {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-md));
  padding-bottom: var(--space-lg);
}

.hero--cinematic .hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo-img {
  width: clamp(280px, 42vw, 520px);
  height: auto;
  display: block;
  margin-bottom: 0;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 36px rgba(212, 168, 67, 0.25));
}

.hero--cinematic .eyebrow {
  color: var(--accent-sunset);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero--cinematic .tagline {
  color: var(--text-primary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero--cinematic h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Studio root variant: centered, no character cutout */
.hero--studio .hero-character {
  display: none;
}

.hero--studio .container {
  justify-content: center;
}

.hero--studio .hero-content {
  text-align: center;
  max-width: 760px;
}

@keyframes hero-bg-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes hero-clouds-drift {
  from { background-position: 0 0; }
  to   { background-position: -100% 0; }
}

@keyframes hero-char-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-clouds, .hero-character { animation: none; }
}

@media (max-width: 800px) {
  .hero-character {
    opacity: 0.35;
    background-position: right -10vw bottom;
    background-size: 90% auto;
  }
  .hero--cinematic .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .hero-logo-img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--accent-gold-bright);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.35);
}

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

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

/* ---------- Trailer / video embed ---------- */
.trailer-wrap {
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
}

.trailer-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

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

/* ---------- Story section (Driftbane) ---------- */
.story-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-section .container {
  max-width: 800px;
}

.story-section p {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.story-section em {
  color: var(--accent-gold);
  font-style: italic;
}

.character-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.character {
  text-align: center;
  margin: 0;
}

.character-portrait {
  width: 100%;
  aspect-ratio: 5 / 6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-sm);
}

.character h3.character-name {
  font-family: var(--font-display);
  color: var(--accent-gold);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}

.character-name {
  font-family: var(--font-display);
  color: var(--accent-gold);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.character-title,
.character-quote {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 0.5rem;
  text-align: left;
}

@media (max-width: 700px) {
  .character-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .character-portrait {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .character-quote,
  .character-title {
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all 0.2s ease;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-gold), transparent 40%, transparent 60%, var(--accent-coral));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature-card:hover {
  background: var(--bg-elevated);
  border-color: transparent;
  transform: translateY(-3px);
}

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

.feature-card h3 {
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  border-color: var(--accent-gold);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-md);
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner {
  background:
    radial-gradient(ellipse at top left, rgba(224, 138, 111, 0.12), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(107, 74, 138, 0.15), transparent 55%),
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(242, 164, 92, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
}

.cta-banner h2 {
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* ---------- Studio root: project card ---------- */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-lg) 0;
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.project-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.project-card-content .tagline {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

/* ---------- Press kit specific ---------- */
.factsheet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.factsheet dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem var(--space-md);
}

.factsheet dt {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.factsheet dd {
  color: var(--text-primary);
}

.description-block {
  margin-bottom: var(--space-md);
}

.description-block h3,
.description-block h4 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.description-block p {
  color: var(--text-primary);
  background: var(--bg-card);
  padding: var(--space-sm);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-sm);
}

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.feature-list li:last-child {
  border-bottom: none;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
  transition: all 0.15s ease;
}

.download-card:hover {
  border-color: var(--accent-gold);
  background: var(--bg-elevated);
}

a.download-card {
  display: block;
  text-decoration: none;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

a.download-card:hover {
  color: var(--accent-gold-bright);
}

.download-card .meta {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: normal;
  text-transform: none;
}

.quote-block {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-gold);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-sm) 0;
  font-style: italic;
  color: var(--text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

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

.footer-section h3,
.footer-section h4 {
  color: var(--accent-gold);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  padding: 0.25rem 0;
}

.footer-section a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mb-md { margin-bottom: var(--space-md); }
.mt-md { margin-top: var(--space-md); }

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

@media (max-width: 600px) {
  .container {
    padding: 0 var(--space-sm);
  }
  section {
    padding: var(--space-lg) 0;
  }
  .btn-large {
    width: 100%;
    justify-content: center;
  }

  /* Hide redundant nav-logo (the in-engine title is in the hero video) */
  .nav-logo {
    display: none;
  }

  .nav {
    justify-content: center;
    padding: 0.5rem var(--space-sm);
  }

  .nav-links {
    gap: 1.1rem;
  }

  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  /* Mobile: portrait composition with the curated still image (381 x 512) */
  .hero--cinematic {
    aspect-ratio: 381 / 512;
    width: 100%;
    height: auto;
    max-height: 95vh;
    min-height: 480px;
  }

  .hero--cinematic .container {
    height: 100%;
    padding-bottom: var(--space-md);
  }

  .hero-video {
    object-position: 0% center;
  }

  /* Lighter vignette on mobile since the curated image already has its own composition */
  .hero-vignette {
    background:
      linear-gradient(to bottom,
        rgba(15, 20, 25, 0) 65%,
        rgba(15, 20, 25, 0.65) 90%,
        rgba(15, 20, 25, 0.95) 100%);
  }
}
