/* ===================================================================
 * TikTok Ireland — Exec Summary (multiscroll)
 * Sits on top of colors_and_type.css
 * =================================================================== */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--tt-black);
  color: var(--fg-on-dark);
  font-family: var(--font-body);
  overscroll-behavior: none;
  overflow: hidden;
}

/* ---------- Multiscroll stage ---------- */
.ms {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--tt-black);
}
.ms__pane {
  position: absolute;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transform: translateY(100vh);
  transition: transform 1050ms cubic-bezier(.78,.02,.22,1);
  will-change: transform;
  display: flex;
}
.ms__pane--left  { left: 0;   width: 34vw; }
.ms__pane--right { left: 34vw; width: 66vw; }
@media (max-width: 760px) {
  /* superseded by the @media (max-width: 900px) block below */
}

/* ---------- Scene split (34 / 66) ---------- */
.pane-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6vh 4vw;
}
.pane-inner--center { justify-content: center; }
.pane-inner--end    { justify-content: flex-end; }
.pane-inner--padless { padding: 0; }

/* Dark scrim for left panes (so white text reads over video later) */
.left-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.ms__pane--left > .pane-inner,
.ms__pane--left > .cover-left {
  position: relative;
  z-index: 2;
}

/* ---------- Left scene: title treatment ---------- */
.scene-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 4.6vw, 80px);
  line-height: .96;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  color: var(--tt-white);
}
.scene-title .dot { color: var(--tt-cyan); }
/* On video backgrounds, all text should be white — keep the dot accent only */
.scene-title--ink { color: var(--tt-white); }
.scene-title--ink .dot { color: var(--tt-cyan); }

.scene-eyebrow {
  font: 600 11px var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: 0 0 22px;
}
.scene-eyebrow--ink { color: rgba(255,255,255,.7); }
.scene-num {
  position: absolute;
  top: 4vh; right: 2vw;
  font: 700 12px var(--font-mono);
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}
.scene-num--ink { color: rgba(255,255,255,.55); }

/* ---------- Left backgrounds ---------- */
.bg-black { background: var(--tt-black); }
.bg-magenta { background: var(--tt-magenta); }
.bg-cyan { background: var(--tt-cyan); color: var(--tt-ink-900); }
.bg-paper { background: var(--tt-paper-100); color: var(--tt-ink-900); }
.bg-ink { background: var(--tt-ink-700); }

/* Cyan/magenta blurs as decorative bg layer */
.glow-blur {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.glow-blur::before, .glow-blur::after {
  content: ""; position: absolute;
  border-radius: 50%;
  filter: blur(180px);
  opacity: .55;
}
.glow-blur--magenta::before { background: var(--tt-magenta); top: -25%; left: -20%; width: 70%; height: 80%; }
.glow-blur--magenta::after  { background: var(--tt-magenta); bottom: -25%; right: -10%; width: 50%; height: 60%; opacity: .35; }
.glow-blur--cyan::before { background: var(--tt-cyan); top: -20%; right: -20%; width: 70%; height: 80%; }
.glow-blur--cyan::after  { background: var(--tt-cyan); bottom: -25%; left: -10%; width: 50%; height: 60%; opacity: .35; }
.glow-blur--split::before { background: var(--tt-magenta); top: -20%; left: -25%; width: 70%; height: 80%; opacity: .55; }
.glow-blur--split::after  { background: var(--tt-cyan); bottom: -25%; right: -25%; width: 70%; height: 80%; opacity: .55; }

/* Chromatic-aberration giant T glyph */
.chroma-glyph {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
  line-height: .8;
  font-size: clamp(280px, 38vw, 600px);
}
.chroma-glyph::before, .chroma-glyph::after {
  content: attr(data-char);
  position: absolute; inset: 0;
}
.chroma-glyph::before { color: var(--tt-cyan); transform: translate(-7px, 5px); mix-blend-mode: screen; }
.chroma-glyph::after  { color: var(--tt-magenta); transform: translate(7px, -5px); mix-blend-mode: screen; }
.chroma-glyph__base { color: var(--tt-white); position: relative; z-index: 2; }

/* ---------- Right pane: content (one screen each) ---------- */
.stat-inner {
  width: 100%; height: 100%;
  padding: max(9vh, 88px) 5vw 8vh 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* "Part 1/2" indicator for split sections */
.subscene-idx {
  position: absolute;
  top: 5vh; right: 2.5vw;
  z-index: 4;
  display: flex; gap: 8px; align-items: center;
  font: 600 11px var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.subscene-idx__pip {
  width: 16px; height: 2px; background: rgba(255,255,255,.25); border-radius: 100rem;
}
.subscene-idx__pip.is-active { background: var(--tt-cyan); }
.right-paper .subscene-idx { color: rgba(0,0,0,.55); }
.right-paper .subscene-idx__pip { background: rgba(0,0,0,.25); }
.right-paper .subscene-idx__pip.is-active { background: var(--tt-magenta); }
.stat-eyebrow {
  font: 600 11px var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tt-cyan);
  margin: 0 0 18px;
}
.stat-lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.42;
  color: rgba(255,255,255,.92);
  max-width: 56ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.stat-lede strong { color: var(--tt-white); font-weight: 700; }
.stat-lede--ink { color: rgba(0,0,0,.85); }
.stat-lede--ink strong { color: var(--tt-ink-900); }

/* The card */
.statcard-row {
  display: grid;
  gap: 26px;
}
.statcard-row--1 { grid-template-columns: 1fr; }
.statcard-row--2 { grid-template-columns: 1fr 1fr; }
.statcard-row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
  .statcard-row--3 { grid-template-columns: 1fr 1fr; }
}

.statcard {
  position: relative;
  padding: 30px 28px;
  border-radius: 0 25px 0 25px;
  border: 2px dotted rgba(255,255,255,.18);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
.statcard--cyan   { border-color: var(--tt-cyan);   box-shadow: 0 0 32px 1px rgba(37,244,238,.22); }
.statcard--magenta{ border-color: var(--tt-magenta);box-shadow: 0 0 32px 1px rgba(254,44,85,.22); }
.statcard--halo   { border-color: var(--tt-halo); }
.statcard--filled-magenta {
  background: var(--tt-magenta); color: var(--tt-white);
  border: none; border-radius: 0 25px 0 25px;
}
.statcard--filled-cyan {
  background: var(--tt-cyan); color: var(--tt-ink-900);
  border: none; border-radius: 0 25px 0 25px;
}
.statcard--ink {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.18);
}
.statcard__caption {
  font: 400 13.5px/1.45 var(--font-display);
  color: rgba(255,255,255,.78);
  margin: 0 0 8px;
  max-width: 32ch;
}
.statcard--filled-magenta .statcard__caption,
.statcard--filled-cyan .statcard__caption { color: inherit; opacity: .9; }
.statcard--ink .statcard__caption { color: rgba(0,0,0,.72); }
.statcard__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.2vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--tt-white);
  font-feature-settings: "tnum" 1, "lnum" 1;
  margin: 6px 0 12px;
  display: block;
}
.statcard--cyan .statcard__num    { color: var(--tt-cyan); }
.statcard--magenta .statcard__num { color: var(--tt-magenta); }
.statcard--halo .statcard__num    { color: var(--tt-halo); }
.statcard--filled-magenta .statcard__num,
.statcard--filled-cyan .statcard__num { color: inherit; }
.statcard--ink .statcard__num { color: var(--tt-ink-900); }
.statcard__sub {
  font: 400 13.5px/1.45 var(--font-display);
  color: rgba(255,255,255,.72);
  margin: 0;
  max-width: 36ch;
}
.statcard--filled-magenta .statcard__sub,
.statcard--filled-cyan .statcard__sub { color: inherit; opacity: .92; }
.statcard--ink .statcard__sub { color: rgba(0,0,0,.7); }

