/* Chapter 1 recap — Figma full-viewport scroll panels + Forever tokens. */

/* Keep the original TBC Horde banner aspect on Chapter 1. */
body.wf-alliance .hero-brand {
  aspect-ratio: 1024 / 409;
  max-width: min(100%, 960px);
}

body.wf-alliance #ch1Main.container {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

html.ch1-scroll-snap {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

.ch1-scroll {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ch1-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(100vh, 720px);
  min-height: 100dvh;
  padding: clamp(48px, 8vh, 72px) clamp(20px, 5vw, 80px);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background: linear-gradient(180deg, #071525, #060b11);
}

.ch1-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 1400ms ease, opacity 700ms ease;
  opacity: 0.92;
}

/* Forever hero crest sits on the top edge — keep it in frame when cover crops. */
#ch1-chapter-two .ch1-panel-bg {
  object-position: center top;
  transform: scale(1.02);
}

/* Image already carries the Chapter II title — park CTA below the banner art. */
#ch1-chapter-two {
  align-items: flex-end;
  padding-top: clamp(72px, 12vh, 120px);
  padding-bottom: clamp(56px, 12vh, 112px);
}

#ch1-chapter-two .ch1-panel-shade {
  background:
    linear-gradient(180deg, rgba(6, 11, 17, 0.12) 0%, rgba(6, 11, 17, 0.22) 42%, rgba(6, 11, 17, 0.78) 100%),
    radial-gradient(ellipse at 50% 28%, rgba(232, 198, 117, 0.06), transparent 50%);
}

#ch1-chapter-two .ch1-panel-inner {
  width: min(100%, 640px);
}

#ch1-chapter-two .ch1-panel-hero {
  gap: 16px;
}

#ch1-chapter-two .ch1-panel-lede {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.ch1-panel.is-active .ch1-panel-bg {
  transform: scale(1);
}

.ch1-panel-shade,
.ch1-panel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ch1-panel-shade {
  background:
    linear-gradient(180deg, rgba(6, 11, 17, 0.42) 0%, rgba(6, 11, 17, 0.58) 48%, rgba(6, 11, 17, 0.82) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(232, 198, 117, 0.1), transparent 55%);
}

.ch1-panel-glow {
  background:
    radial-gradient(ellipse 40% 30% at 8% 10%, rgba(18, 58, 104, 0.28), transparent 70%),
    radial-gradient(ellipse 36% 28% at 92% 8%, rgba(40, 103, 160, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 24% at 50% 100%, rgba(14, 49, 89, 0.4), transparent 70%);
}

.ch1-panel-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ch1-panel.is-active .ch1-panel-inner,
.ch1-panel.has-seen .ch1-panel-inner,
.ch1-scroll--static .ch1-panel-inner {
  opacity: 1;
  transform: translateY(0);
}

.ch1-panel-hero,
.ch1-panel-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.ch1-panel-block--wide {
  width: min(100%, 960px);
}

.ch1-panel-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 452px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.ch1-panel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 420px;
}

.ch1-panel-kicker {
  margin: 0;
  font-family: var(--font-body, Nunito, sans-serif);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light, #e8c675);
}

.ch1-panel-date {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 222, 161, 0.55);
  background:
    linear-gradient(180deg, rgba(232, 198, 117, 0.22), rgba(14, 49, 89, 0.55));
  box-shadow:
    0 0 0 1px rgba(232, 198, 117, 0.12),
    0 0 18px rgba(232, 198, 117, 0.2);
  font-family: var(--font-display, Cinzel, serif);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8e7b0;
  text-shadow: 0 0 12px rgba(232, 198, 117, 0.45);
}

