/* ========================================================================
   SELFIE — case study deck extending the PROLOGUE cinematic system
   Subject: Digio Selfie Service · Business Team Presentation
   Reuses cinematic.css for tokens, type scale, stage, chrome, animations.
   This file holds scene-specific layouts only.
   --------------------------------------------------------------------- */

/* ---- Shared primitives across the deck -------------------------------- */

/* Headline italic emphasis — matches .s-hero h1 .it from cinematic.css */
.cine-headline .it,
.cine-headline-2 .it,
.cine-hero .it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: -0.02em;
}

/* Generic LEFT (typography) / RIGHT (visual) split */
.s-split {
  position: relative;
  height: 100%;
  padding: 110px 120px 110px;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 80px;
  align-items: stretch;
}
.s-split > .left,
.s-split > .right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.s-split > .left h2 { margin: 20px 0 0; text-wrap: balance; }
.s-split > .left .lede { margin-top: 32px; max-width: 560px; }
.s-split > .left .small {
  margin-top: 36px;
  max-width: 520px;
  border-left: 1px solid var(--hairline-2);
  padding: 4px 0 4px 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--paper-dim);
}

/* Optional scene-wide footer strip */
.scene-foot {
  position: absolute;
  left: 120px; right: 120px; bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-dim);
  z-index: 5;
}
.scene-foot.solo { justify-content: flex-end; }
.scene-foot .accent { color: var(--amber); }
.scene-foot .ghost  { color: var(--paper-quiet); }

/* Image placeholder slot — user will drop real imagery in later */
.img-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(45deg,
      rgba(34, 28, 48, 0.018) 0px, rgba(34, 28, 48, 0.018) 6px,
      transparent 6px, transparent 12px);
  border: 1px dashed rgba(34, 28, 48, 0.22);
  border-radius: 8px;
  color: var(--paper-quiet);
  text-align: center;
  padding: 18px;
  overflow: hidden;
}
.img-slot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  border: 1px solid rgba(34, 28, 48, 0.06);
  pointer-events: none;
}
.img-slot .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--paper-dim);
  line-height: 1;
}
.img-slot .ttl {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.img-slot .hint {
  font-family: var(--grotesk);
  font-size: 14px;
  line-height: 1.35;
  color: var(--paper-quiet);
  max-width: 200px;
  text-wrap: balance;
}

/* "Stamp" decoration used as a status overlay (SPOOF, BLOCKED, etc.) */
.stamp-mark {
  position: absolute;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  padding: 4px 10px;
  border: 1px solid var(--coral-soft);
  border-radius: 3px;
  background: oklch(74% 0.14 28 / 0.08);
  white-space: nowrap;
  transform: rotate(-6deg);
}
.stamp-mark.amber {
  color: var(--amber);
  border-color: var(--amber-soft);
  background: oklch(78% 0.12 65 / 0.08);
}
.stamp-mark.teal {
  color: var(--teal);
  border-color: var(--teal-soft);
  background: var(--teal-glow);
}

/* ========================================================================
   SCENE 01 — THE PROBLEM  (2×2 spoof gallery)
   --------------------------------------------------------------------- */

.s2-problem .bg-coral {
  width: 1100px; height: 900px;
  background: radial-gradient(circle, oklch(60% 0.14 28 / 0.30), transparent 60%);
  bottom: -250px; left: -250px;
}
.s2-problem .bg-plum {
  width: 900px; height: 900px;
  background: radial-gradient(circle, oklch(91% 0.035 320 / 0.45), transparent 60%);
  top: -200px; right: -150px;
}

.gallery-card {
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-1) 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
}
.gallery-card .quad {
  position: relative;
  background: rgba(244, 241, 234, 0.55);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.gallery-card .quad .img-slot { flex: 1; min-height: 120px; }
.gallery-card .quad .label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper);
}
.gallery-card .quad .verdict {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--paper-dim);
}
.gallery-card .quad .stamp-mark {
  top: 12px; right: 12px;
}

/* ========================================================================
   SCENE 02 — TWO PERSONAS
   --------------------------------------------------------------------- */

.s2-personas .bg-amber {
  width: 1000px; height: 900px;
  background: radial-gradient(circle, oklch(78% 0.12 65 / 0.18), transparent 60%);
  top: -200px; right: -150px;
}

