/* ============================================================
   PSMFC — Disbursement Statistics Presentation
   Horizontal scroll-snap deck. Dark "command-center" theme
   with a light variant. Green-led brand accents.
   ============================================================ */

/* ---------- THEME TOKENS ---------- */
:root[data-theme="dark"] {
  --pg:        #0A0B0D;
  --pg2:       #0F1114;
  --card:      rgba(255,255,255,0.035);
  --card-2:    rgba(255,255,255,0.055);
  --card-hi:   rgba(255,255,255,0.08);
  --stroke:    rgba(255,255,255,0.08);
  --stroke-2:  rgba(255,255,255,0.16);
  --tx1:       #F4F3F0;
  --tx2:       #A6A6A2;
  --tx3:       #6C6C69;
  --grid:      rgba(255,255,255,0.055);
  --glow-a:    0.55;
  --glass-bg:  linear-gradient(150deg, rgba(255,255,255,0.085), rgba(255,255,255,0.018));
  --glass-brd: rgba(255,255,255,0.13);
  --glass-hi:  rgba(255,255,255,0.16);
  --glass-blur: 26px;
  --scrim-rgb:  6, 9, 8;
  --vignette:  radial-gradient(120% 120% at 80% -10%, rgba(140,197,64,0.10), transparent 55%),
               radial-gradient(100% 100% at -10% 110%, rgba(245,134,34,0.08), transparent 50%);
}
:root[data-theme="light"] {
  --pg:        #FBFAF8;
  --pg2:       #F4F3EF;
  --card:      #FFFFFF;
  --card-2:    #FFFFFF;
  --card-hi:   #FFFFFF;
  --stroke:    #E7E3DC;
  --stroke-2:  #D4D0C8;
  --tx1:       #232322;
  --tx2:       #5A5752;
  --tx3:       #9A968E;
  --grid:      rgba(58,58,58,0.08);
  --glow-a:    0.22;
  --glass-bg:  linear-gradient(150deg, rgba(255,255,255,0.88), rgba(255,255,255,0.62));
  --glass-brd: rgba(58,58,58,0.10);
  --glass-hi:  rgba(255,255,255,0.95);
  --glass-blur: 14px;
  --scrim-rgb:  250, 249, 246;
  --vignette:  radial-gradient(120% 120% at 80% -10%, rgba(140,197,64,0.10), transparent 55%),
               radial-gradient(100% 100% at -10% 110%, rgba(245,134,34,0.07), transparent 50%);
}

/* accent: green-led by default; orange-led alt */
:root            { --accent: var(--psmfc-green); --accent-ink:#2C4013; --accent-2: var(--psmfc-orange); }
:root[data-accent="orange"] { --accent: var(--psmfc-orange); --accent-ink:#552B0A; --accent-2: var(--psmfc-green); }

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--pg);
  color: var(--tx1);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   DECK SHELL
   ============================================================ */
.deck {
  position: fixed; inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.slide::before {                 /* ambient brand glow wash */
  content: "";
  position: absolute; inset: 0;
  background: var(--vignette);
  pointer-events: none;
  z-index: 0;
}
.slide.alt { background: transparent; }
.slide.alt::before { opacity: 1.3; }

/* ============================================================
   FULL-BLEED BACKGROUND PHOTO (user-fillable placeholder)
   ============================================================ */
.slide-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.slide-bg image-slot {
  position: absolute; inset: -12px;   /* bleed past edges so blur has no fringe */
  display: block;
  width: calc(100% + 24px); height: calc(100% + 24px);
  filter: grayscale(1) saturate(0) blur(var(--bg-blur, 5px));  /* settles black & white */
}
.slide-scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(var(--scrim-rgb), calc(var(--bg-dim, .62) * 0.92)) 0%,
      rgba(var(--scrim-rgb), var(--bg-dim, .62)) 52%,
      rgba(var(--scrim-rgb), calc(var(--bg-dim, .62) * 1.16)) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(var(--scrim-rgb), calc(var(--bg-dim, .62) * 0.45)) 100%);
}

/* while a file is being dragged over the window, lift the background
   slots above the slide content so they can catch the drop */
body.dragging-file .slide-bg { z-index: 25; }
body.dragging-file .slide-bg image-slot { outline: 2px dashed color-mix(in oklab, var(--accent) 60%, transparent); outline-offset: -10px; }

/* photo intro — show the photo sharp first, then blend blur + scrim in,
   handing off to the slide content (~5s total per slide) */
