/* Prezious one-pager.
   The page is built as a deck in Prezious's Aurora style: a sticky stage, one scene at a time,
   steps revealed while scrolling, a journey line with an orb. The stage rules are a port of
   src/deck-styles/aurora/aurora.css from the app; the illustrations are specific to this page. */

:root {
  color-scheme: dark;
  --ink-bg: #0b1020;
  --ink-fg: #f6f6fb;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html {
  background: var(--ink-bg);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(122, 161, 255, .32) var(--ink-bg);
}

body {
  margin: 0;
  background: var(--ink-bg);
  color: var(--ink-fg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ stage */

.pz-aurora {
  --pz-font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pz-bg: #0b1020;
  --pz-glow: #f68655;
  --accent: #7aa1ff;
  --accent-rgb: 122, 161, 255;
  --muted: #a9b0c5;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: var(--pz-font);
  color: #f6f6fb;
  background: var(--pz-bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pz-aurora *,
.pz-aurora *::before,
.pz-aurora *::after {
  box-sizing: border-box;
}

.pz-aurora button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.pz-aurora :is(button, a, input, select, label):focus-visible {
  outline: 2px solid #f5bb86;
  outline-offset: 4px;
}

.pz-aurora img {
  max-width: 100%;
}

.pz-aurora [hidden] {
  display: none !important;
}

.experience {
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  z-index: 10;
  isolation: isolate;
  background:
    radial-gradient(circle at 81% 37%, rgba(var(--accent-rgb), .17), transparent 31%),
    linear-gradient(125deg, #0b1020 8%, #0f172d 58%, #080c18 100%);
  transition: background 1.1s ease;
}

.stage::before,
.stage::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.stage::before {
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .14) .6px, transparent .9px);
  background-size: 28px 28px;
  opacity: .15;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.stage::after {
  z-index: 7;
  background: linear-gradient(90deg, rgba(4, 7, 17, .46), transparent 40%, transparent 75%, rgba(4, 7, 17, .23));
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* The floating element and its blurred glow are separate, so the blur is rasterised once instead
   of being recomputed by the compositor on every frame of the animation. */
.aurora {
  position: absolute;
  pointer-events: none;
  opacity: .32;
  transition: transform 1.5s ease;
}

.aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(70px);
  transition: background 1s ease;
}

.aurora-one {
  width: 50vw;
  height: 50vw;
  left: -22vw;
  top: 30vh;
  animation: pz-auroraFloat 13s ease-in-out infinite alternate;
}

.aurora-one::before {
  background: radial-gradient(circle, rgba(var(--accent-rgb), .37), transparent 67%);
}

.aurora-two {
  width: 36vw;
  height: 36vw;
  right: -13vw;
  top: -17vw;
  animation: pz-auroraFloat 17s ease-in-out infinite alternate-reverse;
}

.aurora-two::before {
  background: radial-gradient(circle, rgba(246, 134, 85, .23), transparent 70%);
}

.plane-grid {
  position: absolute;
  left: 48%;
  right: -30%;
  bottom: -45%;
  height: 100%;
  transform: perspective(680px) rotateX(66deg) rotateZ(-8deg);
  transform-origin: top;
  background:
    linear-gradient(rgba(158, 179, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 179, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, transparent 87%);
  mask-image: linear-gradient(transparent, #000 35%, transparent 87%);
  opacity: .66;
  z-index: 0;
  pointer-events: none;
}

.journey {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.journey-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: .58;
}

/* Placed and sized by the script: --orb-unit is one unit of the journey's 1000×1000 box. */
.orb {
  --orb-unit: 1px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.orb i {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* A disc of radius 44 blurred by 14, as a gradient. */
.orb-glow {
  width: calc(172 * var(--orb-unit));
  height: calc(172 * var(--orb-unit));
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .48), rgba(var(--accent-rgb), .46) 20%, rgba(var(--accent-rgb), .41) 30%, rgba(var(--accent-rgb), .33) 40%, rgba(var(--accent-rgb), .22) 50%, rgba(var(--accent-rgb), .12) 60%, rgba(var(--accent-rgb), .05) 70%, rgba(var(--accent-rgb), .014) 80%, transparent 90%);
}

.orb-ring {
  width: calc(37.4 * var(--orb-unit));
  height: calc(37.4 * var(--orb-unit));
  border: calc(1.4 * var(--orb-unit)) solid var(--accent);
  background: rgba(255, 255, 255, .12);
}

.orb-core {
  width: calc(18 * var(--orb-unit));
  height: calc(18 * var(--orb-unit));
  background: var(--accent);
  box-shadow: 0 0 calc(15 * var(--orb-unit)) var(--accent);
}

.orb-center {
  width: calc(6 * var(--orb-unit));
  height: calc(6 * var(--orb-unit));
  background: #fff;
}

/* ----------------------------------------------------------------- chrome */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: calc(25px + var(--safe-top)) clamp(24px, 4.4vw, 74px) 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(7, 10, 22, .58), transparent);
}

.identity {
  display: flex;
  gap: 13px;
  align-items: center;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  justify-self: start;
  border-radius: 8px;
}

.identity-mark {
  width: 31px;
  height: 31px;
  position: relative;
  display: block;
  flex: none;
}

.identity-mark i {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

.identity-mark i:nth-child(1) { width: 7px; height: 7px; left: 2px; top: 19px; }
.identity-mark i:nth-child(2) { width: 10px; height: 10px; left: 12px; top: 8px; }
.identity-mark i:nth-child(3) { width: 5px; height: 5px; left: 26px; top: 22px; }

.identity-mark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  width: 21px;
  height: 19px;
  border-left: 1px solid rgba(255, 255, 255, .4);
  border-top: 1px solid rgba(255, 255, 255, .4);
  transform: rotate(35deg);
}

.identity-text {
  font: 400 .8rem/1.12 var(--pz-font);
  letter-spacing: .02em;
}

.identity-text b {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
}

.identity-text small {
  display: block;
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .08em;
  margin-top: 5px;
}

.topbar-center {
  font: 500 .85rem var(--pz-font);
  letter-spacing: .02em;
  color: #d1d8e7;
  text-align: center;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.quiet-button {
  color: #d4dbec;
  border: 1px solid rgba(206, 221, 255, .2);
  background: rgba(255, 255, 255, .035);
  border-radius: 999px;
  padding: 10px 18px;
  white-space: nowrap;
  font: 600 .82rem var(--pz-font);
  transition: background .25s, border .25s, transform .25s;
}

.quiet-button:hover {
  background: rgba(var(--accent-rgb), .15);
  border-color: rgba(var(--accent-rgb), .56);
  transform: translateY(-2px);
}

.chapter-index {
  position: absolute;
  z-index: 9;
  right: clamp(20px, 3.3vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.chapter-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .07);
  padding: 0;
  position: relative;
  transition: all .4s;
}

.chapter-dot:hover,
.chapter-dot.active {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .11), 0 0 19px var(--accent);
}

.chapter-dot span {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  white-space: nowrap;
  padding: 5px 0;
  color: #e5e9f5;
  font: 500 .72rem var(--pz-font);
  letter-spacing: .02em;
  pointer-events: none;
  transition: .2s;
}

.chapter-dot:hover span,
.chapter-dot:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ----------------------------------------------------------------- scenes */

.scene-shell {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 100px clamp(35px, 6.6vw, 120px) 88px;
  pointer-events: none;
}

.scene {
  width: min(100%, 1660px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: clamp(30px, 4vw, 82px);
  align-items: center;
  position: relative;
  pointer-events: auto;
}

.scene::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -5%;
  top: 5%;
  width: 75%;
  height: 85%;
  background: radial-gradient(ellipse, rgba(9, 14, 31, .72), transparent 66%);
  pointer-events: none;
}

.scene-copy {
  min-width: 0;
  max-width: 850px;
}

.scene .eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--accent);
  font: 700 .88rem var(--pz-font);
  letter-spacing: .025em;
  margin: 0 0 clamp(14px, 2.4vh, 32px);
}

.scene .eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.scene-title {
  font-family: var(--pz-font);
  font-size: clamp(3.1rem, 6vw, 7.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 0;
  max-width: 12ch;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.scene-title em {
  font-style: normal;
  color: var(--accent);
}

.scene.long-title .scene-title {
  font-size: clamp(2.9rem, 5vw, 6rem);
}

.scene-rule {
  width: 75px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
  margin: clamp(21px, 3.5vh, 40px) 0;
}

.beat {
  min-height: 80px;
  max-height: min(42vh, 360px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), .6) transparent;
  padding-right: 12px;
}

.beat p {
  margin: .15em 0 .85em;
  color: #e1e6f1;
  font-size: clamp(1.06rem, 1.5vw, 1.42rem);
  line-height: 1.48;
  max-width: 62ch;
  text-wrap: pretty;
}

.beat p:last-child {
  margin-bottom: 0;
}

.beat .short {
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

.beat .label {
  font: 700 .82rem var(--pz-font);
  letter-spacing: .045em;
  color: var(--accent);
  margin-bottom: 8px;
}

.beat-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 19px;
  color: #9fa9c0;
  font: 400 .78rem var(--pz-font);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.beat-meta .beat-line {
  width: 45px;
  height: 1px;
  background: rgba(255, 255, 255, .36);
}

.scene-art {
  justify-self: center;
  position: relative;
  width: 100%;
  max-width: 630px;
  aspect-ratio: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s linear;
}

.scene-art::before {
  content: '';
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .2), transparent 64%);
  filter: blur(17px);
  pointer-events: none;
}

.scene.no-art {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr);
}

.scene.kind-opening .scene-title {
  font-size: clamp(4.2rem, 8vw, 9.7rem);
  max-width: 11ch;
}

.scene.kind-opening .beat p {
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
}

.scene.kind-question .scene-title {
  max-width: 15ch;
}

.scene.kind-question .scene-copy {
  max-width: 1100px;
}

.scene.kind-principle .scene-title {
  font-size: clamp(3.2rem, 5.8vw, 6.4rem);
  max-width: 13ch;
}

.scene.kind-catalog .scene-title {
  font-size: clamp(3.4rem, 6.2vw, 7.4rem);
}

.scene.layout-flip,
.scene.layout-flip.no-art {
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
}

.scene.layout-flip .scene-copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding-right: clamp(50px, 6vw, 100px);
}

.scene.layout-flip .scene-art {
  grid-column: 1;
  grid-row: 1;
}

/* Built-in Aurora visual: orbiting cards. */