.persona-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-left: auto;
  width: 100%;
}
.persona-card {
  position: relative;
  background: linear-gradient(170deg, var(--ink-3) 0%, var(--ink-1) 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 580px;
}
.persona-card.A { border-color: var(--coral-soft); }
.persona-card.B { border-color: var(--teal-soft); }
.persona-card .role-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-quiet);
}
.persona-card.A .role-eyebrow { color: var(--coral); }
.persona-card.B .role-eyebrow { color: var(--teal); }
.persona-card .id-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.persona-card .monogram {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  color: var(--paper);
  flex-shrink: 0;
  background:
    radial-gradient(circle at 35% 30%, oklch(75% 0.12 35 / 0.85), oklch(40% 0.08 30 / 0.95));
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6);
}
.persona-card.B .monogram {
  background:
    radial-gradient(circle at 35% 30%, oklch(80% 0.10 200 / 0.85), oklch(35% 0.08 220 / 0.95));
}
.persona-card .name {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.015em;
  color: var(--paper);
  line-height: 1;
}
.persona-card .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  color: var(--paper-dim);
  margin-top: 4px;
}
.persona-card .attr {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
}
.persona-card .attr .k {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-quiet);
  padding-top: 3px;
}
.persona-card.A .attr .k { color: var(--coral); }
.persona-card.B .attr .k { color: var(--teal); }
.persona-card .attr .v {
  font-family: var(--grotesk);
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper);
}

/* ========================================================================
   SCENE 03 — VIRTUAL-CAM DEFENSE  (banned tools rejection card)
   --------------------------------------------------------------------- */

.s2-vcam .bg-plum {
  width: 1200px; height: 900px;
  background: radial-gradient(circle, oklch(91% 0.035 320 / 0.55), transparent 60%);
  bottom: -250px; right: -200px;
}

/* ---- Source-of-stream verification gate (diagram) ------------------- */
.source-gate {
  background: linear-gradient(168deg, var(--ink-3) 0%, var(--ink-1) 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  padding: 30px 30px 26px;
  width: 640px;
  margin-left: auto;
  box-shadow: 0 40px 80px -42px rgba(34,28,48,0.45);
}
.source-gate .sg-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.source-gate .sg-head .title {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.source-gate .sg-head .meta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-quiet);
  white-space: nowrap;
}

.source-gate .sg-rail { position: relative; margin-top: 12px; }
.source-gate .sg-lane { position: relative; height: 110px; }

/* the SDK checkpoint — one dark spine spanning every lane */
.source-gate .sg-gate {
  position: absolute;
  left: 330px; width: 56px;
  top: 8px; bottom: 8px;
  border-radius: 13px;
  background: linear-gradient(180deg, #322A44 0%, #221C30 100%);
  box-shadow: 0 16px 32px -16px rgba(34,28,48,0.6);
  display: grid; place-items: center;
  z-index: 3;
}
.source-gate .sg-gate .lbl {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #F4EFE6;
}
.source-gate .sg-gate::before {
  content: "";
  position: absolute; left: 50%; top: 14px; bottom: 14px;
  width: 1px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--amber-soft), transparent);
}

/* source chip */
.source-gate .sg-chip {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 272px;
  display: flex; align-items: center; gap: 14px;
}
.source-gate .sg-ico {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 11px; border: 1px solid;
  display: grid; place-items: center; position: relative;
}
.source-gate .sg-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.source-gate .sg-txt b {
  font-family: var(--grotesk); font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em;
  color: var(--paper); white-space: nowrap;
}
.source-gate .sg-txt i {
  font-family: var(--mono); font-style: normal;
  font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--paper-quiet);
}

/* icon glyphs (simple shapes) */
.source-gate .sg-ico.lens { border-color: var(--teal-soft); background: var(--teal-glow); }
.source-gate .sg-ico.lens::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--teal);
}
.source-gate .sg-ico.lens::after {
  content: ""; position: absolute; width: 6px; height: 6px;
  border-radius: 50%; background: var(--teal);
}
.source-gate .sg-ico.device { border-color: var(--coral-soft); background: oklch(74% 0.14 28 / 0.07); }
.source-gate .sg-ico.device::before {
  content: ""; width: 22px; height: 15px; border-radius: 3px;
  border: 2px solid var(--coral);
}
.source-gate .sg-ico.device::after {
  content: ""; position: absolute; bottom: 8px;
  width: 9px; height: 2px; background: var(--coral); border-radius: 1px;
}
.source-gate .sg-ico.clip { border-color: var(--coral-soft); background: oklch(74% 0.14 28 / 0.07); }
.source-gate .sg-ico.clip::before {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-left: 14px solid var(--coral);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* connector from chip to the gate */
.source-gate .sg-conn {
  position: absolute; left: 272px; width: 58px;
  top: 50%; height: 0;
}
.source-gate .sg-lane.genuine .sg-conn { border-top: 2px solid var(--teal); }
.source-gate .sg-lane.blocked .sg-conn { border-top: 2px dashed var(--coral); opacity: 0.6; }

/* genuine path continues through the gate */
.source-gate .sg-bridge {
  position: absolute; left: 386px; width: 56px;
  top: 50%; height: 0; border-top: 2px solid var(--teal);
}
.source-gate .sg-bridge::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  width: 0; height: 0;
  border-left: 7px solid var(--teal);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}