@media (prefers-reduced-motion: no-preference) {
  :root[data-intro="on"] .slide[data-active="true"] .slide-bg image-slot {
    animation: bgIntroFocus 2s cubic-bezier(.25,.6,.3,1) both;
  }
  :root[data-intro="on"] .slide[data-active="true"] .slide-scrim {
    animation: bgIntroScrim 2s both;
  }
  :root[data-intro="on"] .slide[data-active="true"] .reveal {
    transition-delay: calc(var(--d, 0ms) + 1400ms);
  }
}
@keyframes bgIntroFocus {
  0%        { filter: grayscale(0) saturate(var(--bg-sat, 0.92)) blur(0px); transform: scale(1); }
  40%       { filter: grayscale(0) saturate(var(--bg-sat, 0.92)) blur(0px); }
  70%       { filter: grayscale(0) saturate(var(--bg-sat, 0.92)) blur(var(--bg-blur, 5px)); }
  85%, 100% { filter: grayscale(1) saturate(0) blur(var(--bg-blur, 5px)); }
  100%      { transform: scale(1.05); }
}
@keyframes bgIntroScrim {
  0%        { opacity: 0.22; }
  40%       { opacity: 0.30; }
  85%, 100% { opacity: 1; }
}

/* ============================================================
   ANIMATED AURORA BACKGROUND (drifting gradient-mesh blobs)
   ============================================================ */
.bg-aurora {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: var(--pg);
  pointer-events: none;
}
.bg-aurora .ab {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  opacity: var(--glow-a);
  mix-blend-mode: screen;
  will-change: transform;
}
:root[data-theme="light"] .bg-aurora .ab { mix-blend-mode: multiply; filter: blur(85px); }
.bg-aurora .ab1 { width: 46vw; height: 46vw; left: -8vw; top: -10vh;
  background: radial-gradient(circle at 50% 50%, var(--psmfc-green), transparent 70%);
  animation: drift1 26s ease-in-out infinite; }
.bg-aurora .ab2 { width: 40vw; height: 40vw; right: -6vw; top: 6vh;
  background: radial-gradient(circle at 50% 50%, var(--psmfc-orange), transparent 70%);
  animation: drift2 32s ease-in-out infinite; }
.bg-aurora .ab3 { width: 52vw; height: 52vw; left: 24vw; bottom: -24vh;
  background: radial-gradient(circle at 50% 50%, var(--green-600), transparent 70%);
  animation: drift3 30s ease-in-out infinite; }
.bg-aurora .ab4 { width: 30vw; height: 30vw; right: 16vw; bottom: -8vh;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 70%);
  animation: drift1 22s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(12vw,8vh) scale(1.15)} 66%{transform:translate(-6vw,14vh) scale(.9)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-14vw,18vh) scale(1.2)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 40%{transform:translate(10vw,-10vh) scale(1.1)} 75%{transform:translate(-12vw,-4vh) scale(.95)} }
@media (prefers-reduced-motion: reduce) { .bg-aurora .ab { animation: none !important; } }

/* faint dot grid texture (dark only via opacity token) */
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .6;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
}

.slide-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 64px) clamp(28px, 5vw, 88px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* per-slide top label */
.slide-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.slide-eyebrow .idx {
  font-variant-numeric: tabular-nums;
  color: var(--tx3);
  letter-spacing: 0.1em;
}
.slide-eyebrow .rule { flex: 0 0 42px; height: 1px; background: var(--stroke-2); }

.slide-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--tx1);
  font-size: clamp(30px, 4.6vw, 58px);
  margin: 14px 0 0;
  text-wrap: balance;
}
.slide-title em {
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
}
.slide-sub {
  margin: 16px 0 0;
  max-width: 56ch;
  color: var(--tx2);
  font-size: clamp(14px, 1.35vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ============================================================
   ENTRANCE ANIMATIONS  (gated on .slide[data-active])
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); }
  .slide[data-active="true"] .reveal {
    opacity: 1; transform: none;
    transition: opacity .6s ease, transform .7s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--d, 0ms);
  }
}

/* ============================================================
   KPI / NUMBER TYPE
   ============================================================ */