/* Right pane themes */
.right-paper { background: var(--tt-paper-100); color: var(--tt-ink-900); }
.right-paper .stat-eyebrow { color: var(--tt-magenta); }
.right-paper .statcard__caption { color: rgba(0,0,0,.65); }
.right-paper .statcard__sub { color: rgba(0,0,0,.65); }
.right-paper .statcard { border-color: rgba(0,0,0,.18); }
.right-paper .statcard--cyan { border-color: var(--tt-cyan); }
.right-paper .statcard--magenta { border-color: var(--tt-magenta); }
.right-paper .statcard__num { color: var(--tt-ink-900); }
.right-paper .statcard--cyan .statcard__num { color: var(--tt-cyan); }
.right-paper .statcard--magenta .statcard__num { color: var(--tt-magenta); }

.right-ink { background: var(--tt-black); color: var(--tt-white); }

/* Inline percentage block (the 91%/94% magenta card pattern) */
.kv-row {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.kv-row:first-of-type { border-top: none; }
.right-paper .kv-row { border-top-color: rgba(0,0,0,.10); }
.statcard--filled-magenta .kv-row,
.statcard--filled-cyan .kv-row { border-top-color: rgba(255,255,255,.28); }
.statcard--filled-cyan .kv-row { border-top-color: rgba(0,0,0,.18); }
.kv-row__key {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 3vw, 52px);
  letter-spacing: -.03em;
  line-height: 1;
  flex: 0 0 auto;
  min-width: 4.5ch;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.kv-row__txt {
  font: 400 15px/1.4 var(--font-display);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Cover Ireland halftone ---------- */
.cover-map {
  width: 100%; height: 100%;
  position: relative;
  background: var(--tt-magenta);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cover-map svg, .cover-map__img { width: 78%; height: 88%; object-fit: contain; transform: rotate(9deg); transform-origin: center; }

.cover-left {
  width: 100%; height: 100%;
  background: var(--tt-black);
  padding: 6vh 3vw 6vh 4vw;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.cover-left__title-group {
  display: flex; flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.cover-left__logo { width: 200px; height: auto; }
.cover-left__title {
  font: 800 clamp(36px, 3.6vw, 60px)/1.02 var(--font-display);
  letter-spacing: -.025em;
  color: var(--tt-white);
  margin: 0;
  text-wrap: balance;
}
.cover-left__subtitle {
  font: 500 clamp(15px, 1.3vw, 20px)/1.45 var(--font-display);
  color: rgba(255,255,255,.82);
  max-width: 34ch;
  margin: 20px 0 0;
  text-wrap: balance;
}
.cover-left__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 700 14px var(--font-display);
  letter-spacing: .02em;
}

/* Foreword sign-off moved to the top of the foreword */
.foreword-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
}
.foreword-head__avatar {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 100rem;
  border: 2px solid var(--tt-magenta);
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.foreword-head__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 100rem; }
.foreword-head__avatar svg { width: 34px; height: 34px; color: var(--tt-magenta); }
.right-paper .attribution__name { color: var(--tt-ink-900); font: 800 18px var(--font-display); margin: 0; }
.right-paper .attribution__role { color: rgba(0,0,0,.6); font: 600 13px var(--font-display); margin: 2px 0 0; letter-spacing: .02em; }
.foreword-lead {
  font: 700 clamp(19px, 1.7vw, 26px)/1.32 var(--font-display);
  letter-spacing: -.01em;
  color: var(--tt-ink-900);
  margin: 0 0 26px;
  text-wrap: pretty;
}
.foreword-lead strong { color: var(--tt-ink-900); }
.cover-left__meta .author { color: var(--tt-magenta); }
.cover-left__meta .date   { color: var(--tt-cyan); }

/* ---------- Nav (right-edge dots) ---------- */
.ms-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex; flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}
.ms-nav__dot {
  width: 10px; height: 10px;
  border-radius: 100rem;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
}
.ms-nav__dot:hover { background: rgba(255,255,255,.4); }
.ms-nav__dot.is-active {
  background: var(--tt-cyan);
  border-color: var(--tt-cyan);
  transform: scale(1.3);
  box-shadow: 0 0 14px rgba(37,244,238,.85);
}
.ms-nav--on-light .ms-nav__dot { border-color: rgba(0,0,0,.5); }
.ms-nav--on-light .ms-nav__dot.is-active { background: var(--tt-magenta); border-color: var(--tt-magenta); box-shadow: 0 0 14px rgba(254,44,85,.6); }

/* ---------- Topbar ---------- */
.ms-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 55;
  display: flex; align-items: center;
  gap: 18px;
  padding: 18px 24px;
  pointer-events: none;
  background: transparent;
}
.ms-topbar__brand {
  display: flex; align-items: center; gap: 10px;
  font: 700 12px var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: auto;
}
.ms-topbar__brand img { height: 11px; width: auto; }
.ms-topbar__sep { color: var(--tt-cyan); }
.ms-topbar__bar {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.25);
  position: relative;
  margin: 0 12px;
}
.ms-topbar__bar::after {
  content: "";
  position: absolute; left: 0; top: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--tt-magenta), var(--tt-cyan));
  width: var(--progress, 0%);
  transition: width 420ms cubic-bezier(.5,0,.2,1);
}
.ms-topbar__idx {
  font: 700 12px var(--font-mono);
  color: #fff;
  letter-spacing: .08em;
  pointer-events: auto;
}

/* ---------- Burger button (sits in topbar, right of the index) ---- */
.ms-burger {
  margin-left: auto;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100rem;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: background 160ms ease, border-color 160ms ease;
}
.ms-burger:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.4); }
.ms-burger svg { width: 18px; height: 18px; }

