/* ============================================================
   Reve — intern presentation
   Deck chrome, the persistent lockup, slide transitions.
   Tokens mirror the Reve Internal design system.
   ============================================================ */

@font-face { font-family: ReveUI; font-weight: 100 900; font-display: block;
  src: url(assets/fonts/ReveUI.shifted-variable-DEpnxcwd.woff2) format("woff2"); }
@font-face { font-family: ReveDisplay; font-weight: 400; font-display: block;
  src: url(assets/fonts/ReveDisplay-regular-Ifmj0DxC.woff2) format("woff2"); }
@font-face { font-family: ReveDisplay; font-weight: 500; font-display: block;
  src: url(assets/fonts/ReveDisplay-medium-DzSoDmR9.woff2) format("woff2"); }
@font-face { font-family: ReveSansMono; font-weight: 100 900; font-display: block;
  src: url(assets/fonts/ReveSansMono-variable-hzh9PIPz.woff2) format("woff2"); }

:root {
  --ui: ReveUI, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: ReveDisplay, -apple-system, system-ui, Georgia, serif;
  --mono: ReveSansMono, ui-monospace, "SF Mono", Menlo, monospace;

  --canvas: #fafafa;
  --canvas-dark: #0a0a0a;
  --panel: #fff;
  --border: #ececec;
  --hair: #f0f0f0;
  --gray-50: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #e6e6e6;
  --gray-300: #d6d6d6;

  --ink: #000;
  --ink-900: #1a1a1a;
  --ink-soft: #575757;
  --ink-mute: #757575;
  --ink-faint: #a6a6a6;

  --green: #15803c;
  --amber: #a16207;
  --blue: #2463eb;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  --shadow-screen: 0 1px 2px rgba(0,0,0,.04), 0 18px 44px -16px rgba(0,0,0,.16);
  --shadow-float: 0 24px 60px -18px rgba(0,0,0,.45);

  /* One motion vocabulary for the whole deck. Anything that ARRIVES uses
     --ease-out (long settling tail), anything that LEAVES uses --ease-in
     (accelerates away), and the lockup's long journeys use --ease-io. */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-io: cubic-bezier(.66, 0, .18, 1);

  --stage-w: 1600px;
  --stage-h: 900px;
  --col-w: 1240px;

  /* The lockup is authored at hero size and only ever scales down.
     The wordmark SVG has padding in its viewBox: the letterforms run y 4→146.4
     of 148, so the badge is sized against the INK, not the image box — then
     inset by --lk-pill-scale so it sits just inside the height of "Reve". */
  --lk-mark-h: 76px;
  --lk-mark-w: 208px;
  --lk-gap: 22px;
  --ink-h: .962;
  /* air either side of the badge text — keep in sync with PILL_PAD in deck.js.
     ~.47 of the pill height, matching the in-app badge's proportions */
  --lk-pill-pad: 31px;
  --ink-top: .027;
  /* the badge sits inset inside the wordmark's ink band rather than matching it
     exactly, which is how the real lockup reads */
  --lk-pill-scale: .9;
  --lk-pill-h: calc(var(--lk-mark-h) * var(--ink-h) * var(--lk-pill-scale));
  --lk-dur: 700ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: #0e0e0e;
  font-family: var(--ui);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
body.cursor-idle { cursor: none; }
img { display: block; max-width: 100%; }
::selection { background: #000; color: #fff; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; }

/* ============ stage ============ */

.deck {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: #0e0e0e;
  overflow: hidden;
}

/* the page tone lives on the stage, not on the slides — so Party's flip to
   dark is one continuous colour change instead of a slide crossfade */
/* Anchored to the viewport centre by hand rather than by the parent grid.
   `place-items: center` refuses to centre a grid item that is LARGER than its
   track — it falls back to start alignment — so on any screen under 1600x900
   the 1600-wide stage sat flush left and then scale() pushed it off by exactly
   (1600 - scaledWidth) / 2. Negative margins put the unscaled box's centre on
   the viewport centre, and a centre-origin scale keeps it there at every size.
   Absolute positioning also takes it out of grid flow, so .deck's other
   children are unaffected. */
.stage {
  position: absolute;
  left: 50%; top: 50%;
  margin-left: calc(var(--stage-w) / -2);
  margin-top: calc(var(--stage-h) / -2);
  width: var(--stage-w); height: var(--stage-h);
  background: var(--canvas);
  transform-origin: center center;
  overflow: hidden;
  transition: background-color .75s var(--ease-io);
}
.stage.dark { background: var(--canvas-dark); }

/* Slides are transparent: a light→light change is a true element-level
   crossfade over one unbroken canvas, with no background dissolving. */
.slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: transparent;
  opacity: 0; visibility: hidden;
  z-index: 1;
}
.slide.on { opacity: 1; visibility: visible; z-index: 2; }
/* the slide we are leaving stays painted, on top, until its content has flown */
.slide.leaving { opacity: 1; visibility: visible; z-index: 3; pointer-events: none; }

/* ============ the lockup ============ */

.lockup {
  position: absolute; left: 0; top: 0; z-index: 10;
  display: inline-flex; align-items: center; gap: var(--lk-gap);
  transform-origin: 0 0;
  will-change: transform;
  opacity: 0;
  transition: transform .9s var(--ease-io), opacity .45s var(--ease-soft);
}
.lockup.in { opacity: 1; }
/* the one step that drops the mark entirely; it still holds its place in the
   choreography underneath, so stepping back brings it straight home */
.lockup.gone { opacity: 0; transition: opacity .42s var(--ease-in); }

/* the mark's size is measured, not hardcoded, so the hero state always centres
   on whatever it actually is */
.lk-mark { display: flex; align-items: center; flex: 0 0 auto; }
.lk-wm { position: relative; display: block; width: var(--lk-mark-w); height: var(--lk-mark-h); flex: 0 0 auto; }
.lk-wm img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s var(--ease-io); }
.lk-white { opacity: 0; }
.lockup.dark .lk-black { opacity: 0; }
.lockup.dark .lk-white { opacity: 1; }