/* severed mark for blocked lanes — sits on the gate's edge */
.source-gate .sg-cut {
  position: absolute; left: 330px; top: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: oklch(74% 0.14 28 / 0.14); border: 1px solid var(--coral);
  color: var(--coral); display: grid; place-items: center;
  font-family: var(--mono); font-size: 16px; line-height: 1;
  z-index: 4;
}

/* verdict on the right */
.source-gate .sg-verdict {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 132px; display: flex; flex-direction: column; gap: 3px;
}
.source-gate .sg-verdict b {
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.source-gate .sg-verdict i {
  font-family: var(--grotesk); font-style: normal;
  font-size: 13px; line-height: 1.3; color: var(--paper-dim);
}
.source-gate .sg-verdict.pass b { color: var(--teal); }
.source-gate .sg-verdict.pass b::before { content: "\2713  "; }
.source-gate .sg-verdict.stop b { color: var(--coral); }

.source-gate .sg-foot {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif); font-style: italic;
  font-size: 17px; line-height: 1.45;
  color: var(--paper-dim);
}
.source-gate .sg-foot .em { color: var(--amber); }

/* ========================================================================
   SCENE 04 — GUIDANCE, LANGUAGE, SPEED  (3 stacked artifacts)
   --------------------------------------------------------------------- */

.s2-guidance .bg-amber {
  width: 1100px; height: 900px;
  background: radial-gradient(circle, oklch(78% 0.12 65 / 0.22), transparent 60%);
  top: -200px; right: -200px;
}
.s2-guidance .right {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 24px;
  align-content: center;
  justify-items: stretch;
}

/* — Artifact A: phone with toast — */
.guidance-phone {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}
.guidance-phone .mini-phone {
  position: relative;
  width: 240px;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  background: linear-gradient(180deg, #1F1731 0%, #0E0A1A 100%);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 7px;
  box-shadow:
    0 40px 60px -30px rgba(0,0,0,0.8),
    inset 0 0 40px rgba(0,0,0,0.4);
}
.guidance-phone .mini-phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  border-radius: 12px;
  background: #050308;
  z-index: 3;
}
.guidance-phone .mp-screen {
  width: 100%; height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #FAF4E6 0%, #E5DBC4 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}
.guidance-phone .toast {
  margin: 50px 14px 0;
  background: oklch(74% 0.14 28 / 0.95);
  color: #1A140B;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}
.guidance-phone .toast::before {
  content: "";
  position: absolute;
  left: 12px; bottom: -5px;
  width: 10px; height: 10px;
  background: oklch(74% 0.14 28 / 0.95);
  transform: rotate(45deg);
}
.guidance-phone .viewport {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  margin: 18px 18px 22px;
}
.guidance-phone .viewport .circle {
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid oklch(74% 0.14 28 / 0.6);
  background: rgba(26, 20, 11, 0.06);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.guidance-phone .viewport .face {
  width: 92%; height: 92%;
  border-radius: 50%;
  position: relative;
}
.guidance-phone .capture-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(26, 20, 11, 0.5);
  background: rgba(26, 20, 11, 0.06);
  margin: 0 auto 14px;
}
.guidance-phone .anno-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guidance-phone .anno-stack .head {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.guidance-phone .anno-stack .body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--paper);
  max-width: 360px;
}

/* — Artifact B: language strip — */
.lang-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  background: rgba(34, 28, 48, 0.025);
  border: 1px solid var(--hairline-2);
  border-radius: 12px;
}
.lang-strip .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lang-strip .pill {
  font-family: var(--grotesk);
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--paper);
  padding: 7px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  background: rgba(34, 28, 48, 0.04);
}
.lang-strip .pill.first {
  background: oklch(78% 0.12 65 / 0.18);
  border-color: var(--amber-soft);
  color: var(--paper);
}
.lang-strip .caption {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-quiet);
}

/* — Artifact C: bandwidth branch — */
.bw-branch {
  padding: 22px 24px;
  background: rgba(34, 28, 48, 0.018);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  position: relative;
}
.bw-branch .root {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.bw-branch .branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}
.bw-branch .branch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bw-branch .branch .lbl {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-quiet);
}
.bw-branch .branch.high .lbl { color: var(--amber); }
.bw-branch .branch .body {
  font-family: var(--grotesk);
  font-size: 16px;
  line-height: 1.45;
  color: var(--paper);
}
.bw-branch .branch.high .body { color: var(--paper); }
.bw-branch .anno {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--paper-dim);
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}