.context-system {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.context-system::before {
  content: '';
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  /* The former 22px blur of a linear falloff to 64%, baked into the gradient (a blur would be redone every frame of the float). */
  background: radial-gradient(circle, rgba(var(--accent-rgb), .21), rgba(var(--accent-rgb), .16) 20%, rgba(var(--accent-rgb), .09) 40%, rgba(var(--accent-rgb), .02) 60%, transparent 70%);
  z-index: -1;
  animation: pz-auroraFloat 10s ease-in-out infinite alternate;
}

.context-orbit {
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), .33);
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotate(-23deg) scaleY(.72);
  box-shadow: 0 0 70px rgba(var(--accent-rgb), .08), inset 0 0 60px rgba(var(--accent-rgb), .05);
}

.context-orbit.orbit-b {
  width: 53%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, .24);
  transform: rotate(24deg) scaleY(.9);
  animation: pz-contextTurn 22s linear infinite;
}

.context-core {
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(15, 31, 46, .88);
  border: 1px solid rgba(var(--accent-rgb), .75);
  box-shadow: 0 0 0 12px rgba(var(--accent-rgb), .06), 0 0 85px rgba(var(--accent-rgb), .34), inset 0 0 28px rgba(var(--accent-rgb), .2);
  font: 600 clamp(.8rem, 1.45vw, 1.2rem) var(--pz-font);
  letter-spacing: .08em;
  line-height: 1.3;
}

.context-core i {
  width: 9px;
  height: 9px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

.context-card {
  position: absolute;
  display: grid;
  gap: 5px;
  padding: 12px 16px;
  min-width: 29%;
  background: linear-gradient(135deg, rgba(29, 49, 66, .9), rgba(10, 20, 35, .85));
  border: 1px solid rgba(var(--accent-rgb), .55);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .27), 0 0 30px rgba(var(--accent-rgb), .08);
  transform: rotate(-5deg);
  font: 500 clamp(.7rem, 1vw, .9rem) var(--pz-font);
  letter-spacing: .02em;
  animation: pz-cardFloat 7s ease-in-out infinite alternate;
}

.context-card small {
  font: 500 .67rem var(--pz-font);
  letter-spacing: .05em;
  color: var(--accent);
}

.context-card.card-a { top: 10%; left: 8%; }
.context-card.card-b { top: 17%; right: 1%; transform: rotate(6deg); animation-delay: -3s; }
.context-card.card-c { bottom: 7%; left: 22%; transform: rotate(3deg); animation-delay: -5s; }

/* -------------------------------------------------------------------- HUD */

.hud {
  position: absolute;
  z-index: 9;
  left: clamp(24px, 4.4vw, 74px);
  right: clamp(24px, 4.4vw, 74px);
  bottom: calc(25px + var(--safe-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  color: #a8b2ca;
  font: 500 .76rem var(--pz-font);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}

.hud-source,
.hud-controls,
.hud-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pz-pulse 2s ease-in-out infinite;
}

.hud-controls {
  justify-content: center;
}

.hud-controls kbd {
  min-width: 26px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 5px;
  padding: 5px 9px;
  color: #e7eaf3;
  font: 500 .72rem var(--pz-font);
  background: rgba(255, 255, 255, .045);
}

.hud-progress {
  justify-content: flex-end;
}

.progress-bar {
  width: 108px;
  height: 2px;
  background: rgba(255, 255, 255, .16);
}

.progress-bar span {
  height: 100%;
  display: block;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: width .3s;
}

.scroll-track {
  position: relative;
  margin-top: -100vh;
  margin-top: -100svh;
  padding-bottom: 100vh;
  padding-bottom: 100svh;
  z-index: 0;
  pointer-events: none;
}

.scroll-section {
  min-height: 560px;
}

/* --------------------------------------------------------------- overlays */

.overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  justify-content: flex-end;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, .76);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.overlay-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  height: 100%;
  overflow: auto;
  background: #101727;
  border-left: 1px solid rgba(255, 255, 255, .14);
  box-shadow: -25px 0 90px rgba(0, 0, 0, .35);
  padding: clamp(24px, 3vw, 48px);
  padding-top: calc(clamp(24px, 3vw, 48px) + var(--safe-top));
  animation: pz-panelIn .45s cubic-bezier(.2, .7, .2, 1) backwards;
}

.overlay-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.overlay-heading h2 {
  font: 600 clamp(2rem, 3.4vw, 3rem)/1.05 var(--pz-font);
  letter-spacing: -.055em;
  margin: 10px 0 0;
  text-wrap: balance;
}

.micro {
  font: 500 .79rem var(--pz-font);
  letter-spacing: .06em;
  color: var(--accent);
  text-transform: uppercase;
}

.close-button {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
}

.close-button:hover {
  border-color: rgba(var(--accent-rgb), .7);
  background: rgba(var(--accent-rgb), .12);
}

.overview-list {
  display: grid;
  gap: 12px;
}

.overview-section {
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.overview-section h3 {
  font: 500 .79rem var(--pz-font);
  color: var(--section-accent, var(--accent));
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.overview-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.overview-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: #e8ecf6;
  padding: 12px;
  font-size: .95rem;
  line-height: 1.35;
}

.overview-item:hover,
.overview-item.active {
  border-color: rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .08);
}

.overview-item small {
  font: .64rem var(--pz-font);
  color: var(--section-accent, var(--accent));
  font-variant-numeric: tabular-nums;
}

.source-panel {
  width: min(100%, 820px);
}

.notes-body p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #d3d9e7;
  margin: 0 0 1em;
  max-width: 65ch;
}

/* ------------------------------------------------------------- keyframes */

/* No blur here: blurring the whole scene forced it to be re-rasterised on every frame of the entrance.
   The step content still comes into focus with pz-beatReveal. */
@keyframes pz-sceneEnter {
  from { opacity: 0; transform: translateY(34px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pz-beatReveal {
  from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pz-auroraFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(7vw, -5vh, 0) scale(1.23); }
}

@keyframes pz-slowSpin {
  to { transform: rotate(395deg); }
}

/* Opacity only: animating the box-shadow too made the page repaint on every frame. */
@keyframes pz-pulse {
  50% { opacity: .38; }
}

@keyframes pz-contextTurn {
  to { transform: rotate(384deg) scaleY(.9); }
}

@keyframes pz-cardFloat {
  to { translate: 0 -14px; }
}

@keyframes pz-panelIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ------------------------------------------------------ scene engine (JS) */

/* The engine owns visibility: layout rules below must never re-show a hidden scene or step. */
.js .scene:not(.is-active) {
  display: none !important;
}

/* Backwards fills only: the end states are the resting styles, so nothing stays composited afterwards. */
.js .scene.is-active {
  animation: pz-sceneEnter .8s cubic-bezier(.2, .7, .2, 1) backwards;
}

.js .step:not(.is-current) {
  display: none !important;
}

.js .step.is-current > * {
  animation: pz-beatReveal .65s cubic-bezier(.2, .8, .2, 1) backwards;
}

.js .step.is-current > :nth-child(2) { animation-delay: .08s; }
.js .step.is-current > :nth-child(3) { animation-delay: .16s; }

.scroll-cue {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  color: #9fa9c0;
  font: 600 .8rem var(--pz-font);
  letter-spacing: .04em;
}

.js #welcome[data-beat="0"] .scroll-cue {
  display: flex;
  animation: pz-beatReveal .8s .9s cubic-bezier(.2, .8, .2, 1) backwards;
}

.scroll-cue .mouse {
  position: relative;
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, .42);
  border-radius: 10px;
}

.scroll-cue .mouse i {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pz-wheel 1.6s ease-in-out infinite;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .5);
  background: rgba(255, 255, 255, .04);
  color: #eef2fb;
  font: 700 .95rem/1 var(--pz-font);
  letter-spacing: .01em;
  transition: transform .25s, background .25s, box-shadow .25s;
}

.cta:hover {
  transform: translateY(-2px);
  background: rgba(var(--accent-rgb), .14);
}

.cta.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1020;
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), .32);
}

.cta.is-primary:hover {
  box-shadow: 0 16px 50px rgba(var(--accent-rgb), .48);
}

#finale .beat {
  max-height: none;
  overflow: visible;
}

.orb {
  transition: opacity .6s ease;
}

.pz-aurora[data-orb="off"] .orb {
  opacity: 0;
}

.made-with {
  margin: 30px 0 0;
  color: #8a94ae;
  font: 500 .8rem var(--pz-font);
  letter-spacing: .02em;
}

/* Effect switches (Aurora deck options), driven by the fine-tune scene. */

.particles,
.journey,
.plane-grid {
  transition: opacity .6s ease;
}

.aurora {
  transition: transform 1.5s ease, opacity .6s ease;
}

.pz-aurora.no-particles .particles,
.pz-aurora.no-journey .journey,
.pz-aurora.no-journey .orb,
.pz-aurora.no-grid .plane-grid,
.pz-aurora.no-aurora .aurora {
  opacity: 0;
}

/* Nothing behind an open panel needs to move: its backdrop blur would be redone every frame. */
.pz-aurora.overlay-open .stage *,
.pz-aurora.overlay-open .stage *::before,
.pz-aurora.overlay-open .stage *::after {
  animation-play-state: paused;
}

/* ------------------------------------------------------ illustration kit */

.scene-art.has-illo {
  container-type: inline-size;
}

.illo {
  position: absolute;
  inset: 0;
  font-size: 10px;
  font-size: 2cqw;
  line-height: 1.3;
  color: #e6ebf6;
  text-align: left;
}

.illo p {
  margin: 0;
}

.glass {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 60%),
    rgba(11, 17, 36, .86);
  border: 1px solid rgba(var(--accent-rgb), .32);
  border-radius: 1.2em;
  box-shadow: 0 2.5em 6em rgba(0, 0, 0, .42), 0 0 0 .55em rgba(255, 255, 255, .022), inset 0 1px rgba(255, 255, 255, .12);
}

.bar {
  display: block;
  height: .5em;
  border-radius: 1em;
  background: rgba(226, 232, 246, .2);
}

.bar + .bar {
  margin-top: .55em;
}

.w45 { width: 45%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w65 { width: 65%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }
.w90 { width: 90%; }

/* Mini slides: a deck slide in miniature. 30em wide; scale with font-size. */

.mini {
  position: relative;
  width: 30em;
  height: 16.875em;
  border-radius: .9em;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}

.mini-aurora {
  color: #f6f6fb;
  background:
    radial-gradient(circle at 80% 42%, rgba(var(--accent-rgb), .32), transparent 44%),
    linear-gradient(125deg, #0b1020 8%, #111a33 58%, #080c18);
  border: 1px solid rgba(var(--accent-rgb), .45);
  box-shadow: 0 1.8em 4.5em rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .1);
}

.mini-aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .5) .05em, transparent .08em);
  background-size: 1.2em 1.2em;
  opacity: .16;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.mini-journey {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.mini-journey path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: .62;
}

