/* =====================================================
   BRAVEST BURDEN — Landing Page Stylesheet
   ===================================================== */

/* --- Custom Properties --- */
:root {
  --bg-deepest:        #070408;
  --bg-dark:           #0d080e;
  --bg-mid:            #120a18;
  --bg-light:          #1a1432;
  --bg-surface:        #221940;

  --gold:              #c9a84c;
  --gold-light:        #dfc278;
  --gold-bright:       #f0d98a;
  --gold-dim:          #8a6f2e;
  --gold-subtle:       rgba(201, 168, 76, 0.12);

  --red:               #7a1515;
  --red-bright:        #b52525;
  --red-dim:           #4a0d0d;

  --text-primary:      #ede5d0;
  --text-secondary:    #a89878;
  --text-dim:          #6b5e4a;

  --border-gold:       rgba(201, 168, 76, 0.3);
  --border-gold-hover: rgba(201, 168, 76, 0.65);

  --font-heading:      'Cinzel', serif;
  --font-heading-deco: 'Cinzel Decorative', serif;
  --font-body:         'Lora', serif;
  --font-ui:           'Inter', sans-serif;

  --section-pad:       clamp(5rem, 10vw, 9rem);
  --max-w:             1380px;
  --gutter:            clamp(1.5rem, 5vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deepest);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar              { width: 5px; }
::-webkit-scrollbar-track        { background: var(--bg-deepest); }
::-webkit-scrollbar-thumb        { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: var(--gold); }


/* =====================================================
   NAVIGATION
   ===================================================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(7, 5, 16, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-gold);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-steam {
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border-gold) !important;
  color: var(--gold) !important;
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

.nav-steam:hover {
  background: var(--gold-subtle);
  border-color: var(--gold) !important;
}

/* --- Quick Section Nav Bar --- */
.nav-sections {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.45rem var(--gutter);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  background: rgba(7, 4, 8, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, background 0.4s ease;
}

#nav.scrolled .nav-sections {
  opacity: 1;
  pointer-events: auto;
  background: rgba(7, 4, 8, 0.6);
}

.nav-sections a {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-sections a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-sections a:hover {
  color: var(--gold-light);
}

.nav-sections a:hover::after {
  transform: scaleX(1);
}

.nav-sections a.active-section {
  color: var(--gold);
}

.nav-sections a.active-section::after {
  transform: scaleX(1);
}


/* =====================================================
   HERO SECTION
   ===================================================== */
#hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 25% 55%, #1f0d28 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 75% 40%, #0f0718 0%, transparent 70%),
    var(--bg-deepest);
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 72% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 70% 60% at 10% 80%, rgba(100, 10, 20, 0.08) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 65%, var(--bg-deepest) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: calc(var(--section-pad) + 5rem) var(--gutter) var(--section-pad);
  padding-left: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading-deco);
  font-size: clamp(3.4rem, 6.5vw, 6.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-shadow: 0 0 80px rgba(201, 168, 76, 0.12), 0 4px 40px rgba(0,0,0,0.9);
  opacity: 0;
  animation: fadeSlideUp 0.9s ease 0.5s forwards;
}

.title-burden {
  color: var(--gold);
  display: block;
  font-size: 1.2em;
  text-shadow:
    0 0 50px rgba(201, 168, 76, 0.45),
    0 0 100px rgba(201, 168, 76, 0.15),
    0 4px 40px rgba(0,0,0,0.9);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 38ch;
  opacity: 0;
  animation: fadeSlideUp 0.9s ease 0.7s forwards;
}

.hero-tagline em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.9s ease 0.9s forwards;
}

/* --- Primary PLAY Button --- */
.btn-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 2px;
  isolation: isolate;
}

.btn-play-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 2.6rem;
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg-deepest);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, #a07820 100%);
  border: 2px solid var(--gold-bright);
  border-radius: 2px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-play:hover .btn-play-inner {
  filter: brightness(1.14);
  transform: translateY(-2px);
}

.btn-play-icon {
  font-size: 0.85em;
}

