/* ---------------------------------------------------------------
   Canvas — the Prezi-style zooming world.
   #stage is the fixed viewport window. #world is the pannable/
   zoomable layer whose CSS transform (translate + scale + rotate)
   is driven entirely by js/camera.js. Every .frame is a fixed
   1600x900 "slide" absolutely positioned in world space; the
   camera moves and scales #world so the target frame fills the
   viewport. Frames never scroll internally — content is authored
   to fit within the fixed canvas.
--------------------------------------------------------------- */

html, body {
  height: 100%;
  overflow: hidden;
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #05070c;
}

#world {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.frame {
  position: absolute;
  width: var(--frame-w);
  height: var(--frame-h);
  box-sizing: border-box;
  padding: var(--frame-pad);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.frame__stage {
  position: relative;
  z-index: 2;
  width: 100%;
}

.frame__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.frame__header {
  margin-bottom: var(--space-md);
}

.frame__header .eyebrow {
  display: block;
  margin-bottom: var(--space-xs);
}

.frame__title {
  font-size: var(--fs-h1);
  line-height: 1.03;
  margin-bottom: var(--space-sm);
}

.frame__title--md {
  font-size: var(--fs-h2);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* -----------------------------------------------------------
   HUD — fixed chrome that sits above the world, unaffected by
   the camera transform.
----------------------------------------------------------- */
.hud {
  position: fixed;
  inset: 0;
  z-index: var(--z-hud);
  pointer-events: none;
}
.hud > * { pointer-events: auto; }

.hud__counter {
  position: fixed;
  top: 28px;
  right: 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg-1);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background var(--dur-med) var(--ease-soft), color var(--dur-med) var(--ease-soft), border-color var(--dur-med);
}
.hud__counter span { opacity: 0.5; }

.navarrow {
  position: fixed;
  bottom: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), background var(--dur-med), color var(--dur-med);
}
.navarrow:hover { transform: scale(1.08); border-color: var(--blue); color: var(--blue); }
.navarrow:disabled { opacity: 0.3; pointer-events: none; }
.navarrow svg { width: 18px; height: 18px; }
.navarrow--prev { right: 92px; }
.navarrow--next { right: 32px; }

@media (max-width: 780px) {
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-md); }
  .navarrow--prev { right: 84px; }
}