.mini-orb {
  position: absolute;
  z-index: 1;
  left: 88.75%;
  top: 64%;
  width: 1.3em;
  height: 1.3em;
  margin: -.65em 0 0 -.65em;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, var(--accent) 30% 55%, rgba(var(--accent-rgb), .18) 60%);
  box-shadow: 0 0 1.4em .35em rgba(var(--accent-rgb), .55);
}

.mini-orb.is-left {
  left: 11.25%;
}

.mini-copy {
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 66%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mini-copy.is-right {
  left: 29%;
}

.mini-eyebrow {
  display: flex;
  align-items: center;
  gap: .6em;
  color: var(--accent);
  font: 700 .8em/1 var(--pz-font);
  letter-spacing: .02em;
  margin-bottom: .95em;
  white-space: nowrap;
}

.mini-eyebrow::before {
  content: '';
  width: 1.8em;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 .6em var(--accent);
}

.mini-title {
  font: 700 2.5em/1 var(--pz-font);
  letter-spacing: -.055em;
  color: #fff;
  text-wrap: balance;
}

.mini-title em {
  font-style: normal;
  color: var(--accent);
}

.mini-rule {
  width: 2.8em;
  height: .14em;
  background: var(--accent);
  box-shadow: 0 0 .9em var(--accent);
  margin: 1.1em 0 1em;
}

.mini-copy .bar {
  height: .42em;
}

.mini-hud {
  position: absolute;
  z-index: 2;
  left: 7%;
  right: 7%;
  bottom: 6.5%;
  display: flex;
  align-items: center;
  gap: .7em;
  color: #a8b2ca;
  font: 600 .56em/1 var(--pz-font);
  letter-spacing: .08em;
}

.mini-hud > i {
  width: .75em;
  height: .75em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 .8em var(--accent);
}

.mini-progress {
  margin-left: auto;
  width: 9em;
  height: .22em;
  background: rgba(255, 255, 255, .16);
}

.mini-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 .6em var(--accent);
}

.mini.is-small .mini-title {
  font-size: 2.9em;
}

.mini.is-small .mini-eyebrow {
  font-size: .95em;
}

/* Editorial, the light style, in miniature. */

.mini-editorial {
  --ed: #c2562f;
  background: #f7f4ee;
  color: #1b1b1f;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 1.8em 4.5em rgba(0, 0, 0, .5);
}

.mini-editorial .mini-copy {
  left: 8%;
  width: 78%;
}

.ed-kicker {
  display: flex;
  align-items: center;
  gap: .8em;
  font: 600 .66em/1.2 var(--pz-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a84b2a;
  margin-bottom: 1.1em;
}

.ed-kicker::after {
  content: '';
  width: 2.6em;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.ed-title {
  font: 600 2.45em/1.04 var(--serif);
  letter-spacing: -.015em;
  color: #1b1b1f;
  text-wrap: balance;
}

.ed-title em {
  font-style: normal;
  color: #b24f2b;
}

.ed-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(27, 27, 31, .17);
  margin: 1.2em 0 1em;
}

.mini-editorial .bar {
  background: rgba(27, 27, 31, .15);
}

.ed-foot {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7.5%;
  display: flex;
  justify-content: space-between;
  font: 600 .56em/1 var(--pz-font);
  letter-spacing: .06em;
  color: rgba(27, 27, 31, .55);
  font-variant-numeric: tabular-nums;
}

.ed-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: .24em;
  background: rgba(27, 27, 31, .08);
}

.ed-progress i {
  display: block;
  width: 58%;
  height: 100%;
  background: var(--ed);
}

/* ---------------------------------------------------- 01 hero: the deck */

.illo-hero .hero-card {
  position: absolute;
  width: 30em;
  transform: perspective(80em) rotateY(-22deg) rotateX(8deg);
  animation: pz-float 8s ease-in-out infinite alternate;
}

.illo-hero .hc-back {
  left: 18.5em;
  top: -1.5em;
  opacity: .9;
  scale: .9;
}

.illo-hero .hc-mid {
  left: 10.5em;
  top: 9.5em;
  scale: .95;
  animation-delay: -2.7s;
}

.illo-hero .hc-front {
  left: 2em;
  top: 19.5em;
  animation-delay: -5.4s;
}

.illo-hero .hc-front .mini {
  box-shadow: 0 2.4em 5em rgba(0, 0, 0, .55), 0 0 4em rgba(var(--accent-rgb), .22);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .75em 1.1em;
  border-radius: 999px;
  background: rgba(12, 21, 38, .9);
  border: 1px solid rgba(var(--accent-rgb), .5);
  box-shadow: 0 0 2.4em rgba(var(--accent-rgb), .14), inset 0 1px rgba(255, 255, 255, .1);
  color: #eef3ff;
  font: 600 1.15em/1 var(--pz-font);
  white-space: nowrap;
  animation: pz-float 6s ease-in-out infinite alternate;
}

.float-chip i {
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 .8em var(--accent);
}

.fc-a { left: 0; top: 4.5em; }
.fc-b { right: 0; top: 31em; animation-delay: -2s; }
.fc-c { left: 1.5em; top: 13.5em; animation-delay: -4s; }

/* ------------------------------------------- 02 problem: the usual slide */

.illo-mess .mess-slide {
  position: absolute;
  left: 3em;
  top: 7em;
  width: 44em;
  height: 24.75em;
  padding: 1.7em 2.1em;
  border-radius: .3em;
  background: #e8eaef;
  color: #2a2d35;
  font-family: Arial, Helvetica, sans-serif;
  transform: rotate(-3deg);
  box-shadow: 0 2.5em 6em rgba(0, 0, 0, .55);
  filter: saturate(.8);
  transition: filter .8s ease;
}

.mess-title {
  font: 700 1.85em/1.1 'Times New Roman', Times, serif;
  color: #1f3a93;
  text-decoration: underline;
  margin-bottom: .55em !important;
}

.mess-title small {
  display: inline-block;
  font: italic 400 .55em Arial, Helvetica, sans-serif;
  color: #c0392b;
}

.mess-list {
  margin: 0;
  padding: .2em 0 0 1.4em;
  width: 58%;
  height: 12.5em;
  font-size: 1.14em;
  line-height: 1.32;
  outline: 1px dashed rgba(42, 45, 53, .35);
  outline-offset: .3em;
}

.mess-list li {
  margin: 0 0 .12em;
}

