/* Kyridril — landing page (kyridril.com). Dark, cinematic; gold for the calls to action. */

@font-face {
  font-family: 'Cinzel';
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/cinzel-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/cinzel-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cinzel-decorative-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-weight: 900;
  font-display: swap;
  src: url('fonts/cinzel-decorative-900-latin.woff2') format('woff2');
}

:root {
  --bg: #05060a;
  --bg-2: #0b0d13;
  --panel: rgba(16, 18, 26, 0.72);
  --line: rgba(217, 164, 65, 0.22);
  --gold: #d9a441;
  --gold-2: #f3cf7a;
  --gold-3: #8a5f1c;
  --text: #ece4d3;
  --dim: #a59c8a;
  --blue: #3b5fa8;
  --display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --title: 'Cinzel', Georgia, serif;
  --body: Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(30px, 4.4vw, 58px);
}

h3 {
  font-size: clamp(19px, 1.6vw, 23px);
}

.eyebrow {
  font-family: var(--title);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.lead {
  color: var(--dim);
  font-size: clamp(17px, 1.3vw, 20px);
  max-width: 62ch;
}

/* ─────────────── Buttons ─────────────── */

.btn {
  --skew: -10deg;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 30px;
  font-family: var(--title);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(var(--skew));
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-gold {
  color: #1a1206;
}

.btn-gold::before {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #b9832b);
  box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.55) inset, 0 10px 30px rgba(217, 164, 65, 0.25);
}

/* A slow shine across the gold. */
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(var(--skew));
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 120% 0;
  animation: shine 4.5s var(--ease) infinite 2.4s;
  mix-blend-mode: soft-light;
}

@keyframes shine {
  0%,
  60% {
    background-position: 120% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

.btn-gold:hover {
  transform: translateY(-2px);
}

.btn-gold:hover::before {
  box-shadow: 0 0 0 1px rgba(255, 240, 200, 0.8) inset, 0 14px 44px rgba(217, 164, 65, 0.45);
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost::before {
  background: rgba(10, 12, 18, 0.55);
  box-shadow: 0 0 0 1px rgba(236, 228, 211, 0.28) inset;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover::before {
  box-shadow: 0 0 0 1px var(--gold) inset;
  background: rgba(30, 24, 12, 0.6);
}

.btn-xl {
  padding: 20px 46px;
  font-size: 16px;
}

.btn[aria-disabled='true'] {
  cursor: default;
  filter: grayscale(0.6) brightness(0.8);
}

.dl-meta {
  font-family: var(--body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--dim);
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #1a1206;
  background: var(--gold-2);
  border-radius: 3px;
  vertical-align: 2px;
}

/* ─────────────── Navigation ─────────────── */

.nav {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -140%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  background: rgba(8, 9, 14, 0.62);
  border: 1px solid rgba(236, 228, 211, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(14px) saturate(1.2);
  transition: transform 1s var(--ease) 0.9s, background 0.4s ease;
}

.is-ready .nav {
  transform: translate(-50%, 0);
}

.nav.is-scrolled {
  background: rgba(8, 9, 14, 0.85);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--title);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-brand img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.nav-links a {
  padding: 8px 14px;
  font-family: var(--title);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(236, 228, 211, 0.07);
}

.nav-cta {
  padding: 9px 16px;
  font-family: var(--title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-radius: 9px;
  white-space: nowrap;
}

.nav-cta .tag {
  background: #1a1206;
  color: var(--gold-2);
}

/* ─────────────── Hero banner ─────────────── */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -4%;
  z-index: -4;
  will-change: transform;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.18);
  filter: brightness(0.55) saturate(0.9);
  transition: transform 3.2s var(--ease), filter 2.4s ease;
}

.is-ready .hero-bg {
  transform: scale(1.04);
  filter: brightness(0.82) saturate(1);
}

/* Drifting mist, two layers at different speeds. */
.hero-fog {
  position: absolute;
  z-index: -3;
  left: -50%;
  width: 200%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 3s ease 0.6s;
  mix-blend-mode: screen;
}

.is-ready .hero-fog {
  opacity: 1;
}

.hero-fog--a {
  bottom: -6%;
  height: 46%;
  background:
    radial-gradient(40% 60% at 20% 70%, rgba(140, 150, 170, 0.22), transparent 70%),
    radial-gradient(35% 55% at 55% 80%, rgba(150, 160, 180, 0.18), transparent 70%),
    radial-gradient(30% 50% at 85% 75%, rgba(120, 130, 150, 0.2), transparent 70%);
  filter: blur(18px);
  animation: fog-drift 38s linear infinite;
}

.hero-fog--b {
  bottom: 8%;
  height: 40%;
  background:
    radial-gradient(30% 50% at 30% 60%, rgba(170, 160, 140, 0.12), transparent 70%),
    radial-gradient(28% 45% at 75% 55%, rgba(170, 160, 140, 0.1), transparent 70%);
  filter: blur(26px);
  animation: fog-drift 62s linear infinite reverse;
}

@keyframes fog-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(25%);
  }
}

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(5, 6, 10, 0.75) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.55) 0%, transparent 22%, transparent 55%, rgba(5, 6, 10, 0.92) 92%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(70px, 11vh, 120px);
  text-align: center;
  will-change: transform, opacity;
}

