/* ===== Crawler3D grimdark theme ===== */
:root {
  --bg: #0a0809;
  --bg-elevated: #12100f;
  --bg-card: #161210;
  --bg-card-hover: #1c1613;
  --border: rgba(196, 165, 116, 0.14);
  --border-strong: rgba(196, 165, 116, 0.28);
  --text: #e8e0d5;
  --text-muted: #8a8075;
  --accent: #c43c3c;
  --accent-hot: #e85d2a;
  --accent-bone: #c4a574;
  --accent-fire: #ffba08;
  --accent-cyan: #4fc3f7;
  --gradient: linear-gradient(135deg, #8b1e1e 0%, #c43c3c 45%, #e85d2a 100%);
  --gradient-soft: linear-gradient(135deg, rgba(196, 60, 60, 0.15), rgba(232, 93, 42, 0.08));
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --radius: 0.65rem;
  --font-display: "Cinzel", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", "Noto Sans", "Times New Roman", serif;
  --font-body: "Spectral", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", "Noto Sans", Georgia, system-ui, sans-serif;
}

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

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

body.crawler-body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ----- Navbar ----- */
.navbar-spacer {
  height: 72px;
}

.crawler-nav {
  background: rgba(10, 8, 9, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  box-shadow: 0 1px 0 rgba(196, 60, 60, 0.08);
}

.crawler-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.brand-skull {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 186, 8, 0.35));
}

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

.brand-accent {
  color: var(--accent);
}

.crawler-nav .nav-link {
  color: var(--text-muted) !important;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s ease;
}

.crawler-nav .nav-link:hover,
.crawler-nav .nav-link:focus {
  color: var(--accent-bone) !important;
}

.crawler-nav .navbar-toggler {
  border-color: var(--border);
}

.crawler-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28232, 224, 213, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Language switcher ----- */
.lang-switcher {
  margin: 0;
  min-width: 9.5rem;
}

.lang-select {
  background-color: rgba(22, 18, 16, 0.92) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--accent-bone) !important;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 1.75rem 0.35rem 0.55rem;
  border-radius: 0.35rem;
  cursor: pointer;
  max-width: 12rem;
}

.lang-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.15rem rgba(196, 60, 60, 0.25) !important;
}

.lang-select option {
  background-color: #161210;
  color: var(--text);
}

@media (max-width: 991.98px) {
  .lang-switcher {
    margin-top: 0.75rem;
    min-width: 100%;
  }

  .lang-select {
    max-width: none;
    width: 100%;
  }
}

/* ----- Buttons ----- */
.btn-crawler {
  --bs-btn-color: #1a0a0a;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #1a0a0a;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #1a0a0a;
  background-image: var(--gradient);
  background-size: 160% 160%;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 0.35rem;
  box-shadow: 0 8px 24px rgba(139, 30, 30, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  color: #1a0a0a;
}

.btn-crawler:hover,
.btn-crawler:focus {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(232, 93, 42, 0.35);
  color: #1a0a0a;
}

.btn-crawler-outline {
  color: var(--accent-bone);
  background: transparent;
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 0.35rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn-crawler-outline:hover,
.btn-crawler-outline:focus {
  background: rgba(196, 165, 116, 0.08);
  border-color: var(--accent-bone);
  color: var(--text);
  transform: translateY(-2px);
}

/* ----- Hero ----- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 45% at 75% 20%, rgba(196, 60, 60, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(79, 195, 247, 0.06), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(232, 93, 42, 0.06), transparent 55%),
    var(--bg);
}

.min-vh-hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

.hero-embers {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 186, 8, 0.45), transparent),
    radial-gradient(1px 1px at 70% 45%, rgba(232, 93, 42, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(196, 60, 60, 0.4), transparent),
    radial-gradient(1px 1px at 85% 25%, rgba(255, 186, 8, 0.35), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(232, 93, 42, 0.4), transparent);
  opacity: 0.7;
  animation: ember-drift 8s ease-in-out infinite alternate;
}

@keyframes ember-drift {
  from { transform: translateY(0); opacity: 0.55; }
  to { transform: translateY(-12px); opacity: 0.85; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bone);
  margin-bottom: 1.25rem;
}

/* Animated torch: 4 flame frames */
.torch-anim {
  display: inline-block;
  flex-shrink: 0;
  background-image: url("/images/torch/torch1.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 10px rgba(255, 186, 8, 0.55));
  animation:
    torch-frames 0.5s steps(1, end) infinite,
    torch-glow 1.4s ease-in-out infinite;
  vertical-align: middle;
}

.torch-anim-xs {
  width: 2.75rem;
  height: 3.5rem;
}

.torch-anim-sm {
  width: 2.75rem;
  height: 3.75rem;
}

.torch-anim-md {
  width: 4.25rem;
  height: 6.5rem;
}

.torch-anim-lg {
  width: 5.75rem;
  height: 9rem;
}

@keyframes torch-frames {
  0%,
  24.9% {
    background-image: url("/images/torch/torch1.png");
  }
  25%,
  49.9% {
    background-image: url("/images/torch/torch2.png");
  }
  50%,
  74.9% {
    background-image: url("/images/torch/torch3.png");
  }
  75%,
  100% {
    background-image: url("/images/torch/torch4.png");
  }
}

@keyframes torch-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 186, 8, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(232, 93, 42, 0.8)); }
}