.mess-list .f-mono { font-family: 'Courier New', Courier, monospace; }
.mess-list .f-serif { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.mess-list .f-loud { font-weight: 800; color: #d0021b; letter-spacing: .02em; }

.mess-pie {
  position: absolute;
  right: 3.2em;
  top: 5.2em;
  width: 9.5em;
  height: 9.5em;
  border-radius: 50%;
  background: conic-gradient(#e74c3c 0 34%, #f1c40f 0 58%, #27ae60 0 79%, #2980b9 0);
  box-shadow: 0 .9em 0 #8f929b;
  transform: scaleY(.62);
}

.mess-box {
  position: absolute;
  right: 2.4em;
  bottom: 3.4em;
  padding: 1em 1.6em;
  border: 1px dashed #9aa0ad;
  color: #9aa0ad;
  font-size: 1.05em;
}

.mess-foot {
  position: absolute;
  left: 2.1em;
  bottom: 1.1em;
  font-size: .8em;
  color: #8a8f9c;
}

.pin {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1em;
  border-radius: 999px;
  background: rgba(14, 19, 38, .95);
  border: 1px solid #f68655;
  color: #ffe4d6;
  font: 600 1.2em/1 var(--pz-font);
  white-space: nowrap;
  box-shadow: 0 0 2em rgba(246, 134, 85, .28);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.pin b {
  color: #ff9d6e;
  font-weight: 800;
}

.pin::before {
  content: '';
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: #f68655;
  box-shadow: 0 0 .8em #f68655;
}

.pin-a { left: 27em; top: 4.2em; }
.pin-b { left: .5em; top: 17.5em; transition-delay: .15s; }
.pin-c { right: .5em; top: 17em; transition-delay: .3s; }
.pin-d { left: 8em; top: 33.4em; transition-delay: .45s; }

.scene[data-beat="1"] .pin {
  opacity: 1;
  transform: none;
}

.scene[data-beat="1"] .mess-slide {
  filter: saturate(.45) brightness(.82);
}

/* --------------------------------------------- 03 idea: story in, show out */

.illo-idea .outline {
  position: absolute;
  left: 0;
  top: 8em;
  width: 21em;
  padding: 1.4em 1.5em 1.7em;
}

.ol-head {
  display: flex;
  align-items: center;
  gap: .4em;
  margin-bottom: 1.3em !important;
  color: #9fa9c0;
  font: 600 .95em var(--pz-font);
}

.ol-head span {
  margin-right: auto;
}

.ol-head i {
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
}

.ol-deck {
  font: 700 1.65em/1.2 var(--pz-font);
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: .35em !important;
}

.ol-ch {
  --c: #7aa1ff;
  display: flex;
  align-items: center;
  gap: .55em;
  margin-top: .95em !important;
  color: var(--c);
  font: 700 1.12em/1.3 var(--pz-font);
}

.ol-ch ~ .ol-ch { --c: #6ed9cd; }
.ol-ch ~ .ol-ch ~ .ol-ch { --c: #f5a765; }

.ol-ch::before {
  content: '';
  width: .5em;
  height: .5em;
  border-radius: .15em;
  background: var(--c);
  box-shadow: 0 0 .7em var(--c);
}

.ol-sl {
  margin-top: .4em !important;
  padding-left: 1.05em;
  color: #d8deeb;
  font: 500 1.08em/1.3 var(--pz-font);
}

.ol-sl::before {
  content: '— ';
  color: #69738e;
}

.caret {
  display: inline-block;
  width: .1em;
  height: 1.1em;
  margin-left: .25em;
  vertical-align: -.2em;
  background: #fff;
  animation: pz-blink 1s steps(1) infinite;
}

.idea-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  transition: opacity .6s .2s ease;
}

.idea-flow path {
  fill: none;
  stroke: rgba(var(--accent-rgb), .55);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.idea-flow circle {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

/* The dots follow the curves at a steady pace through transform keyframes sampled along them,
   which the compositor runs; SMIL motion repainted the whole drawing on every frame.
   The negative delays keep the dots 0.8s apart. */
.idea-flow .flow-a {
  animation: pz-flowA 2.4s linear infinite;
}

.idea-flow .flow-b {
  animation: pz-flowB 2.4s -1.6s linear infinite;
}

.idea-flow .flow-c {
  animation: pz-flowC 2.4s -.8s linear infinite;
}

.idea-slide {
  position: absolute;
  left: 28.5em;
  opacity: 0;
  transform: translateX(2.5em);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.idea-slide .mini {
  font-size: .7em;
}

.idea-slide.is-1 { top: 1.5em; }
.idea-slide.is-2 { top: 14.1em; transition-delay: .15s; }
.idea-slide.is-3 { top: 26.7em; transition-delay: .3s; }

.scene:is([data-beat="1"], [data-beat="2"]) .idea-flow {
  opacity: 1;
}

.scene:is([data-beat="1"], [data-beat="2"]) .idea-slide {
  opacity: 1;
  transform: none;
}

/* In the last step the slides take turns: a nudge, and a flash of accent glow drawn by the
   wrapper's ::after (in the mini slide's em), so both run on the compositor. */
.idea-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  font-size: .7em;
  border-radius: .9em;
  box-shadow: 0 0 0 .3em rgba(var(--accent-rgb), .22), 0 0 3.4em rgba(var(--accent-rgb), .5);
  opacity: 0;
  pointer-events: none;
}

.scene[data-beat="2"] .idea-slide .mini {
  animation: pz-rhythm 3s ease-in-out infinite;
}

.scene[data-beat="2"] .idea-slide::after {
  animation: pz-rhythm 3s ease-in-out infinite, pz-rhythmGlow 3s steps(1, end) infinite;
}

.scene[data-beat="2"] .idea-slide.is-2 .mini,
.scene[data-beat="2"] .idea-slide.is-2::after { animation-delay: 1s; }
.scene[data-beat="2"] .idea-slide.is-3 .mini,
.scene[data-beat="2"] .idea-slide.is-3::after { animation-delay: 2s; }

/* --------------------------------------------------- 04 builder: the editor */

.illo-builder .bw {
  position: absolute;
  left: 0;
  right: 0;
  top: 2em;
  height: 35em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: filter .6s ease;
}

.bw-bar {
  display: flex;
  align-items: center;
  gap: .9em;
  height: 3.6em;
  flex: none;
  padding: 0 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bw-back {
  color: #9fa9c0;
  font-size: 1.2em;
}

.bw-title {
  font: 700 1.25em var(--pz-font);
  letter-spacing: -.02em;
}

.bw-saved {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  color: #9fa9c0;
  font: 600 .95em var(--pz-font);
}

.bw-saved i {
  position: relative;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .2);
}

.bw-saved i::after {
  content: '';
  position: absolute;
  left: .4em;
  top: .22em;
  width: .3em;
  height: .55em;
  border: solid var(--accent);
  border-width: 0 .12em .12em 0;
  transform: rotate(45deg);
}

.bw-spacer {
  flex: 1;
}

.bw-btn {
  padding: .55em 1em;
  border-radius: .6em;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #dfe5f2;
  font: 600 .95em var(--pz-font);
  white-space: nowrap;
}

.bw-btn.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1020;
}

.bw-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 12.6em minmax(0, 1fr) 16em;
}

.bw-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3em;
  padding: .9em .75em;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.bw-chapter {
  display: flex;
  align-items: center;
  gap: .5em;
  margin: .45em 0 .1em !important;
  color: #8f99b3;
  font: 700 .78em var(--pz-font);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bw-chapter::before {
  content: '';
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: var(--dot);
}

.bw-item {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .45em .55em;
  border-radius: .55em;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .03);
  color: #d7ddea;
  font: 600 .95em var(--pz-font);
  white-space: nowrap;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease, background .4s ease, border-color .4s ease;
}

.bw-item .n {
  width: 1.2em;
  flex: none;
  color: #7f89a3;
  font-size: .88em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bw-item .t {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bw-item.is-selected {
  background: rgba(var(--accent-rgb), .14);
  border-color: rgba(var(--accent-rgb), .45);
  color: #fff;
}

.bw-drop {
  height: 2px;
  margin: 0 .3em !important;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 .6em var(--accent);
  opacity: 0;
  transition: opacity .4s ease;
}

.scene[data-beat="0"] .bw-drop {
  opacity: 1;
}

.scene[data-beat="0"] .bw-item.is-dragging {
  position: relative;
  z-index: 2;
  transform: translate(1.3em, -.3em) rotate(-3deg);
  background: #1b2643;
  border-color: rgba(var(--accent-rgb), .7);
  box-shadow: 0 1em 2.2em rgba(0, 0, 0, .5), 0 0 1.4em rgba(var(--accent-rgb), .25);
}

.bw-editor {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .35em;
  padding: .9em 1.1em;
}

.bw-label {
  margin-top: .4em !important;
  color: #8f99b3;
  font: 600 .78em var(--pz-font);
  letter-spacing: .04em;
}

.bw-label:first-child {
  margin-top: 0 !important;
}

.bw-input {
  padding: .5em .75em;
  border-radius: .55em;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
  color: #eef2fb;
  font: 600 .98em var(--pz-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bw-input i {
  font-style: normal;
  color: var(--accent);
}

.bw-select {
  display: flex;
  justify-content: space-between;
}

.bw-select::after {
  content: '▾';
  color: #8f99b3;
}

.bw-input.is-muted {
  color: #8f99b3;
  font-weight: 500;
}

.bw-steps {
  display: flex;
  flex-direction: column;
  gap: .5em;
  margin-top: .5em;
  padding: .6em;
  border-radius: .8em;
  border: 1px dashed rgba(255, 255, 255, .12);
  transition: border-color .5s ease, box-shadow .5s ease, background .5s ease;
}

.bw-step {
  padding: .55em .7em .65em;
  border-radius: .6em;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045);
  transition: border-color .5s ease;
}

.bw-step .bar {
  height: .42em;
}

.bw-step-h {
  display: flex;
  align-items: center;
  gap: .6em;
  margin-bottom: .55em;
  color: #cfd6e6;
  font: 700 .8em var(--pz-font);
}

.bw-step-h em {
  font-style: normal;
  padding: .15em .5em;
  border-radius: .4em;
  background: rgba(var(--accent-rgb), .16);
  color: var(--accent);
  font-size: .9em;
}

.bw-add {
  padding: .1em .2em;
  color: var(--accent);
  font: 700 .85em var(--pz-font);
}

.scene[data-beat="1"] .bw-steps {
  border-color: rgba(var(--accent-rgb), .6);
  background: rgba(var(--accent-rgb), .05);
  box-shadow: 0 0 0 .3em rgba(var(--accent-rgb), .08), 0 0 2.4em rgba(var(--accent-rgb), .18);
}

.scene[data-beat="1"] .bw-step.is-new {
  border-color: rgba(var(--accent-rgb), .55);
}

.bw-preview {
  display: flex;
  flex-direction: column;
  gap: .4em;
  padding: .9em 1.1em .9em 0;
}

.bw-pv .mini {
  font-size: .4967em;
}

.pv-b {
  opacity: 0;
  transition: opacity .5s ease;
}

.scene:is([data-beat="1"], [data-beat="2"]) .pv-b {
  opacity: 1;
}

.bw-pv-meta {
  color: #9fa9c0;
  font: 600 .78em var(--pz-font);
  font-variant-numeric: tabular-nums;
}

.pv-2,
.scene:is([data-beat="1"], [data-beat="2"]) .pv-1 {
  display: none;
}

.scene:is([data-beat="1"], [data-beat="2"]) .pv-2 {
  display: inline;
}

.bw-swatches {
  display: flex;
  gap: .5em;
}

.bw-swatches i {
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.bw-swatches i.is-on {
  background: var(--accent);
  box-shadow: 0 0 0 .18em #0e1528, 0 0 0 .32em var(--accent);
}

.bw-cursor {
  position: absolute;
  z-index: 4;
  left: 11.5em;
  top: 24.5em;
  width: 1.9em;
  height: 2.5em;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .9)) drop-shadow(0 .3em .5em rgba(0, 0, 0, .5));
  transition: left 1s cubic-bezier(.4, 0, .2, 1), top 1s cubic-bezier(.4, 0, .2, 1);
}

.bw-cursor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(0 0, 0 80%, 22% 62%, 38% 96%, 54% 89%, 38% 56%, 70% 56%);
}

.scene[data-beat="1"] .bw-cursor {
  left: 31em;
  top: 24em;
}

.scene[data-beat="2"] .bw-cursor {
  left: 43em;
  top: 35.5em;
}

.bw-import {
  position: absolute;
  z-index: 3;
  right: -1em;
  bottom: .5em;
  width: 30em;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7em 1em;
  align-items: center;
  padding: 1.1em 1.3em;
  border-color: rgba(var(--accent-rgb), .55);
  opacity: 0;
  transform: translateY(2em) scale(.96);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.bw-file {
  grid-row: span 2;
  width: 3.4em;
  height: 4.2em;
  display: grid;
  place-items: end center;
  padding-bottom: .55em;
  border-radius: .45em;
  background: linear-gradient(160deg, #e0684b, #b8432b);
  color: #fff;
  font: 800 .85em var(--pz-font);
  letter-spacing: .06em;
  clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%);
}

.bw-import-copy b {
  display: block;
  font: 700 1.05em var(--pz-font);
}

.bw-import-copy small {
  display: block;
  margin-top: .25em;
  color: #9fa9c0;
  font: 500 .85em var(--pz-font);
}

.bw-progress {
  height: .35em;
  border-radius: 1em;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.bw-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 .8em var(--accent);
}

.bw-done {
  position: absolute;
  right: 1.2em;
  top: 1.1em;
  color: var(--accent);
  font: 700 .9em var(--pz-font);
  opacity: 0;
}

.scene[data-beat="2"] .bw {
  filter: brightness(.7) saturate(.85);
}

.scene[data-beat="2"] .bw-import {
  opacity: 1;
  transform: none;
}

.scene[data-beat="2"] .bw-progress i {
  width: 100%;
  transition: width 1.4s .5s ease;
}

.scene[data-beat="2"] .bw-done {
  opacity: 1;
  transition: opacity .4s 1.9s ease;
}

/* ------------------------------------------------------- 05 slide kinds */

.illo-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1.4em;
  padding: 1em 0;
}

.kt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7em;
  min-height: 0;
  padding: .85em;
  border-radius: 1em;
  border: 1px solid rgba(var(--accent-rgb), .22);
  background: linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)), rgba(11, 17, 36, .82);
}

/* The highlight passes from card to card by fading this overlay, which the compositor animates;
   animating the card's border and shadow repainted the whole illustration on every frame. */
.kt::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(var(--accent-rgb), .85);
  box-shadow: 0 0 0 .25em rgba(var(--accent-rgb), .1), 0 0 2.2em rgba(var(--accent-rgb), .28);
  opacity: 0;
  pointer-events: none;
  animation: pz-kindGlow 9s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1s);
}

.kt-art {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: .6em;
  overflow: hidden;
  background: linear-gradient(125deg, #0d1426, #141e3a);
}

.kt-art i,
.kt-art b {
  position: absolute;
  display: block;
}

.kt-name {
  color: #dfe5f2;
  font: 700 1.1em/1 var(--pz-font);
}

.k-opening i:nth-child(1) { left: 10%; top: 28%; width: 52%; height: 15%; border-radius: .2em; background: rgba(255, 255, 255, .85); }
.k-opening i:nth-child(2) { left: 10%; top: 50%; width: 36%; height: 15%; border-radius: .2em; background: var(--accent); }
.k-opening i:nth-child(3) { right: 12%; top: 40%; width: 1em; height: 1em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 1em .2em rgba(var(--accent-rgb), .6); }

.k-divider { background: var(--accent) !important; }
.k-divider i:nth-child(1) { left: 10%; top: 36%; width: 62%; height: 16%; border-radius: .2em; background: rgba(11, 16, 32, .82); }
.k-divider i:nth-child(2) { left: 10%; top: 60%; width: 30%; height: 8%; border-radius: .2em; background: rgba(11, 16, 32, .45); }

.k-concept i:nth-child(1) { left: 8%; top: 18%; width: 44%; height: 13%; border-radius: .2em; background: rgba(255, 255, 255, .85); }
.k-concept i:nth-child(n+2) { left: 8%; height: 6.5%; border-radius: 1em; background: rgba(255, 255, 255, .25); }
.k-concept i:nth-child(2) { top: 44%; width: 42%; }
.k-concept i:nth-child(3) { top: 58%; width: 36%; }
.k-concept i:nth-child(4) { top: 72%; width: 40%; }
.k-concept::after { content: ''; position: absolute; right: 8%; top: 18%; width: 34%; height: 64%; border-radius: .4em; background: linear-gradient(145deg, rgba(var(--accent-rgb), .7), rgba(var(--accent-rgb), .15)); }

.k-question b { inset: 0; display: grid; place-items: center; color: var(--accent); font: 800 4.4em/1 var(--pz-font); text-shadow: 0 0 .4em rgba(var(--accent-rgb), .5); }

.k-quote b { left: 8%; top: 2%; color: var(--accent); font: 600 5.2em/1 var(--serif); }
.k-quote i { left: 36%; height: 8%; border-radius: 1em; background: rgba(255, 255, 255, .7); }
.k-quote i:nth-of-type(1) { top: 36%; width: 52%; }
.k-quote i:nth-of-type(2) { top: 54%; width: 38%; }

.k-principle b { left: 8%; top: 50%; transform: translateY(-50%); color: transparent; -webkit-text-stroke: 1.5px var(--accent); font: 800 4.4em/1 var(--pz-font); letter-spacing: -.06em; }
.k-principle i { right: 9%; top: 46%; width: 30%; height: 8%; border-radius: 1em; background: rgba(255, 255, 255, .6); }

.k-case i:nth-child(1) { left: 8%; top: 16%; width: 36%; height: 68%; border-radius: .4em; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.k-case i:nth-child(n+2) { left: 52%; width: 40%; height: 15%; border-radius: .3em; background: rgba(255, 255, 255, .1); border-left: .25em solid var(--accent); }
.k-case i:nth-child(2) { top: 16%; }
.k-case i:nth-child(3) { top: 42%; }
.k-case i:nth-child(4) { top: 68%; }

.k-catalog i { top: 20%; width: 26%; height: 60%; padding: .35em .45em; border-radius: .4em; background: rgba(255, 255, 255, .07); border: 1px solid rgba(var(--accent-rgb), .45); color: var(--accent); font: 800 .9em/1 var(--pz-font); font-style: normal; }
.k-catalog i:nth-child(1) { left: 7%; }
.k-catalog i:nth-child(2) { left: 37%; }
.k-catalog i:nth-child(3) { left: 67%; }

.k-media { background: linear-gradient(180deg, #1b2a52, #2d3f73 60%, #1a2444) !important; }
.k-media i:nth-child(1) { right: 20%; top: 18%; width: 1.4em; height: 1.4em; border-radius: 50%; background: #f5bb86; box-shadow: 0 0 1.2em #f5bb86; }
.k-media i:nth-child(2) { left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(180deg, rgba(var(--accent-rgb), .75), rgba(var(--accent-rgb), .3)); clip-path: polygon(0 100%, 0 62%, 22% 28%, 40% 58%, 62% 10%, 84% 52%, 100% 36%, 100% 100%); }

/* ------------------------------------------------------ 06 styles: looks */

.illo-looks .look {
  position: absolute;
  left: 0;
  top: 0;
  width: 34em;
  transform-origin: 0 0;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .6s ease, filter .6s ease;
}

.look .mini {
  font-size: 1.1333em;
}

.look-tag {
  position: absolute;
  left: 0;
  top: calc(100% + .9em);
  padding: .45em .9em;
  border-radius: 999px;
  background: rgba(12, 21, 38, .9);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #e6ebf6;
  font: 700 1.05em/1 var(--pz-font);
  white-space: nowrap;
}

.look-b .look-tag {
  border-color: rgba(247, 244, 238, .5);
}

.look-a,
.scene[data-beat="1"] .look-b {
  z-index: 2;
  transform: translate(1em, 12.5em);
  opacity: 1;
  filter: none;
}

.look-b,
.scene[data-beat="1"] .look-a {
  z-index: 1;
  transform: translate(15.5em, 1em) scale(.78);
  opacity: .55;
  filter: saturate(.6);
}

.scene[data-beat="2"] .look-a {
  z-index: 1;
  transform: translate(0, 10em) scale(.7);
  opacity: 1;
  filter: none;
}

.scene[data-beat="2"] .look-b {
  z-index: 1;
  transform: translate(26.2em, 10em) scale(.7);
  opacity: 1;
  filter: none;
}

.look-switch {
  position: absolute;
  left: 50%;
  top: 27.6em;
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .7em 1.2em;
  border-radius: 999px;
  background: rgba(12, 21, 38, .92);
  border: 1px solid rgba(var(--accent-rgb), .45);
  color: #eef2fb;
  font: 700 1.1em/1 var(--pz-font);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 1em);
  transition: opacity .5s ease, transform .6s ease;
}

.scene[data-beat="2"] .look-switch {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: .45s;
}

.ls-track {
  position: relative;
  width: 3em;
  height: 1.6em;
  border-radius: 1em;
  background: rgba(var(--accent-rgb), .28);
}

.ls-track i {
  position: absolute;
  left: .2em;
  top: .2em;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 .8em var(--accent);
  animation: pz-toggle 3.2s ease-in-out infinite alternate;
}

/* ------------------------------------------------- 07 fine-tune: live panel */

.illo-tune {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-size: clamp(11.5px, 2.45cqw, 15px);
}

.tune {
  width: min(100%, 31em);
  display: grid;
  gap: 1.1em;
  padding: 1.3em 1.4em 1.4em;
  font-family: var(--pz-font);
}

.tune-head {
  display: flex;
  align-items: center;
  gap: .8em;
}

.tune-head b {
  font: 700 1.1em var(--pz-font);
  letter-spacing: -.01em;
}

.tune-live {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35em .7em;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .13);
  color: var(--accent);
  font: 700 .74em var(--pz-font);
  letter-spacing: .04em;
  white-space: nowrap;
}

.tune-live i {
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 .6em var(--accent);
  animation: pz-pulse 2s ease-in-out infinite;
}

.tune-reset {
  margin-left: auto;
  padding: .45em .7em;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: transparent;
  color: #b5bfd5;
  font: 600 .82em var(--pz-font) !important;
}

.tune-reset:hover {
  color: #fff;
  border-color: rgba(var(--accent-rgb), .6);
}

.tune-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tune-group legend,
.tune-row label {
  padding: 0;
  margin-bottom: .65em;
  color: #8f99b3;
  font: 700 .74em var(--pz-font);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6em;
}

.swatches input,
.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.sw,
.sw-auto {
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.sw {
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.sw:hover {
  transform: scale(1.1);
}

.sw.is-checked {
  box-shadow: 0 0 0 .2em #0e1528, 0 0 0 .38em var(--sw), 0 0 1.2em var(--sw);
}

.sw-auto {
  display: inline-flex;
  align-items: center;
  height: 2.1em;
  padding: 0 .95em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #dfe5f2;
  font: 600 .86em var(--pz-font);
  white-space: nowrap;
}

.sw-auto.is-checked {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .15);
  color: #fff;
}

.sw.has-focus,
.sw-auto.has-focus {
  outline: 2px solid #f5bb86;
  outline-offset: 3px;
}

.tune-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1em;
}

.tune-row label {
  margin: 0;
}

.tune select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: .62em 2.4em .62em .9em;
  border-radius: .7em;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9b0c5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .9em center / .75em;
  color: #eef2fb;
  font: 600 .95em var(--pz-font);
  cursor: pointer;
}

.tune select:hover {
  border-color: rgba(var(--accent-rgb), .55);
}

.tune select option {
  background: #101727;
  color: #eef2fb;
}

.switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6em;
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65em;
  min-width: 0;
  padding: .6em .7em;
  border-radius: .75em;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  color: #dfe5f2;
  font: 600 .86em/1.2 var(--pz-font);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.switch:hover {
  border-color: rgba(var(--accent-rgb), .4);
}

.sw-track {
  position: relative;
  flex: none;
  width: 2.3em;
  height: 1.35em;
  border-radius: 1em;
  background: rgba(255, 255, 255, .16);
  transition: background .25s ease;
}

.sw-track::after {
  content: '';
  position: absolute;
  left: .18em;
  top: .18em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s ease;
}

.switch input:checked + .sw-track {
  background: var(--accent);
}

.switch input:checked + .sw-track::after {
  transform: translateX(.95em);
}

.switch input:focus-visible + .sw-track {
  outline: 2px solid #f5bb86;
  outline-offset: 3px;
}

/* ------------------------------------------------------- 08 AI assistant */

.illo-chat {
  display: grid;
  align-items: center;
}

.illo-chat .chat {
  position: relative;
  margin: 0 1em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: .7em;
  flex: none;
  padding: .9em 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.chat-spark {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: .6em;
  background: rgba(var(--accent-rgb), .18);
  color: var(--accent);
}

.chat-head b {
  font: 700 1.12em var(--pz-font);
}

.chat-conn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-left: auto;
  padding: .4em .8em;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .4);
  color: #dfe5f2;
  font: 600 .84em var(--pz-font);
  white-space: nowrap;
}

.chat-conn i {
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: #8be39b;
  box-shadow: 0 0 .6em #8be39b;
}

.chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .9em;
  padding: 1.2em;
}

.msg {
  max-width: 84%;
  padding: .85em 1.05em;
  border-radius: 1.1em;
  font: 500 1.02em/1.42 var(--pz-font);
}

.msg-user {
  align-self: flex-end;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-bottom-right-radius: .3em;
  background: rgba(var(--accent-rgb), .18);
  color: #fff;
}

.tools {
  display: flex;
  flex-direction: column;
  gap: .45em;
}

.tool {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .5em .8em;
  border-radius: .7em;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  font: 500 .95em var(--pz-font);
  opacity: 0;
  transform: translateY(.6em);
  transition: opacity .4s ease, transform .5s ease;
}

.tool code {
  color: #eef2fb;
  font: 500 .92em var(--mono);
}

.tool-out {
  margin-left: auto;
  color: #9fa9c0;
  font-size: .92em;
  white-space: nowrap;
}

.tool-st {
  position: relative;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  border: .15em solid rgba(var(--accent-rgb), .3);
  border-top-color: var(--accent);
  animation: pz-spin .8s linear infinite;
}

.tool-st::after {
  content: '';
  position: absolute;
  left: .3em;
  top: .12em;
  width: .25em;
  height: .5em;
  border: solid #0b1020;
  border-width: 0 .13em .13em 0;
  transform: rotate(45deg);
  opacity: 0;
}

.scene[data-beat] .tool.t1,
.scene:is([data-beat="1"], [data-beat="2"]) .tool {
  opacity: 1;
  transform: none;
}

.scene[data-beat="1"] .tool.t2 { transition-delay: .35s; }
.scene[data-beat="1"] .tool.t3 { transition-delay: .7s; }

.scene:is([data-beat="1"], [data-beat="2"]) .tool-st {
  animation: none;
  border-color: var(--accent);
  background: var(--accent);
}

.scene:is([data-beat="1"], [data-beat="2"]) .tool-st::after {
  opacity: 1;
}

.msg-bot {
  align-self: flex-start;
  max-width: 94%;
  border: 1px solid rgba(255, 255, 255, .1);
  border-bottom-left-radius: .3em;
  background: rgba(255, 255, 255, .05);
  color: #e6ebf6;
  opacity: 0;
  transform: translateY(1em);
  transition: opacity .5s .2s ease, transform .6s .2s ease;
}

.msg-bot p {
  margin-bottom: .75em;
}

.scene[data-beat="2"] .msg-bot {
  opacity: 1;
  transform: none;
}

.deck-card {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: .65em;
  border-radius: .9em;
  border: 1px solid rgba(var(--accent-rgb), .35);
  background: rgba(11, 16, 32, .7);
}

.dc-thumb .mini {
  font-size: .4em;
}

.dc-meta b {
  display: block;
  font: 700 1.05em var(--pz-font);
}

.dc-meta small {
  display: block;
  margin: .2em 0 .7em;
  color: #9fa9c0;
  font: 500 .85em var(--pz-font);
}

.dc-btns {
  display: flex;
  gap: .5em;
}

.dc-btns span {
  padding: .4em .8em;
  border-radius: .5em;
  border: 1px solid rgba(255, 255, 255, .16);
  font: 700 .8em var(--pz-font);
  white-space: nowrap;
}

.dc-btns .is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1020;
}