.btn-play-glow {
  position: absolute;
  inset: -6px;
  border-radius: 6px;
  background: radial-gradient(ellipse, rgba(240, 217, 138, 0.55) 0%, transparent 70%);
  filter: blur(14px);
  z-index: 0;
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.btn-play--footer .btn-play-inner {
  padding: 1.2rem 3.2rem;
  font-size: 1.05rem;
}

/* --- Secondary Wishlist Button --- */
.btn-wishlist {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border-gold);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-wishlist:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn-wishlist--footer {
  display: inline-block;
  margin-top: 0.5rem;
}

/* --- Hero Capsule Art --- */
.hero-capsule-frame {
  position: relative;
  z-index: 10;
  padding: calc(var(--section-pad) + 5rem) var(--gutter) var(--section-pad);
  padding-right: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.4s ease 1.1s forwards;
}

.capsule-art-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  filter: drop-shadow(-20px 20px 60px rgba(0,0,0,0.8)) drop-shadow(0 0 30px rgba(201, 168, 76, 0.08));
}

/* Gold corner brackets */
.capsule-art-wrap::before,
.capsule-art-wrap::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

.capsule-art-wrap::before {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
}

.capsule-art-wrap::after {
  bottom: -4px;
  right: -4px;
  border-width: 0 2px 2px 0;
}

.capsule-art-wrap img {
  width: 100%;
  aspect-ratio: 616 / 353;
  object-fit: cover;
  border: 1px solid var(--border-gold);
}

.capsule-placeholder {
  aspect-ratio: 616 / 353;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  color: var(--text-dim);
}

.capsule-placeholder span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.capsule-placeholder small {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  opacity: 0.5;
}

/* --- Hero Scroll Hint --- */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}

.hero-scroll-hint span {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-arrow {
  color: var(--gold-dim);
  font-size: 1rem;
  animation: bounce 2.2s ease-in-out infinite;
}


/* =====================================================
   ORNAMENTAL DIVIDERS
   ===================================================== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}

.divider-rune {
  color: var(--gold-dim);
  font-size: 0.7rem;
  flex-shrink: 0;
  letter-spacing: 0.2em;
}


/* =====================================================
   SHARED SECTION UTILITIES
   ===================================================== */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.section-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.block-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.8rem;
}


/* =====================================================
   MEDIA SHOWCASE
   ===================================================== */
#media {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
}

/* Asymmetric layout */
.media-card--large { grid-column: span 7; }
.media-card--tall  { grid-column: span 5; grid-row: span 2; }
.media-card--wide  { grid-column: span 7; }
.media-card--small { grid-column: span 5; }

.media-frame {
  position: relative;
  width: 100%;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-mid);
  transition: border-color 0.3s ease;
}

.media-card--tall .media-frame {
  min-height: 480px;
  height: 100%;
}

/* Gold corner bracket decoration */
.media-frame::before,
.media-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
  transition: width 0.25s ease, height 0.25s ease;
}

.media-frame::before { top: 0;    left: 0;  border-width: 2px 0 0 2px; }
.media-frame::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.media-card:hover .media-frame {
  border-color: var(--border-gold-hover);
}

.media-card:hover .media-frame::before,
.media-card:hover .media-frame::after {
  width: 22px;
  height: 22px;
}

.media-frame video,
.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(145deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
}

