:root {
  --black: #100907;
  --red: #c9271e;
  --bright-red: #f04a2f;
  --cream: #eadcc5;
  --muted: #b7a38c;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: "Manrope", sans-serif;
}

body { overflow: hidden; }

button, a { font: inherit; }

.experience {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #160d09;
}

.backdrop,
.backdrop-shade,
.storm,
.vignette,
#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.backdrop {
  z-index: -5;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200, 40, 30, .28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(255, 120, 40, .12) 0%, transparent 55%),
    linear-gradient(160deg, #1a0a07 0%, #0a0507 45%, #050203 100%);
  animation: slow-drift 24s ease-in-out infinite alternate;
}

.backdrop-shade {
  z-index: -4;
  background:
    linear-gradient(90deg,
      rgba(11, 7, 6, .94) 0%,
      rgba(13, 8, 7, .76) 31%,
      rgba(13, 8, 7, .22) 67%,
      rgba(11, 7, 6, .49) 100%),
    linear-gradient(0deg,
      rgba(8, 6, 5, .94) 0%,
      transparent 35%,
      rgba(12, 7, 6, .35) 100%);
}

.storm {
  z-index: -3;
  opacity: .28;
  background:
    radial-gradient(ellipse at 72% 48%, transparent 4%, rgba(236, 65, 32, .15) 62%, transparent 76%),
    linear-gradient(110deg, transparent 25%, rgba(235, 117, 69, .07) 49%, transparent 70%);
  mix-blend-mode: screen;
  animation: storm-pulse 7s ease-in-out infinite alternate;
}

#embers { z-index: 1; }

.vignette {
  z-index: 2;
  box-shadow: inset 0 0 180px 45px rgba(0, 0, 0, .72);
}

.topbar {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  padding: 32px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(234, 220, 197, .12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: .24em;
}

.brand i { color: var(--red); font-style: normal; }

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(221, 63, 43, .75);
  color: #ed5137;
  font-family: serif;
  font-size: 18px;
}

.era {
  color: rgba(234, 220, 197, .62);
  font-size: 9px;
  letter-spacing: .2em;
}

.hero {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  padding: 15vh clamp(24px, 10vw, 150px) 20vh;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
  animation: arrive 1.3s cubic-bezier(.16, 1, .3, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  color: #d59a78;
  font-size: 9px;
  letter-spacing: .31em;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--bright-red);
  box-shadow: 0 0 12px var(--bright-red);
}

h1 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 500;
  font-size: clamp(76px, 12.7vw, 174px);
  line-height: .73;
  letter-spacing: -.075em;
  text-shadow: 0 6px 50px rgba(0, 0, 0, .6);
}

h1 em {
  color: var(--red);
  font-weight: 500;
  font-style: normal;
  text-shadow: 0 0 42px rgba(205, 42, 27, .32);
}

.dek {
  max-width: 335px;
  margin: 32px 0 28px;
  color: rgba(234, 220, 197, .78);
  font-size: 13px;
  line-height: 1.8;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}

.button-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(226, 76, 50, .8);
  color: #ff684b;
  font-size: 17px;
  transition: background .3s, color .3s, transform .3s;
}

.enter-button:hover .button-icon {
  transform: rotate(45deg);
  background: var(--red);
  color: white;
}

.hint {
  margin: 17px 0 0 57px;
  color: rgba(234, 220, 197, .4);
  font-size: 8px;
  letter-spacing: .15em;
}

.duel {
  position: absolute;
  right: clamp(28px, 8vw, 118px);
  top: 43%;
  text-align: right;
  text-shadow: 0 3px 22px #000;
  animation: arrive 1.6s .15s both;
}

.duel-line {
  width: 82px;
  height: 1px;
  margin-left: auto;
  margin-bottom: 16px;
  background: linear-gradient(90deg, transparent, #e34b31);
}

.duel > span,
.duel small {
  display: block;
  color: rgba(234, 220, 197, .61);
  font-size: 8px;
  letter-spacing: .27em;
}

.duel strong {
  display: block;
  margin: 10px 0 7px;
  font-family: "Cinzel", serif;
  font-size: clamp(19px, 2.8vw, 32px);
  font-weight: 500;
}

.duel strong i {
  color: var(--red);
  font-size: 11px;
  font-style: normal;
}

.side-note {
  position: absolute;
  right: 30px;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(234, 220, 197, .58);
  font-size: 8px;
  letter-spacing: .24em;
  writing-mode: vertical-rl;
}

.side-rule {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--red), transparent);
}