.hero-logo {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 24px rgba(196, 60, 60, 0.35));
}

@media (min-width: 992px) {
  .hero-logo {
    margin-left: 0;
  }
}

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

.hero-actions {
  margin-bottom: 0.5rem;
}

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

.tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  background: rgba(196, 60, 60, 0.1);
  color: var(--accent-bone);
}

/* Hero stage + trailer */
.hero-stage {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.5rem;
}

.hero-stage-glow {
  position: absolute;
  width: 90%;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(196, 60, 60, 0.16) 0%, rgba(232, 93, 42, 0.08) 45%, transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}

.hero-trailer-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-trailer {
  position: relative;
  width: 100%;
  max-width: none;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-play-btn {
  min-width: 12rem;
}

.fountain-stage {
  position: relative;
  z-index: 2;
  width: min(42%, 280px);
  flex: 0 1 280px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

/* Animated fountain: swaps two pixel frames */
.fountain-anim {
  width: 100%;
  height: 100%;
  background-image: url("/images/fountain/fountain01.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65))
          drop-shadow(0 0 20px rgba(79, 195, 247, 0.2));
  animation: fountain-flow 0.45s steps(1, end) infinite;
}

@keyframes fountain-flow {
  0%,
  49.9% {
    background-image: url("/images/fountain/fountain01.png");
  }
  50%,
  100% {
    background-image: url("/images/fountain/fountain02.png");
  }
}

.section-torches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-torches .torch-anim:last-child {
  transform: scaleX(-1);
  animation-delay: 0.15s, 0.3s;
}

.section-skulls {
  width: 88px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(232, 93, 42, 0.35));
}

@media (prefers-reduced-motion: reduce) {
  .fountain-anim,
  .torch-anim,
  .hero-embers,
  .decor-zombie,
  .decor-skeleton {
    animation: none;
  }
}

/* Zombie | Fountain | Skeleton */
.hero-stage-decor {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  pointer-events: none;
}

.decor-zombie {
  width: clamp(90px, 28%, 150px);
  height: auto;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4%;
  opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 12px rgba(196, 60, 60, 0.35));
  animation: zombie-bob 3.2s ease-in-out infinite;
}

.decor-skeleton {
  width: clamp(100px, 30%, 160px);
  height: auto;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 2%;
  opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65))
          drop-shadow(0 0 12px rgba(79, 195, 247, 0.25));
  animation: skeleton-bob 3.6s ease-in-out infinite;
}

@keyframes zombie-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes skeleton-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
  text-decoration: none;
}

.scroll-hint:hover {
  color: var(--accent-bone);
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ----- Sections ----- */
.section-pad {
  padding: 5.5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(22, 18, 16, 0.95) 0%, rgba(18, 14, 12, 1) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ----- Trailer ----- */
.trailer-frame {
  position: relative;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(196, 60, 60, 0.12);
  background: #000;
}

.trailer-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.trailer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.trailer-youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bone);
  text-decoration: none;
}

.trailer-youtube-link:hover,
.trailer-youtube-link:focus-visible {
  color: var(--text);
}

.trailer-youtube-link .bi-youtube {
  font-size: 1.1rem;
  color: var(--accent);
}

.section-header {
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 36rem;
}

.section-body {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
}

.section-body strong {
  color: var(--accent-bone);
  font-weight: 600;
}

/* ----- Location cards ----- */
.location-card {
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.location-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 60, 60, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.location-media {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(196, 60, 60, 0.08), transparent 70%),
    #0d0b0a;
  overflow: hidden;
}

.location-img {
  max-height: 170px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.location-img-tall {
  max-height: 185px;
}

.location-img-gate {
  max-height: 180px;
  border-radius: 0.25rem;
}

.location-media-gif {
  height: 220px;
  padding: 0.5rem;
}

.location-gif {
  max-height: 200px;
  width: 100%;
  object-fit: contain;
}

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

.location-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 0.2rem;
  background: rgba(10, 8, 9, 0.85);
  color: var(--accent-bone);
  border: 1px solid var(--border);
}