.media-type {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.media-placeholder p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.media-label {
  margin-top: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* =====================================================
   CORE MECHANICS — BRAVERY SYSTEM
   ===================================================== */
#mechanics {
  padding: var(--section-pad) var(--gutter);
  background: linear-gradient(180deg, var(--bg-deepest) 0%, var(--bg-mid) 50%, var(--bg-deepest) 100%);
  overflow: hidden;
}

.mechanics-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.mechanics-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

.mechanics-sub-head {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-style: normal;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.mechanics-sub-head em {
  color: var(--red-bright);
  font-style: italic;
}

.mechanics-body {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

/* Mechanic breakdown list */
.mechanic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.mechanic-item {
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 1px solid var(--border-gold);
  transition: border-color 0.2s ease;
}

.mechanic-item:not(:last-child) {
  margin-bottom: 0.1rem;
}

.mechanic-item:hover {
  border-left-color: var(--gold);
}

.mechanic-name {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.mechanic-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 50ch;
}

.highlight-gold {
  color: var(--gold-light);
  font-weight: 600;
}

.highlight-red {
  color: var(--red-bright);
}

/* Stat Bars */
.mechanics-stats {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.stat-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--gold-dim), var(--gold-bright));
  border-radius: 2px;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-fill--red {
  background: linear-gradient(to right, var(--red-dim), var(--red-bright));
}

.stat-fill--gold-dim {
  background: linear-gradient(to right, #2a1e08, var(--gold-dim));
}

.stat-fill.animate {
  width: var(--fill);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* Mechanics Media Stack */
.mechanics-media-block {
  position: relative;
  height: 540px;
}

.mechanics-screenshot-frame {
  position: absolute;
  border: 1px solid var(--border-gold);
  overflow: hidden;
  background: var(--bg-mid);
}

/* Gold corner brackets */
.mechanics-screenshot-frame::before,
.mechanics-screenshot-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
}

.mechanics-screenshot-frame::before { top: 0;    left: 0;  border-width: 2px 0 0 2px; }
.mechanics-screenshot-frame::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.mechanics-screenshot-frame--main {
  top: 0;
  left: 12%;
  right: 0;
  bottom: 16%;
  z-index: 2;
  box-shadow: -24px 24px 64px rgba(0, 0, 0, 0.75);
}

.mechanics-screenshot-frame--offset {
  top: 28%;
  left: 0;
  right: 18%;
  bottom: 0;
  z-index: 3;
  box-shadow: -12px 12px 40px rgba(0, 0, 0, 0.65);
}

.mechanics-media-placeholder {
  position: absolute;
  inset: 0;
}

.mechanics-quote {
  position: absolute;
  top: 45%;
  right: -1rem;
  width: 190px;
  z-index: 4;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold-dim);
  line-height: 1.55;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--gold-dim);
  background: rgba(7, 5, 16, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* =====================================================
   LORE BLOCK
   ===================================================== */
#lore {
  padding: var(--section-pad) var(--gutter);
  position: relative;
  overflow: hidden;
}

#lore::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(90, 12, 12, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.lore-inner {
  max-width: 70ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lore-ornament {
  color: var(--gold-dim);
  letter-spacing: 0.5em;
  font-size: 0.72rem;
  margin-bottom: 1.75rem;
}

.lore-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.lore-text {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.lore-text--em {
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.12rem;
  margin-top: 1rem;
}


/* =====================================================
   ARPG FEATURES — HORIZONTAL CAROUSEL
   ===================================================== */
#features {
  padding: var(--section-pad) 0 var(--section-pad);
  overflow: hidden;
}

.features-intro {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 var(--gutter);
}

.features-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.features-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* Carousel wrapper */
.hcarousel {
  position: relative;
  height: 520px;
}

.hcar-track {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Each panel is absolutely positioned; JS sets data-pos */
.hcar-panel {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  transition:
    left  0.58s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

/* Positions: prev(18%) | gap(1%) | active(62%) | gap(1%) | next(18%) */
.hcar-panel[data-pos="active"]       { left: 19%;    width: 62%; opacity: 1; cursor: default; }
.hcar-panel[data-pos="prev"]         { left: 0;      width: 18%; opacity: 1; cursor: pointer; }
.hcar-panel[data-pos="next"]         { left: 82%;    width: 18%; opacity: 1; cursor: pointer; }
.hcar-panel[data-pos="hidden-left"]  { left: -20%;   width: 18%; opacity: 0; pointer-events: none; }
.hcar-panel[data-pos="hidden-right"] { left: 101%;   width: 18%; opacity: 0; pointer-events: none; }

/* Background image */
.hcar-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--bg-mid) 0%, var(--bg-light) 100%);
  z-index: 0;
}

.hcar-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

/* Dark scrim */
.hcar-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(7, 4, 8, 0.28);
  transition: background 0.45s ease;
}

.hcar-panel[data-pos="active"]::after {
  background: linear-gradient(
    to right,
    rgba(7, 4, 8, 0.72) 0%,
    rgba(7, 4, 8, 0.28) 45%,
    rgba(7, 4, 8, 0.05) 100%
  );
}

/* Collapsed tab — hidden, side panels show image only */
.hcar-tab {
  display: none;
}

/* Expanded content */
.hcar-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2.8rem 2.5rem 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.32s ease 0.22s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}

.hcar-panel[data-pos="active"] .hcar-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hcar-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.55rem;
}

.hcar-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hcar-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 44ch;
}

.hcar-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* Arrow buttons */
.hcar-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  background: rgba(7, 4, 8, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold);
  font-size: 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hcar-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Sit in the centre of each side panel */
.hcar-btn--prev { left:  9%; transform: translate(-50%, -50%); }
.hcar-btn--next { right: 9%; transform: translate( 50%, -50%); }

/* Progress bar along bottom of active panel */
.hcar-progress {
  position: absolute;
  bottom: 0;
  left: 19%;
  height: 2px;
  width: 0;
  background: var(--gold);
  opacity: 0.55;
  z-index: 6;
  pointer-events: none;
}