/* the pill resizes on exactly the same clock as the lockup re-centres,
   so the mark never drifts off centre mid-swap */
.lk-tag {
  position: relative; flex: 0 0 auto;
  height: var(--lk-pill-h);
  /* the wordmark's ink band sits ~0.9% below its box centre; the row is centred,
     so nudging by that keeps the badge on the letterforms */
  margin-top: calc(var(--lk-mark-h) * (var(--ink-top) + var(--ink-h) / 2) - var(--lk-mark-h) / 2);
  border-radius: calc(var(--lk-pill-h) * .25);
  background: var(--ink);
  overflow: hidden;
  /* the pill animates width on every badge change; keep that reflow boxed in */
  contain: layout paint;
  transform-origin: 0 50%;
  transition: width var(--lk-dur) var(--ease-out),
              background-color .6s var(--ease-io),
              opacity .4s var(--ease-soft),
              transform .6s var(--ease-out);
}
.lockup.dark .lk-tag { background: #fff; }
.lockup[data-tag="off"] .lk-tag { opacity: 0; transform: scaleX(.5); }

.lk-t {
  position: absolute; left: var(--lk-pill-pad); top: 0; height: 100%;
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--mono); font-size: 33px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  perspective: 300px;
  transition: color .6s var(--ease-io);
}
.lockup.dark .lk-t { color: #000; }
/* split-flap: each character is its own panel */
.lk-c { display: inline-block; will-change: transform, opacity; }
/* …and for Party, each panel is a slot reel */
.lk-c.spin { animation: slot .085s linear infinite; }
@keyframes slot {
  0%   { transform: translateY(-40%); opacity: .5; }
  50%  { transform: none;             opacity: 1; }
  100% { transform: translateY(40%);  opacity: .5; }
}
.lk-c.land { animation: slotLand .34s var(--ease-out); }
@keyframes slotLand {
  0%   { transform: translateY(26%); }
  55%  { transform: translateY(-7%); }
  100% { transform: none; }
}

.confetti {
  position: absolute; left: 0; top: 0;
  width: var(--stage-w); height: var(--stage-h);
  z-index: 20; pointer-events: none;
}

/* the footage sits under the lockup, so the docked Reve · Party badge stays
   legible over it — hence the scrim */
.pw-zoom.leaving { opacity: 0; transition: opacity .38s var(--ease-in); }
.pw-zoom {
  position: absolute; inset: 0; z-index: 8;
  background: #000; pointer-events: none;
  clip-path: inset(0 round 0);
}
.pw-zoom[hidden] { display: none; }
.pw-zoom::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}

