/* ============================================================
   Cinematic landing page — storm-driven scroll experience
   ============================================================ */

/* ---------- Preloader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--storm-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition: opacity .7s ease, visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .loader-stag-wrap {
  position: relative;
  filter: drop-shadow(0 0 16px rgba(200,155,46,.4));
}
#loader .stag-base { display: block; opacity: .14; }
#loader .stag-fill {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .22s linear;
}
#loader .load-words {
  font-family: "Cinzel", serif;
  font-size: .8rem;
  letter-spacing: .5em;
  text-indent: .5em;
  text-transform: uppercase;
  color: var(--gold);
}
#loader .load-pct {
  font-family: "Cinzel", serif;
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--parchment-dim);
}

/* ---------- Scroll progress ---------- */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 60;
}

/* ---------- Banner over hero ---------- */
.banner.overlay {
  position: fixed;
  left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background .4s ease, border-color .4s ease;
}
.banner.overlay.solid {
  background: linear-gradient(180deg, rgba(20,17,12,.98), rgba(20,17,12,.92));
  border-bottom-color: var(--iron-line);
}

/* ---------- Cinematic hero ---------- */
.cine-hero {
  position: relative;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--storm-black);
}
#storm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-layer { position: relative; z-index: 2; padding: 0 1rem; }
.cine-hero .crest { margin-bottom: 2.2rem; opacity: .9; }

.cine-hero h1 {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 9.5vw, 7.5rem);
  line-height: .98;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--parchment);
}
.cine-hero h1 .row { display: block; }
.cine-hero h1 .row.gold { color: var(--gold); }
.cine-hero h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.6em);
  filter: blur(6px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease;
}
.loaded .cine-hero h1 .ch {
  opacity: 1;
  transform: none;
  filter: none;
}
.cine-hero .motto-line {
  margin-top: 2.2rem;
  font-family: "Cinzel", serif;
  font-size: clamp(.85rem, 2vw, 1.15rem);
  letter-spacing: .65em;
  text-indent: .65em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0;
  transition: opacity 1.2s ease .9s;
}
.loaded .cine-hero .motto-line { opacity: 1; }
.cine-hero .kicker {
  margin-top: 1.2rem;
  color: var(--parchment-dim);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transition: opacity 1.2s ease 1.2s;
}
.loaded .cine-hero .kicker { opacity: 1; }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: "Cinzel", serif;
  font-size: .68rem;
  letter-spacing: .4em;
  text-indent: .4em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  opacity: 0;
  transition: opacity 1s ease 1.6s;
}
.loaded .scroll-cue { opacity: .85; }
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.6rem;
  margin: .7rem auto 0;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Marquee band ---------- */
.fury-marquee {
  overflow: hidden;
  border-top: 1px solid var(--iron-line);
  border-bottom: 1px solid var(--iron-line);
  padding: 1.1rem 0;
  background: rgba(200,155,46,.04);
}
.fury-marquee .track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: "Cinzel", serif;
  font-size: .9rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .fury-marquee .track { animation: none; }
}

/* ---------- Chapters ---------- */
.chapter {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--iron-line);
}
.chapter .numeral {
  position: absolute;
  right: -1rem;
  top: 50%;
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(14rem, 34vw, 30rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200,155,46,.16);
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.chapter:nth-child(even) .numeral { right: auto; left: -1rem; }
.chapter-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6rem 1.25rem;
  width: 100%;
}
.chapter .act {
  font-family: "Cinzel", serif;
  font-size: .72rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.chapter h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: .06em;
  margin-bottom: 1.6rem;
  color: var(--parchment);
  display: block;
}
.chapter h2::after { display: none; }
.chapter h2 .accent { color: var(--gold); }
.chapter p { max-width: 36rem; color: var(--parchment-dim); font-size: 1.18rem; }
.chapter .cta {
  display: inline-block;
  margin-top: 2.2rem;
  font-family: "Cinzel", serif;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: .9rem 1.6rem;
  transition: background .25s, color .25s, transform .25s;
}
.chapter .cta:hover {
  background: var(--gold);
  color: var(--storm-black);
  transform: translateY(-2px);
}
.chapter .cta:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* chapter accents */
.chapter.blood { background: radial-gradient(ellipse 70% 60% at 80% 40%, rgba(126,42,28,.14), transparent 65%); }
.chapter.gold-tint { background: radial-gradient(ellipse 70% 60% at 20% 40%, rgba(200,155,46,.08), transparent 65%); }