/* ========================================================================
   SCENE 05 — FRAMING  (three phone mockups)
   --------------------------------------------------------------------- */

.s2-framing {
  padding: 110px 120px 0;
  position: relative;
  height: 100%;
}
.s2-framing .bg-teal {
  width: 1000px; height: 800px;
  background: radial-gradient(circle, oklch(60% 0.12 200 / 0.22), transparent 60%);
  top: 10%; right: -150px;
}
.s2-framing .bg-coral {
  width: 800px; height: 700px;
  background: radial-gradient(circle, oklch(60% 0.14 28 / 0.20), transparent 60%);
  bottom: -100px; left: -100px;
}
.s2-framing .header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 18px;
}
.s2-framing .header h2 { margin: 18px 0 0; }
.s2-framing .header .lede { max-width: 560px; }
.s2-framing .row-anno {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-quiet);
  margin: 22px 0 22px;
}
.s2-framing .row-anno .em { color: var(--amber); }

.phone-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.phone-card .verdict-pill {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-quiet);
  padding: 6px 12px;
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
}
.phone-card.bad .verdict-pill { color: var(--coral); border-color: var(--coral-soft); background: oklch(74% 0.14 28 / 0.06); }
.phone-card.ok  .verdict-pill { color: var(--amber); border-color: var(--amber-soft); background: oklch(78% 0.12 65 / 0.08); }

.mock-phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 18;
  border-radius: 34px;
  background: linear-gradient(180deg, #1F1731 0%, #0E0A1A 100%);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 8px;
  box-shadow: 0 50px 80px -40px rgba(0,0,0,0.7);
}
.mock-phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  border-radius: 12px;
  background: #050308;
  z-index: 3;
}
.mock-phone .mp-screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #FAF4E6 0%, #E5DBC4 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}
.mock-phone .toast {
  margin: 54px 14px 0;
  background: rgba(26, 20, 11, 0.85);
  color: #F4ECD8;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}
.mock-phone.ok .toast {
  background: oklch(60% 0.14 150 / 0.92);
  color: #0A1108;
}
.mock-phone.bad .toast {
  background: oklch(74% 0.14 28 / 0.92);
  color: #1A0808;
}
.mock-phone .viewport {
  flex: 1;
  margin: 18px;
  display: grid;
  place-items: center;
  position: relative;
}
.mock-phone .ring-out {
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(26, 20, 11, 0.35);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.mock-phone.ok .ring-out { border-color: oklch(60% 0.14 150 / 0.6); }
.mock-phone.bad .ring-out { border-color: oklch(74% 0.14 28 / 0.6); }
.mock-phone .face-slot {
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%,
      oklch(75% 0.10 45 / 0.85),
      oklch(40% 0.08 35 / 0.95));
  position: relative;
}
.mock-phone .face-slot::before,
.mock-phone .face-slot::after {
  content: "";
  position: absolute;
  background: rgba(26, 20, 11, 0.45);
  border-radius: 50%;
}
.mock-phone .face-slot::before {
  width: 9%; height: 9%;
  top: 38%; left: 30%;
}
.mock-phone .face-slot::after {
  width: 9%; height: 9%;
  top: 38%; right: 30%;
}
/* Three face sizes */
.mock-phone.far  .face-slot { width: 32%; height: 32%; }
.mock-phone.ok   .face-slot { width: 60%; height: 60%; }
.mock-phone.bad  .face-slot { width: 96%; height: 96%; }

/* The "background visible" rooms shown on far phone */
.mock-phone.far .ring-out::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(26, 20, 11, 0.04) 0px, rgba(26, 20, 11, 0.04) 1px,
      transparent 1px, transparent 8px),
    repeating-linear-gradient(0deg,
      rgba(26, 20, 11, 0.04) 0px, rgba(26, 20, 11, 0.04) 1px,
      transparent 1px, transparent 8px);
  border-radius: 50%;
}

.phone-card .caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: var(--paper-dim);
  text-align: center;
  max-width: 240px;
}
.phone-card.ok .caption { color: var(--paper); }

/* ========================================================================
   SCENE 06 — DUAL CAPTURE  (nested frame illustration)
   --------------------------------------------------------------------- */