/* ---------- Side menu drawer + scrim --------------------------- */
.ms-menu__scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.ms-menu__scrim[data-open] {
  opacity: 1;
  pointer-events: auto;
}
.ms-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 84vw);
  background: #0a0a0c;
  color: #fff;
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 20px;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
}
.ms-menu[data-open] { transform: translateX(0); }
.ms-menu__head {
  display: flex; align-items: center; justify-content: space-between;
}
.ms-menu__label {
  font: 600 11px var(--font-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.ms-menu__close {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100rem;
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ms-menu__close:hover { border-color: var(--tt-cyan); }
.ms-menu__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.ms-menu__list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: opacity 160ms ease;
}
.ms-menu__list a:hover { opacity: .7; }
.ms-menu__list a[aria-current="page"] .ttl { color: var(--tt-cyan); }
.ms-menu__list .num {
  font: 700 11px var(--font-mono);
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  text-align: right;
}
.ms-menu__list .ttl {
  font: 600 17px/1.25 var(--font-display);
  letter-spacing: -.005em;
}
.ms-menu__footer {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  font: 500 11px var(--font-display);
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
}
.ms-menu__footer img { height: 14px; }

/* ---------- Footer hint ---------- */
.scroll-hint {
  position: fixed;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 30;
  font: 600 10px var(--font-display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
  mix-blend-mode: difference;
}
.scroll-hint__arr {
  width: 18px; height: 18px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  animation: hintBounce 1.6s ease-in-out infinite;
}
@keyframes hintBounce {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); opacity: .4; }
  50%      { transform: rotate(45deg) translate(2px, 2px); opacity: .9; }
}

/* ---------- Foreword body styling ---------- */
.foreword {
  max-width: 58ch;
  font: 400 16px/1.6 var(--font-display);
  color: rgba(255,255,255,.84);
}
.foreword p { margin: 0 0 16px; text-wrap: pretty; }
.foreword strong { color: var(--tt-white); font-weight: 700; }
.foreword .pull {
  font-size: 19px; line-height: 1.45;
  color: var(--tt-cyan);
  font-weight: 600;
  margin: 6px 0 22px;
  border-left: 3px solid var(--tt-cyan);
  padding-left: 16px;
}
.right-paper .foreword { color: rgba(0,0,0,.82); }
.right-paper .foreword strong { color: var(--tt-ink-900); }
.right-paper .foreword .pull { color: var(--tt-magenta); border-left-color: var(--tt-magenta); }

/* ---------- Closing CTA ---------- */
.cta-pill {
  position: absolute;
  top: 50%; left: -22vw;
  transform: translateY(-50%);
  width: 60vw; height: 56vh;
  border: 19px solid var(--tt-cyan);
  border-radius: 100rem 0 0 100rem;
  box-shadow: 0 0 32px 1px rgba(37,244,238,.85);
  pointer-events: none;
}
.cta-pill--magenta {
  border-color: var(--tt-magenta);
  box-shadow: 0 0 32px 1px rgba(254,44,85,.85);
}
.cta-body {
  position: relative; z-index: 2;
  max-width: 46ch;
  margin: auto auto auto 18%;
}
.cta-body h3 {
  font: 800 clamp(40px, 3.6vw, 64px)/1 var(--font-display);
  letter-spacing: -.025em;
  margin: 0 0 18px;
}
.cta-body p {
  font: 400 17px/1.55 var(--font-display);
  color: rgba(255,255,255,.84);
  margin: 0 0 14px;
}
.cta-body .ways {
  display: grid; gap: 16px; margin: 24px 0;
}
.cta-way {
  display: flex; gap: 16px; align-items: baseline;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 14px;
}
.cta-way__n {
  font: 800 22px var(--font-display);
  color: var(--tt-cyan); width: 32px; flex: 0 0 auto;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.cta-way__t {
  font: 600 16px/1.4 var(--font-display);
}
.cta-way__t span { display: block; font-weight: 400; color: rgba(255,255,255,.72); font-size: 14px; margin-top: 2px; }

/* ---------- Hero stat ribbon (scene 3 layout) ---------- */
.hero-ratio {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 12px 0 28px;
}
.hero-ratio__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(96px, 11vw, 200px);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--tt-cyan);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.hero-ratio__txt {
  font: 600 18px/1.35 var(--font-display);
  color: rgba(255,255,255,.85);
  max-width: 32ch;
}

/* ---------- Decorative shapes (left panes) ---------- */
.deco-pill {
  position: absolute; right: -8vw; top: 20vh;
  width: 22vw; height: 22vw;
  border: 12px solid var(--tt-cyan);
  border-radius: 50%;
  box-shadow: 0 0 32px 1px rgba(37,244,238,.7);
  pointer-events: none;
}
.deco-pill--mag {
  border-color: var(--tt-magenta);
  box-shadow: 0 0 32px 1px rgba(254,44,85,.7);
}

.deco-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.22) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.deco-dots--dense {
  background-image: radial-gradient(circle, rgba(186,246,240,.5) 2px, transparent 2.4px);
  background-size: 14px 14px;
}
.deco-dots--ink {
  background-image: radial-gradient(circle, rgba(0,0,0,.18) 1.2px, transparent 1.4px);
}

/* ---------- 27x scene specifics ---------- */
.scene-27 .ratio-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.bar-row {
  display: grid;
  grid-template-columns: 18ch 1fr 8ch;
  gap: 18px;
  align-items: center;
  font: 600 14px var(--font-display);
}
.bar-row__label { color: rgba(0,0,0,.78); }
.bar-row__track { height: 14px; background: rgba(0,0,0,.08); border-radius: 100rem; overflow: hidden; position: relative; }
.bar-row__fill  { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 100rem; transition: width 1500ms cubic-bezier(.2,.7,.2,1); }
.bar-row__fill--invest { background: var(--tt-cyan); width: 4%; }
.bar-row__fill--total  { background: var(--tt-magenta); width: 100%; }
.bar-row__val { text-align: right; font-weight: 800; font-size: 18px; }

/* ---------- Large closing statement ---------- */
.growth-closer {
  font: 800 clamp(15px, 1.35vw, 24px)/1.15 var(--font-display);
  letter-spacing: -.02em;
  color: var(--tt-white);
  margin: 28px 0 0;
  max-width: none;
  white-space: nowrap;
}
.right-paper .growth-closer { color: var(--tt-ink-900); }
@media (max-width: 900px) {
  .growth-closer { white-space: normal; font-size: clamp(22px, 6vw, 30px); }
}