.location-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.location-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.location-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ----- Features ----- */
.feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at center, rgba(255, 186, 8, 0.06), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 320px;
  box-shadow: var(--shadow);
}

.feature-main-img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

.feature-visual-gif {
  min-height: 360px;
  padding: 1.25rem;
}

.feature-main-gif {
  max-height: 320px;
  width: 100%;
  max-width: 100%;
  border-radius: 0.35rem;
}

.feature-list-gif {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.25rem;
  object-fit: cover;
  border: 1px solid var(--border);
}

.feature-gif-row {
  margin-top: 2.5rem !important;
}

.feature-clip {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-clip:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 60, 60, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.feature-clip-gif {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #0d0b0a;
}

.feature-clip figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-style: italic;
}

.feature-torch {
  position: absolute;
  top: 0.75rem;
  z-index: 2;
}

.feature-torch-left {
  left: 0.75rem;
  animation-delay: 0s, 0.2s;
}

.feature-torch-right {
  right: 0.75rem;
  transform: scaleX(-1);
  animation-delay: 0.18s, 0.55s;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.feature-list-icon {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0.1rem;
  filter: drop-shadow(0 0 6px rgba(196, 60, 60, 0.3));
}

.feature-list-torch {
  margin-top: 0.05rem;
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.feature-list span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ----- Gallery ----- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-wide {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

.gallery-item {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover {
  border-color: rgba(196, 60, 60, 0.35);
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #0d0b0a;
  display: block;
}

.gallery-wide img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.gallery-item img.gallery-contain {
  object-fit: contain;
  padding: 1.25rem;
  height: 200px;
}

.gallery-item img.gallery-gif {
  object-fit: cover;
  height: 220px;
  background: #0d0b0a;
}

.gallery-wide img.gallery-gif {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ----- CTA / Join ----- */
.section-cta {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.cta-panel {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(196, 60, 60, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(79, 195, 247, 0.05), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 3rem 1.5rem 2.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cta-torch {
  position: absolute;
  top: 1.25rem;
  z-index: 1;
}

.cta-torch-left {
  left: 1.25rem;
}

.cta-torch-right {
  right: 1.25rem;
  transform: scaleX(-1);
  animation-delay: 0.2s, 0.4s;
}

.cta-ornament {
  width: 56px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 0 12px rgba(196, 165, 116, 0.35));
  position: relative;
  z-index: 1;
}

.cta-form {
  max-width: 480px;
}

.cta-input {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 0.35rem 0 0 0.35rem !important;
  padding-left: 1.25rem !important;
  font-family: var(--font-body);
}

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

.cta-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 60, 60, 0.25) !important;
  border-color: var(--accent) !important;
}

.cta-form .btn-crawler {
  border-radius: 0 0.35rem 0.35rem 0;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Contact ----- */
.contact-actions .btn {
  min-width: 12rem;
}

/* ----- Message page ----- */
.message-section {
  min-height: calc(100vh - 72px - 12rem);
  display: flex;
  align-items: center;
}

.message-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 2.75rem 1.75rem;
  box-shadow: var(--shadow);
}

.message-card-success {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 195, 247, 0.1), transparent 55%),
    var(--bg-card);
}

.message-card-error {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 60, 60, 0.12), transparent 55%),
    var(--bg-card);
}

.message-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.message-card-success .message-icon {
  color: var(--accent-cyan);
}

.message-card-error .message-icon {
  color: var(--accent);
}

.message-title {
  margin-bottom: 0.85rem;
}

.message-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 28rem;
}

/* ----- Footer ----- */
.crawler-footer {
  background: #0d0b0a;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-skull {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  opacity: 0.9;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-bone);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(196, 60, 60, 0.1);
}

.footer-divider {
  border-color: var(--border);
  margin: 1.5rem 0 1rem;
  opacity: 1;
}

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

.wasdeq-link {
  color: var(--accent-bone);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wasdeq-link:hover,
.wasdeq-link:focus {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-link:hover img {
  filter: brightness(1.08);
}

/* ----- Focus / a11y ----- */
.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-bone);
  outline-offset: 3px;
}

.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 60, 60, 0.25);
}

/* Mobile tweaks */
@media (max-width: 767.98px) {
  .section-pad {
    padding: 3.5rem 0;
  }

  .cta-panel {
    padding: 2rem 1.15rem;
  }

  .hero-section {
    padding-bottom: 3rem;
  }

  .scroll-hint {
    display: none;
  }

  .hero-stage {
    min-height: 0;
    padding: 0.5rem 0 1rem;
  }

  .section-skulls {
    width: 64px;
  }

  .cta-torch {
    width: 3rem;
    height: 4.5rem;
  }
}