.hero-kicker {
  font-family: var(--title);
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 12px;
}

.hero-title-row {
  position: relative;
}

.hero-aside {
  position: absolute;
  right: calc(100% + 34px);
  top: 18%;
  margin: 0;
  font-family: var(--title);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 228, 211, 0.82);
  text-align: right;
  white-space: nowrap;
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: #fff6e2;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.65), 0 0 60px rgba(217, 164, 65, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-sub {
  font-family: var(--title);
  font-weight: 600;
  font-size: clamp(16px, 2vw, 28px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-top: 14px;
  padding-left: 0.55em;
}

.hero-tagline {
  margin: 26px 0 30px;
  font-size: clamp(18px, 1.6vw, 24px);
  font-style: italic;
  color: rgba(236, 228, 211, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.beta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 0 rgba(243, 207, 122, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(243, 207, 122, 0.6);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(243, 207, 122, 0);
  }
}

.hero-stats {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat {
  display: grid;
  justify-items: center;
  min-width: 132px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid rgba(236, 228, 211, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.stat-icon {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-bars {
  display: flex;
  gap: 4px;
  margin: 6px 0 10px;
}

.stat-bars i {
  width: 14px;
  height: 5px;
  background: var(--gold);
  transform: skewX(-20deg);
}

.stat-bars i:last-child {
  background: rgba(217, 164, 65, 0.3);
}

.stat-label {
  font-family: var(--title);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.stat-value {
  font-family: var(--title);
  font-weight: 700;
  font-size: 14px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--title);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  opacity: 0;
  transition: opacity 1s ease 2.6s;
}

.is-ready .hero-scroll {
  opacity: 1;
}

.hero-scroll i {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes drip {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* The intro: lines rise from behind a mask, the rest fades in after. */
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.3s var(--ease);
}

.is-ready .reveal-line > span {
  transform: none;
}

.hero-kicker > span {
  transition-delay: 0.5s;
}
.hero-title .reveal-line:first-child > span {
  transition-delay: 0.65s;
}
.hero-sub > span {
  transition-delay: 0.9s;
}
.hero-aside > span {
  transition-delay: 1.05s;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.is-ready .reveal-fade {
  opacity: 1;
  transform: none;
}

.hero-tagline.reveal-fade {
  transition-delay: 1.2s;
}
.hero-actions.reveal-fade {
  transition-delay: 1.45s;
}
.hero-note.reveal-fade {
  transition-delay: 1.65s;
}
.hero-stats.reveal-fade {
  transition-delay: 1.8s;
}

/* ─────────────── Stacked scenes (each one pinned while the next slides over it) ─────────────── */

.stack {
  position: relative;
}

.scene {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 0%;
  will-change: transform, filter;
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.scene-bg img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

.scene-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.55) 45%, rgba(5, 6, 10, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 6, 10, 0.85), transparent 45%);
}

.scene-inner {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: 0 var(--gutter) clamp(60px, 12vh, 130px);
}

.scene-inner h2 {
  margin-bottom: 20px;
}

.scene-inner p:not(.eyebrow) {
  color: rgba(236, 228, 211, 0.86);
  font-size: clamp(17px, 1.35vw, 20px);
}

.scene-inner > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.scene.is-in .scene-inner > * {
  opacity: 1;
  transform: none;
}

.scene.is-in .scene-inner > *:nth-child(2) {
  transition-delay: 0.12s;
}
.scene.is-in .scene-inner > *:nth-child(3) {
  transition-delay: 0.24s;
}

.acts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.acts li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  font-family: var(--title);
  letter-spacing: 0.06em;
  background: rgba(10, 12, 18, 0.6);
  border-left: 2px solid var(--gold);
}

.acts span {
  width: 34px;
  font-family: var(--display);
  color: var(--gold-2);
}

/* ─────────────── Sections ─────────────── */

.section {
  position: relative;
  z-index: 2;
  padding: clamp(90px, 14vh, 160px) var(--gutter);
  background: var(--bg);
}

.section-head {
  max-width: 1180px;
  margin: 0 auto 56px;
}

.section-head h2 {
  margin-bottom: 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.shot {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  background: var(--bg-2);
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 8.3;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}

.shot.is-in img {
  transform: scale(1);
}

.shot figcaption {
  padding: 14px 20px;
  font-size: 14px;
  font-style: italic;
  color: var(--dim);
}

.features {
  max-width: 1180px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  padding: 26px 22px;
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.9), rgba(11, 12, 18, 0.9));
  border: 1px solid rgba(236, 228, 211, 0.07);
  border-radius: 12px;
  transition: border-color 0.4s ease, transform 0.4s var(--ease);
}

.feature:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.feature:nth-child(2) {
  transition-delay: 0.08s;
}
.feature:nth-child(3) {
  transition-delay: 0.16s;
}
.feature:nth-child(4) {
  transition-delay: 0.24s;
}

.feature-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  min-height: 56px;
  align-items: center;
}

.feature-icons img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.feature-icons img.round {
  border-radius: 50%;
}

.glyph {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-size: 26px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  margin: 0;
  color: var(--dim);
  font-size: 15.5px;
}

.modes {
  max-width: 1180px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mode {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(100% 120% at 0% 0%, rgba(217, 164, 65, 0.1), transparent 60%), var(--bg-2);
}

.mode h3 {
  color: var(--gold-2);
  margin-bottom: 10px;
}

.mode p {
  margin: 0;
  color: var(--dim);
}

/* ─────────────── Champions: pinned, the track moves sideways as you scroll ─────────────── */

.hscroll {
  position: relative;
  z-index: 2;
  height: 340vh;
  background: linear-gradient(180deg, var(--bg), #090a10 30%, #090a10 70%, var(--bg));
}

.hscroll-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.hscroll-head {
  padding: 0 var(--gutter);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.hscroll-track {
  display: flex;
  gap: 24px;
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}

.champion {
  width: clamp(260px, 26vw, 340px);
  padding: 28px 24px 26px;
  background: linear-gradient(180deg, rgba(22, 24, 34, 0.95), rgba(10, 11, 17, 0.95));
  border: 1px solid rgba(236, 228, 211, 0.08);
  border-radius: 14px;
  text-align: center;
  transition: transform 0.5s var(--ease), border-color 0.5s ease;
}

.champion:hover {
  transform: translateY(-8px);
  border-color: var(--line);
}

.champion img {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.1), 0 14px 40px rgba(0, 0, 0, 0.6);
}

.champion .role {
  margin: 6px 0 14px;
  font-family: var(--title);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.champion p:last-child {
  margin: 0;
  color: var(--dim);
  font-size: 15.5px;
}

/* ─────────────── Bestiary ─────────────── */

.enemies {
  max-width: 1180px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.enemies figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.enemies img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  filter: saturate(0.85);
  transition: transform 0.5s var(--ease), filter 0.5s ease;
}

.enemies figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.enemies figcaption {
  margin-top: 10px;
  font-family: var(--title);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.bosses {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.boss {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(236, 228, 211, 0.08);
  background: var(--bg-2);
}

.boss img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

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

/* Under the picture: the paintings carry their own name plate. */
.boss figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(236, 228, 211, 0.06);
  font-family: var(--title);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.boss figcaption span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.boss:nth-child(3n + 2) {
  transition-delay: 0.1s;
}
.boss:nth-child(3n) {
  transition-delay: 0.2s;
}

.boss--final {
  border-color: rgba(160, 60, 220, 0.5);
}

/* ─────────────── Relic cards: a fan that opens as it comes into view ─────────────── */

.relics {
  overflow: hidden;
  padding-bottom: clamp(120px, 18vh, 200px);
}

.cards {
  position: relative;
  height: clamp(320px, 38vw, 470px);
  max-width: 1180px;
  margin: 0 auto;
}

.cards img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(170px, 19vw, 250px);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 120%;
  transform: translateX(-50%) rotate(0deg);
  transition: transform 1.3s var(--ease), filter 0.4s ease;
  filter: brightness(0.9);
}

.cards img:hover {
  filter: brightness(1.08);
  z-index: 5;
}

.cards.is-in img:nth-child(1) {
  transform: translateX(calc(-50% - 2 * var(--spread))) rotate(-14deg);
}
.cards.is-in img:nth-child(2) {
  transform: translateX(calc(-50% - var(--spread))) rotate(-7deg) translateY(-14px);
}
.cards.is-in img:nth-child(3) {
  transform: translateX(-50%) translateY(-24px);
  z-index: 3;
}
.cards.is-in img:nth-child(4) {
  transform: translateX(calc(-50% + var(--spread))) rotate(7deg) translateY(-14px);
}
.cards.is-in img:nth-child(5) {
  transform: translateX(calc(-50% + 2 * var(--spread))) rotate(14deg);
}

.cards {
  --spread: clamp(70px, 12vw, 190px);
}

/* ─────────────── Final call ─────────────── */

.final {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter);
  overflow: hidden;
  text-align: center;
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

.final-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)), radial-gradient(70% 60% at 50% 50%, transparent, rgba(5, 6, 10, 0.75));
}

.final-inner {
  max-width: 820px;
}

.final-logo {
  width: min(520px, 90%);
  margin: 0 auto 26px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

.final h2 {
  margin-bottom: 18px;
}

.final .lead {
  margin: 0 auto 36px;
}

.final .lead strong {
  color: var(--gold-2);
  font-weight: 400;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.btn-download {
  padding: 12px 30px;
}

.final-notes {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--dim);
}

/* ─────────────── Footer ─────────────── */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px var(--gutter);
  border-top: 1px solid rgba(236, 228, 211, 0.08);
  background: var(--bg);
  font-size: 14px;
  color: var(--dim);
}

.footer img {
  border-radius: 7px;
}

.footer p {
  margin: 0;
}

.footer nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.footer a {
  text-decoration: none;
}

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

/* ─────────────── Hero logo ─────────────── */

.hero-title .reveal-line {
  line-height: 0;
}

.hero-logo {
  display: block;
  width: clamp(300px, 50vw, 760px);
  height: auto;
  margin: -2% 0 -4%;
  filter: drop-shadow(0 8px 36px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 40px rgba(217, 164, 65, 0.2));
}

/* ─────────────── Exploration ─────────────── */

.explore {
  overflow: hidden;
  border-top: 1px solid rgba(236, 228, 211, 0.06);
}

.explore-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 6, 10, 0.72) 30%, rgba(5, 6, 10, 0.8) 70%, var(--bg) 100%), url('assets/foret-aeldren.webp') center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.explore > :not(.explore-bg) {
  position: relative;
}

.explore .lead strong {
  color: var(--gold-2);
  font-weight: 600;
}

.explore-loop {
  list-style: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 12, 18, 0.72);
  backdrop-filter: blur(6px);
}