/* ---------- Key-stats tiled infographic ---------- */
.keystat-board {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 6vh 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.keystat-board__title {
  font: 800 clamp(26px, 2.6vw, 44px)/1 var(--font-display);
  letter-spacing: -.02em;
  color: var(--tt-white);
  margin: 0;
}
.keystat-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.keystat-grid--board {
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  flex: 1 1 auto;
  min-height: 0;
}
.keystat {
  --ks: var(--tt-cyan);
  --ks-glow: rgba(37,244,238,.30);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: clamp(16px, 1.6vw, 26px) clamp(16px, 1.5vw, 24px);
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(5px, .7vh, 10px);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.keystat__figure + .keystat__title { margin-top: -2px; }
.keystat__title { margin-bottom: clamp(2px, .5vh, 6px); }
.keystat--cyan    { --ks: var(--tt-cyan);    --ks-glow: rgba(37,244,238,.30); }
.keystat--magenta { --ks: var(--tt-magenta); --ks-glow: rgba(254,44,85,.28); }
.keystat--halo    { --ks: var(--tt-halo);    --ks-glow: rgba(237,187,232,.32); }
.keystat__icon {
  width: clamp(28px, 2.6vw, 40px);
  height: clamp(28px, 2.6vw, 40px);
  color: var(--ks);
  stroke: var(--ks);
  stroke-width: 1.6;
  flex-shrink: 0;
  opacity: .9;
}
.keystat__figure {
  font: 800 clamp(34px, 3.6vw, 62px)/.95 var(--font-display);
  letter-spacing: -.03em;
  color: var(--ks);
  margin: 0;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.keystat__title {
  font: 700 clamp(13px, 1.05vw, 18px)/1.15 var(--font-display);
  letter-spacing: -.01em;
  color: #fff;
  margin: 0;
}
.keystat__txt {
  font: 500 clamp(11px, .8vw, 14px)/1.4 var(--font-display);
  color: rgba(255,255,255,.72);
  margin: 0;
  text-wrap: pretty;
}
.keystat:hover {
  border-color: var(--ks);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 26px var(--ks-glow), inset 0 0 20px rgba(255,255,255,.03);
  transform: translateY(-4px);
}
@media (max-width: 1200px) {
  .keystat-grid--board { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; flex: none; }
  .keystat-board { justify-content: flex-start; height: auto; }
}
@media (max-width: 900px) {
  .keystat-grid { grid-template-columns: 1fr; }
  .keystat-grid--board { grid-template-columns: 1fr 1fr; }
  .keystat-board { padding: 6vh 6vw; }
  .keystat { overflow: visible; }
}

/* ---------- Tiny inline icons (lucide-ish) ---------- */
.glyph {
  width: 28px; height: 28px;
  stroke: var(--tt-cyan); fill: none; stroke-width: 1.75;
  display: inline-block; vertical-align: middle;
}
.glyph--ink { stroke: var(--tt-ink-900); }
.glyph--magenta { stroke: var(--tt-magenta); }

/* ---------- Skip animation utility ---------- */
.no-transition .ms__pane { transition: none !important; }

/* ---------- Full-width pane override (final CTA slide) ---------- */
.ms__pane--full {
  left: 0 !important;
  width: 100vw !important;
  z-index: 3;
}

/* ---------- Final CTA — single centred button ---------- */
.cta-final {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 8vh 5vw;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 28px 56px;
  border: 4px solid var(--tt-cyan);
  border-radius: 100rem;
  background: transparent;
  color: var(--tt-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 42px);
  letter-spacing: -.02em;
  text-decoration: none;
  box-shadow: 0 0 40px rgba(37,244,238,.55), inset 0 0 24px rgba(37,244,238,.10);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.cta-btn:hover {
  background: var(--tt-cyan);
  color: var(--tt-ink-900);
  box-shadow: 0 0 80px rgba(37,244,238,.85);
}
.cta-btn:hover .cta-btn__arr { transform: translateX(8px); }
.cta-btn:active { transform: translateY(1px); }
.cta-btn__arr {
  width: 1.1em; height: 1.1em;
  stroke: currentColor;
  transition: transform 220ms ease;
}
.cta-meta {
  text-align: center;
  font: 500 13px var(--font-display);
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
}
.cta-meta__line { margin: 0; }
.cta-meta__line strong {
  color: var(--tt-white);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 15px;
}

@media print {
  .ms__pane { position: relative !important; transform: none !important; height: auto !important; width: 100% !important; left: 0 !important; }
  html, body { overflow: visible; height: auto; }
}

/* ---------- Video tint overlays (sit on top of video, under scrim) ---------- */
.video-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .72;
}
.video-tint::before,
.video-tint::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(180px);
}
.video-tint--magenta::before { background: var(--tt-magenta); top: -25%; left: -20%; width: 70%; height: 80%; opacity: .9; }
.video-tint--magenta::after  { background: var(--tt-magenta); bottom: -25%; right: -10%; width: 55%; height: 60%; opacity: .55; }
.video-tint--cyan::before    { background: var(--tt-cyan);    top: -20%; right: -20%; width: 70%; height: 80%; opacity: .9; }
.video-tint--cyan::after     { background: var(--tt-cyan);    bottom: -25%; left: -10%; width: 55%; height: 60%; opacity: .55; }
.video-tint--split::before   { background: var(--tt-magenta); top: -20%; left: -25%;  width: 70%; height: 80%; opacity: .85; }
.video-tint--split::after    { background: var(--tt-cyan);    bottom: -25%; right: -25%; width: 70%; height: 80%; opacity: .85; }
.video-tint--halo::before    { background: var(--tt-halo);    top: -25%; right: -10%; width: 70%; height: 80%; opacity: .85; }
.video-tint--halo::after     { background: var(--tt-cyan);    bottom: -20%; left: -15%; width: 50%; height: 55%; opacity: .55; }

/* Bring the scrim above the tint so the dark vignette still helps text legibility */
.left-scrim { z-index: 2; }

/* ---------- Background video on left panes ---------- */
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Diagonal-stripe fallback if no video is dropped in */
  background:
    repeating-linear-gradient(45deg, #141414 0 14px, #1c1c1c 14px 28px);
}
.video-bg__tag {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100rem;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  font: 600 10px var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  pointer-events: none;
}
.video-bg__tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tt-magenta);
  box-shadow: 0 0 6px rgba(254,44,85,.85);
}
/* When the video has loaded data, hide the placeholder tag */
.ms__pane--left:has(video.video-bg.is-playing) .video-bg__tag { display: none; }