/* ------------------------------------------------------------ 10 teams */

.illo-team .members {
  position: absolute;
  left: 0;
  top: 8.5em;
  width: 33em;
  display: flex;
  flex-direction: column;
  gap: .5em;
  padding: 1.2em 1.3em;
  transition: filter .5s ease;
}

.m-head {
  display: flex;
  align-items: baseline;
  gap: .7em;
  margin-bottom: .4em !important;
}

.m-head b {
  font: 700 1.2em var(--pz-font);
}

.m-head small {
  color: #8f99b3;
  font: 600 .9em var(--pz-font);
}

.m-invite {
  margin-left: auto;
  padding: .45em .9em;
  border-radius: .6em;
  background: var(--accent);
  color: #0b1020;
  font: 700 .88em var(--pz-font);
}

.m-row {
  display: flex;
  align-items: center;
  gap: .9em;
  padding: .5em .6em;
  border-radius: .8em;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .03);
  transition: border-color .5s ease, box-shadow .5s ease;
}

.av {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: var(--av);
  color: #0b1020;
  font: 800 .88em var(--pz-font);
}

.m-name {
  display: flex;
  flex-direction: column;
  font: 700 1em var(--pz-font);
}

.m-name small {
  margin-top: .15em;
  color: #8f99b3;
  font: 500 .82em var(--pz-font);
}