.s2-dual .bg-plum {
  width: 1100px; height: 1000px;
  background: radial-gradient(circle, oklch(91% 0.035 320 / 0.50), transparent 60%);
  top: -200px; right: -200px;
}
.s2-dual .nest {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 4 / 3;
  margin-left: auto;
}
.s2-dual .wider-frame {
  position: absolute; inset: 0;
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  background:
    linear-gradient(170deg,
      oklch(94% 0.02 280 / 0.7),
      oklch(96% 0.015 320 / 0.7));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
}
.s2-dual .wider-label {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-quiet);
}
.s2-dual .wider-label .em { color: var(--amber); }

/* Inner viewport circle */
.s2-dual .viewport {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--paper-dim);
  background:
    radial-gradient(circle at center, oklch(93% 0.03 40 / 0.5), oklch(95% 0.02 320 / 0.5));
  display: grid; place-items: center;
  overflow: hidden;
}
.s2-dual .viewport .face-slot {
  width: 78%; height: 78%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 32%, oklch(75% 0.10 45 / 0.95), oklch(40% 0.08 35 / 0.95));
  position: relative;
}
.s2-dual .viewport .face-slot::before,
.s2-dual .viewport .face-slot::after {
  content: ""; position: absolute;
  background: rgba(26, 20, 11, 0.55);
  border-radius: 50%;
  width: 11%; height: 11%; top: 38%;
}
.s2-dual .viewport .face-slot::before { left: 28%; }
.s2-dual .viewport .face-slot::after  { right: 28%; }
.s2-dual .viewport-label {
  position: absolute;
  bottom: 12%; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
  z-index: 3;
}

/* Corner artifacts — each placed in one corner of the wider frame */
.s2-dual .artifact {
  position: absolute;
  width: 130px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
}
.s2-dual .artifact.tl { top: 22px; left: 22px; }
.s2-dual .artifact.tr { top: 22px; right: 22px; }
.s2-dual .artifact.bl { bottom: 22px; left: 22px; }
.s2-dual .artifact.br { bottom: 22px; right: 22px; }
.s2-dual .artifact .ill {
  height: 72px;
  border-radius: 8px;
  background: rgba(244, 241, 234, 0.55);
  border: 1px dashed var(--hairline-2);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
/* visual hints for each corner artifact */
.s2-dual .artifact.tl .ill::before {
  content: "";
  position: absolute; inset: 14px 30% 14px 14px;
  border-radius: 4px;
  border: 2px solid rgba(34, 28, 48, 0.55);
  border-right-color: transparent;
}
.s2-dual .artifact.tr .ill::before {
  content: "";
  position: absolute; top: 12px; left: 22px;
  width: 70%; height: 60%;
  border: 1.5px solid rgba(34, 28, 48, 0.45);
  background: rgba(34, 28, 48, 0.04);
  transform: rotate(-6deg);
}
.s2-dual .artifact.bl .ill::before {
  content: "";
  position: absolute; bottom: 12px; left: 18px;
  width: 30%; height: 70%;
  border-radius: 12px;
  background: oklch(70% 0.06 40 / 0.7);
}
.s2-dual .artifact.bl .ill::after {
  content: "";
  position: absolute; bottom: 12px; left: 35%;
  width: 18%; height: 50%;
  border-radius: 10px;
  background: oklch(70% 0.06 40 / 0.7);
}
.s2-dual .artifact.br .ill::before {
  content: "▶";
  font-family: var(--grotesk);
  color: var(--coral);
  font-size: 24px;
  text-shadow: 0 0 16px var(--coral-soft);
}
.s2-dual .artifact .lbl {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
}

.s2-dual .nest-quote {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--paper-dim);
  max-width: 720px;
  margin-left: auto;
  margin-right: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.s2-dual .nest-quote .em { color: var(--amber); }

/* ========================================================================
   SCENE 07 — PIPELINE  (vertical sieve / funnel)
   --------------------------------------------------------------------- */

.s2-pipeline .bg {
  width: 1000px; height: 1100px;
  background: radial-gradient(circle, oklch(91% 0.03 320 / 0.45), transparent 60%);
  top: -200px; right: -100px;
}

.sieve {
  position: relative;
  margin-left: auto;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sieve .layer {
  position: relative;
  background: rgba(244, 241, 234, 0.55);
  border: 1px solid var(--hairline-2);
  border-radius: 4px;
  padding: 8px 22px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  font-family: var(--grotesk);
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--paper);
}
.sieve .layer .idx {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper-quiet);
  font-variant-numeric: tabular-nums;
}
.sieve .layer .name { display: inline-flex; gap: 8px; }
.sieve .layer .name code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--amber);
  background: oklch(78% 0.12 65 / 0.06);
  padding: 1px 6px;
  border-radius: 3px;
}
.sieve .layer .name span {
  color: var(--paper-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
}
.sieve .layer .reject {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sieve .layer .reject::after {
  content: "→";
  color: var(--coral);
  font-family: var(--grotesk);
  font-size: 15px;
}
.sieve .layer.hero {
  background: linear-gradient(135deg, oklch(78% 0.12 65 / 0.18), oklch(68% 0.15 35 / 0.10));
  border: 1px solid var(--amber-soft);
  box-shadow: 0 0 24px oklch(78% 0.12 65 / 0.12);
}
.sieve .layer.hero .name code { background: oklch(78% 0.12 65 / 0.20); }
.sieve .layer.optional {
  border-style: dashed;
  opacity: 0.85;
}
.sieve .verdict {
  margin-top: 14px;
  padding: 14px 22px;
  background: linear-gradient(135deg, oklch(78% 0.12 65), oklch(68% 0.15 35));
  color: #1A140B;
  border-radius: 6px;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px -8px oklch(78% 0.12 65 / 0.5);
  text-align: center;
}

/* progressive narrowing of layers */
.sieve .layer { width: 100%; }
.sieve .layer:nth-child(1)  { width: 100%; }
.sieve .layer:nth-child(2)  { width: 98%; }
.sieve .layer:nth-child(3)  { width: 96%; }
.sieve .layer:nth-child(4)  { width: 94%; }
.sieve .layer:nth-child(5)  { width: 92%; }
.sieve .layer:nth-child(6)  { width: 90%; }
.sieve .layer:nth-child(7)  { width: 88%; }
.sieve .layer:nth-child(8)  { width: 86%; }
.sieve .layer:nth-child(9)  { width: 84%; }
.sieve .layer:nth-child(10) { width: 82%; }
.sieve .layer:nth-child(11) { width: 80%; }
.sieve .layer:nth-child(12) { width: 78%; }
.sieve .layer:nth-child(13) { width: 76%; }
.sieve .layer:nth-child(14) { width: 74%; }
.sieve .layer:nth-child(15) { width: 72%; }
.sieve .layer:nth-child(16) { width: 70%; }

.s2-pipeline .left .small {
  font-family: var(--serif);
  font-style: italic;
}

/* ========================================================================
   SCENE 08 — WHAT EACH CHECK CATCHES  (attack-to-detector grid)
   --------------------------------------------------------------------- */

.s2-detmap .bg {
  width: 1100px; height: 900px;
  background: radial-gradient(circle, oklch(60% 0.14 28 / 0.22), transparent 60%);
  bottom: -200px; right: -200px;
}

.detmap-card {
  background: linear-gradient(170deg, var(--ink-3) 0%, var(--ink-1) 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  padding: 28px 32px 28px;
  width: 100%;
  margin-left: auto;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7);
}
.detmap-card .head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-quiet);
}
.detmap-card .head .right-h { color: var(--amber); }
.detmap-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.detmap-row:last-of-type { border-bottom: 0; }
.detmap-row .attack {
  font-family: var(--grotesk);
  font-size: 18px;
  line-height: 1.45;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.detmap-row .det {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detmap-row .det .code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--amber);
  background: oklch(78% 0.12 65 / 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.02em;
}
.detmap-row .det .desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--paper-dim);
}
.detmap-card .footer-quote {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--amber-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--paper);
}
.detmap-card .footer-quote .em { color: var(--amber); }