/* ---------- Lottie stat container ---------- */
.stat-lottie {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-width: 85ch;
  border-radius: 0 25px 0 25px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  border: 2px dotted var(--tt-cyan);
  box-shadow: 0 0 22px rgba(37,244,238,.20);
}
.stat-lottie > svg, .stat-lottie > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Lottie inside a titled card — strips its own chrome */
.lottie-card {
  border: 2px dotted var(--tt-cyan);
  border-radius: 0 25px 0 25px;
  background: rgba(37,244,238,.04);
  box-shadow: 0 0 22px rgba(37,244,238,.20);
  overflow: hidden;
  max-width: 85ch;
}
.lottie-card--magenta { border-color: var(--tt-magenta); background: rgba(254,44,85,.04); box-shadow: 0 0 22px rgba(254,44,85,.22); }
.lottie-card--halo    { border-color: var(--tt-halo);    background: rgba(237,187,232,.06); box-shadow: 0 0 22px rgba(237,187,232,.28); }
.lottie-card__title {
  font: 700 clamp(20px, 1.6vw, 26px)/1.25 var(--font-display);
  letter-spacing: -.015em;
  color: var(--tt-white);
  margin: 0;
  padding: 22px 24px;
  text-wrap: pretty;
}
.lottie-card__title strong {
  color: var(--tt-cyan);
  font-weight: 800;
  letter-spacing: -.02em;
}
.lottie-card--magenta .lottie-card__title strong { color: var(--tt-magenta); }
.lottie-card--halo    .lottie-card__title strong { color: var(--tt-halo); }
.right-paper .lottie-card__title { color: rgba(0,0,0,.86); }
.stat-lottie--naked {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
/* Two-part Lottie: text layer stacked vertically above the looping layer. */
.stat-lottie--stack {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-lottie--stack .stat-lottie--layer {
  position: relative; inset: auto;
  width: 100%; height: auto; max-width: none;
  border: 0 !important; background: transparent !important;
  box-shadow: none !important; border-radius: 0 !important; margin: 0 !important;
}
.stat-lottie--layer-text { aspect-ratio: 2000 / 400; }
.stat-lottie--layer-loop { aspect-ratio: 2000 / 600; }

/* ---------- Attribution / signoff block ---------- */
.attribution {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,.12);
  max-width: 85ch;
  text-align: right;
}
.attribution__avatar {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--tt-paper-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-paper-500);
  overflow: hidden;
}
.attribution__avatar svg { width: 70%; height: 70%; }
.attribution__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.attribution__body { display: flex; flex-direction: column; gap: 2px; }
.attribution__name {
  font: 700 17px var(--font-display);
  letter-spacing: -.01em;
  margin: 0;
  color: var(--tt-ink-900);
}
.attribution__role {
  font: 500 13px var(--font-display);
  letter-spacing: .02em;
  margin: 0;
  color: rgba(0,0,0,.6);
}
/* Dark variant */
.right-ink .attribution { border-top-color: rgba(255,255,255,.14); }
.right-ink .attribution__avatar { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.right-ink .attribution__name { color: var(--tt-white); }
.right-ink .attribution__role { color: rgba(255,255,255,.65); }

/* Glow overlays on light/paper backgrounds — softer than on black */
.right-paper .glow-blur::before,
.right-paper .glow-blur::after {
  opacity: .07;
  filter: blur(320px);
}
.right-paper > .stat-inner { position: relative; z-index: 1; }

/* ===================================================================
 * STAT COMPONENT MARGINS — keep vertical rhythm consistent across
 * every block type. Top: 24px, bottom: 32px.
 * =================================================================== */
.pullstat,
.pullstat-row,
.prose-card,
.stat-bigcentered,
.stat-glyph,
.figure-num,
.stat-lottie,
.pull-quote {
  margin-top: 24px;
  margin-bottom: 32px;
}
/* Stats stacked tightly inside a row don't double-margin */
.pullstat-row > .pullstat,
.pullstat-row > .stat-lottie,
.pullstat-row > .figure-num { margin: 0; }
/* Lottie may be flow-level; ensure first/last-child spacing collapses naturally */
.stat-inner > *:first-child { margin-top: 0; }

/* ===================================================================
 * STAT COMPONENTS — varied styles, designed to be sprinkled into prose
 * =================================================================== */

/* --- Solid-fill prose card with inline big stats (signature TikTok shape) */
.prose-card {
  position: relative;
  margin: 22px 0 30px;
  padding: 28px 32px;
  border-radius: 0 25px 0 25px;
  background: var(--tt-magenta);
  color: var(--tt-white);
  box-shadow: 0 0 40px rgba(254,44,85,.30);
  max-width: 85ch;
}
.prose-card--cyan  { background: var(--tt-cyan); color: var(--tt-ink-900); box-shadow: 0 0 40px rgba(37,244,238,.35); }
.prose-card--dark  { background: var(--tt-ink-700); color: var(--tt-white); box-shadow: none; }
.prose-card--halo  { background: var(--tt-halo); color: var(--tt-ink-900); box-shadow: 0 0 40px rgba(237,187,232,.45); }
.prose-card p {
  font: 400 16px/1.55 var(--font-display);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.prose-card p:last-child { margin-bottom: 0; }
.prose-card__stat {
  display: flex;
  gap: 24px;
  align-items: baseline;
  margin: 22px 0;
}
.prose-card__stat:last-child { margin-bottom: 0; }
.prose-card__stat-num {
  font: 800 clamp(42px, 4vw, 64px) var(--font-display);
  letter-spacing: -.03em;
  line-height: .9;
  flex: 0 0 auto;
  white-space: nowrap;
  font-feature-settings: "tnum" 1, "lnum" 1;
  min-width: 4ch;
}
.prose-card__stat-num small { font-size: .55em; opacity: .85; }
.prose-card__stat-txt {
  font: 500 15.5px/1.4 var(--font-display);
  margin: 0;
}

/* --- Big-centered dotted-outline stat (number above text) */
.stat-bigcentered {
  padding: 38px 28px;
  border: 2px dotted var(--tt-cyan);
  border-radius: 0 25px 0 25px;
  background: rgba(37,244,238,.04);
  box-shadow: 0 0 22px rgba(37,244,238,.20);
  text-align: center;
  max-width: 85ch;
  margin: 18px 0 28px;
}
.stat-bigcentered--magenta { border-color: var(--tt-magenta); background: rgba(254,44,85,.05); box-shadow: 0 0 22px rgba(254,44,85,.22); }
.stat-bigcentered--halo    { border-color: var(--tt-halo);    background: rgba(237,187,232,.07); box-shadow: 0 0 22px rgba(237,187,232,.28); }
.stat-bigcentered__num {
  font: 800 clamp(56px, 5.8vw, 96px) var(--font-display);
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--tt-cyan);
  margin: 0 0 14px;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.stat-bigcentered--magenta .stat-bigcentered__num { color: var(--tt-magenta); }
.stat-bigcentered--halo    .stat-bigcentered__num { color: var(--tt-halo); }
.stat-bigcentered__num small { font-size: .45em; opacity: .85; }
.stat-bigcentered__txt {
  font: 500 15px/1.42 var(--font-display);
  color: rgba(255,255,255,.85);
  margin: 0 auto;
  max-width: 42ch;
}
.right-paper .stat-bigcentered__txt { color: rgba(0,0,0,.78); }

/* --- Standalone glyph + prose (the cyan broadcast-icon pattern) */
.stat-glyph {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 20px 0 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--tt-cyan);
  background: rgba(37,244,238,.04);
  max-width: 85ch;
}
.stat-glyph--magenta { border-left-color: var(--tt-magenta); background: rgba(254,44,85,.04); }
.stat-glyph__icon {
  width: 56px; height: 56px;
  flex: 0 0 auto;
  color: var(--tt-cyan);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.stat-glyph--magenta .stat-glyph__icon { color: var(--tt-magenta); }
.stat-glyph__txt {
  font: 500 15.5px/1.45 var(--font-display);
  color: rgba(255,255,255,.88);
  margin: 0;
}
.right-paper .stat-glyph__txt { color: rgba(0,0,0,.82); }
.stat-glyph__txt strong {
  color: var(--tt-cyan);
  font-weight: 700;
}
.stat-glyph--magenta .stat-glyph__txt strong { color: var(--tt-magenta); }

/* --- Big standalone figure (no card, just typography) */
.figure-num {
  margin: 30px 0 32px;
  max-width: 85ch;
}
.figure-num__n {
  font: 800 clamp(72px, 8vw, 144px) var(--font-display);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--tt-cyan);
  font-feature-settings: "tnum" 1, "lnum" 1;
  margin: 0 0 10px;
  text-wrap: balance;
}
.figure-num--magenta .figure-num__n { color: var(--tt-magenta); }
.figure-num--halo    .figure-num__n { color: var(--tt-halo); }
.figure-num__n small { font-size: .35em; font-weight: 800; opacity: .9; letter-spacing: -.02em; }
.figure-num__cap {
  font: 500 17px/1.4 var(--font-display);
  color: rgba(255,255,255,.85);
  margin: 0;
  max-width: 44ch;
}
.right-paper .figure-num__cap { color: rgba(0,0,0,.78); }

/* --- Inline body-prose accents */
.body-prose .ink-cyan    { color: var(--tt-cyan);    font-weight: 600; }
.body-prose .ink-magenta { color: var(--tt-magenta); font-weight: 600; }
.right-paper .body-prose .ink-cyan { color: #098f8b; }
.right-paper .body-prose .ink-magenta { color: var(--tt-magenta); }

/* --- Pull quote (signature TikTok report style: cyan accent line + larger type) */
.pull-quote {
  margin: 22px 0 28px;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--tt-cyan);
  font: 600 19px/1.4 var(--font-display);
  color: var(--tt-cyan);
  max-width: 60ch;
  text-wrap: pretty;
}
.pull-quote--magenta { border-left-color: var(--tt-magenta); color: var(--tt-magenta); }
.right-paper .pull-quote { color: #098f8b; }
.right-paper .pull-quote--magenta { color: var(--tt-magenta); }

/* ---------- Export hero (TikTok Shop) — huge horizontal stat ---------- */
.export-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 36px 36px;
  margin: 24px 0 32px;
  max-width: 85ch;
  background: linear-gradient(90deg, rgba(254,44,85,.18) 0%, rgba(37,244,238,.10) 100%);
  border: 2px dotted rgba(255,255,255,.55);
  border-radius: 0 25px 0 25px;
  box-shadow: 0 0 40px rgba(254,44,85,.22);
  overflow: hidden;
}
.export-hero::after {
  content: "";
  position: absolute;
  width: 70%; height: 200%;
  top: -50%; right: -40%;
  background: radial-gradient(closest-side, rgba(37,244,238,.6), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.export-hero > * { position: relative; z-index: 1; }
.export-hero__num {
  font: 800 clamp(72px, 8vw, 132px) var(--font-display);
  letter-spacing: -.045em;
  line-height: .9;
  color: var(--tt-cyan);
  font-feature-settings: "tnum" 1, "lnum" 1;
  flex: 0 0 auto;
}
.export-hero__cap {
  font: 700 17px/1.35 var(--font-display);
  letter-spacing: -.01em;
  color: var(--tt-white);
  max-width: 36ch;
}
.export-hero__cap span {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  margin-top: 8px;
  letter-spacing: .01em;
}

/* Placeholder state for an unloaded Lottie */
.stat-lottie--placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(254,44,85,.10) 0 14px,
      rgba(254,44,85,.05) 14px 28px) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 1 !important;
}
.stat-lottie--placeholder--cyan {
  background:
    repeating-linear-gradient(45deg,
      rgba(37,244,238,.12) 0 14px,
      rgba(37,244,238,.05) 14px 28px) !important;
}
.right-paper .stat-lottie--placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(254,44,85,.10) 0 14px,
      rgba(0,0,0,.04) 14px 28px) !important;
}
.stat-lottie__placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--tt-magenta);
  border-radius: 100rem;
  background: rgba(0,0,0,.45);
  font: 600 11px var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tt-magenta);
  backdrop-filter: blur(4px);
}
.right-paper .stat-lottie__placeholder-tag {
  background: rgba(255,255,255,.85);
}
.stat-lottie__placeholder-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tt-magenta);
  box-shadow: 0 0 6px rgba(254,44,85,.85);
}
.stat-lottie__placeholder-tag--cyan {
  border-color: var(--tt-cyan);
  color: var(--tt-cyan);
}
.stat-lottie__placeholder-tag--cyan::before {
  background: var(--tt-cyan);
  box-shadow: 0 0 6px rgba(37,244,238,.85);
}