.role {
  margin-left: auto;
  padding: .3em .7em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #b5bfd5;
  font: 700 .78em var(--pz-font);
}

.role.is-admin {
  border-color: rgba(var(--accent-rgb), .6);
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
}

.m-row.is-pending {
  border: 1px dashed rgba(var(--accent-rgb), .5);
  background: transparent;
}

.m-row.is-pending .av {
  background: transparent;
  border: 1px dashed rgba(var(--accent-rgb), .7);
  color: var(--accent);
  font-size: 1.1em;
}

.scene[data-beat="0"] .m-row.is-pending {
  box-shadow: 0 0 2em rgba(var(--accent-rgb), .18);
}

.illo-team .ws {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 1em;
  width: 22em;
  padding: .55em;
  border-radius: 1em;
}

.ws-trigger {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .55em .7em;
  border-radius: .7em;
  background: rgba(255, 255, 255, .04);
  font: 700 1.02em var(--pz-font);
}

.ws-trigger i,
.ws-item i {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: .35em;
  background: var(--ws);
}

.ws-caret {
  margin-left: auto;
  color: #8f99b3;
  transition: transform .4s ease;
}

.ws-menu {
  display: grid;
  gap: .2em;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s ease, opacity .4s ease, margin .6s ease;
}

.ws-item {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .55em .7em;
  border-radius: .6em;
  color: #dfe5f2;
  font: 600 .98em var(--pz-font);
  white-space: nowrap;
}

.ws-item small {
  margin-left: auto;
  color: #8f99b3;
  font: 600 .82em var(--pz-font);
}

.ws-item.is-current {
  background: rgba(var(--accent-rgb), .12);
}

.ws-new {
  margin-top: .2em !important;
  padding: .6em .7em .35em;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--accent);
  font: 700 .92em var(--pz-font);
}

.scene[data-beat="1"] .ws-menu {
  max-height: 20em;
  opacity: 1;
  margin-top: .4em;
}

.scene[data-beat="1"] .ws-caret {
  transform: rotate(180deg);
}

.scene[data-beat="1"] .members {
  filter: brightness(.65);
}

.illo-team .toast {
  position: absolute;
  z-index: 3;
  right: 1em;
  bottom: 1.2em;
  display: flex;
  align-items: center;
  gap: .9em;
  padding: .9em 1.2em;
  border-radius: 1em;
  opacity: 0;
  transform: translateY(1em);
  transition: opacity .5s ease, transform .6s ease;
}

.scene[data-beat="0"] .toast {
  opacity: 1;
  transform: none;
  transition-delay: .5s;
}

.toast-ic {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1020;
  font: 800 1em var(--pz-font);
}

.toast-copy b {
  display: block;
  font: 700 1.05em var(--pz-font);
}

.toast-copy small {
  display: block;
  margin-top: .15em;
  color: #9fa9c0;
  font: 500 .85em var(--pz-font);
}

/* ---------------------------------------------------------- 11 audience Q&A */

.illo-qa .qa-screen {
  position: absolute;
  left: 0;
  top: 5.5em;
  width: 32em;
  height: 22em;
  overflow: hidden;
}

.qa-face {
  position: absolute;
  inset: 0;
  transition: opacity .6s ease, transform .6s ease;
}

.qa-slide {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding: 1.8em;
  background: radial-gradient(circle at 82% 45%, rgba(var(--accent-rgb), .25), transparent 55%);
}

.qa-slide-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .7em;
}

.qa-eyebrow {
  display: flex;
  align-items: center;
  gap: .6em;
  color: var(--accent);
  font: 700 .9em/1 var(--pz-font);
}

.qa-eyebrow::before {
  content: '';
  width: 1.8em;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 .6em var(--accent);
}

.qa-slide-copy b {
  font: 700 2.3em/1.02 var(--pz-font);
  letter-spacing: -.05em;
  text-wrap: balance;
}

.qa-slide-copy b em {
  font-style: normal;
  color: var(--accent);
}

.qa-slide-copy small {
  color: #9fa9c0;
  font: 600 .92em var(--pz-font);
}

.qa-code {
  flex: none;
  width: 11.5em;
  height: 11.5em;
  border-radius: .7em;
  overflow: hidden;
  box-shadow: 0 0 0 .4em rgba(var(--accent-rgb), .25), 0 0 3em rgba(var(--accent-rgb), .35);
}

.qa-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qa-mod {
  display: flex;
  flex-direction: column;
  gap: .55em;
  padding: 1.2em 1.3em;
  opacity: 0;
  transform: translateY(1em);
}

.mod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .3em !important;
}

.mod-head b {
  font: 700 1.25em var(--pz-font);
}

.mod-tabs {
  display: flex;
  gap: .3em;
  padding: .25em;
  border-radius: .7em;
  background: rgba(255, 255, 255, .05);
}

.mod-tabs span {
  padding: .35em .7em;
  border-radius: .5em;
  color: #9fa9c0;
  font: 700 .78em var(--pz-font);
  white-space: nowrap;
}

.mod-tabs .is-on {
  background: rgba(var(--accent-rgb), .16);
  color: #fff;
}

.mod-row {
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .65em .75em;
  border-radius: .8em;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  transition: opacity .5s ease;
}

.votes {
  flex: none;
  min-width: 3.5em;
  padding: .35em .5em;
  border-radius: .5em;
  background: rgba(var(--accent-rgb), .14);
  color: var(--accent);
  font: 800 .85em var(--pz-font);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mod-row .q {
  flex: 1;
  min-width: 0;
  font: 600 .95em/1.3 var(--pz-font);
}

.mod-btn {
  position: relative;
  flex: none;
  border-radius: .55em;
  font: 700 .76em var(--pz-font);
  white-space: nowrap;
}

.b-mark {
  display: block;
  padding: .45em .8em;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #dfe5f2;
}

.b-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--accent);
  color: #0b1020;
  opacity: 0;
}