.kpi-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--tx1);
  font-variant-numeric: tabular-nums;
}
.kpi-num .unit { font-size: 0.5em; font-style: normal; font-weight: 700; color: var(--accent); margin-left: .12em; letter-spacing: 0; }
.kpi-num.accent { color: var(--accent); }
.kpi-label { color: var(--tx2); font-size: clamp(12px,1.1vw,15px); font-weight: 500; letter-spacing: .01em; }
.kpi-desc  { color: var(--tx3); font-size: clamp(11px,0.95vw,13px); line-height: 1.5; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: 22px;
  padding: clamp(18px, 2vw, 26px);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  box-shadow: 0 10px 34px rgba(0,0,0,0.30), inset 0 1px 0 var(--glass-hi);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.card::after {            /* top sheen for the glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), transparent 42%);
}
:root[data-theme="light"] .card { box-shadow: 0 10px 30px rgba(58,58,58,0.12), inset 0 1px 0 var(--glass-hi); }
.card.hoverable:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 55%, var(--glass-brd));
  box-shadow: 0 22px 50px rgba(0,0,0,0.40), 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent), inset 0 1px 0 var(--glass-hi);
}
.card .corner-accent {
  position: absolute; top: 0; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .0; transition: opacity .35s ease;
}
.card.hoverable:hover .corner-accent { opacity: .9; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent);
}
.chip.orange { background: color-mix(in oklab, var(--psmfc-orange) 15%, transparent); color: var(--psmfc-orange); border-color: color-mix(in oklab, var(--psmfc-orange) 30%, transparent); }
.chip .dot { width:7px; height:7px; border-radius:50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ============================================================
   CHART PRIMITIVES
   ============================================================ */
.chart-wrap { position: relative; width: 100%; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }

.axis-label { fill: var(--tx3); font-size: 12px; font-family: var(--font-body); font-weight: 500; }
.grid-line  { stroke: var(--grid); stroke-width: 1; }

/* tooltip */
.viz-tip {
  position: absolute;
  transform: translate(-50%, -120%);
  background: var(--card-hi);
  border: 1px solid var(--stroke-2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 9px 13px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  opacity: 0; transition: opacity .15s ease;
  z-index: 5;
}
.viz-tip.show { opacity: 1; }
.viz-tip .t-val { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--tx1); }
.viz-tip .t-lab { font-size: 11px; color: var(--tx2); margin-top: 1px; }

/* bar chart */
.bar-rect { transition: filter .25s ease, opacity .25s ease; cursor: pointer; }
.bar-col:hover .bar-rect { filter: brightness(1.25); }
.bar-col.dim .bar-rect { opacity: .38; }

/* progress bars */
.pbar-track {
  position: relative; height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke);
  overflow: hidden;
}
:root[data-theme="light"] .pbar-track { background: var(--pg2); }
.pbar-fill {
  position: absolute; inset: 0 auto 0 0; height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1.1s cubic-bezier(.16,1,.3,1);
}
.pbar-fill::after {
  content:""; position:absolute; right:0; top:50%; width:16px; height:16px;
  transform: transl(0,-50%); transform: translateY(-50%);
  border-radius:50%; background:#fff;
  box-shadow: 0 0 16px 3px currentColor;
}
.pbar-row { display:grid; grid-template-columns: auto 1fr auto; align-items:center; gap:16px; }
.pbar-rank { font-family:var(--font-display); font-weight:800; color:var(--tx3); width: 1.4em; }
.pbar-name { color: var(--tx2); font-size: clamp(12px,1.1vw,15px); font-weight:500; }
.pbar-val  { font-family:var(--font-display); font-weight:800; color:var(--tx1); font-variant-numeric:tabular-nums; }

/* radial gauge */
.gauge-num { font-family: var(--font-display); font-weight: 900; font-style: italic; fill: var(--tx1); }
.gauge-sub { fill: var(--tx2); font-size: 12px; font-weight: 600; }

/* ============================================================
   NAV CHROME
   ============================================================ */
.progress-top {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 70%, transparent);
  z-index: 50;
  transition: width .4s cubic-bezier(.16,1,.3,1);
}

.brandbar {
  position: fixed; top: clamp(16px,3vh,26px); left: clamp(20px,3vw,40px);
  z-index: 40; display: flex; align-items: center; gap: 12px;
  pointer-events: none;
}
.brandbar img { height: clamp(38px, 5vh, 58px); width: auto; display: block; }

.nav-dots {
  position: fixed; bottom: clamp(20px,3.4vh,34px); left: 50%;
  transform: translateX(-50%);
  z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--card-hi);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}
.nav-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--stroke-2);
  border: none; padding: 0; cursor: pointer;
  transition: all .35s cubic-bezier(.16,1,.3,1);
}
.nav-dot:hover { background: var(--tx2); }
.nav-dot.active { width: 26px; background: var(--accent); box-shadow: 0 0 12px color-mix(in oklab,var(--accent) 60%, transparent); }

