/* SCCC slideshow engine — base layout.
 * Design system: DESIGN.md (light master, navy caption band, INSEE red accent).
 * All motion comes from the timeline engine — NO CSS animations/transitions here.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; background: var(--letterbox); overflow: hidden; }

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

.scene { position: absolute; inset: 0; visibility: hidden; background: var(--page-bg); }

/* ---------- step scene: screenshot card + navy caption band ---------- */

.shot-frame {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--card-border), 0 8px 24px rgba(16, 36, 58, 0.10);
}

.shot-base { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.shot-zoom { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.shot-zoom .shot { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; display: block; object-fit: cover; }

.spot {
  position: absolute;
  border: 6px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 0 0 4000px var(--dim);
  opacity: 0;
}

.spot-ring { position: absolute; border: 6px solid var(--brand); border-radius: 18px; opacity: 0; }

.cursor-dot {
  position: absolute;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 5px solid var(--brand);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
}

.cursor-ripple {
  position: absolute;
  width: 100px; height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  border: 6px solid var(--brand);
  opacity: 0;
}

/* caption band — fixed height per language mode, solid navy, red rule on top */
.band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 240px;
  background: var(--navy);
  border-top: 6px solid var(--brand);
  display: flex;
  align-items: center;
  padding: 0 120px;
  gap: 44px;
}
html[data-lang="th-en"] .band { height: 280px; }

.step-chip {
  flex: none;
  width: 112px; height: 112px;
  border-radius: 20px;
  background: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  color: #ffffff;
}
.step-chip .n { font-weight: 700; font-size: 54px; line-height: 1; margin-top: -4px; }
.step-chip .of { font-weight: 500; font-size: 24px; line-height: 1; opacity: 0.85; margin-top: 8px; }

.band-divider { flex: none; width: 2px; height: 120px; background: rgba(255, 255, 255, 0.3); }

.cap-text { min-width: 0; flex: 1; padding-block: 0.12em; }

.cap-th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 54px;
  line-height: 1.5;
  color: #ffffff;
}
.cap-th em { font-style: normal; font-weight: 700; color: #ffd7da; }

.cap-en {
  display: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 10px;
}
html[data-lang="th-en"] .cap-en { display: block; }

.flow-label {
  flex: none;
  align-self: center;
  max-width: 260px;
  text-align: right;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- full-card scenes (title / end = dark bookends, note = light) ---------- */

.scene.full {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px;
}
.scene.full.dark { background: var(--navy); color: #ffffff; }

.accent-bar { width: 180px; height: 12px; border-radius: 6px; background: var(--brand); margin-bottom: 52px; }

.big-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 92px;
  line-height: 1.3;
  padding-block: 0.1em;
  max-width: 1560px;
  color: var(--ink);
}
.dark .big-title { color: #ffffff; }

.big-title-en {
  display: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.4;
  margin-top: 16px;
  color: var(--ink-2);
}
.dark .big-title-en { color: rgba(255, 255, 255, 0.8); }
html[data-lang="th-en"] .big-title-en { display: block; }

.subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.7;
  padding-block: 0.1em;
  margin-top: 30px;
  max-width: 1400px;
  color: var(--ink-2);
}
.dark .subtitle { color: rgba(255, 255, 255, 0.8); }

.meta-line {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 30px;
  margin-top: 30px;
  color: var(--brand);
}
.dark .meta-line { color: rgba(255, 255, 255, 0.7); }

.note-icon { margin-bottom: 40px; }
.note-icon svg { width: 150px; height: 150px; display: block; }

.recap {
  margin-top: 44px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.9;
  padding-block: 0.1em;
  color: rgba(255, 255, 255, 0.92);
}
.recap .idx {
  display: inline-block;
  min-width: 56px;
  color: var(--brand-soft-text);
  font-family: var(--font-head);
  font-weight: 600;
}

.contact {
  margin-top: 40px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.75);
}

.brand-footer {
  position: absolute;
  bottom: 56px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 26px;
  color: var(--ink-3);
}
.dark .brand-footer { color: rgba(255, 255, 255, 0.75); }
.logo-plate {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
}
.logo-plate img { height: 40px; display: block; }

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

.progress {
  position: absolute;
  left: 0; bottom: 0;
  width: 1920px; height: 6px;
  background: var(--brand);
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 50;
}

.hud {
  position: absolute;
  top: 24px; right: 28px;
  z-index: 60;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
  color: #ffffff;
  background: rgba(16, 36, 58, 0.85);
  border-radius: 10px;
  padding: 10px 18px;
}
html[data-mode="render"] .hud, html[data-mode="auto"] .hud { display: none; }