/* ========================================================================
   SCENE — READING THE FACE  (localizer output: hero frame + thumb strip)
   --------------------------------------------------------------------- */

.s2-faceread .bg {
  width: 1100px; height: 1000px;
  background: radial-gradient(circle, oklch(91% 0.035 200 / 0.32), transparent 60%);
  top: -200px; right: -180px;
}
.s2-faceread .bg-2 {
  width: 800px; height: 700px;
  background: radial-gradient(circle, oklch(91% 0.035 320 / 0.40), transparent 60%);
  bottom: -150px; left: -120px;
}

.s2-faceread .right {
  display: grid;
  grid-template-rows: auto auto;
  gap: 26px;
  align-content: center;
}

/* Hero — the all-features localizer frame */
.detect-hero {
  position: relative;
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  overflow: hidden;
  background: #0B0810;
  box-shadow: 0 44px 84px -40px rgba(0,0,0,0.7);
  aspect-ratio: 616 / 650;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}
.detect-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.detect-hero::after {
  /* keep edges seated in the deck */
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 60px rgba(244,241,234,0.55);
  pointer-events: none;
}
.detect-hero .hero-tag {
  position: absolute;
  top: 14px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(244, 241, 234, 0.62);
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.detect-hero .hero-tag .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(70% 0.18 145);
  box-shadow: 0 0 8px oklch(70% 0.18 145 / 0.8);
}
.detect-hero .hero-meta {
  position: absolute;
  bottom: 14px; right: 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: rgba(244, 241, 234, 0.62);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 5px 10px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.detect-hero .hero-meta .em { color: var(--amber); }

/* Thumbnail strip — one frame per detected region */
.detect-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
}
.detect-thumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detect-thumb .frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  background: #0B0810;
  box-shadow: 0 14px 28px -18px rgba(0,0,0,0.7);
}
.detect-thumb .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.detect-thumb .frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 22px rgba(244,241,234,0.5);
  pointer-events: none;
}
.detect-thumb .cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 1px;
}
.detect-thumb .cap .name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}
.detect-thumb .cap .name .dot {
  width: 7px; height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.detect-thumb .cap .conf {
  font-family: var(--grotesk);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--amber);
}