/* ===================================================================
 * Mobile / small viewport — disable multiscroll, stack everything
 * =================================================================== */
@media (max-width: 900px) {
  /* html must keep overflow: visible so body's overflow-x propagates to
     the viewport — otherwise body becomes an inner scroll container and
     iOS loses its accelerated document scrolling */
  html {
    overflow: visible;
    height: auto;
    overscroll-behavior: auto;
  }
  body {
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
    overscroll-behavior: auto;
  }

  /* Stage becomes a normal flow container */
  .ms {
    position: static !important;
    width: 100%;
    height: auto !important;
    inset: auto;
    overflow: visible;
  }

  /* Panes become full-width blocks stacked in DOM order
     (left then right per section — which is what we want) */
  .ms__pane {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    transform: none !important;
    transition: none !important;
    overflow: visible !important;
    display: block !important;
  }
  .ms__pane--full { width: 100% !important; z-index: auto !important; }

  /* Title (left) panes sit at ~50vh so they read like section dividers */
  .ms__pane--left {
    min-height: 50vh;
  }

  /* Right-pane content sizes to its content — no centering, no min-height clamp */
  .stat-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 7vh 7vw !important;
    justify-content: flex-start !important;
  }

  /* Cover — title + map each take half the viewport so they fit together */
  .cover-left {
    padding: 6vh 8vw 4vh;
    min-height: 50vh;
    height: 50vh;
  }
  .cover-map {
    min-height: 50vh;
    height: 50vh;
    padding: 8vw;
  }
  .cover-left__logo { width: 100px; }
  .cover-left__title { font-size: clamp(28px, 8vw, 44px); }
  .cover-left__meta { font-size: 12px; }

  /* Title text & pane-inner */
  .scene-title { font-size: clamp(32px, 8.4vw, 52px); }
  .pane-inner { padding: 7vh 7vw; min-height: 50vh; }

  /* Body */
  .body-prose p { font-size: 15px; }
  .lottie-card__title { font: 700 17px/1.3 var(--font-display); padding: 18px 20px; }

  /* Stat grids collapse to a single column */
  .pullstat-row { grid-template-columns: 1fr !important; gap: 14px !important; }
  /* Nested column grids inside pullstat-row collapse too */
  .pullstat-row > div[style*="grid-template-rows"] {
    grid-template-rows: auto !important;
    grid-template-columns: 1fr !important;
  }

  /* Cards and stat boxes — let them flow */
  .pullstat, .prose-card, .stat-bigcentered, .figure-num, .stat-lottie,
  .pull-quote, .stat-glyph, .lottie-card, .export-hero {
    max-width: 100%;
  }
  .export-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
    gap: 16px;
  }
  .export-hero__num { font-size: clamp(52px, 14vw, 88px); }
  .export-hero__cap { font-size: 15px; }

  /* Inline width-overrides on stat-lottie become full width */
  .stat-lottie[style*="width"] { width: 100% !important; max-width: 100% !important; }

  /* Hide multiscroll-only chrome */
  .ms-nav, .scroll-hint { display: none !important; }

  /* Topbar slim */
  .ms-topbar { padding: 12px 16px; gap: 12px; }
  .ms-topbar__bar { display: none; }
  .ms-topbar__brand img { height: 12px; }
  .ms-topbar__idx { display: none; }

  /* Off-canvas drawer must not extend the page width on mobile.
     A fixed element parked with translateX(100%) sits a full width beyond
     the right edge, and root overflow-x:hidden does NOT clip fixed-position
     elements — so it adds horizontal scroll. Keep the closed drawer inside
     the viewport (no rightward transform) and hide it via visibility/opacity. */
  .ms-menu {
    transform: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 240ms ease, visibility 0s linear 240ms;
  }
  .ms-menu[data-open] {
    transform: none;
    visibility: visible;
    opacity: 1;
    transition: opacity 240ms ease;
  }

  /* Sub-scene pips don't apply when stacked */
  .subscene-idx { display: none; }

  /* CTA final slide */
  .cta-final { padding: 12vh 6vw; min-height: 70vh; }
  .cta-btn { padding: 20px 36px; font-size: 22px; }

  /* Right-paper glow overlays stay subtle */
  .right-paper .glow-blur::before,
  .right-paper .glow-blur::after { opacity: .12; }

  /* Attribution allows wrap on narrow */
  .attribution { flex-wrap: wrap; justify-content: flex-end; }

  /* ============= WebKit compositing relief =============
     iOS (Safari AND Chrome — both WebKit) promotes every element with a
     filter, mask, blend mode, transform or will-change to its own
     composited layer with a full-size GPU backing store. On the stacked
     mobile page that's dozens of pane-sized layers — WebKit runs out of
     tile memory (blank panes) and kills the tab. Android/Blink shrugs
     this off, which is why only iPhones crashed. On mobile, decorations
     must be plain painted gradients: no filters, no masks, no blends,
     no transforms, no pre-promoted layers. */

  /* Panes must not be layer-promoted when the engine is off */
  .ms__pane { will-change: auto !important; }

  /* Glow pseudos gone entirely; paint the glow as a flat background */
  .glow-blur::before, .glow-blur::after,
  .video-tint::before, .video-tint::after { content: none; }
  .glow-blur--magenta {
    background:
      radial-gradient(55% 50% at 10% 5%, rgba(254,44,85,.30), transparent 70%),
      radial-gradient(40% 40% at 92% 95%, rgba(254,44,85,.14), transparent 70%);
  }
  .glow-blur--cyan {
    background:
      radial-gradient(55% 50% at 90% 5%, rgba(37,244,238,.24), transparent 70%),
      radial-gradient(40% 40% at 8% 95%, rgba(37,244,238,.12), transparent 70%);
  }
  .glow-blur--split {
    background:
      radial-gradient(55% 50% at 8% 5%, rgba(254,44,85,.28), transparent 70%),
      radial-gradient(55% 50% at 92% 95%, rgba(37,244,238,.24), transparent 70%);
  }
  .right-paper .glow-blur { opacity: .25; }

  /* Video tints lose their blend mode; plain translucent colour wash */
  .video-tint { mix-blend-mode: normal; opacity: .5; }
  .video-tint--magenta {
    background:
      radial-gradient(70% 80% at 15% 0%, rgba(254,44,85,.6), transparent 72%),
      radial-gradient(50% 55% at 90% 100%, rgba(254,44,85,.35), transparent 72%);
  }
  .video-tint--cyan {
    background:
      radial-gradient(70% 80% at 85% 0%, rgba(37,244,238,.55), transparent 72%),
      radial-gradient(50% 55% at 10% 100%, rgba(37,244,238,.3), transparent 72%);
  }
  .video-tint--split {
    background:
      radial-gradient(70% 80% at 12% 0%, rgba(254,44,85,.55), transparent 72%),
      radial-gradient(70% 80% at 88% 100%, rgba(37,244,238,.5), transparent 72%);
  }

  /* Remaining blends / backdrop filters off */
  .ways-card::before { mix-blend-mode: normal; opacity: .2; }
  .export-hero::after { filter: none; }  /* already a radial gradient */
  .stat-lottie__placeholder-tag {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Mobile shows poster stills instead of videos — the "video" placeholder
     chip would never clear, so drop it */
  .video-bg__tag { display: none; }
}