.nav-arrows {
  position: fixed; bottom: clamp(20px,3.4vh,34px); right: clamp(20px,3vw,40px);
  z-index: 45; display: flex; gap: 10px;
}
.nav-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card-hi); border: 1px solid var(--stroke);
  color: var(--tx1); cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all .25s ease;
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.nav-btn:active { transform: scale(.94); }
.nav-btn:disabled { opacity: .3; cursor: default; transform: none; }
.nav-btn svg { width: 20px; height: 20px; }

/* autoplay toggle — fixed bottom-left */
.autoplay-btn {
  position: fixed;
  bottom: clamp(20px, 3.4vh, 34px);
  left: clamp(20px, 3vw, 40px);
  z-index: 45;
}
.autoplay-btn.playing {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent) 45%, transparent);
}

.counter {
  font-family: var(--font-display); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  color: var(--tx2); font-size: clamp(13px,1.2vw,15px);
}
.counter b { color: var(--accent); }

.topright {
  position: fixed; top: clamp(16px,3vh,26px); right: clamp(20px,3vw,40px);
  z-index: 45; display: flex; align-items: center; gap: clamp(10px,1.4vw,18px);
}
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 11px; border-radius: 999px;
  background: var(--card-hi); border: 1px solid var(--stroke);
  color: var(--tx1); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: clamp(12px,1.1vw,14px);
  backdrop-filter: blur(12px);
  transition: all .25s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle svg { width: 17px; height: 17px; }

.scroll-hint {
  position: absolute; bottom: clamp(22px,5vh,46px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  color: var(--tx3); font-size: 13px; font-weight: 500; letter-spacing: .04em;
  z-index: 2;
}
.scroll-hint .arrow { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100%{transform:translateX(0)} 50%{transform:translateX(6px)} }

/* utility layout */
.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.flex { display: flex; }
.spacer { flex: 1 1 auto; }
.mt-auto { margin-top: auto; }

/* icon badge for case-study / contact cards */
.icon-badge {
  width: clamp(40px, 3.4vw, 52px); height: clamp(40px, 3.4vw, 52px);
  border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  color: var(--accent);
}
.icon-badge svg, .icon-badge i { width: clamp(20px,1.9vw,26px); height: clamp(20px,1.9vw,26px); }

/* gentle float for parallax-feel cards (only while slide is active) */
@media (prefers-reduced-motion: no-preference) {
  .slide[data-active="true"] .card.float { animation: floaty 6s ease-in-out infinite; }
}
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-7px) } }
.card.float:hover { animation-play-state: paused; }

/* ============================================================
   FLOATING 3D OBJECTS (CSS-rendered glossy decor)
   ============================================================ */