.hcar-progress.running {
  width: 62%;
  transition: width var(--hcar-dur, 4500ms) linear;
}

/* Dot indicators */
.hcar-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding: 0 var(--gutter);
}

.hcar-dot {
  height: 2px;
  width: 22px;
  background: var(--border-gold);
  border: none;
  border-radius: 1px;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}

.hcar-dot.active {
  background: var(--gold);
  width: 38px;
}

/* Mobile: vertical stack */
@media (max-width: 768px) {
  .hcarousel { height: auto; }

  .hcar-track {
    position: static;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .hcar-panel {
    position: static;
    width: 100% !important;
    height: 60px;
    left: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: height 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hcar-panel[data-pos="active"] { height: 360px; }

  .hcar-tab {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 1.2rem;
    align-items: center;
    gap: 0.75rem;
  }

  .hcar-num, .hcar-name { writing-mode: horizontal-tb; }
  .hcar-name { font-size: 0.78rem; }

  .hcar-panel[data-pos="active"] .hcar-tab { display: none; }
  .hcar-content { padding: 1.5rem 1.2rem; }
  .hcar-btn, .hcar-progress { display: none; }
}


#devlog {
  padding: var(--section-pad) var(--gutter);
  background: linear-gradient(180deg, var(--bg-deepest) 0%, var(--bg-mid) 100%);
}

.devlog-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.devlog-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 1.3rem;
  line-height: 1.15;
}

.devlog-body {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.btn-devlog {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0.8rem 1.75rem;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-devlog:hover {
  background: var(--gold-subtle);
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* Community Grid */
.community-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.community-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--border-gold);
  background: var(--bg-light);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
  border-radius: 2px;
}

.community-link:hover {
  border-color: var(--gold);
  background: var(--gold-subtle);
  transform: translateY(-3px);
}

.community-icon {
  font-size: 1.05rem;
  color: var(--gold-dim);
  margin-bottom: 0.3rem;
}

.community-name {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
}

.community-desc {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-dim);
}


/* =====================================================
   FOOTER CTA
   ===================================================== */
#footer-cta {
  padding: var(--section-pad) var(--gutter);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 50% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deepest) 100%);
  pointer-events: none;
}

.footer-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-cta-ornament {
  color: var(--gold-dim);
  letter-spacing: 0.8em;
  font-size: 0.6rem;
  margin-bottom: 0.5rem;
}

.footer-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  line-height: 1.1;
}

.footer-cta-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}


/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  padding: 2.75rem var(--gutter);
  border-top: 1px solid var(--border-gold);
  background: var(--bg-deepest);
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-dim);
  opacity: 0.55;
}


/* =====================================================
   MAILERLITE FORM — DARK THEME OVERRIDES
   ===================================================== */

/* Wrapper: transparent, no background */
#mlb2-42364793.ml-form-embedContainer,
#mlb2-42364793 .ml-form-embedWrapper {
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

#mlb2-42364793 .ml-form-embedBody {
  padding: 0 !important;
}

#mlb2-42364793 .ml-form-embedContent {
  display: none; /* empty heading block */
}

/* Email input */
#mlb2-42364793 input[type="email"] {
  background: var(--bg-light) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: 2px !important;
  font-family: var(--font-ui) !important;
  font-size: 0.9rem !important;
  padding: 0.75rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
}

#mlb2-42364793 input[type="email"]:focus {
  outline: none !important;
  border-color: var(--gold) !important;
}

#mlb2-42364793 input[type="email"]::placeholder {
  color: var(--text-dim) !important;
}

/* Privacy policy text */
#mlb2-42364793 .ml-form-embedPermissionsContent p {
  font-family: var(--font-ui) !important;
  font-size: 0.68rem !important;
  color: var(--text-dim) !important;
  margin: 0.6rem 0 1rem !important;
  line-height: 1.5 !important;
}

/* Interest group checkboxes */
#mlb2-42364793 .ml-form-interestGroupsRow {
  display: flex !important;
  float: none !important;
  gap: 1rem;
  margin-bottom: 1.2rem !important;
  position: relative;
  z-index: 2;
}

#mlb2-42364793 .ml-form-interestGroupsRowCheckbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

#mlb2-42364793 .ml-form-interestGroupsRowCheckbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-gold);
  background: var(--bg-light);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#mlb2-42364793 .ml-form-interestGroupsRowCheckbox input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