/* ===================================================================
 * Backing Ireland — three connected ways, visually staggered
 * =================================================================== */
.ways-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
  max-width: 85ch;
}
.ways-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px 22px 24px;
  position: relative;
  overflow: hidden;
  --way: var(--tt-cyan);
  border-left: 3px solid var(--way);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--way) 14%, transparent) 0%,
    color-mix(in srgb, var(--way) 4%, transparent) 60%,
    transparent 100%);
  border-radius: 0 25px 0 0;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.ways-card--magenta { --way: var(--tt-magenta); }
.ways-card--halo    { --way: var(--tt-halo); }
.ways-card--offset { margin-left: 8%; }
.ways-card:nth-child(1) { margin-right: 6%; }
.ways-card:nth-child(3) { margin-left: 14%; }

.ways-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 100% 50%, color-mix(in srgb, var(--way) 35%, transparent), transparent 70%);
  opacity: .35;
  mix-blend-mode: screen;
}
.ways-card > * { position: relative; z-index: 1; }

.ways-card__num {
  font: 800 clamp(48px, 5vw, 78px)/.85 var(--font-display);
  letter-spacing: -.04em;
  color: var(--way);
  font-feature-settings: "tnum" 1, "lnum" 1;
  flex: 0 0 auto;
  min-width: 1.6em;
}
.ways-card__body { flex: 1; min-width: 0; }
.ways-card__title {
  font: 700 19px/1.2 var(--font-display);
  letter-spacing: -.01em;
  color: var(--tt-white);
  margin: 0 0 6px;
  text-wrap: balance;
}
.right-paper .ways-card__title { color: var(--tt-ink-900); }
.ways-card__meta {
  font: 500 13.5px/1.4 var(--font-display);
  color: rgba(255,255,255,.7);
  margin: 0;
  letter-spacing: .005em;
}
.right-paper .ways-card__meta { color: rgba(0,0,0,.6); }

@media (max-width: 900px) {
  .ways-card,
  .ways-card--offset,
  .ways-card:nth-child(1),
  .ways-card:nth-child(3) { margin-left: 0; margin-right: 0; }
  .ways-card { padding: 20px 22px; gap: 18px; }
  .ways-card__num { font-size: 44px; min-width: 1.4em; }
  .ways-card__title { font-size: 17px; }
}

/* ---------- Print friendly ---------- */
.scene-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--tt-white);
  margin: 0 0 28px;
  max-width: 22ch;
  text-wrap: balance;
}
.scene-section-title .dot { color: var(--tt-cyan); }
.right-paper .scene-section-title { color: var(--tt-ink-900); }
.right-paper .scene-section-title .dot { color: var(--tt-magenta); }