/* The footage pushes in while the tile's frame opens, so the two read as one
   camera move instead of a mask wiping across a still. Scale only ever settles
   inward — 1.26 → 1.07 → 1.03 — because reversing direction mid-flight wobbles.
   The defocus is deliberately light: the room stays watchable underneath the
   numbers rather than turning into a grey field, so the scrim below is what
   buys the type its contrast. */
.pw-zvid {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.07);
  filter: blur(0) brightness(1);
  transition: filter 1.5s var(--ease-io), transform 2.1s var(--ease-out);
}
.pw-zoom.enter .pw-zvid {
  transform: scale(1.26);
  filter: blur(0) brightness(1.07);
  transition: none;
}
.pw-zoom.stats .pw-zvid { filter: blur(2.5px) brightness(.88) saturate(1.06); transform: scale(1.03); }

/* Contrast comes from a shaped scrim rather than from crushing the footage:
   darkest through the middle band where the type sits, lighter at the corners
   so the room still reads. */
.pw-zscrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(78% 46% at 50% 52%, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .34) 58%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, .3));
  opacity: 0;
  transition: opacity 1.1s var(--ease-io);
}
.pw-zoom.stats .pw-zscrim { opacity: 1; }

.pw-stats {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  padding: 0 80px; text-align: center;
  color: #fff;
  opacity: 0;
  /* short, so the parent is out of the way by the time the first tile below
     starts its own rise — at .7s the two fades fought each other */
  transition: opacity .22s var(--ease-out);
}
.pw-zoom.stats .pw-stats { opacity: 1; transition-delay: .45s; }
.pw-stats-ml { color: rgba(255,255,255,.62); font-size: 12px; }

.pw-statgrid { display: flex; align-items: flex-start; gap: 58px; }
.pw-statgrid > div {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  opacity: 0; transform: translateY(12px);
}
.pw-zoom.stats .pw-statgrid > div { animation: rise .7s var(--ease-out) both; }
.pw-zoom.stats .pw-statgrid > div:nth-child(1) { animation-delay: .60s; }
.pw-zoom.stats .pw-statgrid > div:nth-child(2) { animation-delay: .70s; }
.pw-zoom.stats .pw-statgrid > div:nth-child(3) { animation-delay: .80s; }
.pw-zoom.stats .pw-statgrid > div:nth-child(4) { animation-delay: .90s; }
.pw-zoom.stats .pw-statgrid > div:nth-child(5) { animation-delay: 1.00s; }
/* the footage underneath is still moving, so every glyph carries its own
   shadow rather than relying on the background being uniformly dark */
