/* ============================================================
   TOKENS — shared with the "Fight Desk" dossier series
============================================================= */
:root{
  --canvas: #12151c;
  --surface: #1b1f29;
  --surface-2: #232838;
  --paper: #ece6d8;
  --ink: #f5f3ee;
  --ink-dim: #cfd3dd;
  --muted: #8b93a6;
  --line: rgba(245,243,238,0.12);
  --line-strong: rgba(245,243,238,0.22);

  --amber: #e8a23d;
  --green: #4c9a6a;
  --crimson: #c1392b;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --container: 720px;
  --wide: 1080px;
}

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

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

body{
  margin:0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--amber); text-decoration-color: rgba(232,162,61,0.4); }
a:hover{ text-decoration-color: currentColor; }
::selection{ background: var(--amber); color: #14171f; }
:focus-visible{ outline: 2px solid var(--amber); outline-offset: 3px; }
h1,h2,h3{ font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }

/* ============================================================
   SCROLL REVEAL — generic fade/rise-in utility used across
   every section below the hero
============================================================= */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(2){ transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3){ transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4){ transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

/* ============================================================
   BUILD BANNER / MASTHEAD
============================================================= */
.build-banner{
  position: sticky; top:0; z-index: 200;
  background: var(--amber); color:#1a1400;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  text-align:center; padding: 6px 10px;
}
.masthead{
  display:flex; align-items:center; justify-content: center;
  padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.masthead__title{ font-family: var(--font-display); font-size: 15px; color: var(--ink); letter-spacing: 0.06em; }

/* ============================================================
   HERO
============================================================= */
.hero{
  position: relative; min-height: 92vh;
  display:flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 8vh clamp(20px, 6vw, 80px); overflow: hidden; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(18,21,28,0.55) 0%, rgba(18,21,28,0.72) 55%, rgba(18,21,28,0.92) 100%),
    url("Images/UFC%20Arena.jpg") center 30% / cover no-repeat;
}
.eyebrow{ font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 18px; }
.hero__headline{ font-size: clamp(48px, 9vw, 118px); line-height: 0.94; font-weight: 700; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero__deck{ max-width: 540px; font-size: 19px; color: var(--ink-dim); margin: 26px auto 0; }
.hero__byline{ margin-top: 34px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); display:flex; gap: 10px; align-items:center; justify-content: center; }
.hero__byline .dot{ color: var(--line-strong); }
.scroll-cue{
  position: absolute; left: clamp(20px, 6vw, 80px); bottom: 40px;
  display:flex; align-items:center; gap: 10px; background:none; border:none;
  color: var(--muted); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue svg{ color: var(--amber); }
@keyframes bob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(6px); } }

/* ============================================================
   PHOTO CREDIT — overlay
   Same muted font-mono treatment used for inline photo captions
   elsewhere in the series, pinned to a bottom corner of the hero
   for the background-image hero, which has no <img> to caption
   underneath. Sits opposite .scroll-cue so the two never collide.
============================================================= */
.hero__credit{
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  bottom: 20px;
  max-width: 46%;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  z-index: 2;
}

@media (max-width: 520px){
  .hero__credit{ bottom: 14px; max-width: 40%; }
}

/* ============================================================
   LEDE — also reused as the generic "chapter" prose column
============================================================= */
.lede{ padding: 14vh clamp(20px, 6vw, 80px); display:flex; justify-content:center; }
.lede__col{ width: 100%; max-width: var(--container); }
.lede__tag{
  font-family: var(--font-mono) !important; font-size: 11px !important;
  color: var(--crimson) !important; text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 14px !important;
}
.lede p{ font-size: 19px; color: var(--ink-dim); margin: 0 0 22px; }
.drop-cap{ float:left; font-family: var(--font-display); font-size: 76px; line-height: 0.8; color: var(--amber); padding-right: 10px; margin-top: 4px; }

/* h3 sub-headings inside a chapter column (e.g. "Why have ticket
   prices increased then?") pick up the global h1-h3 rule already;
   this just tightens spacing so they read as in-chapter dividers. */
.lede__col h3{ font-size: 20px; margin: 8px 0 18px; color: var(--ink); }

/* ============================================================
   STAT ROW — shared pattern with the Apex / Sporting Congestion
   pieces. .statRow__card p adds a third line (descriptor) on top
   of the original two-line b + span component.
============================================================= */
.statRow{ display:flex; gap: 16px; flex-wrap: wrap; margin: 47px 0; }
.statRow__card{
  flex: 1 1 160px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 4px; padding: 16px 18px; font-family: var(--font-mono);
}
.statRow__card b{ display:block; font-size: 26px; color: var(--amber); }
.statRow__card span{ display:block; font-size: 12px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.statRow__card p{ font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--ink-dim); margin: 8px 0 0; }

/* ============================================================
   CHART TOOLTIP (shared by every bar chart)
============================================================= */
.chartTooltip{
  position: fixed; z-index: 500; pointer-events: none;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-family: var(--font-mono); max-width: 230px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.chartTooltip.is-visible{ opacity: 1; transform: translateY(0); }
.chartTooltip__title{
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.chartTooltip__row{ display:flex; align-items: baseline; gap: 8px; margin: 3px 0; }
.chartTooltip__value{ font-weight: 600; color: var(--ink); font-size: 13px; }
.chartTooltip__label{ color: var(--ink-dim); font-size: 11px; }
.chartTooltip__note{ margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--amber); }

/* ============================================================
   SHARED: sticky stage header / legend / steps
============================================================= */
.stage__label{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--amber); text-transform: uppercase; margin: 0 0 10px; }
.stage__title{ font-size: clamp(24px,3vw,32px); margin-bottom: 6px; }
.stage__sub{ color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.chartFootnote{ text-align:center; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.legend{ display:flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.legend__item{ display:flex; align-items:center; gap:7px; }
.dot{ width:8px; height:8px; border-radius:50%; display:inline-block; }
.dot--green{ background: var(--green); }
.dot--crimson{ background: var(--crimson); }
.dot--amber{ background: var(--amber); }
.dot--muted{ background: var(--muted); }

/* ============================================================
   AXIS BAR CHART — real y-axis of values, ticks scaled to data
============================================================= */
.axisChart{
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  padding: 16px clamp(14px,2.4vw,24px) 12px;
}
.axisChart__wrap{ display:flex; }
.axisChart__ylabel{
  flex: 0 0 auto; writing-mode: vertical-rl; transform: rotate(180deg);
  display:flex; align-items:center; justify-content:center; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); padding-right: 14px;
}
.axisChart__body{ flex: 1 1 auto; min-width: 0; }
.axisChart__inner{
  display:flex; height: clamp(150px, 40vh, 420px);
}
.axisChart__yaxis{
  position: relative; flex: 0 0 40px; width: 40px; margin-right: 12px;
}
.axisChart__tick{
  position:absolute; left:0; right:0; transform: translateY(50%);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-align:right;
}
.axisChart__plot{
  position: relative; flex: 1 1 auto; min-width: 0;
  border-left: 1px solid var(--line-strong);
}
.axisChart__grid{ position:absolute; inset:0; }
.axisChart__gridline{ position:absolute; left:0; right:0; height:1px; background: var(--line); }
.axisChart__gridline--zero{ background: var(--line-strong); }

/* x-axis: rule above the year labels, flush against the bottom of
   the plot/bars so it meets the y-axis line at the origin corner */
.axisChart__xaxis{ display:flex; border-top: 1px solid var(--line-strong); }
.axisChart__yaxis-gap{ flex: 0 0 40px; width: 40px; margin-right: 12px; }
.axisChart__xlabels{ flex: 1 1 auto; min-width: 0; display:flex; gap: clamp(3px, 0.8vw, 12px); padding-top: 8px; }
.axisChart__xlabels .barChart__label{ flex: 1 1 0; min-width: 0; text-align: center; }
.axisChart__xlabel{
  margin: 10px 0 0 52px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}
.barChart__row{
  position: relative; z-index: 1;
  display:flex; align-items:flex-end; gap: clamp(3px, 0.8vw, 12px);
  height: 100%;
}
.barChart__col{
  flex: 1 1 0; display:flex; flex-direction: column; align-items:center;
  justify-content: flex-end; height: 100%; gap: 8px;
}
.barChart__bar{
  width: 100%; max-width: 40px; border-radius: 3px 3px 0 0;
  background: var(--amber); height: 0%; cursor: pointer;
  transition: height 0.7s cubic-bezier(.22,.9,.32,1), background 0.3s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.barChart__label{ font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
/* marks a partial-year (e.g. YTD 2026) x-axis label — sized/raised
   like a real asterisk footnote mark, not full text size */
.barChart__label sup{ font-size: 0.7em; line-height: 0; vertical-align: super; }

.barChart__bar.is-hovered{
  filter: brightness(1.2);
  box-shadow: 0 0 0 2px rgba(245,243,238,0.4);
}

/* Ticket-price cluster colours — the two eras (2007–2015 vs
   2016–2026) the scrollytelling groups the bars into. */
.barChart__bar--cluster1{ background: var(--muted); }
.barChart__bar--cluster2{ background: var(--crimson); }

/* Ticket-price mean lines — dashed line across each era's own bars
   at that era's average, with a small floating value label. */
.axisChart__meanLine{
  position: absolute; height: 0; border-top: 2px dashed var(--ink);
  z-index: 5; opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.axisChart__meanLine.is-visible{ opacity: 1; }
.axisChart__meanLabel{
  position: absolute; transform: translate(-50%, calc(-100% - 6px));
  font-family: var(--font-mono); font-size: 11px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 2px 7px; white-space: nowrap;
  z-index: 5; opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.axisChart__meanLabel.is-visible{ opacity: 1; }

/* ============================================================
   TICKET PRICE SCROLLYTELLING
============================================================= */
.ticketstory{
  position: relative; display:flex; gap: 40px;
  padding: 8vh clamp(20px, 6vw, 80px); max-width: 1400px; margin: 0 auto;
}
.ticketstory__sticky{ flex: 1 1 62%; min-width: 0; }
.ticketstory__stage{ position: sticky; top: 64px; padding: 40px 0 60px; }
.ticketstory__steps{ flex: 1 1 38%; max-width: 420px; padding-top: 40px; }

.step{ min-height: 78vh; display:flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: 0.35; transition: opacity 0.4s ease; }
.step.is-active{ opacity: 1; }
.step__num{ font-family: var(--font-mono); font-size: 12px; color: var(--amber); margin: 0 0 8px; }
.step__text{ font-size: 19px; line-height: 1.5; color: var(--ink-dim); margin:0; }
.step.is-active .step__text{ color: var(--ink); }

@media (max-width: 880px){
  .ticketstory{ flex-direction: column; }
  .ticketstory__stage{ position: static; padding-top: 20px; }
  .ticketstory__steps{ max-width: none; }
  .step{ min-height: 0; padding: 20px 0; opacity:1; }
}

/* ============================================================
   FAN QUOTES — .quoteCard / voxpop grid pattern (Apex Events)
============================================================= */
.voxpop__grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 22px 0 26px; }
.voxpop__grid--stack{ grid-template-columns: 1fr; }
.quoteCard{
  margin: 0 0 26px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 4px; padding: 22px 24px;
}
.voxpop__grid .quoteCard{ margin: 0; }
.quoteCard p{ font-size: 16px; color: var(--ink-dim); line-height: 1.55; margin: 0 0 14px; font-style: italic; }
.quoteCard footer{ font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.quoteCard footer strong{ color: var(--ink); font-style: normal; }

@media (max-width: 760px){
  .voxpop__grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   OUTRO — also reused as the chapter-heading style throughout
============================================================= */
.outro{ padding: 16vh clamp(20px,6vw,80px) 10vh; display:flex; justify-content:center; border-top: 1px solid var(--line); }
.outro__col{ max-width: var(--container); }
.outro__title{ font-size: clamp(28px,4vw,40px); margin-bottom: 20px; }
.outro p{ color: var(--ink-dim); font-size: 18px; }
.outro__sources{ font-family: var(--font-mono); font-size: 13px !important; color: var(--muted) !important; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 30px !important; }

.footer{ text-align:center; padding: 30px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; border-top: 1px solid var(--line); }

/* ============================================================
   INLINE LINK TRIGGER — e.g. the "here" that opens the
   methodology breakout box
============================================================= */
.inline-link{
  background:none; border:none; padding:0; margin:0; cursor:pointer;
  font: inherit; color: var(--amber); text-decoration: underline;
  text-decoration-color: rgba(232,162,61,0.4); text-underline-offset: 2px;
}
.inline-link:hover, .inline-link:focus-visible{ text-decoration-color: currentColor; }

/* ============================================================
   MODAL — breakout box (methodology, etc.)
============================================================= */
.modalOverlay{
  position: fixed; inset: 0; z-index: 1000;
  display:flex; align-items:center; justify-content:center;
  padding: 24px;
  background: rgba(10,12,17,0.72);
  opacity: 0; transition: opacity 0.2s ease;
}
.modalOverlay[hidden]{ display:none; }
.modalOverlay.is-visible{ opacity: 1; }
.modalBox{
  position: relative; width: 100%; max-width: 480px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber); border-radius: 6px;
  padding: 32px 30px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(10px); transition: transform 0.2s ease;
}
.modalOverlay.is-visible .modalBox{ transform: translateY(0); }
.modalBox__close{
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; display:flex; align-items:center; justify-content:center;
  background:none; border:none; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; border-radius: 4px;
}
.modalBox__close:hover, .modalBox__close:focus-visible{ color: var(--ink); background: var(--surface); }
.modalBox__eyebrow{
  font-family: var(--font-mono) !important; font-size: 11px !important;
  color: var(--crimson) !important; text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 10px !important;
}
.modalBox__title{ font-size: 21px; margin: 0 0 14px; padding-right: 20px; }
.modalBox__text{ color: var(--ink-dim); font-size: 15px; line-height: 1.6; margin: 0; }
.modalBox__text p{ margin: 0 0 14px; }
.modalBox__text ul{ margin: 0 0 14px; padding-left: 20px; }
.modalBox__text li{ margin: 0 0 4px; }
.modalBox__text p:last-child, .modalBox__text li:last-child{ margin-bottom: 0; }

@media (max-width: 520px){
  .modalBox{ padding: 26px 22px 24px; }
}