.bottom {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 5vw, 76px);
  bottom: 0;
  left: clamp(24px, 5vw, 76px);
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(234, 220, 197, .13);
}

.quote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quote-mark {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.quote p {
  margin: 2px 0 0;
  color: rgba(234, 220, 197, .7);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
}

.scroll-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(234, 220, 197, .52);
  font-size: 8px;
  letter-spacing: .2em;
}

.scroll-line {
  width: 35px;
  height: 1px;
  background: var(--red);
  animation: line-breathe 1.8s ease-in-out infinite alternate;
}

.coordinates {
  display: grid;
  gap: 6px;
  color: rgba(234, 220, 197, .43);
  font-size: 8px;
  letter-spacing: .17em;
  text-align: right;
}

.coordinates span:first-child { color: #d88a68; }

.flash {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: #f04a2f;
  opacity: 0;
  pointer-events: none;
}

.chapter {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  background: rgba(9, 5, 4, .76);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s, visibility .7s;
}

.chapter span {
  color: #e65337;
  font-family: "Cinzel", serif;
  font-size: clamp(35px, 7vw, 88px);
  letter-spacing: .1em;
}

.chapter p {
  color: var(--cream);
  font-family: Georgia, serif;
  font-style: italic;
}

.experience.awakened .flash { animation: flash .65s ease-out; }
.experience.awakened .chapter { opacity: 1; visibility: visible; }
.experience.awakened .hero,
.experience.awakened .bottom,
.experience.awakened .duel { opacity: .14; transition: opacity .7s; }
.experience.awakened .backdrop { transform: scale(1.12); }

@keyframes slow-drift {
  from { transform: scale(1.04) translate3d(-.5%, 0, 0); }
  to { transform: scale(1.12) translate3d(.5%, -1%, 0); }
}

@keyframes storm-pulse {
  from { opacity: .12; transform: translateX(-2%); }
  to { opacity: .42; transform: translateX(2%); }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes line-breathe {
  from { opacity: .35; transform: scaleX(.6); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

@keyframes flash {
  0% { opacity: .34; }
  100% { opacity: 0; }
}

@media (max-width: 680px) {
  .topbar { padding: 20px; }
  .brand { font-size: 7px; letter-spacing: .13em; }
  .brand-mark { width: 30px; height: 30px; }
  .era { font-size: 7px; }
  .hero { padding: 15vh 25px 22vh; align-items: center; }
  h1 { font-size: clamp(82px, 22vw, 140px); }
  .dek { max-width: 260px; font-size: 12px; }
  .duel { top: auto; right: 24px; bottom: 20%; }
  .duel strong { font-size: 20px; }
  .side-note { display: none; }
  .bottom { left: 20px; right: 20px; min-height: 86px; }
  .quote p { font-size: 10px; }
  .scroll-note { display: none; }
  .coordinates { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- nav ---------- */
.nav { display: flex; gap: 18px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.nav a:hover, .nav a.active { color: var(--cream); }

/* ---------- hero actions ---------- */
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ghost-button {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border: 1px solid rgba(234, 220, 197, .25);
  color: var(--cream);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: border-color .3s ease, color .3s ease;
}
.ghost-button:hover { border-color: var(--bright-red); color: #fff; }

/* ---------- inner pages ---------- */
.page {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 980px);
  text-align: center;
}
.page-title {
  font-family: "Cinzel", serif;
  font-size: clamp(34px, 7vw, 72px);
  letter-spacing: .18em;
  margin: 0 0 12px;
  color: var(--cream);
  text-shadow: 0 0 40px rgba(255, 106, 26, .25);
}
.page-lead {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .08em;
  margin: 0 0 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.card {
  padding: 28px 22px;
  border: 1px solid rgba(234, 220, 197, .14);
  background: rgba(10, 5, 7, .55);
  backdrop-filter: blur(6px);
  text-align: left;
}
.card h2 {
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--bright-red);
  margin: 0 0 10px;
}
.card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.tile {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 220, 197, .14);
  background: linear-gradient(135deg, rgba(200, 40, 30, .18), rgba(10, 5, 7, .6));
  font-family: "Cinzel", serif;
  letter-spacing: .25em;
  font-size: 12px;
  color: var(--cream);
}