.fx-layer { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fx { position: absolute; will-change: transform; }

/* glossy sphere */
.fx-orb { border-radius: 50%;
  background: radial-gradient(circle at 34% 27%, #eef9d6 0%, #bfe879 20%, var(--accent) 47%, #3c5c16 88%);
  box-shadow: inset -10px -14px 32px rgba(0,0,0,0.55), inset 9px 11px 24px rgba(255,255,255,0.38),
              0 34px 64px rgba(0,0,0,0.45), 0 0 70px color-mix(in oklab, var(--accent) 42%, transparent);
  animation: fxFloat 13s ease-in-out infinite; }
.fx-orb.orange { background: radial-gradient(circle at 34% 27%, #ffeccd 0%, #fbc183 22%, var(--psmfc-orange) 50%, #7a3d0a 90%);
  box-shadow: inset -10px -14px 32px rgba(0,0,0,0.55), inset 9px 11px 24px rgba(255,255,255,0.40),
              0 34px 64px rgba(0,0,0,0.45), 0 0 70px color-mix(in oklab, var(--psmfc-orange) 42%, transparent); }
.fx-orb::before { content: ""; position: absolute; left: 22%; top: 16%; width: 26%; height: 20%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.85), transparent); border-radius: 50%; filter: blur(2px); }

/* glowing glass ring / torus */
.fx-ring { border-radius: 50%;
  background: conic-gradient(from 130deg, var(--accent), #294012, var(--accent), #d4ef9c, var(--accent));
  -webkit-mask: radial-gradient(transparent 53%, #000 55%);
          mask: radial-gradient(transparent 53%, #000 55%);
  box-shadow: 0 22px 54px rgba(0,0,0,0.42), 0 0 64px color-mix(in oklab, var(--accent) 42%, transparent);
  animation: fxSpin 30s linear infinite; }

/* spinning Kwacha coin */
.fx-coin { border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 220deg, #d6ec96, var(--accent), #4f7a1f, var(--accent), #d6ec96);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.20), inset 0 -7px 16px rgba(0,0,0,0.45),
              0 24px 46px rgba(0,0,0,0.42), 0 0 56px color-mix(in oklab, var(--accent) 38%, transparent);
  color: #243d10; font-family: var(--font-display); font-weight: 900;
  transform-style: preserve-3d; animation: coinTilt 9s ease-in-out infinite; }

/* frosted glass tile */
.fx-glass { border-radius: 22px;
  background: linear-gradient(150deg, rgba(255,255,255,0.13), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.28);
  animation: fxFloat2 16s ease-in-out infinite; }

@keyframes fxFloat  { 0%,100%{ transform: translateY(0) rotate(0) } 50%{ transform: translateY(-24px) rotate(5deg) } }
@keyframes fxFloat2 { 0%,100%{ transform: translate(0,0) rotate(-3deg) } 50%{ transform: translate(-14px,18px) rotate(3deg) } }
@keyframes fxSpin   { to { transform: rotate(360deg) } }
@keyframes coinTilt { 0%,100%{ transform: translateY(0) rotateY(-24deg) rotateX(6deg) } 50%{ transform: translateY(-18px) rotateY(24deg) rotateX(-5deg) } }
@media (prefers-reduced-motion: reduce) { .fx { animation: none !important; } }

/* motion-off (Tweaks) */
:root[data-motion="off"] * { animation: none !important; transition: none !important; }
:root[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }

/* infinity watermark motif */
.watermark {
  position: absolute; pointer-events: none; z-index: 0;
  opacity: .05; right: -6%; bottom: -14%;
  width: 52%; max-width: 720px;
}
:root[data-theme="light"] .watermark { opacity: .08; }

/* ============================================================
   CHART TOGGLE (segmented control)
   ============================================================ */
.chart-toggle {
  display: inline-flex; gap: 3px; padding: 4px;
  border-radius: 999px;
  background: var(--card-hi);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.ct-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  border: none; background: transparent; cursor: pointer;
  color: var(--tx2); font-family: var(--font-body);
  font-weight: 600; font-size: clamp(11px, 1vw, 13px);
  transition: all .25s ease;
}
.ct-btn i { width: 15px; height: 15px; }
.ct-btn:hover { color: var(--tx1); }
.ct-btn.active {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent);
}

/* ============================================================
   PIE / DONUT
   ============================================================ */
.pie-wrap { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); flex-wrap: nowrap; }
.pie-figure { flex: 0 0 auto; display: grid; place-items: center; }
.pie-center-val { font-family: var(--font-display); font-weight: 900; font-style: italic; fill: var(--tx1); font-size: 26px; }
.pie-center-lab { fill: var(--tx2); font-size: 12px; font-weight: 600; }
.pie-legend { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.leg-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center;
  gap: 9px; padding: 5px 7px; border-radius: 8px; cursor: default;
  transition: background .2s ease;
}
.leg-row.hot { background: var(--card-2); }
.leg-dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.leg-lab { color: var(--tx2); font-size: clamp(12px, 1.05vw, 14px); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-row.hot .leg-lab { color: var(--tx1); }
.leg-val { font-family: var(--font-display); font-weight: 700; color: var(--tx1); font-variant-numeric: tabular-nums; font-size: clamp(12px, 1.05vw, 14px); }
.leg-pct { color: var(--tx3); font-size: 11px; font-variant-numeric: tabular-nums; width: 3.4em; text-align: right; }
.leg-inline { display: inline-flex; align-items: center; gap: 7px; color: var(--tx2); font-size: clamp(12px,1.1vw,14px); font-weight: 600; }

/* ============================================================
   HORIZONTAL BARS
   ============================================================ */
.hbar-wrap { display: flex; flex-direction: column; gap: clamp(4px, 0.7vh, 8px); width: 100%; }
.hbar-row { display: grid; grid-template-columns: clamp(92px, 10.5vw, 145px) 1fr auto; align-items: center; gap: 11px; transition: opacity .25s ease; }
.hbar-row.dim { opacity: .42; }
.hbar-lab { font-size: clamp(10px, 0.92vw, 13px); font-weight: 500; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease; }
.hbar-track { position: relative; height: clamp(11px, 1.5vh, 16px); border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid var(--stroke); overflow: hidden; }
:root[data-theme="light"] .hbar-track { background: var(--pg2); }
.hbar-fill { position: absolute; inset: 0 auto 0 0; height: 100%; width: 0; border-radius: 999px; transition: width 1s cubic-bezier(.16,1,.3,1); }
.hbar-val { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(11px, 1vw, 14px); min-width: 4.3em; text-align: right; transition: color .2s ease; }

/* ============================================================
   HOME / INDEX CATEGORY GRID
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
  width: 100%;
}
.cat-card {
  position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 7px;
  padding: clamp(13px, 1.5vw, 20px);
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  color: inherit;
  box-shadow: 0 8px 26px rgba(0,0,0,0.22), inset 0 1px 0 var(--glass-hi);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 55%, var(--glass-brd));
  box-shadow: 0 20px 44px rgba(0,0,0,0.36), 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent), inset 0 1px 0 var(--glass-hi);
}
.cat-card .cat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-card .icon-badge { width: clamp(30px,2.6vw,38px); height: clamp(30px,2.6vw,38px); border-radius: 10px; }
.cat-num { font-family: var(--font-display); font-weight: 800; color: var(--tx3); font-variant-numeric: tabular-nums; font-size: clamp(12px,1vw,14px); letter-spacing: .12em; }
.cat-title { font-family: var(--font-display); font-weight: 700; color: var(--tx1); font-size: clamp(14px, 1.35vw, 18px); letter-spacing: -0.01em; }
.cat-desc { color: var(--tx3); font-size: clamp(10px, 0.85vw, 12px); line-height: 1.4; }
.cat-card .cat-stat { margin-top: 2px; font-family: var(--font-display); font-weight: 800; font-style: italic; color: var(--accent); font-size: clamp(13px,1.15vw,16px); letter-spacing: -0.01em; line-height: 1.1; }

/* viz frame: holds toggle + chart inside a card */
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: clamp(12px,1.6vh,18px); flex-wrap: wrap; }
.viz-head .kpi-label { font-weight: 600; }

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   HOME — bottom scrollable category rail (image cards)
   ============================================================ */
.cat-rail {
  display: flex;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  margin: clamp(18px, 3.5vh, 34px) calc(-1 * clamp(28px, 5vw, 88px)) clamp(22px, 5vh, 54px);
  padding: 30px clamp(28px, 5vw, 88px) 10px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail .cat-card {
  flex: 0 0 clamp(172px, 16vw, 224px);
  padding: 0;
  overflow: hidden;
  gap: 0;
  margin-left: calc(-1 * clamp(30px, 3.4vw, 54px));   /* stacked overlap */
  /* opaque surface — stacked cards must not show the card beneath */
  background: var(--pg2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.cat-rail .cat-card:first-child { margin-left: 0; }
.cat-rail .cat-card:hover {
  transform: translateY(-16px) !important;
  z-index: 6;
}
/* hover must react instantly — cancel the entrance-reveal transition delay */
.cat-rail .cat-card:hover,
.card.hoverable:hover {
  transition-delay: 0ms !important;
}
.cat-img {
  position: relative;
  height: clamp(88px, 12vh, 126px);
  flex: 0 0 clamp(88px, 12vh, 126px);   /* never collapse when the column squeezes */
  overflow: hidden;
}
.cat-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.cat-rail .cat-card:hover .cat-img img { transform: scale(1.07); }
.cat-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.45));
  pointer-events: none;
}
.cat-img .cat-num {
  position: absolute; top: 9px; right: 11px; z-index: 1;
  color: #FFFFFF; text-shadow: 0 1px 8px rgba(0,0,0,0.65);
}
.cat-body {
  display: grid; gap: 4px;
  padding: clamp(10px, 1.1vw, 14px);
  text-align: left;
}
@media (max-width: 720px) {
  .slide-inner { padding: 64px 22px 90px; }
  .cat-grid { grid-template-columns: 1fr; }
  .pie-legend { min-width: 0; }
}

/* ============================================================
   HOME — fanned "hand of cards" category picker
   Center card upright & tallest; side cards rotate outward and
   tuck behind; the fan is clipped by the bottom of the slide.
   ============================================================ */
.cat-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 34px;
  margin-bottom: calc(-1 * clamp(46px, 8vh, 84px));   /* clip at slide edge */
  pointer-events: none;                                /* slots re-enable */
}
.fan-slot {
  pointer-events: auto;
  position: relative;
  background: none; border: none; padding: 0;
  cursor: pointer;
  margin-left: clamp(-58px, -4.2vw, -30px);
}
.fan-slot:first-child { margin-left: 0; }
.fan-slot:hover, .fan-slot:focus-visible { z-index: 20 !important; }

.fan-card {
  position: relative;
  width: clamp(168px, 16.5vw, 238px);
  height: clamp(238px, 36vh, 336px);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-align: left;
  transform: rotate(var(--rot, 0deg)) translateY(var(--lift, 0px));
  transform-origin: 50% 135%;
  background:
    linear-gradient(168deg,
      color-mix(in oklab, var(--tint, var(--accent)) 78%, #0B0D0F) 0%,
      color-mix(in oklab, var(--tint, var(--accent)) 34%, #0B0D0F) 100%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 24px 54px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.30);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
:root[data-theme="light"] .fan-card {
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 22px 48px rgba(58,58,58,0.30), inset 0 1px 0 rgba(255,255,255,0.45);
}
/* subtle diagonal sheen, like the reference cards */
.fan-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(155deg, rgba(255,255,255,0.16), transparent 38%);
}
.fan-slot:hover .fan-card,
.fan-slot:focus-visible .fan-card {
  transform: rotate(0deg) translateY(calc(var(--lift, 0px) - 90px)) scale(1.55);
  box-shadow:
    0 44px 90px rgba(0,0,0,0.58),
    0 0 0 1px rgba(255,255,255,0.25),
    inset 0 1px 0 rgba(255,255,255,0.35);
  transition-delay: 0ms;
}
/* gentle float while hovered */
@keyframes fanFloat {
  0%, 100% { transform: rotate(0deg) translateY(calc(var(--lift, 0px) - 90px)) scale(1.55); }
  50%      { transform: rotate(0deg) translateY(calc(var(--lift, 0px) - 104px)) scale(1.55); }
}
@media (prefers-reduced-motion: no-preference) {
  .fan-slot:hover .fan-card,
  .fan-slot:focus-visible .fan-card {
    animation: fanFloat 2.6s ease-in-out 0.4s infinite;
  }
}

.fan-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px;
  padding: clamp(12px, 1.3vw, 17px) clamp(13px, 1.4vw, 18px) clamp(8px, 1vw, 12px);
  position: relative; z-index: 1;
}
.fan-txt { min-width: 0; display: grid; gap: 3px; }
.fan-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(14px, 1.35vw, 19px);
  letter-spacing: -0.015em; line-height: 1.12;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.fan-desc {
  font-size: clamp(9.5px, 0.8vw, 11.5px);
  line-height: 1.35;
  color: rgba(255,255,255,0.78);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fan-badge {
  flex: 0 0 auto;
  display: inline-grid; place-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.22);
  color: #FFFFFF;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

.fan-img {
  position: relative;
  flex: 1;
  margin: 0 clamp(8px, 0.9vw, 11px) clamp(8px, 0.9vw, 11px);
  border-radius: 16px;
  overflow: hidden;
}
.fan-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(0) saturate(1.05);
  transition: transform .5s cubic-bezier(.16,1,.3,1),
              filter .35s ease .55s;   /* B&W kicks in at the END of the lift */
}
.fan-slot:hover .fan-img img {
  transform: scale(1.07);
  filter: grayscale(1) saturate(1);    /* full color through the motion, then desaturates */
}
.fan-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0.5));
}
.fan-stat {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
  color: #FFFFFF;
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .fan-slot { margin-left: -52px; }
  .fan-card { width: clamp(150px, 24vw, 190px); }
}