/* per-region accent dots */
.dot.face     { color: oklch(78% 0.21 145); background: oklch(78% 0.21 145); }
.dot.forehead { color: oklch(78% 0.13 195); background: oklch(78% 0.13 195); }
.dot.eye      { color: oklch(56% 0.26 264); background: oklch(56% 0.26 264); }
.dot.nose     { color: oklch(60% 0.25 27);  background: oklch(60% 0.25 27); }
.dot.mouth    { color: oklch(86% 0.18 100); background: oklch(86% 0.18 100); }
.dot.chin     { color: oklch(60% 0.29 328); background: oklch(60% 0.29 328); }

/* ---- Zoomable affordance + lightbox ---------------------------------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--amber-soft); outline-offset: 3px; }

.zoom-hint {
  position: absolute;
  bottom: 14px; left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(244, 241, 234, 0.62);
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.detect-hero:hover .zoom-hint { opacity: 1; transform: translateY(0); }
.zoom-hint.sm {
  bottom: 6px; left: 6px;
  padding: 3px 6px;
  font-size: 14px;
  letter-spacing: 0;
}
.detect-thumb .frame:hover .zoom-hint.sm { opacity: 1; transform: translateY(0); }

/* Lightbox overlay (vanilla, appended to <body>) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 18px 10px;
  padding: 5vh 4vw 4vh;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.lightbox.open { opacity: 1; }
.lightbox .lb-stage {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}
.lightbox .lb-img {
  max-width: 78vw;
  max-height: 76vh;
  border-radius: 12px;
  border: 1px solid rgba(34, 28, 48, 0.16);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.9);
  object-fit: contain;
  cursor: default;
}
.lightbox .lb-img.swap { animation: lbSwap 0.34s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes lbSwap {
  from { opacity: 0; transform: scale(0.975); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox .lb-foot {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.lightbox .lb-cap {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}
.lightbox .lb-cap .sub {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper-dim);
}
.lightbox .lb-count {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--paper-quiet);
  font-variant-numeric: tabular-nums;
}
.lightbox .lb-nav {
  grid-row: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline-2);
  background: rgba(34, 28, 48, 0.05);
  color: var(--paper);
  font-family: var(--grotesk);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.lightbox .lb-nav:hover {
  background: oklch(78% 0.12 65 / 0.16);
  border-color: var(--amber-soft);
  transform: scale(1.08);
}
.lightbox .lb-prev { grid-column: 1; }
.lightbox .lb-next { grid-column: 3; }
.lightbox .lb-close {
  position: absolute;
  top: 28px; right: 32px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline-2);
  background: rgba(34, 28, 48, 0.04);
  color: var(--paper);
  font-family: var(--grotesk);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox .lb-close:hover { background: rgba(34, 28, 48, 0.1); transform: rotate(90deg); }

/* ========================================================================
   SCENE 09 — SMART CROPPING  (three nested rectangles)
   --------------------------------------------------------------------- */

.s2-crop .bg {
  width: 1100px; height: 900px;
  background: radial-gradient(circle, oklch(91% 0.035 280 / 0.45), transparent 60%);
  top: -150px; right: -150px;
}

.crop-stage {
  position: relative;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 4 / 3.2;
  margin-left: auto;
}
.crop-stage .wider {
  position: absolute; inset: 0;
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  background: linear-gradient(170deg, oklch(94% 0.02 280 / 0.7), oklch(96% 0.015 320 / 0.7));
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
}
.crop-stage .cropped {
  position: absolute;
  inset: 16% 22% 16% 22%;
  border: 1.5px dashed var(--amber-soft);
  border-radius: 10px;
  background:
    radial-gradient(120% 100% at 50% 60%, oklch(93% 0.03 40 / 0.5), oklch(95% 0.02 320 / 0.6));
  display: grid; place-items: center;
}
.crop-stage .inner {
  position: absolute;
  inset: 30% 38% 30% 38%;
  border: 1.5px solid var(--coral-soft);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 32%, oklch(75% 0.10 45 / 0.95), oklch(40% 0.08 35 / 0.95));
  overflow: hidden;
}
.crop-stage .inner::before,
.crop-stage .inner::after {
  content: ""; position: absolute;
  width: 12%; height: 12%; top: 38%;
  background: rgba(26, 20, 11, 0.55);
  border-radius: 50%;
}
.crop-stage .inner::before { left: 27%; }
.crop-stage .inner::after  { right: 27%; }

