/* Bright.Blue investor deck: design system
   Tokens follow Retail Media Inventory and the Bright.Blue website. */

@font-face { font-family: 'Nunito'; src: url(assets/fonts/Nunito-Variable.ttf) format('truetype'); font-weight: 200 1000; font-display: block; }
@font-face { font-family: 'DM Sans'; src: url(assets/fonts/DMSans-Variable.ttf) format('truetype'); font-weight: 100 1000; font-display: block; }

:root {
  --bg: #000;
  --blue: #183ef6;
  --cyan: #00bfe8;
  --text: #fff;
  --muted: rgba(255, 255, 255, .64);
  --faint: rgba(255, 255, 255, .52);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --line-blue: rgba(24, 62, 246, .45);
  --surface: rgba(255, 255, 255, .03);
  --card: linear-gradient(160deg, rgba(24, 62, 246, .11) 0%, rgba(24, 62, 246, .05) 100%);
  --grad: linear-gradient(120deg, #183ef6 0%, #00bfe8 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --head: 'Nunito', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --side: 140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { font-family: var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p, h1, h2, h3, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; }

/* ── stage ───────────────────────────────────────── */
.viewport { position: fixed; inset: 0; overflow: hidden; background: #000; }
.deck { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; margin: -540px 0 0 -960px; transform-origin: center center; }
.slide { position: absolute; inset: 0; overflow: hidden; background: var(--bg); opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; z-index: 2; }

/* the one orb: a single soft blue light, top right unless moved */
.slide::before { content: ''; position: absolute; z-index: 0; pointer-events: none; width: 1400px; height: 1400px;
  right: -560px; top: -560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 62, 246, .34) 0%, rgba(24, 62, 246, .12) 38%, rgba(24, 62, 246, 0) 70%); }
.slide.orb-left::before { right: auto; left: -620px; top: -620px; }
.slide.orb-low::before { top: auto; bottom: -760px; right: -420px; }
.slide.orb-center::before { right: auto; left: 50%; top: 50%; margin: -700px 0 0 -700px;
  background: radial-gradient(circle, rgba(24, 62, 246, .26) 0%, rgba(24, 62, 246, .08) 40%, rgba(24, 62, 246, 0) 68%); }
.slide.noglow::before { display: none; }

.frame { position: absolute; inset: 96px var(--side) 0 var(--side); z-index: 3; }
.abs { position: absolute; }

/* ── brand chrome ────────────────────────────────── */
.logo { position: absolute; z-index: 6; top: 92px; right: var(--side); height: 34px; width: auto; }
.foot { position: absolute; z-index: 6; left: var(--side); right: var(--side); bottom: 40px; display: flex;
  justify-content: space-between; font: 500 13px/1 var(--body); letter-spacing: 2.6px; text-transform: uppercase; color: var(--faint); }
.foot .sep { color: var(--cyan); }
.foot b { font-weight: 500; color: var(--faint); }

/* ── type ────────────────────────────────────────── */
.eyebrow { font: 700 22px/1 var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); }
.h1 { font: 800 112px/1.0 var(--head); letter-spacing: -2.6px; }
.h2 { font: 800 72px/1.04 var(--head); letter-spacing: -1.2px; margin-top: 22px; }
.lead { font: 400 30px/1.36 var(--body); color: var(--muted); margin-top: 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3 { font: 800 30px/1.12 var(--head); letter-spacing: -.3px; }
.label { font: 700 15px/1.2 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--cyan); }
.label.dim { color: var(--faint); }
.body { font: 400 21px/1.42 var(--body); color: var(--muted); }
.small { font: 400 18px/1.45 var(--body); color: var(--muted); }
.fine { font: 400 14px/1.5 var(--body); color: var(--faint); }
.num { font-family: var(--head); font-weight: 800; letter-spacing: -1.5px; line-height: .95; font-variant-numeric: lining-nums tabular-nums; }
.tbc { color: rgba(255, 255, 255, .42); }
.hd { max-width: 1520px; }

/* ── icons ───────────────────────────────────────── */
.i { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff; flex: none;
  box-shadow: 0 10px 28px rgba(24, 62, 246, .32); }