/* ============================================================
   HOME — two-column layout: centred text + floating card
   ============================================================ */
.slide-home-layout {
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 100px);
}

.home-center {
  flex: 0 1 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── floating slides card ── */
.home-slides-card {
  flex: 0 0 auto;
  position: relative;
  width: clamp(220px, 22vw, 300px);
  height: clamp(300px, 40vh, 460px);
  border-radius: 20px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.10),
    0 -2px 0 0 rgba(255,255,255,0.08) inset;
  animation: homeCardFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .home-slides-card { animation: none; }
}
.home-slides-card:hover {
  box-shadow:
    0 40px 96px rgba(0,0,0,0.65),
    0 0 0 1px rgba(245,134,34,0.4),
    0 0 32px rgba(245,134,34,0.18);
  animation-play-state: paused;
}
.home-slides-card:active { transform: scale(0.97); }

@keyframes homeCardFloat {
  0%, 100% { transform: translateY(0px) rotate(1.5deg); }
  50%       { transform: translateY(-18px) rotate(1.5deg); }
}

.home-slides-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.5s ease;
}
.home-slides-card:hover img { transform: scale(1.06); }

.home-slides-card-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.18) 45%,
    rgba(0,0,0,0.72) 100%
  );
  pointer-events: none;
}

.home-slides-card-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px 24px;
  gap: 4px;
}