#mlb2-42364793 .ml-form-interestGroupsRowCheckbox input[type="checkbox"]:checked::after {
  content: '✔';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--bg-deepest);
}

#mlb2-42364793 .label-description {
  font-family: var(--font-ui) !important;
  font-size: 0.75rem !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
}

/* Validation error states */
#mlb2-42364793 .ml-form-interestGroupsRow.ml-error {
  outline: 1px solid var(--red-bright) !important;
  border-radius: 3px;
  padding: 0.5rem 0.6rem !important;
}

#mlb2-42364793 .ml-form-interestGroupsRow.ml-error::after {
  content: 'Please select at least one option.';
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--red-bright);
  letter-spacing: 0.04em;
}

#mlb2-42364793 .ml-error input[type="email"] {
  border-color: var(--red-bright) !important;
}

#mlb2-42364793 .ml-form-recaptcha.ml-error iframe {
  outline: 1px solid var(--red-bright);
}

/* reCAPTCHA spacing */
#mlb2-42364793 .ml-form-recaptcha {
  margin-bottom: 1.2rem;
}

/* Submit button */
#mlb2-42364793 .ml-form-embedSubmit {
  margin: 0 !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
}

#mlb2-42364793 .ml-form-embedSubmit button.primary {
  width: 100% !important;
  padding: 0.85rem 1.5rem !important;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, #a07820 100%) !important;
  border: 2px solid var(--gold-bright) !important;
  border-radius: 2px !important;
  color: var(--bg-deepest) !important;
  font-family: var(--font-heading) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: filter 0.2s ease !important;
}

#mlb2-42364793 .ml-form-embedSubmit button.primary:hover {
  filter: brightness(1.14) !important;
}

/* Success message */
#mlb2-42364793 .ml-form-successContent h4 {
  font-family: var(--font-heading) !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.18em !important;
  color: var(--gold-light) !important;
  margin-bottom: 0.6rem !important;
  font-weight: 700 !important;
}

#mlb2-42364793 .ml-form-successContent p {
  font-family: var(--font-body) !important;
  font-style: italic !important;
  color: var(--text-secondary) !important;
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 3, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  max-width: 560px;
  width: 100%;
  background: var(--bg-mid);
  border: 1px solid var(--border-gold);
  padding: 3rem 2.5rem;
  transform: translateY(24px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold corner brackets on modal */
.modal-container::before,
.modal-container::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
}

.modal-container::before { top: -1px;    left: -1px;  border-width: 2px 0 0 2px; }
.modal-container::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-gold);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-ornament {
  color: var(--gold-dim);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.modal-sub {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.mailerlite-placeholder {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border: 1px dashed var(--border-gold);
  border-radius: 2px;
}

.mailerlite-placeholder p:first-child {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.mailerlite-instructions {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-dim);
}


/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }


/* =====================================================
   KEYFRAME ANIMATIONS
   ===================================================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 0.95; transform: scale(1.08); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}


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

/* Tablet */
@media (max-width: 960px) {
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-content {
    padding-top: calc(5rem + 4rem);
    padding-bottom: 2rem;
    align-items: center;
    text-align: center;
  }

  .hero-tagline {
    max-width: none;
  }

  .hero-cta-group {
    align-items: center;
  }

  .hero-scroll-hint {
    align-items: center;
  }

  .hero-capsule-frame {
    padding: 1.5rem var(--gutter) 4rem;
    padding-right: var(--gutter);
  }

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

  .media-card--large,
  .media-card--tall,
  .media-card--wide,
  .media-card--small {
    grid-column: span 2;
    grid-row: span 1;
  }

  .media-card--tall .media-frame {
    min-height: 260px;
    height: auto;
  }

  .mechanics-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .mechanics-media-block {
    height: 380px;
  }

  .mechanics-quote {
    right: 0;
    top: auto;
    bottom: -0.5rem;
  }

  .devlog-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .nav-links a:not(.nav-steam) {
    display: none;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-card--large,
  .media-card--tall,
  .media-card--wide,
  .media-card--small {
    grid-column: span 1;
  }

  .community-links {
    grid-template-columns: 1fr;
  }

  .modal-container {
    padding: 2.25rem 1.5rem;
  }

  .mechanics-media-block {
    height: 300px;
  }

  .mechanics-quote {
    width: 160px;
    font-size: 0.76rem;
  }
}
