@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --line: rgba(255, 255, 255, 0.14);
  --teal: #0c9e9f;
  --blue: #2e9cf1;
  --red: #dc001b;
  --graphite: #555d61;
  --grad: linear-gradient(100deg, #12c2c3 0%, #2e9cf1 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.4;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------- Typography ---------- */
.kicker {
  font-size: clamp(12px, 1.05vw, 17px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-xxl { font-size: clamp(56px, 11vw, 200px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; }
.h-xl  { font-size: clamp(40px, 6.4vw, 120px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.h-l   { font-size: clamp(32px, 4.4vw, 80px);  font-weight: 650; letter-spacing: -0.035em; line-height: 1.02; }
.h-m   { font-size: clamp(24px, 2.6vw, 46px);  font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
.lead  { font-size: clamp(17px, 1.6vw, 28px);  font-weight: 450; color: var(--muted); letter-spacing: -0.01em; line-height: 1.35; }
.small { font-size: clamp(12px, 0.95vw, 15px); color: var(--dim); }
.grad  { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Slide base (shared by Present + Explore) ---------- */
.slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.slide .inner {
  position: relative;
  z-index: 2;
  width: min(1400px, 100% - 12vw);
}
.slide .inner.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.slide .inner > * + * { margin-top: clamp(14px, 1.8vw, 30px); }

.bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.bg.fallback { background: radial-gradient(120% 90% at 30% 20%, #1d2a2b 0%, #0b0f10 55%, #000 100%); }
.scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scrim.bottom { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.92) 100%); }
.scrim.full   { background: rgba(0,0,0,.62); }
.scrim.left   { background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 80%); }

.slide.align-bottom { align-items: flex-end; }
.slide.align-bottom .inner { padding-bottom: clamp(40px, 8vh, 110px); }

.caption-tag {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: clamp(11px, .9vw, 14px); letter-spacing: .08em; text-transform: uppercase; color: #e8e8ed;
}
.caption-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Title slide */
.logo-mcba { width: min(980px, 78vw); filter: drop-shadow(0 10px 40px rgba(0,0,0,.4)); }
.logo-partner { width: clamp(110px, 11vw, 190px); }

/* Guess slide */
.guess-q { font-size: clamp(48px, 9vw, 170px); font-weight: 700; letter-spacing: -0.045em; line-height: .95; }
.guess-a .h-l { margin-top: 6px; }

/* Before / after reveal */
.reveal-b { clip-path: inset(0 0 0 100%); }
.reveal-line {
  position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; z-index: 3;
  background: #fff; box-shadow: 0 0 24px rgba(255,255,255,.8);
}
.ba-label { position: absolute; z-index: 3; top: clamp(20px, 4vh, 48px); }
.ba-label.a { left: clamp(20px, 4vw, 64px); }
.ba-label.b { right: clamp(20px, 4vw, 64px); }

/* Orbit (Malta can be anywhere) */
.orbit { position: relative; width: min(84vmin, 900px); aspect-ratio: 1; }
.orbit .core {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.orbit .ring { position: absolute; inset: 8%; border: 1px solid var(--line); border-radius: 50%; }
.orbit .ring.r2 { inset: 22%; border-style: dashed; opacity: .6; }
.orbit .node {
  position: absolute; left: 50%; top: 50%;
  font-size: clamp(13px, 1.4vw, 22px); font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line);
}

/* Category cycler */
.cycler .bg { opacity: 0; }
.cycler .labels { position: relative; height: clamp(60px, 7vw, 120px); }
.cycler .labels .h-l { position: absolute; left: 0; top: 0; opacity: 0; }
.dots { display: flex; gap: 8px; }
.dots span { width: 28px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.dots span b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }

/* Lists / checks */
.list { list-style: none; display: grid; gap: clamp(10px, 1.4vw, 22px); }
.list li { display: flex; gap: 18px; align-items: baseline; font-size: clamp(20px, 2.3vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.list li .n { font-size: .5em; color: var(--dim); font-variant-numeric: tabular-nums; min-width: 2.2em; }
.checks li { align-items: center; }
.tick {
  flex: 0 0 auto; width: clamp(30px, 2.6vw, 46px); height: clamp(30px, 2.6vw, 46px); border-radius: 50%;
  display: grid; place-items: center; background: rgba(12,158,159,.18); border: 1px solid rgba(18,194,195,.5);
}
.tick svg { width: 55%; height: 55%; }
.tick path { stroke: #12c2c3; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }

/* Big stat */
.stat-num { font-size: clamp(120px, 26vw, 460px); font-weight: 800; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: .42em; vertical-align: .9em; letter-spacing: -.02em; margin-left: .04em; }

/* Stack bar */
.stack { width: 100%; }
.stack .bar { position: relative; height: clamp(70px, 9vw, 150px); border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid var(--line); overflow: hidden; }
.stack .seg { position: absolute; top: 0; bottom: 0; left: 0; width: 0; display: flex; align-items: center; padding-left: 26px; font-weight: 700; font-size: clamp(22px, 2.6vw, 44px); letter-spacing: -.03em; white-space: nowrap; }
.stack .seg.base { background: linear-gradient(90deg, #0a7f80, var(--teal)); }
.stack .seg.uplift { background: linear-gradient(90deg, #1f86d6, var(--blue)); }
.stack .scale { display: flex; justify-content: space-between; margin-top: 12px; color: var(--dim); font-size: clamp(12px, 1vw, 15px); font-variant-numeric: tabular-nums; }
.stack .legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 60px); margin-top: clamp(24px, 3vw, 50px); }
.stack .legend b { display: block; font-size: clamp(28px, 3.4vw, 60px); letter-spacing: -.04em; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); width: 100%; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: clamp(18px, 2vw, 32px); border-radius: 24px; min-height: clamp(110px, 12vw, 200px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.card .t { font-size: clamp(18px, 1.7vw, 30px); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.card .d { font-size: clamp(13px, 1.05vw, 17px); color: var(--muted); }
.card .i { font-size: clamp(12px, .9vw, 14px); color: var(--teal); font-weight: 700; letter-spacing: .12em; }

/* Timeline */
.timeline { position: relative; width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(10px, 1.4vw, 24px); padding-top: 34px; }
.timeline .track { position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline .track b { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.timeline .stop { position: relative; }
.timeline .stop::before { content: ""; position: absolute; top: -31px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #000; border: 2px solid #12c2c3; }
.timeline .stop .t { font-size: clamp(17px, 1.7vw, 30px); font-weight: 650; letter-spacing: -.02em; }
.timeline .stop .d { margin-top: 8px; font-size: clamp(12px, 1vw, 16px); color: var(--muted); line-height: 1.45; }

/* Calculator */
.calc { width: 100%; display: grid; gap: clamp(20px, 3vw, 48px); }
.calc .spend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 24px; }
.calc .spend output { font-size: clamp(44px, 6vw, 110px); font-weight: 750; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: rgba(255,255,255,.16); outline: none; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.5); cursor: grab; }
.calc input[type=range]::-moz-range-thumb { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; cursor: grab; }
.calc input[type=range]:focus-visible { box-shadow: 0 0 0 3px rgba(46,156,241,.6); }
.calc .presets { display: flex; flex-wrap: wrap; gap: 10px; }
.calc .presets button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: clamp(13px, 1vw, 16px); font-weight: 600; transition: background .2s, border-color .2s; }
.calc .presets button:hover, .calc .presets button[aria-pressed=true] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.calc .results { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 2vw, 30px); }
.calc .res { padding: clamp(18px, 2.4vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.calc .res.hi { background: linear-gradient(160deg, rgba(12,158,159,.28), rgba(46,156,241,.18)); border-color: rgba(46,156,241,.45); }
.calc .res b { display: block; font-size: clamp(34px, 5vw, 92px); font-weight: 750; letter-spacing: -.05em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 4vw, 80px); width: 100%; }
.person { display: flex; gap: clamp(16px, 2vw, 32px); align-items: center; }
.person img { width: clamp(110px, 13vw, 230px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #111; }
.person .t { font-size: clamp(22px, 2.2vw, 40px); font-weight: 650; letter-spacing: -.025em; }
.person .d { color: var(--muted); font-size: clamp(14px, 1.2vw, 20px); margin-top: 4px; }

/* Closing */
.qr { width: clamp(120px, 12vw, 210px); aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 12px; }
.qr img { width: 100%; height: 100%; }
.close-row { display: flex; gap: clamp(24px, 4vw, 70px); align-items: center; justify-content: center; flex-wrap: wrap; }

/* Divider */
.divider .num { font-size: clamp(14px, 1.2vw, 20px); font-weight: 700; letter-spacing: .2em; color: var(--teal); }

/* Disclaimer */
.disclaimer { font-size: clamp(11px, .9vw, 14px); color: var(--dim); max-width: 70ch; }

/* Word split animation helpers */
.w { display: inline-block; will-change: transform, opacity; }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