.scene[data-beat="2"] .qa-slide {
  opacity: 0;
  transform: translateY(-1em);
}

.scene[data-beat="2"] .qa-mod {
  opacity: 1;
  transform: none;
}

.scene[data-beat="2"] .r1 .b-done {
  opacity: 1;
  transition: opacity .35s 1.5s ease;
}

.scene[data-beat="2"] .mod-row.r1 {
  opacity: .62;
  transition-delay: 1.9s;
}

.illo-qa .phone {
  position: absolute;
  z-index: 2;
  right: 1em;
  top: 3.5em;
  width: 16.5em;
  height: 33em;
  padding: .7em;
  border-radius: 2.6em;
  background: linear-gradient(160deg, #2a3350, #121829);
  box-shadow: 0 2.5em 5em rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transform: rotate(4deg);
}

.illo-qa .phone::before {
  content: '';
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 1.25em;
  width: 4.6em;
  height: 1.15em;
  margin-left: -2.3em;
  border-radius: 1em;
  background: #070a14;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 2em;
  overflow: hidden;
  background: #0d1426;
}

.ph-face {
  position: absolute;
  inset: 0;
  transition: opacity .5s ease;
}

.ph-scan {
  background: radial-gradient(circle at 50% 40%, #27304d, #0a0f1d 75%);
}

.scan-frame {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 9.5em;
  height: 9.5em;
  transform: translate(-50%, -50%);
}

.scan-frame::before {
  content: '';
  position: absolute;
  inset: 1em;
  background: repeating-conic-gradient(#f4f6fb 0 25%, #8b93a8 0 50%) 0 0 / 1.25em 1.25em;
  opacity: .5;
  filter: blur(.6px);
}

.scan-frame i {
  position: absolute;
  width: 2em;
  height: 2em;
  border: .22em solid var(--accent);
  filter: drop-shadow(0 0 .4em var(--accent));
}

.scan-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: .6em; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: .6em; }
.scan-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: .6em; }
.scan-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: .6em; }

.scan-line {
  position: absolute;
  left: 50%;
  top: calc(42% - 3.8em);
  width: 8em;
  height: 2px;
  margin-left: -4em;
  background: var(--accent);
  box-shadow: 0 0 1em var(--accent);
  animation: pz-scan 1.8s ease-in-out infinite alternate;
}

.ph-scan small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.5em;
  color: #dfe5f2;
  font: 600 .95em var(--pz-font);
  text-align: center;
}

.ph-board {
  display: flex;
  flex-direction: column;
  gap: .7em;
  padding: 3em .9em 1em;
  opacity: 0;
}

.ph-head b {
  display: block;
  font: 700 1.15em var(--pz-font);
}

.ph-head small {
  color: var(--accent);
  font: 700 .78em var(--pz-font);
}

.ph-input {
  padding: .65em .85em;
  border-radius: .8em;
  border: 1px solid rgba(var(--accent-rgb), .4);
  background: rgba(255, 255, 255, .04);
  color: #8f99b3;
  font: 500 .88em var(--pz-font);
}

.ph-list {
  display: flex;
  flex-direction: column;
  gap: .6em;
  font-size: .86em;
}

.ph-q {
  display: flex;
  align-items: flex-start;
  gap: .7em;
  height: 5.4em;
  padding: .7em .75em;
  border-radius: .8em;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045);
  font: 600 1em/1.3 var(--pz-font);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), border-color .4s ease;
}

.ph-vote {
  position: relative;
  flex: none;
  display: grid;
  justify-items: center;
  gap: .1em;
  min-width: 2.5em;
  padding: .3em .2em;
  border-radius: .6em;
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
  font: 800 .95em/1 var(--pz-font);
  font-variant-numeric: tabular-nums;
  transition: background .3s ease, color .3s ease;
}

.ph-vote b {
  font-size: .8em;
}

.ph-vote .v-new {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .3em;
  text-align: center;
  opacity: 0;
}

.scene:is([data-beat="1"], [data-beat="2"]) .ph-scan {
  opacity: 0;
}

.scene:is([data-beat="1"], [data-beat="2"]) .ph-board {
  opacity: 1;
}

.scene:is([data-beat="1"], [data-beat="2"]) .q-b .ph-vote {
  background: var(--accent);
  color: #0b1020;
  transition-delay: .6s;
}

.scene:is([data-beat="1"], [data-beat="2"]) .q-b .v-old {
  opacity: 0;
  transition: opacity .2s .7s;
}

.scene:is([data-beat="1"], [data-beat="2"]) .q-b .v-new {
  opacity: 1;
  transition: opacity .2s .7s;
}

.scene:is([data-beat="1"], [data-beat="2"]) .q-b {
  transform: translateY(calc(-100% - .6em));
  border-color: rgba(var(--accent-rgb), .5);
  transition-delay: 1.1s;
}

.scene:is([data-beat="1"], [data-beat="2"]) .q-a {
  transform: translateY(calc(100% + .6em));
  transition-delay: 1.1s;
}

/* -------------------------------------------------------------- 12 present */

.illo-present .pr-screen {
  position: absolute;
  left: 5em;
  top: 1em;
  width: 40em;
  padding: .9em;
  border-radius: 1.2em 1.2em .4em .4em;
  background: linear-gradient(160deg, #262f4b, #121829);
  box-shadow: 0 2.5em 5em rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.pr-screen .mini {
  font-size: 1.2733em;
  border-radius: .5em;
}

.pr-base {
  position: absolute;
  left: 1.5em;
  top: 24.3em;
  width: 47em;
  height: 1.1em;
  border-radius: 0 0 1.4em 1.4em;
  background: linear-gradient(180deg, #3a4466, #1a2034);
  box-shadow: 0 1.2em 2em rgba(0, 0, 0, .45);
}

.keys {
  position: absolute;
  left: 0;
  right: 0;
  top: 28.6em;
  display: flex;
  justify-content: center;
  gap: 1.1em;
}

.key {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7em;
}

.key kbd {
  display: grid;
  place-items: center;
  min-width: 3.4em;
  height: 3.4em;
  padding: 0 .9em;
  border-radius: .7em;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, #252e4a, #161d33);
  color: #eef2fb;
  font: 700 1.15em var(--pz-font);
  animation: pz-keyTap 7.5s ease-in-out infinite;
}

/* The cap sits on a base (::before) that stays put, and the pressed cap (::after, labelled from
   data-label, which must match the kbd text) fades in and dips along with it: transform and
   opacity only, which the compositor runs. Animating the cap's border, background and shadows
   repainted it on every frame. The pressed cap belongs to .key rather than kbd, because animating
   an element together with its own ::after made Chrome run both on the main thread. */
.key::before,
.key::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 3.4em;
  height: 3.4em;
  margin: 0 auto;
  border-radius: .7em;
  font: 700 1.15em var(--pz-font);
}

.key::before {
  content: '';
  z-index: -1;
  top: .35em;
  background: #0a0e1c;
  box-shadow: 0 .25em 1.2em rgba(0, 0, 0, .4);
}

.key::after {
  content: attr(data-label);
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .45), rgba(var(--accent-rgb), .2)), #0d1326;
  box-shadow: 0 0 1.6em rgba(var(--accent-rgb), .55);
  color: #eef2fb;
  opacity: 0;
  animation: pz-keyPress 7.5s ease-in-out infinite;
}

.key.k-space kbd {
  min-width: 11em;
}

.key.k-space::before,
.key.k-space::after {
  width: 11em;
}

.key:nth-child(2) kbd, .key:nth-child(2)::after { animation-delay: 1.5s; }
.key:nth-child(3) kbd, .key:nth-child(3)::after { animation-delay: 3s; }
.key:nth-child(4) kbd, .key:nth-child(4)::after { animation-delay: 4.5s; }
.key:nth-child(5) kbd, .key:nth-child(5)::after { animation-delay: 6s; }

.key small {
  color: #9fa9c0;
  font: 600 .9em var(--pz-font);
  white-space: nowrap;
}

.key.is-pressed kbd {
  animation: none;
  transform: translateY(.3em);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .3);
  box-shadow: 0 0 1.6em rgba(var(--accent-rgb), .55);
}

.key.is-pressed::after {
  animation: none;
  opacity: 0;
}

.illo-present .share {
  position: absolute;
  z-index: 3;
  right: -.5em;
  top: 12.5em;
  width: 17em;
  padding: 1em 1.1em;
  border-radius: 1em;
  opacity: 0;
  transform: translateY(1em) scale(.96);
  transition: opacity .5s ease, transform .6s ease;
}

.share-row {
  display: flex;
  align-items: center;
  gap: .6em;
}

.share-row b {
  font: 700 1.05em var(--pz-font);
}

.share-toggle {
  position: relative;
  margin-left: auto;
  width: 2.6em;
  height: 1.5em;
  border-radius: 1em;
  background: rgba(255, 255, 255, .16);
  transition: background .3s .6s ease;
}

.share-toggle i {
  position: absolute;
  left: .2em;
  top: .2em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #fff;
  transition: transform .3s .6s ease;
}

.share-url {
  display: flex;
  align-items: center;
  gap: .5em;
  margin-top: .8em !important;
  padding: .55em .7em;
  border-radius: .6em;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: #dfe5f2;
  font: 500 .88em var(--mono);
  opacity: .35;
  transition: opacity .4s .9s ease;
}

.share-copy {
  margin-left: auto;
  color: var(--accent);
  font: 700 .9em var(--pz-font);
}

.scene[data-beat="1"] .share {
  opacity: 1;
  transform: none;
}

.scene[data-beat="1"] .share-toggle {
  background: var(--accent);
}

.scene[data-beat="1"] .share-toggle i {
  transform: translateX(1.1em);
}

.scene[data-beat="1"] .share-url {
  opacity: 1;
}

/* ---------------------------------------------------------- 13 the mark */

.illo-logo {
  display: grid;
  place-items: center;
}

.logo-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .28);
  transform: translate(-50%, -50%);
}

.logo-ring.r1 {
  width: 37em;
  box-shadow: inset 0 0 5em rgba(var(--accent-rgb), .05), 0 0 4em rgba(var(--accent-rgb), .06);
}

.logo-ring.r2 {
  width: 26em;
  border-style: dashed;
  animation: pz-ringSpin 30s linear infinite;
}

.logo-mark {
  position: relative;
  width: 24em;
  height: 24em;
  overflow: visible;
}