.chip .i { width: 28px; height: 28px; stroke-width: 1.7; }
.ring-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-blue);
  color: var(--cyan); flex: none; background: rgba(24, 62, 246, .08); }
.ring-ic .i { width: 26px; height: 26px; }
.tick { color: var(--cyan); width: 20px; height: 20px; stroke-width: 2.2; }

/* ── lines and surfaces ──────────────────────────── */
.rule { height: 3px; width: 120px; background: var(--grad); border-radius: 2px; }
.hair-t { border-top: 1px solid var(--line); }
.hair-b { border-bottom: 1px solid var(--line); }
.hair-l { border-left: 1px solid var(--line); }
/* boxes: the Retail Media Inventory card, stat strip and icon tile */
.panel, .card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; }
.panel.blue, .card.hi { background: linear-gradient(160deg, rgba(24, 62, 246, .30) 0%, rgba(24, 62, 246, .10) 100%); border-color: var(--line-blue); }
.kbox { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 24px; background: var(--card); border: 1px solid var(--line-strong); }
.kbox > div { padding: 24px 28px 26px; min-width: 0; }
.kbox > div + div { border-left: 1px solid var(--line-strong); }
.tile { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--cyan);
  background: linear-gradient(120deg, rgba(24, 62, 246, .22), rgba(0, 191, 232, .22)); border: 1px solid rgba(0, 191, 232, .16); }
.tile .i { width: 24px; height: 24px; stroke-width: 1.9; }
.tile.g { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 26px rgba(24, 62, 246, .35); }
.photo { position: relative; overflow: hidden; border-radius: 24px; background: #0b0b0d; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }

/* flow line: words joined by a thin gradient rule */
.flow { display: flex; align-items: center; gap: 0; font: 700 15px/1 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--text); }
.flow > span { white-space: nowrap; }
.flow > i { flex: 1; height: 1px; min-width: 40px; margin: 0 18px; position: relative; background: linear-gradient(90deg, rgba(24, 62, 246, .9), rgba(0, 191, 232, .9)); }
.flow.dim { color: var(--muted); }

/* ── motion ──────────────────────────────────────── */
.r { opacity: 0; transform: translateY(42px); }
.fd { opacity: 0; }
.on.play .r { animation: rise .62s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 50ms); }
.on.play .fd { animation: fade 1s ease both; animation-delay: calc(var(--i, 0) * 90ms + 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroIn { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinBack { to { transform: rotate(-360deg); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

.bar-v { transform-origin: bottom; }
.on.play .bar-v { animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 350ms); }
.bar-h { transform-origin: left; }
.on.play .bar-h { animation: growX .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 350ms); }

/* QA / print mode: final state, no motion */
.still .r { opacity: 1 !important; transform: none !important; animation: none !important; }
.still .fd { opacity: 1 !important; animation: none !important; }
.still .bar-v, .still .bar-h, .still .m-arc, .still [data-anim] { animation: none !important; }
.still .slide { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .r, .fd { opacity: 1; transform: none; }
  .on.play .r, .on.play .fd, .on.play .bar-v, .on.play .bar-h { animation: none; }
  .spin, .spin-back { animation: none !important; }
}

/* ── deck chrome (outside the slide content) ─────── */
.progress { position: absolute; z-index: 20; left: 0; bottom: 0; height: 2px; background: var(--grad); transition: width .5s var(--ease); }
.nav { position: fixed; z-index: 30; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .4); color: #fff; display: grid; place-items: center;
  cursor: pointer; opacity: 0; transition: opacity .3s; }
.nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav.prev { left: 18px; } .nav.next { right: 18px; }
body:hover .nav { opacity: .7; } .nav:hover { opacity: 1 !important; }
.still .nav, .still .progress { display: none; }
.notes { display: none; }
.notes-panel { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 34vh; overflow: auto; padding: 18px 28px 22px;
  background: rgba(8, 8, 10, .94); border-top: 1px solid var(--line-strong); font: 400 16px/1.5 var(--body); color: rgba(255, 255, 255, .82);
  transform: translateY(100%); transition: transform .35s var(--ease); }
.notes-panel.open { transform: none; }
.notes-panel h4 { margin: 0 0 6px; font: 700 12px/1 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--cyan); }
