/* ==========================================================================
   The Faceless Prior — Coming Soon
   ========================================================================== */

:root {
  --bg-deep: #060608;
  --bg-elevated: #0e0c0a;
  --bg-card: rgba(14, 12, 10, 0.72);
  --ink: #f5eed8;
  --ink-muted: #a89f88;
  --ink-dim: #6b6354;
  --gold: #c4a85a;
  --gold-bright: #e8d08a;
  --gold-dim: #8a7344;
  --crimson: #4a1820;
  --fen: #1a2e18;
  --fen-glow: #3d5c38;
  --border: rgba(196, 168, 90, 0.28);
  --border-strong: rgba(232, 208, 138, 0.45);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold-dim) var(--bg-deep);
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-deep);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

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

a:hover {
  color: #fff8ea;
}

.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;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Overlays */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  gap: 24px;
  background: #000;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__bell {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold-dim);
  border-radius: 50% 50% 4px 4px;
  animation: bell-swing 1.2s ease-in-out infinite;
  transform-origin: top center;
}

.preloader__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--ink-muted);
  margin: 0;
}

@keyframes bell-swing {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo__mark {
  color: var(--gold);
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav a:hover {
  color: var(--ink);
}

.nav__cta {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright) !important;
}

.nav__cta:hover {
  background: rgba(74, 24, 32, 0.6);
  border-color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 24px) 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg--fallback {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(61, 92, 56, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(74, 24, 32, 0.35) 0%, transparent 45%),
    linear-gradient(165deg, #0a0c0e 0%, #060608 40%, #0e0808 100%);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: hero-zoom 20s ease-out forwards;
  filter: brightness(0.62) saturate(0.85);
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero__fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 42%, transparent 68%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 38%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(26, 46, 24, 0.35) 0%, transparent 60%);
  animation: fog-drift 12s ease-in-out infinite alternate;
}

@keyframes fog-drift {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(36px, 5vw, 52px) clamp(28px, 5vw, 56px);
  max-width: 820px;
  margin-inline: 16px;
  background: rgba(8, 6, 5, 0.78);
  border: 1px solid rgba(196, 168, 90, 0.32);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 600;
  letter-spacing: clamp(3px, 1vw, 6px);
  color: #f0e4c8;
  margin: 0 0 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: clamp(2px, 1.2vw, 8px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: #fffdf5;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.9),
    0 4px 24px rgba(0, 0, 0, 1),
    0 0 48px rgba(0, 0, 0, 0.8);
}

.hero__tagline {
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.55;
  color: #ebe3d4;
  margin: 0 0 36px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
}

.hero__tagline em {
  color: #fff8ea;
  font-style: italic;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}

.hero__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4cbb8;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fen-glow);
  box-shadow: 0 0 12px var(--fen-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d4cbb8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 1);
  animation: bob 2.5s ease-in-out infinite;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn--primary {
  background: rgba(74, 24, 32, 0.85);
  border-color: var(--gold);
  color: #fff8ea;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.btn--primary:hover {
  background: rgba(90, 28, 38, 0.95);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  color: #fff8ea;
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--border);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  background: rgba(14, 12, 10, 0.8);
  color: #fff8ea;
}

/* Sections */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
}

.section--about {
  background: var(--bg-deep);
}

.section--features {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 50%, var(--bg-deep) 100%);
}

.section--world {
  background: var(--bg-deep);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.section--media {
  background: var(--bg-elevated);
}

.section--notify {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74, 24, 32, 0.35) 0%, transparent 55%),
    var(--bg-deep);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.15;
  margin: 0;
  color: #fff8ea;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.lead {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
  color: var(--ink);
  margin-top: 0;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  padding: 24px 0 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--border);
}

.stat-row li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-row strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 2px;
}

.stat-row span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition:
    border-color 0.3s ease,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
  opacity: 0.85;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0 0 12px;
  color: #fff8ea;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Location carousel */
.location-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 4vw;
  padding: 0 clamp(16px, 4vw, calc((100vw - 1140px) / 2 + 16px)) 16px;
  scrollbar-width: thin;
}

.location-card {
  flex: 0 0 min(380px, 85vw);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.location-card:hover {
  border-color: var(--border-strong);
}

.location-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--fen) 0%, var(--crimson) 100%);
  overflow: hidden;
}

.location-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.location-card__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, rgba(26, 46, 24, 0.9) 0%, rgba(14, 12, 10, 0.95) 100%);
}

.location-card__media.is-placeholder img {
  display: none;
}

.location-card__media.is-placeholder .location-card__placeholder {
  display: grid;
}

.location-card__placeholder span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.location-card__body {
  padding: 24px;
}

.location-card__body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 8px;
  color: #fff8ea;
}

.location-card__body p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

/* Trailer */
.trailer-wrap {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trailer-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(74, 24, 32, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #0a0808 0%, #000 100%);
}

.trailer-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--gold-bright);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-out), color 0.2s;
}

.trailer-play:hover {
  transform: scale(1.05);
  color: #fff8ea;
}

.trailer-video,
.trailer-embed {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--fen) 0%, var(--bg-elevated) 100%);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--ink-muted);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery__item:hover figcaption {
  opacity: 1;
}

.gallery__item.is-placeholder img {
  opacity: 0;
}

.gallery__item.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(196, 168, 90, 0.04) 8px,
    rgba(196, 168, 90, 0.04) 16px
  );
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

/* Notify */
.notify-panel {
  text-align: center;
  max-width: 560px;
  padding: clamp(40px, 6vw, 64px);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.notify-copy {
  color: var(--ink-muted);
  margin: 16px 0 28px;
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.notify-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s;
}

.notify-form input:focus {
  border-color: var(--gold);
}

.notify-form input::placeholder {
  color: var(--ink-dim);
}

.notify-note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.5px;
}

.notify-note.is-success {
  color: var(--fen-glow);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.social-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 3px;
  margin: 0 0 8px;
  color: #fff8ea;
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  margin: 0 0 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.footer-back {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

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

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

/* Responsive */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

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

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    background: rgba(6, 6, 8, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.35s var(--ease-out),
      opacity 0.35s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .gallery__item--wide {
    grid-column: span 1;
  }

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

  .btn {
    width: 100%;
  }
}

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

  html {
    scroll-behavior: auto;
  }

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