.home-slides-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--psmfc-orange);
}

.home-slides-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  color: #fff;
  line-height: 1.15;
}

.home-slides-card-arrow {
  margin-top: 10px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--psmfc-orange);
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.home-slides-card:hover .home-slides-card-arrow {
  background: #d9720e;
  transform: translateX(4px);
}
.home-slides-card-arrow svg { width: 18px; height: 18px; color: #fff; }

@media (max-width: 780px) {
  .slide-home-layout {
    flex-direction: column !important;
    justify-content: center;
    gap: 32px;
  }
  .home-slides-card {
    width: 70vw;
    height: 200px;
    animation: homeCardFloatMobile 4s ease-in-out infinite;
  }
  @keyframes homeCardFloatMobile {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
  }
}

/* ============================================================
   MAGNETIC CAROUSEL MODAL — dock-style section picker
   ============================================================ */
#cf-portal { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
#cf-portal:has(.mc-overlay) { pointer-events: auto; }

.mc-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  animation: mcFade 0.3s ease both;
}
@keyframes mcFade { from { opacity: 0 } to { opacity: 1 } }

.mc-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(34px) brightness(0.22) saturate(0.65);
  transform: scale(1.08);
  transition: background-image 0.6s ease;
}
.mc-bg-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.72) 0%, rgba(20,16,12,0.42) 45%, rgba(20,16,12,0.85) 100%);
}