.ch1-panel-display,
.ch1-panel-title {
  margin: 0;
  font-family: var(--font-display, Cinzel, serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.05;
  background: linear-gradient(125deg, #f4dea1 2%, #e8c675 42%, #eee1c1 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ch1-panel-display {
  font-size: clamp(36px, 7vw, 72px);
  letter-spacing: 0.08em;
  max-width: 18ch;
}

.ch1-panel-title {
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: 0.05em;
}

.ch1-panel-title--center {
  text-align: center;
  max-width: 18ch;
}

.ch1-panel-lede,
.ch1-panel-stats {
  margin: 0;
  color: var(--parchment, #d8c49a);
  font-size: 16px;
  line-height: 1.65;
}

.ch1-panel-lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 18px);
}

.ch1-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ch1-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 198, 117, 0.34);
  background: rgba(14, 49, 89, 0.55);
  color: var(--text-primary, #f3eee4);
  font-family: var(--font-body, Nunito, sans-serif);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ch1-pill:hover,
.ch1-pill:focus-visible {
  border-color: rgba(232, 198, 117, 0.7);
  background: rgba(14, 49, 89, 0.78);
  color: var(--gold-light, #e8c675);
}

.ch1-pill--gold {
  color: var(--gold-light, #e8c675);
}

.ch1-panel-badge {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 452px);
  aspect-ratio: 452 / 420;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(232, 198, 117, 0.34);
  background: rgba(11, 19, 29, 0.78);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(9px);
}

.ch1-panel-badge img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: lighten;
  transform: scale(1.04);
  transition: transform 900ms ease;
}

.ch1-panel.is-active .ch1-panel-badge img {
  transform: scale(1);
}

.ch1-panel-badge-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  max-width: calc(100% - 48px);
  min-height: 38px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch1-core-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.ch1-core-list-label {
  margin: 0;
  font-family: var(--font-body, Nunito, sans-serif);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light, #e8c675);
}

.ch1-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ch1-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 198, 117, 0.28);
  background: rgba(6, 11, 17, 0.55);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #f3eee4);
}

.ch1-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 920px);
  margin-top: 8px;
}

.ch1-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(232, 198, 117, 0.28);
  background: rgba(11, 19, 29, 0.72);
  text-align: left;
  backdrop-filter: blur(8px);
}

.ch1-stat-card span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #9aa3b2);
}

.ch1-stat-card strong {
  font-family: var(--font-display, Cinzel, serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--gold-light, #e8c675);
  line-height: 1;
}

.ch1-table-wrap {
  width: 100%;
  max-height: min(62vh, 560px);
  overflow: auto;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid rgba(232, 198, 117, 0.28);
  background: rgba(11, 19, 29, 0.78);
  backdrop-filter: blur(10px);
}

.ch1-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ch1-table th,
.ch1-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(232, 198, 117, 0.12);
  white-space: nowrap;
}

.ch1-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(7, 21, 37, 0.96);
  color: var(--gold-light, #e8c675);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.ch1-table td {
  color: var(--parchment, #d8c49a);
}

.ch1-table a {
  color: var(--gold-light, #e8c675);
}

.ch1-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ch1-badges img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ch1-hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: min(100%, 920px);
  margin-top: 8px;
}

.ch1-hof-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(232, 198, 117, 0.28);
  background: rgba(11, 19, 29, 0.72);
  text-align: left;
  backdrop-filter: blur(8px);
}

.ch1-hof-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display, Cinzel, serif);
  color: var(--gold-light, #e8c675);
  font-size: 20px;
}

.ch1-hof-card p {
  margin: 0;
  color: var(--parchment, #d8c49a);
}

.ch1-quote {
  margin-top: 12px !important;
  font-style: italic;
  color: var(--text-primary, #f3eee4) !important;
}

.ch1-empty,
.ch1-error {
  margin: 24px auto;
  color: var(--parchment, #d8c49a);
  text-align: center;
}

@media (max-width: 900px) {
  .ch1-panel-split {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ch1-panel-copy,
  .ch1-core-list {
    align-items: center;
    max-width: 100%;
  }

  .ch1-chips {
    justify-content: center;
  }

  .ch1-panel-badge {
    width: min(100%, 360px);
  }

  .ch1-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ch1-stat-grid {
    grid-template-columns: 1fr;
  }

  .ch1-panel-display {
    font-size: clamp(30px, 10vw, 44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ch1-scroll-snap {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .ch1-panel-bg,
  .ch1-panel-inner,
  .ch1-panel-badge img {
    transition: none;
  }

  .ch1-panel-inner {
    opacity: 1;
    transform: none;
  }
}