/* Layer labels */
.crop-stage .lbl {
  position: absolute;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.crop-stage .lbl .k { color: var(--paper); }
.crop-stage .lbl .v {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper-dim);
}
.crop-stage .lbl.wider-l   { top: 10px; left: 14px; }
.crop-stage .lbl.wider-l .k { color: var(--paper-dim); }
.crop-stage .lbl.cropped-l { top: 16%; left: 22%; transform: translate(0, -110%); }
.crop-stage .lbl.cropped-l .k { color: var(--amber); }
.crop-stage .lbl.inner-l   { top: 30%; right: 38%; transform: translate(110%, -10%); }
.crop-stage .lbl.inner-l .k { color: var(--coral); }

.crop-stage .diagonal {
  position: absolute;
  bottom: -68px; left: 0; right: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--paper-dim);
  text-align: right;
  max-width: 540px;
  margin-left: auto;
}
.crop-stage .diagonal .em { color: var(--amber); }

/* ========================================================================
   SCENE 10 — CONFIGURABLE CONTROL  (settings panel)
   --------------------------------------------------------------------- */

.s2-config .bg-a {
  width: 900px; height: 900px;
  background: radial-gradient(circle, oklch(91% 0.035 320 / 0.45), transparent 60%);
  top: -150px; right: -150px;
}
.s2-config .bg-b {
  width: 700px; height: 600px;
  background: radial-gradient(circle, oklch(78% 0.12 65 / 0.18), transparent 60%);
  bottom: -100px; right: 30%;
}

.console {
  background: linear-gradient(170deg, var(--ink-3) 0%, var(--ink-1) 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  width: 100%;
  margin-left: auto;
  box-shadow: 0 50px 80px -40px rgba(0,0,0,0.7);
  overflow: hidden;
}
.console .titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: rgba(244, 241, 234, 0.55);
}
.console .titlebar .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--amber-soft);
  display: inline-block; margin-right: 8px;
}
.console .titlebar .right {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper-quiet);
}
.console-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.console-section {
  padding: 22px 26px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  min-height: 180px;
}
.console-section:nth-child(2n) { border-right: 0; }
.console-section:nth-last-child(-n+2) { border-bottom: 0; }
.console-section .sec-h {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.console-section .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-family: var(--grotesk);
  font-size: 16px;
  color: var(--paper);
  border-bottom: 1px dashed var(--hairline);
}
.console-section .row:last-child { border-bottom: 0; }
.console-section .row code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--paper);
}
.console-section .row .toggle {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--hairline-2);
}
.console-section .row .toggle.on {
  color: var(--amber);
  border-color: var(--amber-soft);
  background: oklch(78% 0.12 65 / 0.10);
}
.console-section .row .toggle.off {
  color: var(--paper-quiet);
}
.console-section .row .toggle.on::before { content: "● "; }
.console-section .row .toggle.off::before { content: "○ "; }
.console-section .row .annot {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--paper-quiet);
  margin-left: 10px;
}

/* — retry policy — */
.console .retry .row .v {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--paper);
  letter-spacing: 0.04em;
}
.console .retry .counter {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--hairline-2);
  border-radius: 6px;
  overflow: hidden;
}
.console .retry .counter span {
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--paper);
  background: rgba(244, 241, 234, 0.45);
}
.console .retry .counter .minus,
.console .retry .counter .plus {
  color: var(--paper-quiet);
  background: rgba(34, 28, 48, 0.04);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}

/* — languages — */
.console .langs .pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.console .langs .chip {
  font-family: var(--grotesk);
  font-size: 15px;
  color: var(--paper);
  padding: 5px 10px;
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  background: rgba(34, 28, 48, 0.04);
}
.console .langs .footnote {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--paper-dim);
}

/* — layout & brand — */
.console .layout .seg {
  display: inline-flex;
  border: 1px solid var(--hairline-2);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.console .layout .seg span {
  padding: 6px 10px;
  color: var(--paper-quiet);
  background: rgba(244, 241, 234, 0.45);
}
.console .layout .seg span.on {
  color: var(--amber);
  background: oklch(78% 0.12 65 / 0.12);
}