.body-prose { max-width: 85ch; }
.body-prose p {
  font: 400 16px/1.62 var(--font-display);
  color: rgba(255,255,255,.84);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.body-prose p:last-child { margin-bottom: 0; }
.body-prose p strong { color: var(--tt-white); font-weight: 700; }
.right-paper .body-prose p { color: rgba(0,0,0,.82); }
.right-paper .body-prose p strong { color: var(--tt-ink-900); }

/* ---------- Callout pull-stat — TikTok report-site style ---------- */
/* Dotted-border + glow card with corner-bracket radius */
.pullstat {
  position: relative;
  margin: 14px 0 28px;
  padding: 28px 30px;
  border: 2px dotted var(--tt-cyan);
  background: rgba(37,244,238,.045);
  border-radius: 0 25px 0 25px;
  box-shadow: 0 0 22px rgba(37,244,238,.20), inset 0 0 24px rgba(37,244,238,.04);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  max-width: 85ch;
}
.pullstat--magenta {
  border-color: var(--tt-magenta);
  background: rgba(254,44,85,.05);
  box-shadow: 0 0 22px rgba(254,44,85,.22), inset 0 0 24px rgba(254,44,85,.04);
}
.pullstat--halo {
  border-color: var(--tt-halo);
  background: rgba(237,187,232,.06);
  box-shadow: 0 0 22px rgba(237,187,232,.30), inset 0 0 24px rgba(237,187,232,.04);
}
/* Solid magenta fill variant (the 91/94 card from the report) */
.pullstat--solid {
  border: none;
  background: var(--tt-magenta);
  color: var(--tt-white);
  box-shadow: 0 0 32px rgba(254,44,85,.45);
  border-radius: 0 25px 0 25px;
}
.pullstat--solid-cyan {
  border: none;
  background: var(--tt-cyan);
  color: var(--tt-ink-900);
  box-shadow: 0 0 32px rgba(37,244,238,.45);
  border-radius: 0 25px 0 25px;
}
.right-paper .pullstat {
  background: rgba(37,244,238,.10);
  box-shadow: 0 0 22px rgba(37,244,238,.22);
}
.right-paper .pullstat--magenta {
  background: rgba(254,44,85,.08);
  box-shadow: 0 0 22px rgba(254,44,85,.24);
}
.right-paper .pullstat--halo {
  background: rgba(237,187,232,.22);
  box-shadow: 0 0 22px rgba(237,187,232,.28);
}

.pullstat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 3.6vw, 60px);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--tt-cyan);
  flex: 0 0 auto;
  font-feature-settings: "tnum" 1, "lnum" 1;
  white-space: nowrap;
}
.pullstat--magenta .pullstat__num { color: var(--tt-magenta); }
.pullstat--halo .pullstat__num { color: var(--tt-halo); }
.pullstat--solid .pullstat__num,
.pullstat--solid-cyan .pullstat__num { color: inherit; }
.pullstat__num small { font-size: 1em; font-weight: 800; opacity: 1; }
.pullstat__txt {
  font: 500 15.5px/1.42 var(--font-display);
  color: rgba(255,255,255,.92);
  margin: 0;
  text-wrap: pretty;
}
.right-paper .pullstat__txt { color: rgba(0,0,0,.88); }
.pullstat--solid .pullstat__txt,
.pullstat--solid-cyan .pullstat__txt { color: inherit; }

.pullstat__txt span {
  display: block; font-weight: 400;
  color: rgba(255,255,255,.62); margin-top: 4px; font-size: 13px;
}
.right-paper .pullstat__txt span { color: rgba(0,0,0,.58); }
.pullstat--solid .pullstat__txt span,
.pullstat--solid-cyan .pullstat__txt span { color: rgba(255,255,255,.85); }
.pullstat--solid-cyan .pullstat__txt span { color: rgba(0,0,0,.7); }

.pullstat-row {
  display: grid; gap: 14px;
  margin: 14px 0 28px;
  max-width: 85ch;
}
.pullstat-row > .pullstat { margin: 0; }

/* Footer note in right pane */
.scroll-foot {
  margin-top: auto;
  padding-top: 36px;
  font: 600 11px var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.right-paper .scroll-foot { color: rgba(0,0,0,.45); }

/* ===================================================================
 * Short-viewport scaling — exec-summary panes are fixed-height with
 * centred content, so on shorter windows tall panes overflow under the
 * top bar. Scale text, stats and animations down with viewport height
 * so the content fits (and clears the progress bar).
 * =================================================================== */
@media (min-width: 901px) and (max-height: 900px) {
  .stat-inner { padding-top: max(6vh, 76px); padding-bottom: 5vh; }
  .body-prose p { font-size: 15px; line-height: 1.5; margin-bottom: 13px; }
  .body-prose { max-width: 90ch; }
  .pullstat { padding: 20px 22px; margin-top: 12px; margin-bottom: 18px; gap: 10px; }
  .pullstat__num { font-size: clamp(32px, 3vw, 50px); }
  .pullstat__txt { font-size: 14px; line-height: 1.38; }
  .pullstat-row { gap: 12px !important; }
  .export-hero { padding: 20px 26px; margin: 14px 0 18px; gap: 12px; }
  .export-hero__num { font-size: clamp(46px, 6vw, 88px) !important; }
  .export-hero__cap { font-size: 15px; }
  .lottie-card__title { font: 700 16px/1.3 var(--font-display); padding: 14px 20px; }
  .stat-bigcentered__num { font-size: clamp(40px, 5vw, 64px); }
  .stat-glyph__icon { width: 44px; height: 44px; }
  .pull-quote { font-size: clamp(18px, 1.7vw, 26px); margin: 18px 0; }
  .scene-title { font-size: clamp(38px, 4.2vw, 62px); }
  .foreword-lead { font-size: clamp(17px, 1.5vw, 22px); margin-bottom: 18px; }
  .lottie-card .stat-lottie { max-height: 34vh; }
}
@media (min-width: 901px) and (max-height: 740px) {
  .stat-inner { padding-top: max(5vh, 66px); padding-bottom: 4vh; }
  .body-prose p { font-size: 13.5px; line-height: 1.45; margin-bottom: 10px; }
  .pullstat { padding: 15px 17px; margin-top: 8px; margin-bottom: 13px; }
  .pullstat__num { font-size: clamp(28px, 2.6vw, 42px); }
  .pullstat__txt { font-size: 13px; }
  .export-hero { padding: 16px 20px; margin: 10px 0 14px; }
  .export-hero__num { font-size: clamp(38px, 5vw, 68px) !important; }
  .export-hero__cap { font-size: 13.5px; }
  .lottie-card__title { font-size: 14px; padding: 12px 16px; }
  .stat-bigcentered__num { font-size: clamp(34px, 4vw, 52px); }
  .pull-quote { font-size: clamp(16px, 1.5vw, 22px); margin: 12px 0; }
  .scene-title { font-size: clamp(32px, 3.6vw, 52px); }
  .foreword-lead { font-size: clamp(15px, 1.3vw, 20px); margin-bottom: 14px; }
  .lottie-card .stat-lottie { max-height: 28vh; }
  .subscene-idx { top: 3.5vh; }
}
@media (min-width: 901px) and (max-height: 900px) {
  .cover-left__title { font-size: clamp(32px, 3.4vw, 54px); }
  .keystat__figure { font-size: clamp(30px, 3.2vw, 52px); }
  .keystat__txt { font-size: clamp(10.5px, .75vw, 13px); }
  .keystat-board__title { font-size: clamp(24px, 2.4vw, 40px); }
}
@media (min-width: 901px) and (max-height: 740px) {
  .cover-left__title { font-size: clamp(28px, 3vw, 46px); }
  .keystat { padding: 12px 14px; }
  .keystat__figure { font-size: clamp(26px, 2.8vw, 44px); }
  .keystat__icon { width: clamp(22px, 2vw, 30px); height: clamp(22px, 2vw, 30px); }
}

/* "More than 8 out of 10" phrase stat — keep it small and on one line
   (beats the short-viewport !important sizing on .export-hero__num). */
.export-hero .export-hero__num--phrase {
  font: 800 clamp(20px, 2.4vw, 38px)/1.05 var(--font-display) !important;
  letter-spacing: -.03em;
  white-space: nowrap;
}