/* ---------- Stats band: the ledger of a reign ---------- */
.stats-band { border-top: 1px solid var(--iron-line); }
.stats-head {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.6rem;
  text-align: center;
}
.stats-head h2 { margin-bottom: .9rem; }
.stats-intro { color: var(--parchment-dim); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--iron-line);
  border-top: 1px solid var(--iron-line);
  border-bottom: 1px solid var(--iron-line);
}
.stat {
  position: relative;
  display: block;
  background: var(--storm-black);
  padding: 3rem 1.5rem 2.6rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background .3s ease;
}
.stat::after {                       /* a rule that fills on hover */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s ease;
}
.stat:hover, .stat:focus-visible { background: #191510; }
.stat:hover::after, .stat:focus-visible::after { transform: scaleX(1); }
.stat:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -3px; }

.stat .num {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--gold);
  line-height: 1;
  transition: text-shadow .3s ease;
}
.stat:hover .num, .stat:focus-visible .num {
  text-shadow: 0 0 26px rgba(200,155,46,.45);
}
.stat .label {
  margin-top: .8rem;
  font-family: "Cinzel", serif;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  line-height: 1.7;
}
/* the story behind the number — revealed on hover, always shown on touch */
.stat .tell {
  font-family: "IM Fell English", serif;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--parchment-dim);
  max-width: 17rem;
  margin: 0 auto;
  opacity: 0;
  max-height: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, max-height .35s ease, transform .35s ease, margin-top .35s ease;
}
.stat:hover .tell, .stat:focus-visible .tell {
  opacity: 1;
  max-height: 9rem;
  margin-top: 1.1rem;
  transform: translateY(0);
}
@media (hover: none) {               /* touch: no hover, so just show them */
  .stat .tell { opacity: 1; max-height: none; margin-top: 1.1rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stat, .stat .tell, .stat::after, .stat .num { transition: none; }
}

/* ---------- Finale ---------- */
/* Three phrases, three doorways. The line is already the arc of the man —
   his wars, the man himself, the reckoning — and the site has a page for
   each, so each phrase links to its own. Typography is untouched: no button
   chrome, just a drawn underline and a gloss that surfaces on hover, so it
   still reads as the closing line rather than a menu. */
.finale {
  text-align: center;
  padding: 5rem 1.25rem 5.5rem;
}
.finale .words {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;          /* room for the gloss to drop into */
  /* Flex-centred rather than text-align + text-indent. letter-spacing puts a
     phantom .28em after the last letter of each phrase, so a centred line
     hangs left of true centre; the usual text-indent trick assumes one run
     of text and stopped working once these became three inline-block links.
     Here each phrase gives its trailing space back with a negative margin,
     which leaves the row genuinely symmetrical, and the gap sets the real
     spacing between them. Measured at 0.0px off centre. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: .2em .62em;
}
.finale .words .finale-door { margin-right: -.28em; }
.finale-door {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color .35s ease;
}
/* the underline draws in from the left; inset on the right to swallow the
   trailing letter-space, or it overshoots the final full stop */
.finale-door::after {
  content: "";
  position: absolute;
  left: 0; right: .28em; bottom: -.16em;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.finale-door:hover, .finale-door:focus-visible { color: var(--gold-bright); }
.finale-door:hover::after, .finale-door:focus-visible::after { transform: scaleX(1); }
.finale-door:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 6px; }
.finale-gloss {
  position: absolute;
  left: 0; right: .28em; top: 118%;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
  font-size: .34em;
  font-style: italic;
  letter-spacing: .06em;
  text-indent: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--parchment-dim);
  pointer-events: none;
}
/* On pointer devices the gloss is a reward for hovering. On touch there is
   no hover, so it stays visible — otherwise the doorways read as dead text. */
@media (hover: hover) {
  .finale-gloss {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .4s ease, transform .4s ease;
  }
  .finale-door:hover .finale-gloss,
  .finale-door:focus-visible .finale-gloss { opacity: 1; transform: none; }
}
.finale-tail { color: var(--parchment-dim); font-style: italic; margin-top: 1.4rem; }
@media (prefers-reduced-motion: reduce) {
  .finale-door, .finale-door::after, .finale-gloss { transition: none; }
  .finale-gloss { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cine-hero h1 .ch, .cine-hero .motto-line, .cine-hero .kicker, .scroll-cue {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  #loader { display: none; }
}

/* ---------- Medieval dressing for the cinematic hero ---------- */
/* Tapestry frame inset around the full hero viewport */
.cine-hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(200,155,46,.28);
  outline: 1px solid rgba(200,155,46,.12);
  outline-offset: 5px;
}
.cine-hero .motto-line { text-shadow: 0 0 22px rgba(232,193,90,.35); }
.chapter h2 { font-family: "Cinzel Decorative", "Cinzel", serif; }
.chapter .numeral { font-family: "Cinzel Decorative", "Cinzel", serif; }
.finale .words {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  text-shadow: 0 2px 0 rgba(0,0,0,.85), 0 0 30px rgba(200,155,46,.2);
}

/* ---------- Chapter layout: copy + relic share a grid, never overlap ---------- */
.chapter-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4rem;
  align-items: center;
}
.chapter:nth-child(even) .chapter-inner .copy { order: 2; }
.chapter .relic {
  justify-self: center;
  max-height: min(62vh, 30rem);
  max-width: 100%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(200,155,46,.22));
  animation: relic-float 7s ease-in-out infinite;
}
.chapter .relic.crown { max-height: min(30vh, 14rem); }
.chapter .relic.tilt-l { rotate: -8deg; }
.chapter .relic.tilt-r { rotate: 8deg; }
@keyframes relic-float {
  0%, 100% { translate: 0 -6px; }
  50% { translate: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter .relic { animation: none; }
}
@media (max-width: 900px) {
  .chapter-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .chapter:nth-child(even) .chapter-inner .copy { order: 0; }
  .chapter .relic { max-height: 34vh; }
}

/* ---------- Game of Thrones display font for the great headings ---------- */
.cine-hero h1, .chapter h2, .finale .words {
  font-family: "Thrones", "Cinzel Decorative", "Cinzel", serif;
  font-weight: 400;
}
/* The Thrones caps fill the whole em box (ink height 1.013em), so any
   line-height below ~1.02 makes stacked rows physically overlap. */
.cine-hero h1 { letter-spacing: .06em; font-size: clamp(2.2rem, 7.5vw, 6rem); line-height: 1.15; }
.chapter h2 { font-size: clamp(1.5rem, 3.6vw, 2.7rem); line-height: 1.3; }
.finale .words { font-size: clamp(1.3rem, 3.5vw, 2.2rem); }

/* ---------- Drifting storm mist ---------- */
.mist {
  position: absolute;
  inset: -20% -50%;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
}
.mist.m1 {
  background: radial-gradient(ellipse 40% 30% at 30% 60%, rgba(120,110,90,.10), transparent 70%),
              radial-gradient(ellipse 50% 35% at 70% 30%, rgba(90,85,70,.08), transparent 70%);
  animation: drift-a 46s linear infinite alternate;
}
.mist.m2 {
  background: radial-gradient(ellipse 45% 30% at 60% 70%, rgba(110,100,80,.08), transparent 70%),
              radial-gradient(ellipse 38% 28% at 25% 25%, rgba(95,90,75,.07), transparent 70%);
  animation: drift-b 62s linear infinite alternate;
}
@keyframes drift-a { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes drift-b { from { transform: translateX(3%); } to { transform: translateX(-3%); } }
@media (prefers-reduced-motion: reduce) { .mist { animation: none; } }


/* Centred headings: the global h2 is a flex row with a leading ❖ and a
   trailing flex:1 rule, designed for LEFT-aligned section titles. Inside a
   centred block the rule eats the space to the right and pushes the text off
   centre, so these three sections drop both ornaments. */
.cup-taste h2,
.stats-head h2,
.play-call h2 {
  display: block;
  text-align: center;
}
.cup-taste h2::before, .cup-taste h2::after,
.stats-head h2::before, .stats-head h2::after,
.play-call h2::before, .play-call h2::after {
  content: none;
  display: none;
}

/* ---------- Homepage additions: Court faces, the games, the cup ---------- */

/* Act III — a look at the court */
.act-court {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.4rem;
  margin: 1.8rem 0 2rem;
}
.act-face { text-decoration: none; text-align: center; display: block; }
.act-face .char-medallion { width: 58px; height: 58px; margin: 0 auto .5rem; transition: transform .25s, border-color .25s; }
.act-face .char-medallion.monogram span { font-size: 1.1rem; }
.act-face:hover .char-medallion { transform: translateY(-3px); border-color: var(--gold-bright); }
.act-face-name {
  display: block;
  font-family: "Cinzel", serif;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  transition: color .2s;
}
.act-face:hover .act-face-name { color: var(--gold-bright); }
.act-court-more {
  align-self: center;
  font-family: "Cinzel", serif;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  line-height: 1.6;
  transition: color .2s;
}
.act-court-more:hover { color: var(--gold-bright); }

/* Act V — the games.
   .chapter-inner is a two-column grid (copy | relic) by default; this section
   has no relic and needs full width, so it opts out of the grid entirely. */
.play-call .chapter-inner {
  display: block;
  text-align: center;
}
.play-call .copy { max-width: 44rem; margin: 0 auto; }
.play-call .copy p { margin: 0 auto; }
.play-call .cta { margin-top: 0; }

/* Act V — the games */
.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.2rem;
}
.play-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
  padding: 1.5rem 1.1rem 1.4rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(28,24,18,.9), rgba(15,13,10,.9));
  border: 1px solid rgba(200,155,46,.2);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.play-card img {
  height: 74px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(200,155,46,.22));
}
.play-title {
  font-family: "Thrones", "Cinzel Decorative", "Cinzel", serif;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--gold);
}
.play-line { font-size: .86rem; color: var(--parchment-dim); line-height: 1.5; }
.play-card:hover, .play-card:focus-visible {
  border-color: rgba(200,155,46,.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,.5);
}

/* The Cup of the King, in miniature */
.cup-taste {
  text-align: center;
  padding: 4.5rem 1.25rem 5rem;
  border-top: 1px solid var(--iron-line);
}
.cup-taste-inner { max-width: 44rem; margin: 0 auto; }
.cup-taste h2 { margin-bottom: 1.6rem; }
/* .eyebrow is scoped to .hero and .cta to .chapter — restate both here */
.cup-taste .eyebrow {
  font-family: "Cinzel", serif;
  font-size: .75rem;
  letter-spacing: .4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cup-taste .cta {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: .9rem 1.6rem;
  transition: background .25s, color .25s, transform .25s;
}
.cup-taste .cta:hover { background: var(--gold); color: var(--storm-black); transform: translateY(-2px); }
.cup-taste .cta:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.horn-btn.compact img { height: clamp(96px, 13vw, 128px); }
.horn-btn.compact .horn-btn-label { font-size: .7rem; }
.cup-taste .cup-quote { margin: 1.6rem auto 1.8rem; max-width: 34rem; }

@media (max-width: 560px) {
  .act-court { gap: 1rem; justify-content: center; }
  .act-court-more { width: 100%; text-align: center; margin-top: .4rem; }
}