.explore-loop li {
  position: relative;
  padding: 28px 30px 28px 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explore-loop li + li {
  border-left: 1px solid rgba(236, 228, 211, 0.08);
}

.explore-loop li + li::before {
  content: '›';
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.loop-num {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 18px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(217, 164, 65, 0.15) inset;
}

.explore-loop strong {
  font-family: var(--title);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #fff6e2;
}

.explore-loop em {
  font-style: normal;
  color: var(--dim);
  font-size: 15px;
}

.explore .features {
  margin-top: 40px;
}

.explore-places {
  max-width: 1180px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid rgba(236, 228, 211, 0.07);
  border-radius: 12px;
  background: rgba(11, 12, 18, 0.72);
}

.explore-places img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.explore-places p {
  margin: 0;
  color: var(--dim);
  text-align: center;
  flex: 1;
}

.explore-places strong {
  color: var(--text, #ece4d3);
  font-weight: 600;
}

/* ─────────────── Smaller screens ─────────────── */

/* Below a wide screen the three cards would sit over the logo and the buttons: a row under them. */
@media (max-width: 1500px) {
  .hero {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-content {
    position: relative;
    inset: auto;
    padding-top: 120px;
    padding-bottom: 30px;
  }
  .hero-stats {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
    padding: 0 var(--gutter) 56px;
  }
  .hero-scroll {
    display: none;
  }
}

/* The six links and the button share the bar down to a tablet. */
@media (max-width: 1260px) {
  .nav {
    gap: 12px;
  }
  .nav-brand span {
    display: none;
  }
  .nav-links a {
    padding: 8px 9px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 1100px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .explore-loop {
    grid-template-columns: 1fr;
  }
  .explore-loop li + li {
    border-left: 0;
    border-top: 1px solid rgba(236, 228, 211, 0.08);
  }
  .explore-loop li + li::before {
    left: 50px;
    top: -11px;
    transform: rotate(90deg);
  }
  .hero-aside {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav {
    justify-content: space-between;
  }
  .hero-stats {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
    padding: 0 var(--gutter) 70px;
  }
  .hero {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-content {
    position: relative;
    inset: auto;
    padding-top: 140px;
    padding-bottom: 28px;
  }
  .stat {
    min-width: 0;
    flex: 1;
    padding: 12px 8px;
  }
  .stat-value {
    font-size: 12px;
  }
  .hero-scroll {
    display: none;
  }
  .modes,
  .bosses {
    grid-template-columns: 1fr;
  }
  .enemies {
    grid-template-columns: repeat(4, 1fr);
  }
  /* The champions scroll by hand on a phone. */
  .hscroll {
    height: auto;
    padding: 90px 0;
  }
  .hscroll-pin {
    position: static;
    height: auto;
  }
  .hscroll-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    transform: none !important;
  }
  .champion {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
  .footer {
    flex-wrap: wrap;
  }
  .footer nav {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  .enemies {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
  }
  .enemies figcaption {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .explore-places img {
    display: none;
  }
  .btn-xl {
    padding: 18px 30px;
    font-size: 14px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .hero-embers {
    display: none;
  }
}
