/* Lumina pitch deck. Fixed 1920x1080 stage scaled to the viewport. No external requests. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-var.woff2") format("woff2"); font-weight: 400 800; font-display: block; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken500.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken600.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken700.woff2") format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plexmono400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plexmono500.woff2") format("woff2"); font-weight: 500; font-display: block; }

:root {
  --dusk: #17122b; --pane: #221a3d; --pane2: #2c2350; --paper: #f4f0ff; --ink: #1d1733;
  --lumen: #8c6bff; --lumenhi: #a18aff; --lantern: #ffb547; --mist: #a99fc8; --pulse: #33d6a6;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0e0a1c; overflow: hidden; }
body { font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--paper); -webkit-font-smoothing: antialiased; }
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
  background: var(--dusk) url("assets/bg-dark.jpg") center / cover; }

.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); opacity: 0.5; }
.glow.g1 { width: 760px; height: 760px; right: -120px; top: -160px; background: rgba(140, 107, 255, 0.35); animation: drift1 26s ease-in-out infinite alternate; }
.glow.g2 { width: 620px; height: 620px; left: -160px; bottom: -200px; background: rgba(255, 181, 71, 0.12); animation: drift2 32s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-90px, 70px); } }
@keyframes drift2 { to { transform: translate(110px, -60px); } }

.slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s linear 500ms; }
.slide.active { visibility: visible; opacity: 1; transform: none; transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s; z-index: 2; }
.slide.past { transform: translateY(-18px); }
.slide.paper { background: var(--paper); }
.slide.paper::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 90% 0%, rgba(140,107,255,0.14), transparent 70%); }

.e { position: absolute; margin: 0; }
.e.t { white-space: normal; overflow: visible; }
.e.t p { margin: 0; }
.e.t.vm { display: flex; align-items: center; }
.e.t.vm > div { width: 100%; }
.f-display { font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; font-variation-settings: "opsz" 96; }
.f-body { font-family: "Hanken Grotesk", system-ui, sans-serif; }
.f-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.e.icon svg { display: block; width: 100%; height: 100%; }
.e.img img { display: block; width: 100%; height: 100%; }
.fl { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.e.img.d2 .fl { animation-delay: -3s; }

/* entrances (only on the active slide; 600 ms, staggered by --d which the build caps at 60 ms steps) */
.a { opacity: 0; }
.slide.active .a { animation-duration: 600ms; animation-timing-function: var(--ease); animation-fill-mode: both; animation-delay: var(--d, 0ms); }
.slide.active .a-rise { animation-name: rise; }
.slide.active .a-fade { animation-name: fadein; }
.slide.active .a-wipe { animation-name: wipe; animation-duration: 700ms; }
.slide.active .a-zoom { animation-name: zoom; }
.a-wipe { transform-origin: left center; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes zoom { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* chat demo */
.demo { background: rgba(34, 26, 61, 0.92); border: 2px solid #3a2f66; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 40px 90px -30px rgba(5, 2, 20, 0.9); }
.demo .dh { display: flex; align-items: center; gap: 14px; padding: 20px 28px; border-bottom: 1px solid rgba(244, 240, 255, 0.1); font-size: 24px; }
.demo .dh b { font-weight: 700; }
.demo .dh .ch { color: var(--mist); }
.demo .dh .live { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 20px; }
.demo .dh .live i { width: 12px; height: 12px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 14px var(--lantern); }
.demo .dm { flex: 1; padding: 22px 28px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.demo .m { display: flex; gap: 18px; align-items: flex-start; opacity: 1; transform: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.demo.run .m { opacity: 0; transform: translateY(14px); }
.demo.run .m.in { opacity: 1; transform: none; }
.demo .av { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #1d1733; }
.demo .who { font-weight: 700; font-size: 22px; }
.demo .tx { font-size: 24px; line-height: 1.35; color: #e9e3ff; margin-top: 2px; }
.demo .rx { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 14px; border-radius: 999px; background: var(--pane2); border: 1px solid rgba(244,240,255,0.14); font-size: 20px; font-weight: 600; }
.demo .rx svg { width: 20px; height: 20px; }
.demo .typing { height: 34px; margin: 0 28px 6px; display: flex; align-items: center; gap: 12px; color: var(--mist); font-size: 20px; opacity: 0; transition: opacity 250ms; }
.demo.run .typing.on { opacity: 1; }
.demo .typing span.dots { display: inline-flex; gap: 6px; }
.demo .typing span.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); animation: dot 1s infinite; }
.demo .typing span.dots i:nth-child(2) { animation-delay: 0.15s; }
.demo .typing span.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.3; transform: none; } 50% { opacity: 1; transform: translateY(-4px); } }
.demo .comp { margin: 0 24px 24px; padding: 16px 22px; border-radius: 18px; background: rgba(23, 18, 43, 0.9); border: 1px solid rgba(244, 240, 255, 0.12); color: var(--mist); font-size: 22px; }

/* chrome */
#progress { position: fixed; left: 0; top: 0; right: 0; height: 4px; background: rgba(244, 240, 255, 0.08); z-index: 20; }
#progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lumen), var(--lantern)); transition: width 500ms var(--ease); }
.foot { position: absolute; left: 120px; right: 120px; bottom: 36px; height: 30px; display: flex; justify-content: space-between;
  font: 500 18px/30px "IBM Plex Mono", monospace; letter-spacing: 1.5px; text-transform: uppercase; color: #8d83b0; }
.slide.paper .foot { color: #5f5880; }
#ui { position: fixed; right: 18px; bottom: 16px; display: flex; gap: 8px; z-index: 30; opacity: 0; transition: opacity 250ms; }
body.show-ui #ui, #ui:hover, #ui:focus-within { opacity: 1; }
#ui button { all: unset; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(34, 26, 61, 0.85); color: var(--paper); border: 1px solid rgba(244, 240, 255, 0.16); font: 600 15px "Hanken Grotesk", sans-serif; }
#ui button:hover { background: var(--pane2); }
#ui button:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }
#ui button[aria-pressed="true"] { background: var(--lumen); color: #fff; }
#notes { position: fixed; left: 0; right: 0; bottom: 0; max-height: 38vh; overflow: auto; z-index: 25; padding: 18px 32px 22px;
  background: rgba(14, 10, 28, 0.96); border-top: 1px solid rgba(244, 240, 255, 0.16); display: none; }
body.notes-on #notes { display: block; }
#notes .nh { display: flex; gap: 24px; font: 500 14px "IBM Plex Mono", monospace; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lantern); margin-bottom: 10px; }
#notes .nb { font-size: 20px; line-height: 1.5; color: var(--paper); max-width: 1200px; }
#help { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; background: rgba(14, 10, 28, 0.82); }
body.help-on #help { display: grid; }
#help div { background: var(--pane); border: 1px solid #3a2f66; border-radius: 20px; padding: 28px 36px; font-size: 20px; line-height: 1.9; }
#help kbd { font: 500 16px "IBM Plex Mono", monospace; background: var(--pane2); border-radius: 6px; padding: 2px 8px; }
.sr { position: absolute; left: -9999px; }

#rot { display: none; }
@media (orientation: portrait) and (max-width: 700px) {
  #rot { display: block; position: fixed; left: 0; right: 0; top: 14px; text-align: center; font: 600 13px "Hanken Grotesk", sans-serif; color: var(--lantern); z-index: 21; }
}
/* reduced motion: everything is simply there */
body.reduced .slide, body.reduced .slide.active { transition: none; transform: none; }
body.reduced .a { opacity: 1 !important; animation: none !important; }
body.reduced .fl, body.reduced .glow { animation: none; }
body.reduced .demo.run .m { opacity: 1; transform: none; }
body.static .slide, body.static .slide.active { transition: none; transform: none; }
body.static .a { opacity: 1 !important; animation: none !important; }
body.static .fl, body.static .glow { animation: none; }
body.static #ui, body.static #progress { display: none; }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.active { transition: none; transform: none; }
  .a { opacity: 1 !important; animation: none !important; }
  .fl, .glow { animation: none; }
}

@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { background: none; overflow: visible; height: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #viewport { position: static; overflow: visible; }
  #stage { position: static; transform: none !important; width: 1920px; height: auto; overflow: visible; background: none; }
  .glow, #progress, #ui, #notes, #help, .sr, #rot { display: none !important; }
  .slide { position: relative; visibility: visible !important; opacity: 1 !important; transform: none !important; width: 1920px; height: 1080px;
    page-break-after: always; break-after: page; overflow: hidden; background: var(--dusk) url("assets/bg-dark.jpg") center / cover; }
  .slide.paper { background: var(--paper); }
  section.slide:last-of-type { page-break-after: auto; break-after: auto; }
  .a { opacity: 1 !important; animation: none !important; }
  .fl { animation: none; }
  .demo .m { opacity: 1 !important; transform: none !important; }
}