.mc-close {
  position: absolute; top: 24px; right: 28px; z-index: 12;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%; cursor: pointer; color: #fff;
  display: grid; place-items: center;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
}
.mc-close:hover { background: rgba(255,255,255,0.22) }
.mc-close svg { width: 20px; height: 20px }

.mc-head {
  position: relative; z-index: 3;
  text-align: center; margin-bottom: clamp(20px, 3.5vh, 40px);
}
.mc-head-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--psmfc-orange);
}
.mc-head-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px); color: #fff;
  letter-spacing: -0.02em; margin-top: 4px;
}

.mc-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.mc-backdrop { position: absolute; inset: -50vh -50vw; z-index: 1 }

/* ── bars ── */
.mc-bar {
  flex: none; position: relative; font: inherit; color: inherit;
  border: none; padding: 0; margin: 0;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  will-change: width, height, filter;
  box-shadow: 0 14px 44px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  display: block;
}
.mc-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.78));
  pointer-events: none;
}
.mc-bar--open {
  border-radius: 18px; cursor: default;
  box-shadow: 0 30px 90px rgba(0,0,0,0.68), 0 0 0 1px rgba(245,134,34,0.35);
}

.mc-bar-idx {
  position: absolute; top: 10px; left: 12px; z-index: 3;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  transition: opacity 0.2s;
}
.mc-bar--open .mc-bar-idx {
  background: var(--psmfc-orange); padding: 4px 9px; border-radius: 6px;
  top: 14px; left: 14px; text-shadow: none;
}

.mc-bar-label {
  position: absolute; z-index: 3;
  left: 12px; right: 12px; bottom: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; line-height: 1.25; color: #fff;
  text-align: left; text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* ── open panel info ── */
.mc-info {
  position: absolute; z-index: 4;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; padding: 26px 26px 26px;
  text-align: left;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.9) 100%);
  animation: mcInfoIn 0.4s 0.1s ease both;
}
@keyframes mcInfoIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: translateY(0) } }

.mc-info-eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--psmfc-orange);
}
.mc-info-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.12;
  color: #fff; letter-spacing: -0.02em;
}
.mc-info-desc {
  font-size: clamp(12.5px, 1vw, 15px); line-height: 1.5;
  color: rgba(255,255,255,0.76); max-width: 34ch; text-wrap: pretty;
}
.mc-info-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 11px 22px;
  background: var(--psmfc-orange); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  border-radius: 8px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,134,34,0.42);
  transition: background 0.2s, transform 0.15s;
}
.mc-info-btn:hover { background: #d9720e; transform: translateY(-2px) }
.mc-info-btn:active { transform: scale(0.97) }
.mc-info-btn svg { width: 17px; height: 17px }

.mc-hint {
  position: relative; z-index: 3;
  margin-top: clamp(20px, 3.5vh, 40px);
  font-size: 12px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
}

@media (prefers-reduced-motion: reduce) {
  .mc-overlay, .mc-info { animation: none }
}
