/* Styling follows the Quantavist site: #252525 ground, hairline frames, Geist with tight tracking, mono bracket labels. */
:root {
  --bg: #252525;
  --card: rgba(0, 0, 0, 0.2);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --subtle: rgba(255, 255, 255, 0.42);
  --faint: rgba(255, 255, 255, 0.28);
  --critical: oklch(70% 0.24 27);
  --success: oklch(74% 0.15 160);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #161616; overflow: hidden; }
body { font-family: Geist, system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; cursor: none; }
body.show-cursor { cursor: default; }

#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden; transform-origin: 0 0; background: var(--bg); }

/* frame chrome shared by every slide */
.chrome { position: absolute; inset: 0; pointer-events: none; }
.chrome .hl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.chrome .vl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.chrome .logo { position: absolute; left: 128px; top: 34px; display: flex; align-items: center; gap: 12px; }
.chrome .logo img.mark { width: 26px; height: 23px; }
.chrome .logo img.word { height: 22px; }
.chrome .tag { position: absolute; right: 128px; top: 38px; font: 15px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--subtle); }
.chrome .count { position: absolute; right: 128px; bottom: 30px; font: 15px/1 var(--mono); letter-spacing: 0.04em; color: var(--subtle); }
.chrome .foot { position: absolute; left: 128px; bottom: 30px; font: 15px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }

/* slides */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.slide.active { visibility: visible; }
.slide.shown { opacity: 1; }
.slide.enter-fwd { animation: enterFwd 0.7s var(--ease) both; }
.slide.enter-back { animation: enterBack 0.7s var(--ease) both; }
.slide.leave-fwd { animation: leaveFwd 0.5s var(--ease) both; visibility: visible; }
.slide.leave-back { animation: leaveBack 0.5s var(--ease) both; visibility: visible; }
@keyframes enterFwd { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes leaveFwd { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-48px); } }
@keyframes leaveBack { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(48px); } }

/* type */
.eyebrow { font: 17px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }
.title { margin: 26px 0 0; font-size: 72px; font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; }
.title .tag { color: var(--subtle); }
.lede { margin: 28px 0 0; max-width: 820px; font-size: 26px; line-height: 1.45; color: var(--muted); }
.left { position: absolute; left: 128px; top: 176px; width: 900px; }

/* step list */
.steps { list-style: none; margin: 56px 0 0; padding: 0; width: 820px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 26px; line-height: 1.38; color: var(--faint); transition: color 0.45s var(--ease); }
.steps li .n { font: 16px/1 var(--mono); letter-spacing: 0.04em; color: var(--faint); transition: color 0.45s var(--ease); }
.steps li.done { color: var(--subtle); }
.steps li.now { color: var(--text); }
.steps li.now .n { color: var(--text); }
.steps.all li { color: var(--text); }
.steps.all li .n { color: var(--subtle); }
.note { margin-top: 30px; max-width: 820px; font-size: 21px; line-height: 1.5; color: var(--subtle); }
.note b { font: 14px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-right: 12px; }

/* bullet rows (PDF slides) */
.rows { list-style: none; margin: 56px 0 0; padding: 0; width: 820px; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 30px; line-height: 1.35; }
.rows li .n { font: 16px/1 var(--mono); color: var(--subtle); }
.rows li small { display: block; margin-top: 10px; font-size: 22px; color: var(--muted); }

/* card */
.card { position: absolute; background: var(--card); border: 1px solid var(--line-2); }
.card .label { font: 14px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }

/* phone */
.phone { position: absolute; padding: 13px; border-radius: 72px;
  background: linear-gradient(150deg, #6a6a6f 0%, #3a3a3e 9%, #1f1f22 40%, #19191b 70%, #3b3b3f 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 4px #0b0b0c,
    0 60px 120px -30px rgba(0, 0, 0, 0.7), 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.phone .btn { position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #2a2a2d, #5b5b60 60%, #2a2a2d); }
.phone .glass { position: relative; overflow: hidden; border-radius: 59px; background: #000; }
.phone .screen { position: absolute; left: 0; top: 0; width: 390px; height: 844px; overflow: hidden; transform-origin: 0 0; background: #fafafa; }
.phone .layer { position: absolute; inset: 0; }
.phone .layer img, .phone .layer video { display: block; width: 390px; height: 844px; object-fit: cover; }
.phone video.clip { position: absolute; inset: 0; width: 390px; height: 844px; opacity: 0; pointer-events: none; }
.phone video.clip.on { opacity: 1; }
.phone .status { position: absolute; left: 0; right: 0; top: 0; height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 46px; z-index: 5; pointer-events: none; color: #111; transition: color 0.3s; }
.phone .status.light { color: #fff; }
.phone .status .time { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.phone .status svg { display: block; }
.phone .island { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; z-index: 6; }
.phone .homebar { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: rgba(0, 0, 0, 0.82); z-index: 6; transition: background 0.3s; }
.phone .homebar.light { background: rgba(255, 255, 255, 0.85); }

/* lock screen (HTML, not an app capture) */
.lock { position: absolute; inset: 0; background: #1c1c1c url(assets/img/lock-bg.jpg) center / cover; color: #fff; }
.lock .clock { margin-top: 92px; text-align: center; font-size: 92px; font-weight: 500; letter-spacing: -0.02em; }
.lock .stack { position: absolute; left: 12px; right: 12px; top: 300px; display: flex; flex-direction: column; gap: 10px; }
.notif { display: grid; grid-template-columns: 38px 1fr auto; gap: 3px 12px; padding: 14px 14px 15px; border-radius: 22px; background: rgba(250, 250, 250, 0.8);
  color: #111; backdrop-filter: blur(24px); font-size: 15px; line-height: 1.3; animation: notifIn 0.6s var(--ease) both; }
.notif .icon { grid-row: span 2; width: 38px; height: 38px; border-radius: 9px; background: #1a1a1a url(assets/brand/mark-dark.svg) center / 21px no-repeat; }
.notif .t { font-weight: 600; }
.notif .when { color: #6b6b6b; font-size: 13px; }
.notif .b { grid-column: 2 / 4; color: #222; }
.lock.still .notif { animation: none; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-26px) scale(0.97); } to { opacity: 1; transform: none; } }

/* lifecycle */
.lane { position: absolute; left: 97px; right: 97px; border-top: 1px solid var(--line); }
.lane .name { position: absolute; left: 31px; top: 50%; transform: translateY(-50%); font-size: 30px; color: var(--muted); }
.node { position: absolute; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); font-size: 24px; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.4s; }
.node.here { border-color: var(--critical); box-shadow: 0 0 0 6px color-mix(in oklch, var(--critical) 16%, transparent); }
.node.here::after { content: "[You are here]"; position: absolute; top: calc(100% + 16px); font: 14px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--critical); }
svg.arrows { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
svg.arrows path { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5; transition: opacity 0.5s var(--ease); }
.b-hide { opacity: 0 !important; transform: translateY(8px); }

/* escalation chart */
.esc-row { position: absolute; left: 128px; width: 1664px; height: 56px; display: flex; align-items: center; }
.esc-row .who { width: 320px; font-size: 28px; line-height: 1; }
.esc-row .who small { display: block; margin-top: 9px; font: 14px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--subtle); }
.esc-row .bar { position: relative; flex: 1; height: 56px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 70%, rgba(255, 255, 255, 0)); }
.bell { position: absolute; top: 8px; width: 40px; height: 40px; margin-left: -20px; display: grid; place-items: center; background: var(--critical); opacity: 0; transform: scale(0.6); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.bell svg { width: 20px; height: 20px; }
.bell.faded { background: color-mix(in oklch, var(--critical) 30%, transparent); }
.bell.on { opacity: 1; transform: none; }
.esc-axis span { position: absolute; transform: translateX(-50%); font: 17px/1 var(--mono); color: var(--subtle); }
.esc-tick { position: absolute; width: 1px; background: var(--line); }

/* progress */
#progress { position: absolute; left: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.5); transition: width 0.5s var(--ease), opacity 0.3s; z-index: 10; }
#progress.off { opacity: 0; }
