/* The film's stage: 1920×1080, drawn in the design system's tokens and nothing
   else (design/DESIGN.md: never a colour outside tokens.css). Sizes are pixels
   because the stage IS a fixed canvas; film.js scales it to its container. */

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-page);
}

.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
}

.stage [data-el] {
  will-change: transform, opacity;
}

.stage__awning {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  border-radius: 0;
}

.stage__awning--bottom {
  top: auto;
  bottom: 0;
  height: 8px;
}

.stage .eyebrow {
  margin: 0;
  font-size: 22px;
}

.stage__eyebrow {
  margin-bottom: 28px;
}

.scene {
  position: absolute;
  inset: 0;
}

/* ---------- shared pieces ---------- */

.copy {
  position: absolute;
  left: 140px;
  top: 190px;
  width: 760px;
}

.copy--centre {
  left: 0;
  right: 0;
  width: auto;
  top: 150px;
  text-align: center;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 104px;
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
}

.lede {
  margin: 40px 0 0;
  font-size: 34px;
  line-height: 1.4;
  color: var(--text-muted);
}

.copy--centre .lede {
  margin-top: 28px;
}

.card {
  position: absolute;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg-raised);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.chip--positive {
  color: var(--positive);
  border-color: color-mix(in srgb, var(--positive) 35%, var(--bg-surface));
  background: var(--olive-50);
}

.chip--warning {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 35%, var(--bg-surface));
  background: var(--amber-50);
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 18px 34px;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 600;
}

.button--accent {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- 1 · intro ---------- */

.scene--intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.scene--intro .stage__eyebrow {
  margin-bottom: 56px;
}

.intro__icon {
  width: 220px;
  height: 220px;
}

.intro__wordmark {
  margin: 44px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 200px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand); /* brand text, and large: DESIGN.md allows exactly this */
}

.intro__tagline {
  margin: 28px 0 0;
  font-size: 46px;
  color: var(--text-muted);
}

/* ---------- 2 · shop ---------- */

.product {
  left: 1060px;
  top: 150px;
  width: 700px;
  overflow: hidden;
}

.product__image {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: var(--bg-raised);
  border-bottom: 2px solid var(--border);
}

.product__body {
  padding: 32px 40px 36px;
}

.product__name {
  margin: 0;
  font-size: 38px;
  font-weight: 600;
}

.product__meta {
  margin: 8px 0 0;
  font-size: 24px;
  color: var(--text-muted);
}

.product__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.product__price {
  font-size: 48px;
  font-weight: 500;
}

.states {
  position: absolute;
  left: 140px;
  top: 790px;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.states .chip {
  padding: 8px 16px;
  font-size: 22px;
}

.facts {
  position: absolute;
  left: 140px;
  top: 900px;
  margin: 0;
  font-size: 28px;
  color: var(--text-muted);
}

/* ---------- 3 · agents ---------- */

.doors {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 520px;
  height: 400px;
}

.door {
  top: 0;
  width: 520px;
  height: 380px;
  padding: 40px 44px;
}

.door:nth-child(1) { left: 0; }
.door:nth-child(2) { left: 580px; }
.door:nth-child(3) { left: 1160px; }

.door__title {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  letter-spacing: var(--tracking-tight);
}

.door__text {
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.4;
  color: var(--text-muted);
}

.door .chip {
  position: absolute;
  left: 44px;
  bottom: 40px;
}

/* Agent activity is clay, always (DESIGN.md). */
.agent-dot {
  position: absolute;
  top: 480px;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--brand);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* ---------- 4 · approve ---------- */

.queue {
  left: 980px;
  top: 300px;
  width: 800px;
  padding: 40px 44px;
}

.queue__row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 24px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-raised);
}

.queue__thumb {
  flex: none;
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: var(--bg-surface);
  border-radius: 12px;
}

.queue__text {
  flex: 1;
}

.queue__name {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}

.queue__meta {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-muted);
}

.queue__actions {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.queue__status {
  position: relative;
  display: block;
  width: 110px;
  height: 48px;
}

.queue__status .chip {
  position: absolute;
  right: 0;
  top: 0;
}

.queue__audit {
  margin: 28px 0 0;
  font-size: 24px;
  color: var(--positive);
}

/* ---------- 5 · measured ---------- */

.metrics {
  position: absolute;
  left: 980px;
  top: 150px;
  width: 800px;
  height: 460px;
}

.metric-card {
  left: 0;
  width: 800px;
  height: 136px;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.metric-card:nth-child(1) { top: 0; }
.metric-card:nth-child(2) { top: 156px; }
.metric-card:nth-child(3) { top: 312px; }

.metric-card__value {
  margin: 0;
  min-width: 250px;
  white-space: nowrap;
  font-size: 64px;
  font-weight: 500;
  color: var(--text);
}

.metric-card__label {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  color: var(--text-muted);
}

.trace {
  left: 980px;
  top: 650px;
  width: 800px;
  padding: 30px 36px;
}

.trace__row {
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  height: 50px;
}

.trace__row:first-of-type {
  margin-top: 14px;
}

.trace__name {
  font-size: 22px;
  color: var(--text-muted);
}

.trace__bar {
  display: block;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--olive-500);
  transform-origin: 0 50%;
}

.trace__bar--browser {
  background: var(--brand);
}

.trace__row:nth-of-type(2) .trace__bar { margin-left: 12%; width: 50%; }
.trace__row:nth-of-type(3) .trace__bar { margin-left: 16%; width: 44%; }
.trace__row:nth-of-type(4) .trace__bar { margin-left: 26%; width: 26%; }

/* ---------- 6 · close ---------- */

.scene--close {
  text-align: center;
}

/* Scaled from inside: the awning of the mark is at 52% across and 34% down the
   icon, so the zoom starts with its stripes filling the frame. */
.close__icon {
  position: absolute;
  left: 840px;
  top: 250px;
  width: 240px;
  height: 240px;
  transform-origin: 52% 34%;
}

.close__wordmark {
  position: absolute;
  left: 0;
  right: 0;
  top: 520px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 150px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.close__tagline {
  position: absolute;
  left: 0;
  right: 0;
  top: 700px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.close__sub {
  position: absolute;
  left: 0;
  right: 0;
  top: 812px;
  margin: 0;
  font-size: 30px;
  color: var(--text-muted);
}

.close__links {
  position: absolute;
  left: 0;
  right: 0;
  top: 930px;
  margin: 0;
  font-size: 28px;
  color: var(--accent);
}