.pw-statgrid b {
  font-size: 74px; line-height: 1; font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.6);
}
.pw-statgrid span {
  font-size: 10px; color: rgba(255,255,255,.8);
  max-width: 11ch; line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.pw-stats-ml { text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.pw-stats-line {
  font-size: 17px; line-height: 1.5; max-width: 46ch;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 10px rgba(0,0,0,.85);
}
.pw-stats-line b { font-weight: 550; color: #fff; }

/* ============ the room: the night's own photographs, edge to edge ============ */

.pw-grid {
  position: absolute; inset: 0; z-index: 9;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 0 30px;
  opacity: 0; pointer-events: none;
  transition: opacity .55s var(--ease-out);
}
.pw-grid[hidden] { display: none; }
.pw-grid.in { opacity: 1; }
/* Each frame keeps its own proportions and its own height — nothing is cropped
   to a common box, which is the whole point of laying them out by hand. --dy
   lifts and drops alternate frames off the centre line so the row reads as a
   composition rather than five things aligned by default. */
.pg-cell {
  position: relative; margin: 0; overflow: hidden; flex: 0 0 auto;
  height: var(--h); aspect-ratio: var(--ar);
  transform: translateY(var(--dy, 0));
  border-radius: 12px; background: #141414;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
}
.pg-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* cells rise in on the deck's canonical stagger; on a jump-to (no .play) the
   grid is simply there, the way every other default state in this deck is.
   The keyframes carry --dy themselves — a transform animation would otherwise
   drop the offset for its whole duration and every frame would snap on land. */
.pw-grid.play .pg-cell { animation: pgIn .7s var(--ease-out) both; animation-delay: calc(var(--n) * 60ms + 140ms); }
@keyframes pgIn {
  from { opacity: 0; transform: translateY(calc(var(--dy, 0px) + 20px)) scale(.95); }
  to   { opacity: 1; transform: translateY(var(--dy, 0px)) scale(1); }
}

/* ============ the work: a wall that never stops scrolling ============
   Five columns, each running at its own speed so the loop never lands as one
   seam across the frame. Every column holds its cards twice, so translateY of
   -50% returns to an identical frame and the join is invisible. Cards are the
   deck's own surfaces — white, hairline, one radius — sized only by how much
   they have to say. */

.slide-summary { background: var(--canvas); }
.pc-wall {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; gap: 16px; padding: 0 28px;
  justify-content: center;
}
.pc-col { flex: 1 1 0; min-width: 0; max-width: 300px; overflow: hidden; }
.pc-track { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.slide.on .pc-track { animation: pcRise var(--dur, 90s) linear infinite; }
@keyframes pcRise { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* the wall runs under the docked lockup, so the top edge gets a scrim and the
   bottom a fade — otherwise cards collide with the mark and the loop's cut
   line is visible along the floor */
.pc-veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    linear-gradient(to bottom, var(--canvas) 30px, rgba(250, 250, 250, 0) 156px),
    linear-gradient(to top,    var(--canvas) 34px, rgba(250, 250, 250, 0) 150px);
}

.pc-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 17px 19px 18px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--ink);
  letter-spacing: -.005em;
}
.pc-card .pc-sub { font-size: 11.5px; font-weight: 400; color: var(--ink-mute); line-height: 1.4; }

/* a number card leads with the figure, the way a keynote tile does */
.pc-card.stat { align-items: flex-start; gap: 2px; padding: 19px; }
.pc-card.stat b {
  font-family: var(--display); font-weight: 500; letter-spacing: -.02em;
  font-size: 40px; line-height: 1.02; font-variant-numeric: tabular-nums;
}
.pc-card.stat span { font-size: 12px; font-weight: 450; color: var(--ink-mute); }

/* the occasional black or coloured tile, so the wall has a pulse */
.pc-card.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.pc-card.ink .pc-sub, .pc-card.ink span { color: rgba(255, 255, 255, .6); }
.pc-card.tint { border: 0; color: #fff; }
.pc-card.tint.v1 { background: linear-gradient(150deg, #7b2ff7, #b721ff); }
.pc-card.tint.v2 { background: linear-gradient(150deg, #0072ff, #00c6ff); }
.pc-card.tint.v3 { background: linear-gradient(150deg, #11998e, #38ef7d); }
.pc-card.tint.v4 { background: linear-gradient(150deg, #ff5858, #f857a6); }
.pc-card.tint.v5 { background: linear-gradient(150deg, #f6d365, #fda085); color: var(--ink); }
.pc-card.tint span, .pc-card.tint .pc-sub { color: rgba(255, 255, 255, .72); }
.pc-card.tint.v5 span, .pc-card.tint.v5 .pc-sub { color: rgba(0, 0, 0, .55); }

/* section headings ride the wall like any other card */
.pc-card.head {
  font-family: var(--display); font-size: 21px; font-weight: 500;
  letter-spacing: -.02em; line-height: 1.12; padding: 20px 19px 21px;
}
/* a quote keeps the mono voice the rest of the deck uses for asides */
.pc-card.egg { background: var(--gray-50); border-style: dashed; }
.pc-card.egg .pc-kicker {
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.pc-card .pc-kicker {
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.pc-card.ink .pc-kicker, .pc-card.tint .pc-kicker { color: rgba(255, 255, 255, .55); }
.pc-card.tint.v5 .pc-kicker { color: rgba(0, 0, 0, .45); }

/* ============ shared primitives ============ */

/* default state is FINAL; entrance animations only run while .play is set,
   so overview thumbnails render fully composed */
/* `backwards`, not `both`: once the entrance has landed the animation must stop
   applying, so the base style governs again and the intro line can TRANSITION
   out. With `both` it kept holding opacity/transform, and because .play is torn
   down in the same frame .intro-done arrives, the exit had no before-value to
   animate from and the name just vanished on first run. The `to` keyframe
   already equals the base style, so nothing pops when it hands off. */
.slide.play .r { animation: rise .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 95ms + var(--d, 0ms)); }
.slide.play .a { animation: rise .62s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 34ms + var(--d, 500ms)); }
.slide.play .s { animation: slidein .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 44ms + var(--d, 520ms)); }

@keyframes rise { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(-11px); } to { opacity: 1; transform: none; } }

/* ============ 1 · intro ============ */

.intro { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro-line {
  display: flex; align-items: center; gap: 13px;
  margin: 0;
  font-family: var(--display); font-weight: 500;
  font-size: 36px; letter-spacing: -.02em; line-height: 1;
}
.lk-anchor { display: block; width: 71px; height: 26px; }
.intro-sub { margin: 0; font-size: 10.5px; color: var(--ink-faint); }

/* the line defocuses and clears out so the mark can own the frame */
.slide-intro .intro-line > span,
.slide-intro .intro-sub {
  transition: opacity .5s var(--ease-in), transform .5s var(--ease-in), filter .5s var(--ease-in);
}
.slide-intro.intro-done .intro-line > span,
.slide-intro.intro-done .intro-sub {
  animation: none !important;
  opacity: 0; transform: translateY(-14px); filter: blur(9px);
}

/* ============ 2–5 · product slides ============ */

/* Two states per product slide: `title` (nothing but the centred lockup) and
   `.ui` (the screen). Toggling .ui is what flies the interface in and out —
   a transition, not an animation, so it reads identically in both directions. */
.slide-proj .col {
  position: absolute; top: 176px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  transition: transform 1.15s var(--ease-io), filter 1.15s var(--ease-io),
              opacity 1.15s var(--ease-io);
}
/* the wall recedes as the photo claims the frame, so the reveal has depth
   instead of reading as a mask sliding across a wall that never moved */
.slide.zoom-away .col {
  transform: translateX(-50%) scale(.955);
  filter: blur(2.5px);
  opacity: .45;
}

/* The interface blooms in only after the lockup has cleared the frame on its
   way to the dock — otherwise the two cross paths and the logo reads as an
   overlay sitting on top of the UI. Out of focus on the way in and out. */
.screen {
  position: relative;
  width: var(--col-w); height: 620px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-screen);
  overflow: hidden;
  flex: 0 0 auto;
  will-change: transform, opacity, filter;
  /* Both states declare the SAME transform function list so the browser
     interpolates component-wise; a mismatched list (e.g. `none`) falls back to
     matrix interpolation and the tilt skews on the way through. A big surface
     needs depth to read as arriving — a bare translateY on a 1240px box just
     looks like a banner sliding up. Blur is only 5px: at 10px the first frame
     of a full-size blur visibly hitches, which is most of what read as cheap. */
  opacity: 0;
  transform: perspective(1600px) translateY(54px) rotateX(4.5deg) scale(.957);
  filter: blur(5px);
  transition: opacity .3s var(--ease-in), transform .4s var(--ease-in), filter .3s var(--ease-in);
}
.slide-proj.ui .screen {
  opacity: 1;
  transform: perspective(1600px) translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
  /* opacity and blur resolve early so the surface is legible while it is still
     settling — the long tail belongs to the transform alone */
  /* .15s, not .3s: the outgoing screen is a .3s ease-in fade, so a .3s delay
     made this a fade-out-then-fade-in handoff rather than the true crossfade
     the transparent-slide comment above describes. Settles at 150+1250=1400ms,
     which is the clock the lockup's dock move in deck.js matches. */
  transition: opacity .5s var(--ease-out) .15s,
              transform 1.25s var(--ease-out) .15s,
              filter .52s var(--ease-out) .15s;
}
.screen-dark { background: #0a0a0a; border-color: #262626; box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 22px 60px -18px rgba(0,0,0,.7); }

.mock { position: absolute; inset: 0; overflow: hidden; }

.cap {
  text-align: center; max-width: 880px;
  opacity: 0; transform: translateY(16px); filter: blur(6px);
  transition: opacity .3s var(--ease-in), transform .36s var(--ease-in), filter .3s var(--ease-in);
}
.slide-proj.ui .cap {
  opacity: 1; transform: none; filter: blur(0);
  /* the outgoing caption is gone by ~300ms; a .62s delay left a visible hole
     between the two, so the incoming one now starts inside that gap */
  transition: opacity .4s var(--ease-out) .4s,
              transform .9s var(--ease-out) .4s,
              filter .4s var(--ease-out) .4s;
}
.cap-desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.cap-meta { margin: 8px 0 0; font-size: 9.5px; color: var(--ink-faint); }
.cap-dark .cap-desc { color: #a6a6a6; }
.cap-dark .cap-meta { color: #5e5e5e; }

/* ============ overview ============ */

.ov {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10,10,10,.94);
  backdrop-filter: blur(10px);
  padding: 46px 54px;
  display: flex; flex-direction: column; gap: 26px;
  animation: ovIn .26s var(--ease-soft) both;
}
.ov[hidden] { display: none; }
.ov.closing { animation: ovOut .18s var(--ease-in) both; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ovOut { from { opacity: 1; } to { opacity: 0; } }
.ov-head { display: flex; align-items: baseline; gap: 16px; }
.ov-title { color: #fff; font-size: 12px; }
.ov-hint { color: #707070; font-size: 10.5px; margin-left: auto; }
.ov-grid {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  /* the cells get their height from an inline aspect-ratio against a 1fr track,
     which the implicit auto rows size as if it were zero — rows then pitched
     shorter than the cells and every row overlapped the one above */
  grid-auto-rows: max-content;
  align-content: start; overflow: auto;
}
.ov-cell {
  position: relative; cursor: pointer;
  border-radius: 10px; overflow: hidden;
  background: var(--canvas);
  outline: 1px solid #2e2e2e;
  transition: outline-color .2s var(--ease-out), transform .2s var(--ease-out);
  animation: rise .38s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 18ms + 60ms);
}
.ov.closing .ov-cell { animation: none; }
.ov-cell.dark { background: var(--canvas-dark); }
.ov-cell:hover { outline-color: #fff; transform: translateY(-3px); }
.ov-cell.cur { outline: 2px solid #fff; }
.ov-cell .ov-scaler { position: absolute; left: 0; top: 0; width: var(--stage-w); height: var(--stage-h); transform-origin: 0 0; pointer-events: none; }
.ov-cell .ov-scaler .slide { opacity: 1 !important; visibility: visible !important; }
.ov-cell .ov-scaler .screen,
.ov-cell .ov-scaler .cap { transition: none !important; }
.ov-cell .ov-scaler .lockup { opacity: 1; transition: none; }
.ov-video {
  position: absolute; inset: 0; background: rgba(0,0,0,.66);
  display: grid; place-items: center; color: #fff;
}
.ov-video svg { width: 26px; height: 26px; }
.ov-lbl {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0));
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
}
.ov-lbl b { color: #a6a6a6; font-weight: 400; }

/* ============ chrome ============ */

.chrome {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 16px 26px;
  opacity: 1; transition: opacity .4s var(--ease-soft);
}
.chrome.hide { opacity: 0; pointer-events: none; }
.dots { display: flex; align-items: center; gap: 7px; }
.dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: #3a3a3a; cursor: pointer;
  transition: background .25s var(--ease-soft), width .3s var(--ease-soft);
}
.dots button:hover { background: #6e6e6e; }
.dots button.on { background: #fff; width: 20px; border-radius: var(--r-full); }
.dots button.gap { margin-left: 13px; }
.dots button.title { background: #565656; }
.dots button.title.on { background: #fff; }
.counter { color: #6e6e6e; font-size: 10.5px; display: flex; gap: 4px; }
.counter b { color: #fff; font-weight: 400; }
.hint { margin-left: auto; color: #4a4a4a; font-size: 10px; letter-spacing: .09em; }
.hint b { color: #8a8a8a; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .slide.play * { animation: none !important; }
  .stage, .slide, .lockup, .lk-tag, .lk-t, .screen, .cap,
  .ms-scene, .mc-scene, .mp-scene { transition: none !important; }
}