.logo-curve {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 1.5px var(--accent));
}

.js .logo-curve {
  stroke-dashoffset: 100;
}

.js .scene.is-active .logo-curve {
  animation: pz-draw 1.7s .35s cubic-bezier(.6, 0, .2, 1) forwards;
}

.logo-halo {
  fill: rgba(245, 167, 101, .2);
  transform-origin: 32px 17px;
  animation: pz-halo 3s ease-in-out infinite;
}

.logo-orb {
  fill: #f5a765;
  filter: drop-shadow(0 0 3px #f5a765);
}

.logo-dot {
  fill: #fff;
}

/* ----------------------------------------------------- illustration motion */

@keyframes pz-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes pz-float {
  from { translate: 0 0; }
  to { translate: 0 -1em; }
}

@keyframes pz-blink {
  50% { opacity: 0; }
}

@keyframes pz-rhythm {
  0%, 30%, 100% { transform: none; }
  12% { transform: translateX(-.6em); }
}

/* With steps: the glow shows between the midpoints of the nudge, as the former box-shadow (whose
   shadow lists could not be interpolated) switched on and off. */
@keyframes pz-rhythmGlow {
  0% { opacity: 0; }
  6% { opacity: 1; }
  21% { opacity: 0; }
}

@keyframes pz-kindGlow {
  0%, 9% { opacity: 1; }
  16%, 100% { opacity: 0; }
}

@keyframes pz-toggle {
  0%, 30% { transform: translateX(0); }
  70%, 100% { transform: translateX(1.4em); }
}

@keyframes pz-spin {
  to { transform: rotate(360deg); }
}

@keyframes pz-scan {
  to { transform: translateY(7.6em); }
}

@keyframes pz-keyTap {
  0%, 3%, 15%, 100% { transform: translateY(0); }
  5%, 11% { transform: translateY(.3em); }
}

@keyframes pz-keyPress {
  0%, 3%, 15%, 100% { transform: translateY(0); opacity: 0; }
  5%, 11% { transform: translateY(.3em); opacity: 1; }
}

/* Equal-length samples along the idea-flow curves (the middle one is straight). */
@keyframes pz-flowA {
  0% { transform: translate(214px, 132px); }
  8.33% { transform: translate(222.1px, 130.9px); }
  16.67% { transform: translate(229.6px, 127.4px); }
  25% { transform: translate(235.9px, 122.1px); }
  33.33% { transform: translate(241.1px, 115.8px); }
  41.67% { transform: translate(245.7px, 109px); }
  50% { transform: translate(250px, 102px); }
  58.33% { transform: translate(254.3px, 95px); }
  66.67% { transform: translate(258.9px, 88.2px); }
  75% { transform: translate(264.2px, 81.9px); }
  83.33% { transform: translate(270.5px, 76.6px); }
  91.67% { transform: translate(277.9px, 73.1px); }
  100% { transform: translate(286px, 72px); }
}

@keyframes pz-flowB {
  from { transform: translate(214px, 200px); }
  to { transform: translate(286px, 200px); }
}

@keyframes pz-flowC {
  0% { transform: translate(214px, 268px); }
  8.33% { transform: translate(222.1px, 269.1px); }
  16.67% { transform: translate(229.6px, 272.6px); }
  25% { transform: translate(235.9px, 277.9px); }
  33.33% { transform: translate(241.1px, 284.2px); }
  41.67% { transform: translate(245.7px, 291px); }
  50% { transform: translate(250px, 298px); }
  58.33% { transform: translate(254.3px, 305px); }
  66.67% { transform: translate(258.9px, 311.8px); }
  75% { transform: translate(264.2px, 318.1px); }
  83.33% { transform: translate(270.5px, 323.4px); }
  91.67% { transform: translate(277.9px, 326.9px); }
  100% { transform: translate(286px, 328px); }
}

@keyframes pz-ringSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pz-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pz-halo {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.35); opacity: .35; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .topbar-center {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .scene-shell {
    padding-left: 6vw;
    padding-right: 8vw;
  }

  .scene {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
    gap: 30px;
  }

  .scene-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
  }

  .beat p {
    font-size: 1.1rem;
  }

  .chapter-index {
    right: 18px;
  }

  .chapter-dot span {
    display: none;
  }
}

/* Portrait tablets and phones: text on top, the visual pinned to the bottom of the stage. */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .scene-shell {
    align-items: stretch;
    padding: calc(104px + var(--safe-top)) 8vw calc(88px + var(--safe-bottom));
  }

  .scene,
  .scene.no-art,
  .scene.layout-flip,
  .scene.layout-flip.no-art {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    margin: 0 auto;
  }

  .scene-copy,
  .scene.layout-flip .scene-copy {
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-width: none;
    padding-right: 0;
  }

  .scene-title,
  .scene.kind-opening .scene-title,
  .scene.kind-principle .scene-title,
  .scene.kind-catalog .scene-title,
  .scene.long-title .scene-title {
    max-width: 16ch;
    font-size: clamp(2.3rem, 7.4vw, 4.6rem);
  }

  .beat {
    flex: 0 1 auto;
    min-height: 3.2em;
    max-height: none;
  }

  .scene-art,
  .scene.layout-flip .scene-art {
    --art-h: min(38svh, 440px);
    flex: none;
    width: min(100%, calc(var(--art-h) * 1.25));
    max-width: none;
    margin: auto auto 0;
    transform: none !important;
  }

  .scene-copy {
    margin-bottom: 18px;
  }

  .scene-art::before {
    inset: 0;
  }

  .context-card {
    font-size: .72rem;
    padding: 9px 12px;
  }

  .context-core {
    font-size: .74rem;
  }
}

@media (max-width: 760px) {
  .stage {
    min-height: 500px;
  }

  .topbar {
    padding: calc(15px + var(--safe-top)) 18px 12px;
  }

  .identity-text small {
    font-size: .58rem;
  }

  .quiet-button {
    padding: 8px 12px;
    font-size: .73rem;
  }

  .scene-shell {
    padding: calc(76px + var(--safe-top)) 22px calc(60px + var(--safe-bottom));
  }

  .scene .eyebrow {
    font-size: .75rem;
    margin-bottom: 12px;
  }

  .scene-title,
  .scene.kind-opening .scene-title,
  .scene.kind-principle .scene-title,
  .scene.kind-catalog .scene-title,
  .scene.long-title .scene-title {
    font-size: clamp(2.05rem, 8.6vw, 3.1rem);
    line-height: 1.02;
  }

  .scene-rule {
    width: 56px;
    margin: 16px 0;
  }

  .beat p,
  .scene.kind-opening .beat p {
    font-size: clamp(.98rem, 3.9vw, 1.1rem);
    line-height: 1.45;
  }

  .beat .short {
    font-size: 1.08rem;
  }

  .beat .label {
    font-size: .74rem;
  }

  .beat-meta {
    margin-top: 12px;
    font-size: .7rem;
  }

  .scene-art,
  .scene.layout-flip .scene-art {
    --art-h: min(33svh, 300px);
  }

  .scene-copy {
    margin-bottom: 12px;
  }

  .scroll-cue {
    display: none !important;
  }

  .cta-row {
    margin-top: 20px;
    gap: 10px;
  }

  .cta {
    padding: 12px 16px;
    font-size: .86rem;
  }

  .made-with {
    margin-top: 16px;
  }

  .illo-tune {
    font-size: 12px;
  }

  .tune {
    gap: .8em;
    padding: 1em 1.1em 1.1em;
  }

  .tune-row,
  .tune-group legend {
    display: none;
  }

  .scene-art.is-interactive {
    height: auto;
    aspect-ratio: auto;
    width: 100%;
  }

  .scene-art.is-interactive .illo {
    position: relative;
  }

  .scene-art.is-interactive::before {
    display: none;
  }

  .chapter-index {
    display: none;
  }

  .hud {
    left: 20px;
    right: 20px;
    bottom: calc(14px + var(--safe-bottom));
    display: flex;
    justify-content: space-between;
    font-size: .68rem;
  }

  .hud-controls {
    display: none;
  }

  .progress-bar {
    width: 52px;
  }

  .overview-items {
    grid-template-columns: 1fr;
  }

  .overlay-panel {
    padding: 23px;
    padding-top: calc(23px + var(--safe-top));
  }
}

@media (max-width: 480px) {
  .identity-text small {
    display: none;
  }
}

/* Short phones: the visual steps back behind the text, as Aurora does on small screens. */
@media (max-width: 760px) and (max-height: 640px) {
  .scene-art:not(.is-interactive),
  .scene.layout-flip .scene-art:not(.is-interactive) {
    position: absolute;
    z-index: -1;
    right: -22vw;
    bottom: 4%;
    width: 78vw;
    margin: 0;
    padding: 0;
    opacity: .26;
    pointer-events: none;
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .scene-shell {
    padding-top: 78px;
    padding-bottom: 62px;
  }

  .scene-title {
    font-size: clamp(2.6rem, 5vw, 5.2rem);
  }

  .scene.kind-opening .scene-title {
    font-size: clamp(3rem, 6vw, 6rem);
  }

  .scene .eyebrow {
    margin-bottom: 13px;
  }

  .scene-rule {
    margin: 19px 0;
  }

  .beat {
    max-height: 38vh;
  }

  .beat p,
  .scene.kind-opening .beat p {
    font-size: 1.05rem;
  }

  .topbar {
    padding-top: 15px;
  }

  .hud {
    bottom: 14px;
  }

  .scene-art {
    max-width: min(630px, calc((100vh - 170px) * 1.25));
  }
}

/* ------------------------------------------------ without JavaScript */

html:not(.js) .stage {
  position: relative;
  height: auto;
  overflow: visible;
}

html:not(.js) .stage::after,
html:not(.js) :is(.particles, .journey, .orb, .hud, .chapter-index, .top-actions, .beat-meta, .scroll-track) {
  display: none;
}

html:not(.js) .topbar {
  position: fixed;
  background: rgba(7, 10, 22, .88);
}

html:not(.js) .scene-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16vh;
  padding-top: 160px;
  padding-bottom: 140px;
}

html:not(.js) .beat {
  max-height: none;
  overflow: visible;
}

html:not(.js) .step + .step {
  margin-top: 1.1em;
}

html:not(.js) :is(.idea-slide, .idea-flow) {
  opacity: 1;
  transform: none;
}

html:not(.js) :is(.cta-row, .scroll-cue) {
  display: none;
}

/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  .pz-aurora *,
  .pz-aurora *::before,
  .pz-aurora *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .idea-flow circle {
    display: none;
  }

  .js .logo-curve {
    stroke-dashoffset: 0;
  }
}
